/* istoselida.cy: main stylesheet, v0.1
   Sister design system of FXaeo: same type scale, spacing, hairline grids
   and mono labels, rebuilt white-first with the istoselida.cy palette.

   Colour rules (2026-09-28, Jaymes):
   - H1, H2: Midnight Purple #4d0982
   - H3: Lavender Purple #9456d0. Lavender text only ever sits on WHITE
     (4.67:1). On tinted surfaces it fails AA, so cards stay white.
   - Body text: #262626
   - Never use #6b7280 or any low-contrast grey for text (FXaeo rule). */

/* ---- Fonts: Geist for Latin, Inter for Greek, joined by unicode-range --- */
@font-face {
  font-family: "Isto Sans";
  src: url("/assets/fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Isto Sans";
  src: url("/assets/fonts/inter-greek-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Isto Mono";
  src: url("/assets/fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Isto Mono";
  src: url("/assets/fonts/jetbrains-mono-greek-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --midnight: #4d0982;
  --midnight-hover: #3d0768;
  --lavender: #9456d0;
  --tint: #f3edf9;

  --bg: #ffffff;
  --alt: #f7f5fa;
  --fg: #262626;
  --fg-2: #4f4a57;          /* secondary text, 8.6:1 on white */
  --border: #e7e3ed;        /* hairlines */
  --field-border: #8f8799;  /* inputs and ghost buttons, 3.5:1 */
  --on-dark: #ffffff;
  --on-dark-2: #eae2f4;

  --radius: 0px;            /* FXaeo sharp corners. Set to 6px for soft. */
  --shadow-raise: 0 1px 2px rgba(77, 9, 130, .06), 0 10px 28px rgba(77, 9, 130, .10);

  --font-sans: "Isto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Isto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1240px;            /* FXaeo 1120px, widened so header, nav and content share one edge */
  --header-h: 68px;
  --utility-h: 48px;
}

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }   /* components like .btn set display, which would otherwise override [hidden] */

:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--midnight); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* ---- Type (FXaeo scale) -------------------------------------------------- */
h1, h2, h3 { font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw + 1rem, 4.2rem); letter-spacing: -0.05em; line-height: 1.05; color: var(--midnight); }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--midnight); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--lavender); }
p { margin: 0 0 12px; }

/* Inter's Greek is wider-set than Geist; FXaeo's tight tracking makes Greek
   letters touch at display sizes, so Greek headings are tracked less. */
:lang(el) h1 { letter-spacing: -0.03em; }
:lang(el) h2 { letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 14px;
}
/* Dot aligns with the FIRST line when a long label wraps (common in Greek on phones). */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); flex-shrink: 0; margin-top: 0.45em; }
.lead { font-size: 1.12rem; max-width: 600px; }
.section-lead { font-size: 1.05rem; max-width: 660px; }

.ico { width: 18px; height: 18px; flex-shrink: 0; }
.ico-brand { width: 20px; height: 20px; }

/* ---- Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn .ico { width: 16px; height: 16px; }
.btn-lg { padding: 16px 26px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.btn-primary:hover { background: var(--midnight-hover); border-color: var(--midnight-hover); }
.btn-ghost { border-color: var(--field-border); color: var(--midnight); }
.btn-ghost:hover { background: var(--tint); }
.btn-light { background: #fff; border-color: #fff; color: var(--midnight); }
.btn-light:hover { background: var(--tint); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--midnight); font-weight: 600;
  border-bottom: 1px solid var(--lavender); padding-bottom: 2px;
}
.text-link .ico { width: 16px; height: 16px; transition: transform .15s ease; }
.text-link:hover .ico { transform: translateX(3px); }
.more-link { margin: 28px 0 0; }

.chip-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-weight: 600; font-size: 0.92rem; color: var(--fg);
}
.chip-link:hover { border-color: var(--field-border); }
.chip-link .ico-brand { width: 18px; height: 18px; }

/* ---- Header -------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(77, 9, 130, .06); }

.utility { display: none; border-bottom: 1px solid var(--border); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--utility-h); }
.utility-note { display: none; margin: 0; font-size: 0.86rem; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-boxes { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.box {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--midnight);
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.box:hover { border-color: var(--field-border); background: var(--tint); }
.box-phone .num { font-variant-numeric: tabular-nums; }
.box-phone .ico { width: 16px; height: 16px; }
.box-icon { width: 36px; padding: 0; }
.lang-switch { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--fg); padding: 0 10px; }
.flag { width: 24px; height: auto; border: 1px solid rgba(0,0,0,.08); }
.lang-switch { padding: 0; }  /* flag only (Jaymes, 2026-09-28); the accessible name is in aria-label */

.mainbar-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.mainbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta { display: none; }
.mainbar .box-icon { width: 42px; height: 42px; }
.mainbar .m-lang { width: auto; padding: 0 10px; }

.nav-toggle { cursor: pointer; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* Navigation: drawer below 1260px, inline above */
.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-raise);
  padding: 8px 24px 24px;
}
.nav-list > li { border-bottom: 1px solid var(--border); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; padding: 16px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.05rem; font-weight: 500; color: var(--fg);
}
.nav-link:hover { color: var(--midnight); }
.ico-chev { width: 16px; height: 16px; color: var(--fg-2); transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"] .ico-chev { transform: rotate(180deg); }
.sub { display: none; padding: 0 0 16px 14px; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.sub a { display: block; padding: 9px 0; color: var(--fg); }
.sub a:hover { color: var(--midnight); }
.sub .sub-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--midnight); }
.sub .sub-all .ico { width: 16px; height: 16px; }
.nav-mobile-extra { display: grid; gap: 14px; padding-top: 20px; }
.menu-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--midnight); font-weight: 600; }

@media (min-width: 760px) {
  .utility { display: block; }
  .header-cta { display: inline-flex; }
  .mainbar .m-lang { display: none; }
  .site-nav.is-open { max-height: calc(100vh - var(--header-h) - var(--utility-h)); }
}
@media (min-width: 1100px) {
  .utility-note { display: block; }
}
@media (min-width: 1260px) {
  .nav-toggle { display: none; }
  .nav-mobile-extra { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link { width: auto; padding: 10px 12px; font-size: 0.95rem; white-space: nowrap; }
  .sub {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 10;
    min-width: 540px; padding: 18px 20px 16px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-raise);
  }
  .sub-narrow { min-width: 300px; }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* hover bridge */
  .sub-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .sub { padding-left: 20px; }
  .sub a { padding: 8px 0; font-size: 0.95rem; }
  .sub .sub-all { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; display: flex; }
  @media (hover: hover) {
    .has-sub:hover > .sub { display: block; }
    .has-sub:hover .ico-chev { transform: rotate(180deg); }
  }
  .mainbar-inner { gap: 28px; }
  .site-nav { margin-left: auto; }
  .mainbar-actions { margin-left: 0; }
}

/* ---- Hero ------------------------------------------------------------------------ */
.hero {
  border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 440px at 90% 0%, var(--tint), transparent 70%), var(--bg);
}
.hero-grid { display: grid; gap: 40px; padding-block: 56px 64px; }
.hero-copy .lead { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-message { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 20px 0 0; font-size: 0.95rem; color: var(--fg-2); }
.hero-price {
  display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 8px 14px; background: var(--tint); border-radius: var(--radius);
  color: var(--fg); font-size: 0.95rem;
}
.hero-price strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--midnight); line-height: 1; }
@media (max-width: 559px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-message > span:first-child { flex-basis: 100%; }
}
.hero-trust { margin: 18px 0 0; font-size: 0.95rem; color: var(--fg-2); max-width: 520px; }

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-raise);
}
.price {
  font-size: clamp(3.4rem, 6vw, 4.8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  color: var(--midnight); font-variant-numeric: tabular-nums; margin: 2px 0 12px;
}
.price-lead { font-size: 1rem; }
.ticks { margin: 18px 0 0; border-top: 1px solid var(--border); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.97rem; }
.ticks .ico { color: var(--lavender); width: 18px; height: 18px; margin-top: 3px; }
.hosting-note { margin: 16px 0 18px; font-size: 0.93rem; color: var(--fg-2); }
.hosting-note strong { color: var(--fg); }

@media (min-width: 960px) {
  .hero-price { display: none; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 64px; padding-block: 88px 96px; }
}

/* ---- Sections ------------------------------------------------------------------- */
.section { padding-block: 88px; border-bottom: 1px solid var(--border); scroll-margin-top: 130px; }
.section-alt { background: var(--alt); }
@media (max-width: 759px) { .section { padding-block: 64px; } }

.grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-top: 40px;
}
.cell { background: var(--bg); padding: 28px; }
.cell p:last-child { margin: 0; color: var(--fg-2); font-size: 0.97rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.cell-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: var(--tint); color: var(--midnight); border-radius: 50%; margin-bottom: 14px; }
.cell-icon .ico { width: 16px; height: 16px; }
.step-num { display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-2); margin-bottom: 10px; }
.steps { counter-reset: none; }

.cell-link { position: relative; display: block; padding-bottom: 56px; transition: background .15s ease; }
.cell-link:hover { background: #fcfbfe; }
.cell-link:hover h3 { color: var(--midnight); }
.cell-arrow { position: absolute; left: 28px; bottom: 24px; color: var(--midnight); }
.cell-arrow .ico { transition: transform .15s ease; }
.cell-link:hover .cell-arrow .ico { transform: translateX(4px); }

.cell-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 32px; }
.cell-feature p:last-of-type { margin-bottom: 18px !important; }
.cell-feature .btn { margin-top: auto; }

.section-actions { margin-top: 32px; }

.service-chips { margin-top: 36px; }
.chips-label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-2); margin-bottom: 12px; }
.service-chips ul { display: flex; flex-wrap: wrap; gap: 8px; }
.service-chips a {
  display: inline-block; padding: 9px 14px;
  border: 1px solid var(--field-border); border-radius: var(--radius);
  font-weight: 500; color: var(--midnight); background: var(--bg);
}
.service-chips a:hover { background: var(--tint); }

/* Hosting band */
.hosting-grid { display: grid; gap: 40px; align-items: center; }
.hosting-figure {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow-raise);
}
.hf-price { font-size: clamp(3.4rem, 6vw, 4.8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--midnight); }
.hf-unit { font-size: 1.3rem; font-weight: 600; color: var(--fg); }
.hf-note { margin-top: 10px; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: var(--midnight); padding: 5px 10px; border-radius: var(--radius); }
@media (min-width: 960px) { .hosting-grid { grid-template-columns: 1.6fr 1fr; gap: 64px; } }

/* Who */
.who { display: grid; gap: 28px; align-items: start; }
.who-mark { width: 72px; height: 72px; }
@media (min-width: 760px) { .who { grid-template-columns: 96px 1fr; gap: 40px; } .who-mark { width: 96px; height: 96px; } }

/* FAQ */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; } }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); scroll-margin-top: 150px; }   /* the question stays visible below the sticky header when linked to (#two-weeks) */
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.08rem; color: var(--fg); }
.faq-item summary:hover h3 { color: var(--midnight); }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--lavender); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 20px; color: var(--fg-2); max-width: 640px; }

/* Closing CTA */
.closing { background: var(--midnight); color: var(--on-dark); border-bottom: 0; }
.closing h2 { color: #fff; }
.closing .eyebrow { color: var(--on-dark-2); }
.closing .dot { background: #c9a6ee; }
.closing .section-lead { color: var(--on-dark-2); }
.closing-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing-inner .eyebrow { justify-content: center; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.closing-message { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; }
.closing :focus-visible { outline-color: #fff; }

/* ---- Footer ----------------------------------------------------------------------- */
.site-footer { background: #2e0550; color: var(--on-dark); padding-block: 64px 28px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p, .footer-brand address { color: var(--on-dark-2); font-size: 0.92rem; max-width: 340px; }
.footer-brand address { margin-top: 14px; line-height: 1.6; }
.footer-heading { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: #d9c6f0; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #fff; font-size: 0.95rem; }
.footer-links a:hover { color: #d9c6f0; text-decoration: underline; text-underline-offset: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
  color: #fff; transition: background .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
.footer-social .ico-brand { width: 22px; height: 22px; }
/* Footer uses the single-colour sprite symbols (i-whatsapp-mono, i-viber-mono), coloured by `color`. */
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: 0.85rem; color: var(--on-dark-2);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---- Mobile contact bar ---------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(77, 9, 130, .08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; padding: 8px 4px; font-size: 0.8rem; font-weight: 600; color: var(--midnight);
}
.mobile-bar a + a { border-left: 1px solid var(--border); }
.mobile-bar .ico { width: 22px; height: 22px; }
.mobile-bar .mb-call { background: var(--midnight); color: #fff; }
body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---- Inner page head + breadcrumbs --------------------------------------------- */
.page-head { padding-block: 56px 40px; border-bottom: 1px solid var(--border); background: radial-gradient(700px 300px at 90% 0%, var(--tint), transparent 70%), var(--bg); }
.page-head h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); }
.page-head .lead { margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--fg-2); margin-bottom: 20px; }
.breadcrumbs a { color: var(--midnight); text-decoration: underline; text-underline-offset: 3px; }
.doc-updated { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2); }

/* ---- Legal hub ---------------------------------------------------------------------- */
.legal-cards { margin-top: 0; }
.legal-card h2 { font-size: 1.3rem; letter-spacing: -0.01em; color: var(--midnight); margin-bottom: 10px; }
.legal-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--tint); color: var(--midnight); border-radius: 50%; margin-bottom: 18px; }
.legal-icon .ico { width: 24px; height: 24px; }

/* ---- Legal documents ------------------------------------------------------------------- */
.legal-layout { display: grid; gap: 32px; padding-block: 48px 88px; }
@media (min-width: 1100px) { .legal-layout { grid-template-columns: 280px minmax(0, 760px); gap: 64px; align-items: start; } }
.toc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--alt); padding: 14px 18px; }
.toc summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--midnight); font-weight: 600; }
.toc ol { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; font-size: 0.9rem; color: var(--fg); line-height: 1.35; }
.toc a:hover { color: var(--midnight); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) {
  .toc { position: sticky; top: 140px; max-height: calc(100vh - 170px); overflow-y: auto; }
}
.legal-doc { max-width: 760px; font-size: 1rem; }
.legal-doc h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 44px 0 14px; scroll-margin-top: 140px; }
.legal-doc h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal-doc ol { list-style: decimal; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--midnight); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc .text-link { text-decoration: none; }
.legal-intro p { font-size: 1.05rem; }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--alt); color: var(--midnight); font-weight: 600; }
.table-wrap td:first-child { font-family: var(--font-mono); font-size: 0.82rem; white-space: nowrap; }
.table-wrap p { margin: 0; }
.back-top { margin-top: 40px; }
.related-docs { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-docs ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-docs a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: var(--radius); color: var(--midnight); font-weight: 600; text-decoration: none; }
.related-docs a:hover { background: var(--tint); }

/* ---- Cookie consent (includes/tracking/consent.php) ------------------------ */
.link-button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.link-button:hover { color: #fff; text-decoration: underline; }
.cc {
  position: fixed; z-index: 150; left: 16px; right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* clears the mobile contact bar */
  max-height: calc(100dvh - 120px); overflow-y: auto;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(46, 5, 80, .22);
}
.cc-inner { padding: 22px; }
.cc-title { font-weight: 600; font-size: 1.05rem; color: var(--midnight); margin: 0 0 8px; }
.cc-body { font-size: 0.92rem; color: var(--fg-2); margin: 0 0 16px; }
.cc-body a { color: var(--midnight); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions .btn { flex: 1 1 auto; padding: 11px 16px; font-size: 0.78rem; }
.cc-prefs { border-top: 1px solid var(--border); margin: 0 0 16px; }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cc-row-title { font-weight: 600; margin: 0 0 2px; font-size: 0.95rem; }
.cc-row-desc { margin: 0; font-size: 0.85rem; color: var(--fg-2); }
.cc-always { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2); white-space: nowrap; padding-top: 3px; }
.cc-switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin-top: 2px;
  width: 44px; height: 26px; border-radius: 13px; background: var(--field-border);
  position: relative; cursor: pointer; transition: background .15s ease;
}
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.cc-switch:checked { background: var(--midnight); }
.cc-switch:checked::after { transform: translateX(18px); }
@media (min-width: 760px) {
  .cc { left: auto; right: 24px; bottom: 24px; width: 440px; max-height: calc(100vh - 48px); }
}

/* ---- Motion ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============================================================================
   v0.4: landing pages, forms, success pages, language banner
   ============================================================================= */

/* ---- Language banner -------------------------------------------------------- */
.lang-banner { background: var(--midnight); color: #fff; font-size: 0.92rem; }
.lang-banner-inner { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding-block: 10px; }
.lang-banner p { display: flex; align-items: center; gap: 10px; margin: 0; }
.lang-banner .flag { width: 22px; }
.lb-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lb-switch .ico { width: 16px; height: 16px; }
.lb-close { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.1); }

/* ---- Slim header (landing and success pages) ---------------------------------- */
.site-header-slim .mainbar-actions { margin-left: auto; }
.site-header-slim .box-phone { height: 42px; padding: 0 14px; }
.site-header-slim .num-local { display: none; }
.site-header-slim .mainbar-inner { gap: 12px; }
@media (max-width: 479px) {
  .site-header-slim .num-full { display: none; }
  .site-header-slim .num-local { display: inline; }
  .site-header-slim .box-phone { padding: 0 10px; }
  .site-header-slim .brand img { height: 30px; }
}

/* ---- Landing page hero ------------------------------------------------------------ */
.lp-grid { display: grid; gap: 28px; padding-block: 36px 56px; grid-template-areas: "top" "form" "rest"; }
.lp-top { grid-area: top; }
.lp-form { grid-area: form; scroll-margin-top: 90px; }
.lp-rest { grid-area: rest; }
.lp-top h1 { font-size: clamp(2rem, 4.4vw + 1rem, 3.6rem); }
.lp-top .lead { margin: 0; }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 14px; }
.lp-price strong { font-size: clamp(2.4rem, 4vw + 1rem, 3.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--midnight); font-variant-numeric: tabular-nums; }
.lp-price span { font-weight: 600; color: var(--fg); }
.lp-rest .ticks { margin-top: 0; }
.asterisk { color: var(--midnight); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; margin-left: 1px; }
.asterisk:hover { background: var(--tint); }
.lp-talk { margin-top: 24px; }
.lp-talk-label { margin: 0 0 10px; font-weight: 600; }
.lp-talk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-hours { margin: 14px 0 0; font-size: 0.92rem; color: var(--fg-2); }
@media (min-width: 960px) {
  .lp-grid { grid-template-columns: 1fr minmax(380px, 460px); grid-template-rows: auto 1fr; grid-template-areas: "top form" "rest form"; column-gap: 64px; row-gap: 28px; padding-block: 64px 80px; align-items: start; }
  .lp-form { position: sticky; top: 92px; }
}

/* Contact page details */
.contact-details { margin: 0; border-top: 1px solid var(--border); }
.contact-details > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-details dt { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2); }
.contact-details dt .ico { width: 16px; height: 16px; color: var(--lavender); }
.contact-details dd { margin: 0; font-weight: 600; }
.contact-details dd a { color: var(--midnight); }
.included-note { margin: 24px 0 0; color: var(--fg-2); }
.footer-hours { font-size: 0.9rem; }

/* ---- The form ------------------------------------------------------------------------ */
.lead-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-raise); padding: 24px; }
@media (min-width: 480px) { .lead-form { padding: 28px; } }
.lead-form-title { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.lead-form-intro { color: var(--fg-2); font-size: 0.95rem; margin-bottom: 18px; }
.f-row { display: grid; gap: 0 14px; }
@media (min-width: 420px) { .f-row-2 { grid-template-columns: 1fr 1fr; } }
.f-field { margin: 0 0 16px; min-width: 0; }
fieldset.f-field { border: 0; padding: 0; }
.f-field > label, .f-field legend { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; padding: 0; }
.f-req { color: var(--midnight); }
.f-opt { font-weight: 400; color: var(--fg-2); }
.f-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--fg-2); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form select, .lead-form textarea {
  width: 100%; min-height: 48px; padding: 11px 12px;
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
}
.lead-form select { background-image: linear-gradient(45deg, transparent 50%, var(--midnight) 50%), linear-gradient(135deg, var(--midnight) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--lavender); outline-offset: 0; border-color: var(--lavender); }
.lead-form [aria-invalid="true"] { border-color: #b3261e; }
.f-error { margin: 6px 0 0; color: #b3261e; font-size: 0.87rem; font-weight: 600; }
.f-summary { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid #b3261e; background: #fdf1f0; color: #7a1a14; font-weight: 600; font-size: 0.93rem; }
.f-summary:focus { outline: 2px solid #b3261e; }

/* Phone: Jaymes's shared Phone Field Component (phone-field.css), themed to istoselida.
   Flags are self-hosted images (never emoji). */
:root {
  --pf-text: var(--fg); --pf-muted: var(--fg-2); --pf-dim: #6d6577;
  --pf-border: var(--field-border); --pf-accent: var(--lavender); --pf-error: #b3261e;
  --pf-bg: #ffffff; --pf-bg-alt: var(--tint); --pf-font: var(--font-sans);
}
.lead-form .pf-wrap { min-height: 48px; border-radius: var(--radius); background: var(--bg); }
.lead-form .pf-wrap:focus-within { outline: 2px solid var(--lavender); outline-offset: 0; box-shadow: none; }
.lead-form .pf-wrap.pf-error { border-color: #b3261e !important; }
.lead-form .pf-dial-btn { padding: 0 12px; min-height: 46px; font-size: 1rem; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.lead-form .pf-dial-btn:focus-visible { outline: 2px solid var(--lavender); outline-offset: -2px; }
.lead-form .pf-dial-btn svg { color: var(--midnight); }
.lead-form .pf-dial-btn img, .lead-form .pf-option img { width: 20px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lead-form .pf-wrap input.pf-number { border: 0; min-height: 46px; padding: 11px 12px; font-size: 1rem; background: transparent; }
.lead-form .pf-wrap input.pf-number:focus { outline: none; }
.lead-form .pf-dropdown { width: min(340px, calc(100vw - 64px)); border-color: var(--field-border); box-shadow: var(--shadow-raise); }
.lead-form .pf-search-wrap input.pf-search-input { min-height: 42px; padding: 8px 10px; font-size: 1rem; border: 1px solid var(--field-border); }
.lead-form .pf-list { max-height: 260px; overscroll-behavior: contain; }
.lead-form .pf-option { color: var(--fg); padding: 10px 14px; font-size: 0.95rem; }
.lead-form .pf-option.pf-active, .lead-form .pf-option:hover { background: var(--tint); color: var(--fg); }
.lead-form .pf-option[aria-selected="true"] { font-weight: 600; }
.lead-form .pf-option-name { flex: 1; min-width: 0; }
.lead-form .pf-option-dial { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.lead-form .pf-no-results { color: var(--fg-2); }
.lead-form .pf-error-text { font-family: var(--font-sans); font-size: 0.87rem; font-weight: 600; min-height: 0; line-height: 1.4; margin: 6px 0 0; color: #b3261e; }
.lead-form .pf-error-text:empty { display: none; }

/* Contact method choices */
.f-choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f-choice { position: relative; display: block; cursor: pointer; }
.f-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 4px; border: 1px solid var(--field-border); border-radius: var(--radius); font-size: 0.86rem; font-weight: 600; text-align: center; color: var(--midnight); background: var(--bg); transition: background .15s ease, border-color .15s ease; }
.f-choice span .ico { width: 20px; height: 20px; }
.f-choice:hover span { background: var(--tint); }
.f-choice input:checked + span { border-color: var(--midnight); background: var(--tint); box-shadow: inset 0 0 0 1px var(--midnight); }
.f-choice input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: 2px; }

/* Checkboxes */
.f-check-row { display: flex; flex-direction: column; gap: 8px; }
.f-check, .f-field > label.f-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.93rem; font-weight: 400; margin: 0; }
.f-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--midnight); }
.f-check a { color: var(--midnight); text-decoration: underline; text-underline-offset: 3px; }
.f-consent { margin-top: 4px; }

/* Honeypot: off-screen, never display:none (some bots skip hidden fields) */
.f-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.f-submit { margin-top: 6px; }
.f-submit:disabled { background: #8f8799; border-color: #8f8799; color: #fff; cursor: not-allowed; }
.f-status { margin: 10px 0 0; font-size: 0.85rem; color: var(--fg-2); min-height: 1.3em; }
.f-callback { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--fg); }
.f-callback .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--lavender); }

/* ---- Success page ---------------------------------------------------------------- */
.is-sp main { display: flex; }
.sp { flex: 1; display: flex; align-items: center; background: radial-gradient(900px 440px at 90% 0%, var(--tint), transparent 70%), var(--bg); }
.sp-inner { width: 100%; padding-block: 40px; text-align: center; }
.sp-inner .lead { margin: 0 auto 14px; max-width: 560px; }
.sp h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
.sp-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--midnight); margin-bottom: 20px; }
.sp-icon .ico { width: 30px; height: 30px; }
.sp-hours { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; font-size: 0.92rem; color: var(--fg-2); }
.sp-hours .ico { width: 16px; height: 16px; color: var(--lavender); }
.sp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sp-actions .ico-brand { width: 20px; height: 20px; }
.sp-home { margin: 22px 0 0; }
.sp-footer { border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--fg-2); }
.sp-footer p { margin: 0; padding-block: 14px; }
.sp-footer a { text-decoration: underline; text-underline-offset: 3px; }
body.is-sp { padding-bottom: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.is-sp main { flex: 1; }
html.sp-lock, html.sp-lock body { overflow: hidden; overscroll-behavior: none; height: 100%; }
@media (max-width: 559px) { .sp-actions .btn { flex: 1 1 100%; } }

/* ---- Slim header: logo, phone, flag AND the menu (v0.401, Jaymes) ----------------
   The menu stays a drawer at every width, so landing pages keep one clear job
   but visitors can always navigate. */
.site-header-slim .nav-toggle { display: inline-flex; }
@media (min-width: 1260px) {
  .site-header-slim .nav-toggle { display: inline-flex; }
  .site-header-slim .nav-mobile-extra { display: grid; }
  .site-header-slim .site-nav { display: none; margin-left: 0; }
  .site-header-slim .site-nav.is-open {
    display: block; position: absolute; top: 100%;
    left: auto; right: max(24px, calc((100vw - var(--max)) / 2 + 24px)); width: 420px;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-raise); padding: 8px 24px 24px;
  }
  .site-header-slim .nav-list { display: block; }
  .site-header-slim .nav-list > li { border-bottom: 1px solid var(--border); }
  .site-header-slim .nav-link { width: 100%; padding: 16px 0; font-size: 1.05rem; }
  .site-header-slim .sub { position: static; min-width: 0; padding: 0 0 16px 14px; border: 0; box-shadow: none; background: none; display: none; }
  .site-header-slim .has-sub:hover > .sub { display: none; }
  .site-header-slim .has-sub:hover .ico-chev { transform: none; }
  .site-header-slim .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .site-header-slim .sub-toggle[aria-expanded="true"] .ico-chev { transform: rotate(180deg); }
  .site-header-slim .sub-grid { display: block; }
  .site-header-slim .sub .sub-all { border-top: 0; padding-top: 0; }
}
