/* Vianova Solutions — global styles
   Token reference matches the tailwind config in includes/head.php.
   Tailwind utilities cover most styling; this file holds the bits
   utilities can't express: design tokens, buttons, header/hero/cards,
   forms, footer. See design-system.html for a live component reference.
   NOTE: palette inherited from the boilerplate — rebrand later. */

:root {
    --cream:      #E9F0F7; /* very light, near-neutral blue — page background */
    --cream-soft: #FFFFFF; /* content / cards */
    --ink:        #1C1E1F; /* cool near-black text */
    --ink-soft:   #34383B;
    --muted:      #333333; /* base body text (dark grey, near-black) */
    --accent:     #5E6E72; /* muted cool slate */
    --accent-2:   #9FB0B2; /* light cool grey spark */
    --graphite:   #1C2024; /* cool charcoal (footer, dark blocks) */
    --graphite-2: #2B3035;
    --card:       #FFFFFF;
    --brand:      #354182; /* indigo — display headings, primary buttons, header outline */
    --accent-lime:#C7F700; /* lime accent — icons, accent buttons */
    --heading:    var(--ink); /* near-black — display headings on light surfaces */

    /* Inset "framed" layout: large blocks sit a small gap in from the page
       edges with a big radius, so the light-blue background frames them. */
    --inset:        clamp(10px, 1.6vw, 18px);
    --block-radius: clamp(26px, 3vw, 44px);
    --header-h:     64px; /* nav bar height — matches h-16 (md:h-20 below) */
}

@media (min-width: 768px) {
    :root { --header-h: 80px; }
}

html { scroll-behavior: smooth; }
body { background: var(--cream); }

/* Display heading: Barlow Condensed — heavy, narrow/condensed grotesque for
   tall compact uppercase headlines. */
.display {
    font-family: 'Barlow Condensed', 'Archivo', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 0.95;
}
.display em {
    font-style: normal;
    font-family: inherit;
    font-weight: inherit;
}
/* Brand indigo for headings on light surfaces; the element selector keeps this
   above Tailwind's text-ink utility. Headings inside dark photo blocks stay
   white (higher-specificity context override below). */
h1.display, h2.display, h3.display { color: var(--heading); }
.hero-full .display,
.card-bg .display,
.media-band .display { color: #fff; }

/* Rounded-rectangle buttons with an inline arrow */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn .arrow svg { display: block; }
.btn--dark    { background: var(--brand); color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 22px rgba(53,65,130,0.28); }
.btn--ghost   { background: transparent; color: var(--brand); border: 1px solid rgba(53,65,130,0.30); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--white   { background: #fff; color: var(--brand); transition: background .25s ease, color .25s ease; }
.btn--white:hover { background: var(--accent-lime); color: var(--ink); }
/* Accent button: dark layer (0%-wide at rest) grows left→right on hover.
   No gradient seam, so no stray edge pixel. */
.btn--accent  {
    background-color: var(--accent-lime);
    background-image: linear-gradient(#EDFF79, #EDFF79);
    background-repeat: no-repeat;
    background-position: -2px center;
    background-size: 0% 100%;
    color: var(--ink);
    transition: background-size .4s ease, color .25s ease, transform .15s ease, box-shadow .2s ease;
}
.btn--accent:hover { background-size: calc(100% + 4px) 100%; color: var(--ink); }

/* Header — a standalone rounded bar in normal flow (NOT sticky), sitting
   above the hero with the same inset frame as the other blocks. */
.site-header {
    position: relative;
    z-index: 40;                 /* stay above the mobile menu overlay (z-30) */
    margin: var(--inset) var(--inset) 0;
    background: var(--card);
    color: var(--ink);
    border-radius: 999px;
}
.site-header a { color: currentColor; }
/* Header CTA: filled brand pill with white text. The a.header-cta selector
   outranks `.site-header a` (which would otherwise force the text to ink). */
.site-header a.header-cta {
    background-color: var(--accent-lime);
    background-image: linear-gradient(#EDFF79, #EDFF79);
    background-repeat: no-repeat;
    background-position: -2px center;
    background-size: 0% 100%;
    color: var(--ink);
    transition: background-size .4s ease, color .25s ease, transform .15s ease, box-shadow .2s ease;
}
.site-header a.header-cta:hover { background-size: calc(100% + 4px) 100%; color: var(--ink); }
/* Header nav links: accent underline grows in on hover (transparent by default
   so the link never shifts). */
.site-header .nav-link {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 3px solid transparent;
    transition: border-color .18s ease;
}
.site-header .nav-link:hover { border-color: var(--accent-lime); }
/* Active section in the main nav */
.site-header .nav-link.is-active { border-bottom-color: var(--accent-lime); color: var(--ink); }
.mobile-menu a.is-active { color: var(--brand); }

/* Full-viewport hero with background photo — inset from the page edges with
   a large radius so the light-blue background frames it. */
.hero-full {
    position: relative;
    margin: var(--inset);
    /* leave room for the in-flow header above (its height + the 3 inset gaps:
       above header, between header & hero, below hero) so the first screen fits. */
    min-height: calc(100vh - var(--header-h) - 3 * var(--inset));
    min-height: calc(100svh - var(--header-h) - 3 * var(--inset));
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--block-radius);
}
.hero-full__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-full__overlay {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(18,21,24,0.62) 0%, rgba(18,21,24,0.30) 38%, rgba(18,21,24,0.72) 100%);
}
.hero-full__content { position: relative; z-index: 2; width: 100%; }

/* Home hero: lighter, blue-tinted darkening (vs the stronger neutral scrim used
   on band heroes) so the sky reads cleaner while the white copy stays legible. */
.hero-full:not(.hero-full--band) .hero-full__overlay {
    background: linear-gradient(180deg, rgba(16,34,66,0.46) 0%, rgba(16,34,66,0.22) 42%, rgba(16,34,66,0.52) 100%);
}
/* Home hero buttons: lime fill sweeps in left→right on hover (like accent
   buttons), dark text, no lift/shift. */
.btn--hero-primary, .btn--hero-secondary {
    background-image: linear-gradient(var(--accent-lime), var(--accent-lime));
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition: background-size .4s ease, color .2s ease, border-color .2s ease;
}
.btn--hero-primary   { background-color: #fff; color: var(--brand); }
.btn--hero-secondary { background-color: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn--hero-primary:hover,
.btn--hero-secondary:hover { background-size: 100% 100%; color: var(--ink); transform: none; }
.btn--hero-secondary:hover { border-color: var(--accent-lime); }
/* No lift for any button inside the home hero (incl. .btn--accent) */
.hero-full:not(.hero-full--band) .btn:hover { transform: none; }

/* Shorter hero band for interior pages (About, etc.) */
.hero-full--band {
    min-height: clamp(420px, 60vh, 600px);
}

/* Background cards (photo or gradient) with text anchored to the bottom */
.card-bg {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: #fff;
    isolation: isolate;
}
.card-bg__media {
    position: absolute; inset: 0;
    z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-bg__overlay {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(18,21,24,0.10) 0%, rgba(18,21,24,0.55) 58%, rgba(18,21,24,0.84) 100%);
}
.card-bg__content { position: relative; z-index: 2; }
/* Keep card headings aligned across the row: reserve a consistent
   text height so bottom-anchored content lines up regardless of copy length. */
.card-bg__content p { min-height: 4.875rem; }
@media (max-width: 767px) { .card-bg__content p { min-height: 0; } }

/* Media band (background photo + dark overlay), e.g. final CTA — inset & rounded */
.media-band {
    position: relative;
    overflow: hidden;
    margin: var(--inset);
    border-radius: var(--block-radius);
}

/* Full-width white content bands become inset, rounded white panels that read
   as "text areas on white" against the light-blue page. Scoped to <section>
   so element-level `bg-creamSoft` cards (e.g. the contacts form) are untouched. */
section.bg-creamSoft {
    margin: var(--inset);
    border-radius: var(--block-radius);
}
.media-band__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.media-band__overlay {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(18,21,24,0.84) 0%, rgba(18,21,24,0.58) 60%, rgba(18,21,24,0.42) 100%);
}
.media-band__content { position: relative; z-index: 2; }

/* Fact / regulated box */
.factbox {
    background: var(--cream-soft);
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 24px;
    padding: 1.6rem 1.8rem;
}
.factbox dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.7rem 1.4rem;
    margin: 0;
}
.factbox dt { color: var(--muted); font-size: 0.95rem; }
.factbox dd { margin: 0; color: var(--graphite); font-weight: 600; }
@media (max-width: 640px) {
    .factbox dl { grid-template-columns: 1fr; gap: 0.25rem; }
    .factbox dd { margin-bottom: 0.6rem; }
}

/* FAQ accordion — native <details>/<summary>, no JS */
.faq-item { border-top: 1px solid rgba(28,30,31,0.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(28,30,31,0.12); }
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.45rem 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform .25s ease;
}
.faq-item[open] > summary .faq-icon { transform: rotate(45deg); }
.faq-item__body {
    padding: 0 0 1.5rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 62ch;
}

/* Legal / policy prose */
.legal-prose h2 {
    font-family: 'Archivo', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.55rem;
    margin-top: 2.6rem;
    margin-bottom: 0.6rem;
}
.legal-prose h2:first-of-type { margin-top: 1.5rem; }
.legal-prose h3 {
    font-family: 'Archivo', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.25rem;
    margin-top: 2.25rem;
    margin-bottom: 0.5rem;
}
.legal-prose p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1rem; }
.legal-prose ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; color: var(--ink-soft); }
.legal-prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.legal-prose a { color: var(--accent); text-decoration: underline; }
.legal-prose a:hover { color: var(--ink); }
.legal-prose strong { color: var(--ink); font-weight: 600; }

/* Legal page: white content card + sticky in-page table of contents */
.legal-card {
    background: var(--card);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
}
@media (min-width: 1024px) {
    .legal-card { padding: 2.75rem 3rem; }
}
.legal-prose h2 { scroll-margin-top: 1.5rem; }

.legal-toc { position: sticky; top: 24px; }
.legal-toc__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.9rem;
}
.legal-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(0,0,0,0.08); }
.legal-toc a {
    display: block;
    padding: 0.4rem 0 0.4rem 1rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-active { color: var(--ink); border-left-color: var(--accent-lime); font-weight: 600; }

/* Inline callout / warning box */
.callout {
    display: flex;
    gap: 0.85rem;
    border: 1px solid rgba(28,30,31,0.12);
    background: var(--cream-soft);
    border-radius: 20px;
    padding: 1.1rem 1.25rem;
    color: var(--ink-soft);
    line-height: 1.65;
}
.callout svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.callout strong { color: var(--ink); }
/* Full-width feature callout with stronger rounding (Home disclaimer) */
.callout--wide { background: var(--cream-soft); border: none; border-radius: 30px; padding: 1.3rem 1.6rem; }
.callout--wide svg { color: var(--accent-lime); }

/* Form — underline-style fields */
.field { display: block; }
.field > label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}
.input-field {
    display: block;
    width: 100%;
    background: transparent;
    border: 1.5px solid #B7C3CF;
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
    font-family: inherit;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input-field::placeholder { color: rgba(17,17,17,0.38); }
.input-field:hover { border-color: #8C9AA8; }
.input-field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(53,65,130,0.18);
}
textarea.input-field { resize: vertical; min-height: 140px; }

/* Material Symbols icon (e.g. stat cards) */
.m-icon {
    font-size: 60px;
    line-height: 1;
    color: var(--ink);
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' -25, 'opsz' 48;
}
/* Accent variant of the outline icon (e.g. Home "Ready-made solutions" boxes) */
.m-icon--accent { color: var(--accent-lime); }

/* Step badge chip (How interaction is built) — lime pill, dark text */
.step-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--accent-lime);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

/* Contact icon tile */
.contact-icon {
    width: 48px; height: 48px;
    border-radius: 999px;
    background: rgba(94,110,114,0.10);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }

/* Footer — light, blends with the page; separated from content by a hairline */
.site-footer {
    background: transparent;
    border-top: 1px solid rgba(40,55,75,0.12);
}

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 1023px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
