/* ---------- Tokens ---------- */
:root {
  --bg: #f7f4ef;
  --bg-alt: #efeae1;
  --surface: #ffffff;
  --text: #1c2530;
  --text-muted: #5d6773;
  --border: #e3ddd2;
  --accent: #36668a;
  --accent-2: #c98a63;
  --accent-soft: #dce7ee;
  --shadow: 0 20px 50px -20px rgba(28, 37, 48, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

:root[data-theme="dark"] {
  --bg: #0f1419;
  --bg-alt: #151b22;
  --surface: #1b222b;
  --text: #e9edf2;
  --text-muted: #9aa4b1;
  --border: #273040;
  --accent: #7fb4d6;
  --accent-2: #e0a27a;
  --accent-soft: #1d3040;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--text-muted); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: .5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 999; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--ease);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.main-nav a.btn-primary { color: #fff; }
.main-nav a.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .main-nav a.btn-primary,
:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .skip { color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.site-footer .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.site-header .brand-text { align-items: center; }
.brand-text strong { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600; }
.site-header .brand-text strong { text-transform: uppercase; letter-spacing: .04em; }
.brand-text em { font-style: normal; font-size: .78rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; align-items: center; }
.main-nav a {
  color: var(--text); padding: .5rem .85rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500;
}
.main-nav a:hover { background: var(--bg-alt); text-decoration: none; }

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: all .25s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--border);
  cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 10% 80%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-points li { display: flex; gap: .5rem; align-items: center; color: var(--text-muted); font-size: .95rem; }
.hero-points span { color: var(--accent); font-weight: 700; }

.hero-visual { position: relative; aspect-ratio: 1/1; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(2px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: .22;
}
.blob-a { inset: 10% 20% 20% 10%; }
.blob-b { width: 60%; height: 60%; right: -6%; bottom: -6%; opacity: .15; }

.card-float {
  position: absolute;
  display: flex; align-items: center; gap: .7rem;
  background: var(--surface); color: var(--text);
  padding: .8rem 1rem; border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  font-size: .9rem;
}
.card-float svg { color: var(--accent); flex-shrink: 0; }
.card-float strong { display: block; font-size: .95rem; font-family: 'Fraunces', serif; font-weight: 600; }
.card-float span { color: var(--text-muted); font-size: .8rem; }
.card-float-1 { top: 10%; left: -6%; animation: float 6s ease-in-out infinite; }
.card-float-2 { top: 45%; right: -8%; animation: float 7s ease-in-out infinite .8s; }
.card-float-3 { bottom: 8%; left: 15%; animation: float 8s ease-in-out infinite 1.6s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Two-col / About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.portrait {
  aspect-ratio: 5/6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  max-width: 67%;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credentials { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.credentials li {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; color: var(--text);
}

/* ---------- Sections heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- HELFO ---------- */
.helfo-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 3rem; align-items: start; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .9rem; color: var(--text-muted); }
.steps li strong { color: var(--text); }
.info-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.info-box h3 { margin-top: 0; color: var(--accent); }
.info-box ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.info-box li { margin-bottom: .4rem; color: var(--text); }
.fine-print { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ---------- Prices ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; max-width: 900px; margin: 0 auto;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  position: relative; transition: all .3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); border-width: 2px; }
.price { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--accent); margin: .5rem 0; font-weight: 600; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem;
  padding: .3rem .8rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.2rem 1.5rem; margin-bottom: .8rem;
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  font-size: 1.02rem; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--accent); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .8rem 0 0; }

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; color: var(--text); }
.contact-list span { font-size: 1.15rem; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-form label {
  display: flex; flex-direction: column; gap: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .8rem 1rem; transition: border-color .25s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }
.muted { color: var(--text-muted); margin-top: 1rem; font-size: .88rem; }
.copyright { padding-top: 1.5rem; font-size: .82rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .helfo-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 1rem; transform: translateY(-150%); transition: transform .3s var(--ease);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: .75rem 1rem; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-float-1, .card-float-2, .card-float-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
