/* ==========================================================================
   Sonata.online — Design system
   Concept: rhythm, structure, harmony. Editorial type, staff-line motifs,
   sound-wave dividers. Tailwind (CDN) handles layout utilities; this file
   owns tokens, components, motion and dark mode.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #1e293b;            /* charcoal-slate text */
  --ink-soft: #475569;       /* secondary text (AA on paper) */
  --paper: #fafaf7;          /* warm off-white */
  --mist: #f1f5f9;           /* light gray sections */
  --surface: #ffffff;
  --line: #e2e8f0;
  --accent: #059669;         /* emerald — icons, borders, large text */
  --accent-hover: #047857;
  --accent-strong: #047857;  /* emerald for small text & button fills (AA) */
  --accent-deep: #065f46;
  --mint: #d1fae5;
  --on-accent: #ffffff;
  --star: #f59e0b;
  --danger: #b91c1c;

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-sm: .75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 8px 24px -6px rgba(15, 23, 42, .12);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, .04), 0 24px 48px -12px rgba(15, 23, 42, .22);

  --space-section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

html.dark {
  --ink: #e5e7eb;
  --ink-soft: #a3b1c6;
  --paper: #0b1220;
  --mist: #0f1a2c;
  --surface: #131e33;
  --line: #22304a;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-strong: #34d399;
  --accent-deep: #6ee7b7;
  --mint: rgba(16, 185, 129, .16);
  --on-accent: #04261a;
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 10px 30px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 28px 56px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
::selection { background: var(--mint); color: var(--ink); }
main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--accent-strong); color: #fff; padding: .75rem 1.25rem;
  border-radius: .75rem; font-weight: 600; transition: top .2s;
}
html.dark .skip-link { color: var(--on-accent); }
.skip-link:focus { top: 1rem; }

.container-x { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container-x { padding-inline: 1.5rem; } }
.section { padding-block: var(--space-section); position: relative; }
.section-mist { background: var(--mist); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Typography ---------- */
.font-display, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  color: var(--ink);
}
.display { font-size: clamp(2.75rem, 7.5vw, 5.6rem); line-height: .98; font-weight: 600; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 400; color: var(--accent-strong); }
.h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); line-height: 1.05; font-weight: 600; }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; font-weight: 600; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.text-accent { color: var(--accent-strong); }

/* ---------- 4. Icons ---------- */
.ico { width: 1.5rem; height: 1.5rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 1.1rem; height: 1.1rem; }
.ico-badge {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 1rem; background: var(--mint); color: var(--accent-strong);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 24px -10px rgba(4, 120, 87, .7); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 14px 28px -10px rgba(4, 120, 87, .8); }
html.dark .btn-primary { background: var(--accent); color: var(--on-accent); }
html.dark .btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: var(--mint); color: #064e3b; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .ico { width: 1.15rem; height: 1.15rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700;
  color: var(--accent-strong); text-decoration: none; min-height: 44px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span, .card:hover .link-arrow span { transform: translateX(5px); }

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(0px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, backdrop-filter .3s, border-color .3s, background-color .3s;
}
.site-header.is-scrolled {
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -14px rgba(15, 23, 42, .25);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; }
.brand-word span { color: var(--accent-strong); font-style: italic; font-weight: 400; }
.nav-links { display: none; gap: .25rem; align-items: center; }
@media (min-width: 1080px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 8px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { color: var(--accent-strong); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--mint); transform: rotate(-8deg); }
.theme-toggle .moon { display: none; }
html.dark .theme-toggle .moon { display: block; }
html.dark .theme-toggle .sun { display: none; }
.quote-btn { display: none; }
@media (min-width: 640px) { .quote-btn { display: inline-flex; } }
.hamburger { display: inline-grid; }
@media (min-width: 1080px) { .hamburger { display: none; } }
.hamburger .bar { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger .bars { display: grid; gap: 5px; }
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  border-top: 1px solid var(--line); background: var(--paper);
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 640px; }
.mobile-menu ul { display: grid; gap: .25rem; padding: 1rem 0 1.5rem; }
.mobile-menu a.m-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1rem;
  border-radius: .75rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.mobile-menu a.m-link:hover, .mobile-menu a.m-link.active { background: var(--mint); color: var(--accent-strong); }
@media (min-width: 1080px) { .mobile-menu { display: none; } }

/* ---------- 7. Images: frames, blur-up, fallback, hover zoom ---------- */
.img-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d1fae5 0%, #e2e8f0 50%, #a7f3d0 100%);
  background-size: 200% 200%;
  animation: shimmer 2.4s ease-in-out infinite;
  isolation: isolate;
}
html.dark .img-frame { background-image: linear-gradient(135deg, #12304a 0%, #1b2a40 50%, #0d3b30 100%); }
.img-frame.is-ready { animation: none; }
.img-frame > img, .img-cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; filter: blur(12px); transform: scale(1.04);
  transition: opacity .7s ease, filter .9s ease, transform .9s var(--ease);
}
.img-frame > img.is-loaded, .img-cover.is-loaded { opacity: 1; filter: blur(0); transform: scale(1); }
.zoom:hover > img.is-loaded, .card:hover .zoom > img.is-loaded, .zoom:focus-within > img.is-loaded { transform: scale(1.05); }
html.dark .img-frame > img.is-loaded, html.dark .img-cover.is-loaded { filter: brightness(.9); }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-21-9 { aspect-ratio: 21 / 9; }
.rounded-3xl-x { border-radius: var(--radius-xl); }

/* Offset emerald block behind key images */
.offset-accent { position: relative; isolation: isolate; }
.offset-accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(14px, 14px); border-radius: var(--radius-xl);
  border: 2px solid var(--accent); background: var(--mint); opacity: .9;
}
.offset-accent.left::before { transform: translate(-14px, 14px); }
.thin-border { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-lg); }

figure figcaption, .caption {
  margin-top: .75rem; font-size: .88rem; color: var(--ink-soft); display: flex; gap: .5rem; align-items: baseline;
}
figure figcaption::before { content: ""; width: 18px; height: 2px; background: var(--accent); flex: none; transform: translateY(-3px); }

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 85% 10%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(30rem 24rem at 5% 90%, rgba(209, 250, 229, .9), transparent 60%),
    radial-gradient(24rem 20rem at 50% 40%, rgba(241, 245, 249, .9), transparent 70%);
}
html.dark .mesh {
  background:
    radial-gradient(40rem 30rem at 85% 10%, rgba(16, 185, 129, .18), transparent 60%),
    radial-gradient(30rem 24rem at 5% 90%, rgba(6, 95, 70, .25), transparent 60%);
}
.staff-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(to bottom, transparent 0 22px, color-mix(in srgb, var(--accent) 14%, transparent) 22px 23px);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}
.hero-stack { position: relative; padding: 1rem 1.5rem 3rem 0; }
.hero-main { box-shadow: var(--shadow-lg); }
.hero-small {
  position: absolute; width: 44%; left: -8%; bottom: -4%; z-index: 2;
  border: 6px solid var(--paper); box-shadow: var(--shadow-lg);
}
@media (max-width: 639px) { .hero-small { left: -2%; width: 46%; } .hero-stack { padding-right: .5rem; } }
.glass {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .35);
  color: #0f172a;
}
html.dark .glass { background: rgba(15, 26, 44, .72); border-color: rgba(255, 255, 255, .12); color: #e5e7eb; }
.float-card {
  position: absolute; z-index: 3; border-radius: 1rem; padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem; font-size: .85rem; line-height: 1.25;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.05rem; font-family: var(--font-display); }
.float-card.fc-1 { top: 6%; right: -2%; }
.float-card.fc-2 { bottom: 16%; right: 4%; animation-delay: -3s; }
@media (max-width: 639px) { .float-card { font-size: .75rem; padding: .55rem .75rem; } .float-card.fc-1 { right: 0; top: 2%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.score-ring { width: 44px; height: 44px; flex: none; }
.hero-globe { position: absolute; z-index: 1; width: 150px; top: -26px; left: -30px; opacity: .95; }
@media (max-width: 1023px) { .hero-globe { display: none; } }

/* Language bubbles in the SVG globe */
.lang-bubble { animation: floaty 5s ease-in-out infinite; transform-box: fill-box; }
.lang-bubble:nth-of-type(2) { animation-delay: -1.2s; }
.lang-bubble:nth-of-type(3) { animation-delay: -2.4s; }
.lang-bubble:nth-of-type(4) { animation-delay: -3.6s; }

/* ---------- 9. Wave divider ---------- */
.wave-divider { display: block; width: 100%; height: 48px; color: var(--accent); opacity: .55; }
.wave-divider path { stroke: currentColor; fill: none; stroke-width: 1.5; }
.wave-divider .w2 { opacity: .5; }
.wave-divider .w3 { opacity: .25; }

/* ---------- 10. Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card-lift:hover, .card-lift:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-pad { padding: 1.75rem; }
.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; height: 100%; }
.service-card .link-arrow { margin-top: auto; }
.service-card.flagship {
  background: linear-gradient(160deg, #064e3b, #047857 60%, #059669);
  color: #ecfdf5; border-color: transparent;
}
.service-card.flagship .h3, .service-card.flagship .link-arrow { color: #fff; }
.service-card.flagship p { color: #d1fae5; }
.service-card.flagship .ico-badge { background: rgba(255, 255, 255, .15); color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
  background: var(--mint); color: var(--accent-strong);
}
.badge-light { background: rgba(255, 255, 255, .18); color: #fff; }
.badge-muted { background: var(--mist); color: var(--ink-soft); border: 1px solid var(--line); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* Article cards */
.article-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.article-card .img-frame { border-radius: 0; }
.article-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.article-card .title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; font-weight: 600; }
.article-card .title a { color: var(--ink); text-decoration: none; }
.article-card .title a:hover { color: var(--accent-strong); }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.article-card.is-soon .img-frame img { filter: grayscale(.4) brightness(.92); }
.soon-ribbon {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(15, 23, 42, .78); color: #fff; padding: .35rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.cat-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

/* ---------- 11. Stats ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 1.75rem 1.25rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--ink); }
.stat .num .suffix { color: var(--accent-strong); }
.stat .label { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- 12. Process / timeline ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.75rem 1.5rem; }
.step-num {
  font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 300; font-style: italic;
  color: var(--accent); opacity: .9;
}
.timeline { position: relative; display: grid; gap: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.t-item { position: relative; padding-left: 4.25rem; }
.t-dot {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent);
  font-family: var(--font-display); font-weight: 600; color: var(--accent-strong); box-shadow: 0 0 0 6px var(--paper);
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .timeline::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
  .t-item { padding-left: 0; padding-top: 4.25rem; }
}

/* ---------- 13. Photo CTA band & page banners ---------- */
.photo-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); isolation: isolate;
  color: #fff; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
}
.photo-band .bg, .page-banner .bg { position: absolute; inset: -10% 0; z-index: -2; height: 120%; }
.photo-band .bg img, .page-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::before, .page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(2, 44, 34, .94) 0%, rgba(6, 78, 59, .82) 45%, rgba(15, 23, 42, .55) 100%);
}
.photo-band .display, .photo-band .h2, .page-banner .h1 { color: #fff; }
.photo-band .h2 em, .page-banner .h1 em { color: #a7f3d0; }
.page-banner {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: #064e3b;
}
.page-banner p { color: #e2e8f0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; margin-bottom: 1.25rem; }
.breadcrumb a { color: #a7f3d0; text-decoration: none; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: rgba(255, 255, 255, .5); }
.breadcrumb [aria-current] { color: #fff; }
.banner-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; color: rgba(167, 243, 208, .5); z-index: 0; }

/* ---------- 14. Chips, search, filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search-box input { padding-left: 2.9rem; }
.filter-item { transition: opacity .35s ease, transform .35s var(--ease); }
.filter-item.is-hiding { opacity: 0; transform: scale(.96) translateY(8px); }
.filter-item[hidden] { display: none !important; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* ---------- 15. Forms ---------- */
.field { display: grid; gap: .45rem; }
.field label, .label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: .9rem;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(185, 28, 28, .12) !important; }
.error-msg { color: var(--danger); font-size: .85rem; font-weight: 600; min-height: 0; display: flex; gap: .35rem; align-items: center; }
html.dark .error-msg { color: #fca5a5; }
html.dark { --danger: #f87171; }
.error-msg:empty { display: none; }
.file-drop {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 72px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 1rem;
  background: color-mix(in srgb, var(--mint) 35%, var(--surface)); cursor: pointer; transition: background-color .2s;
}
.file-drop:hover { background: var(--mint); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.file-name { font-weight: 600; word-break: break-all; }

/* ---------- 16. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, .6); backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
.modal-dialog {
  position: relative; max-width: 460px; width: 100%; text-align: center; padding: 2.5rem 2rem 2rem;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  animation: popIn .45s var(--ease);
}
.check-anim { width: 84px; height: 84px; margin: 0 auto 1.25rem; }
.check-anim circle { stroke: var(--accent); stroke-width: 3; fill: var(--mint); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .7s .1s ease forwards; }
.check-anim path { stroke: var(--accent-strong); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }

/* ---------- 17. Carousel ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-xl); }
.carousel-track { display: flex; transition: transform .7s var(--ease); }
.carousel-slide { flex: 0 0 100%; padding: .25rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.dots { display: flex; gap: .25rem; }
.dot-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.dot-btn span { width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: all .3s var(--ease); }
.dot-btn[aria-current="true"] span { width: 28px; background: var(--accent); }
.quote-card { padding: clamp(1.75rem, 4vw, 3rem); }
.quote-card blockquote p { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--ink); }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--accent); opacity: .5; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.avatar {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--accent) 40%, transparent);
}
.avatar.sm { width: 44px; height: 44px; font-size: .95rem; }
.g1 { background: linear-gradient(135deg, #047857, #34d399); }
.g2 { background: linear-gradient(135deg, #1e293b, #0d9488); }
.g3 { background: linear-gradient(135deg, #7c2d12, #d97706); }
.g4 { background: linear-gradient(135deg, #4338ca, #0ea5e9); }
.g5 { background: linear-gradient(135deg, #9d174d, #f43f5e); }
.g6 { background: linear-gradient(135deg, #3f6212, #65a30d); }

/* ---------- 18. Accordion ---------- */
.accordion { display: grid; gap: .75rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: box-shadow .3s; }
.acc-item.open { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.acc-trigger {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; text-align: left; font-weight: 700; font-size: 1.02rem; color: var(--ink); background: none; border: 0; cursor: pointer;
}
.acc-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--accent-strong); transition: transform .35s var(--ease); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }

/* ---------- 19. Pricing calculator ---------- */
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer;
  --pct: 10%;
}
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--line) var(--pct)); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card label {
  display: block; height: 100%; padding: 1rem 1.1rem; min-height: 44px; border-radius: 1rem; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); transition: all .25s var(--ease);
}
.radio-card label strong { display: flex; align-items: center; justify-content: space-between; }
.radio-card label span { display: block; font-size: .85rem; color: var(--ink-soft); }
.radio-card input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--mint) 60%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.radio-card input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.total-panel { background: linear-gradient(160deg, #052e22, #064e3b 55%, #047857); color: #ecfdf5; border-radius: var(--radius-xl); padding: 2rem; position: relative; overflow: hidden; }
.total-panel .total { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 600; line-height: 1; color: #fff; }
.total-panel .breakdown { font-variant-numeric: tabular-nums; color: #a7f3d0; }
.total-panel dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; }
.total-panel dt { color: #a7f3d0; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); background: var(--mist); }
.price-table td.rate { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--accent-strong); white-space: nowrap; }
.package.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.package .price { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; }
.check-list { display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li .ico { color: var(--accent); width: 1.25rem; height: 1.25rem; margin-top: .2rem; }

/* ---------- 20. Portfolio ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.seg button {
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 0; background: none; font-weight: 700;
  font-size: .85rem; color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.ba-panels { display: grid; }
.ba-panel { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s var(--ease); }
.ba-panel[aria-hidden="true"] { opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; }
.ba-panel blockquote { border-left: 3px solid var(--line); padding: .25rem 0 .25rem 1rem; font-size: .95rem; color: var(--ink-soft); }
.ba-panel.after blockquote { border-left-color: var(--accent); color: var(--ink); }

/* ---------- 21. Article ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #34d399); }
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 600; margin-top: 3rem; letter-spacing: -.015em; }
.prose h3 { font-weight: 700; font-size: 1.2rem; margin-top: 2rem; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose .dropcap::first-letter { font-family: var(--font-display); float: left; font-size: 4.2rem; line-height: .85; padding: .35rem .6rem 0 0; color: var(--accent-strong); font-weight: 600; }
.pull-quote {
  position: relative; margin: 2.5rem 0 !important; padding: 1.75rem 0 1.75rem 1.75rem;
  border-left: 4px solid var(--accent); font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.4; color: var(--ink);
}
.pull-quote cite { display: block; margin-top: .75rem; font-family: var(--font-body); font-style: normal; font-size: .9rem; color: var(--ink-soft); }
.callout { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: color-mix(in srgb, var(--mint) 55%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc ol { display: grid; gap: .15rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .5rem 0 .5rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent-strong); border-left-color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none; cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent-strong); }
.author-chip { display: flex; align-items: center; gap: .75rem; }

/* ---------- 22. Footer ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; position: relative; overflow: hidden; }
html.dark .site-footer { background: #060b15; }
.site-footer a { color: #e2e8f0; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: #6ee7b7; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word span { color: #6ee7b7; }
.footer-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6ee7b7; margin-bottom: .75rem; }
.social { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid #334155; }
.social:hover { border-color: #6ee7b7; }

/* ---------- 23. Floating buttons ---------- */
.fab-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
  transition: transform .25s var(--ease);
}
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.to-top {
  position: fixed; right: 1.35rem; bottom: 5.5rem; z-index: 70; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease); box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 24. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.from-left { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 25. Misc ---------- */
.portrait-ring { border-radius: 50%; padding: 6px; background: conic-gradient(from 200deg, var(--accent), #a7f3d0, var(--accent)); }
.portrait-ring .img-frame { border-radius: 50%; border: 4px solid var(--surface); }
.trust-badge { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.trust-badge .ico { color: var(--accent); }
.newsletter { border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--mint), color-mix(in srgb, var(--mint) 30%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
html.dark .newsletter { background: linear-gradient(135deg, rgba(16, 185, 129, .16), var(--surface)); }
.form-success { color: var(--accent-strong); font-weight: 700; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .img-frame > img, .img-cover { filter: none; transform: none; }
}
.page-banner .eyebrow { color: #a7f3d0; }
.page-banner .lead { color: #e2e8f0; }
.lang-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-row span { padding: .35rem .85rem; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--surface); border: 1px solid var(--line); }
.lang-row span:nth-child(odd) { background: var(--mint); color: var(--accent-strong); border-color: transparent; }
.info-tile { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.info-tile .k { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.info-tile .v { font-weight: 700; margin-top: .25rem; }
.breadcrumb.on-light a { color: var(--accent-strong); }
.breadcrumb.on-light li + li::before { color: var(--ink-soft); }
.breadcrumb.on-light [aria-current] { color: var(--ink-soft); }
.article-hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); }
.toc-card { padding: 1.25rem 1.25rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cta-box { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(1.75rem, 4vw, 2.75rem); background: linear-gradient(150deg, #052e22, #065f46 60%, #047857); color: #ecfdf5; }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; color: #fff; font-weight: 600; margin: 0; }
.cta-box p { color: #d1fae5; }
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(167, 243, 208, .12); }
.prose .cta-box a.btn { text-decoration: none; }
.prose .btn-light { color: #0f172a; }
/* Keep slide-in reveals and offset blocks from causing sideways scroll on phones */
main { overflow-x: clip; }
@media (max-width: 520px) {
  .price-table th, .price-table td { padding: .75rem .6rem; font-size: .9rem; }
  .price-table td.rate { font-size: 1rem; }
}
