/* ==========================================================================
   Secure Support — custom styles (layered on top of Tailwind CDN)
   Navy & teal, warm and person-centred. Built to WCAG 2.2 AA.
   ========================================================================== */

:root {
    --navy:      #123B5D;
    --navy-dark: #0E2E48;
    --teal:      #2FA6B3;
    --teal-dark: #146A74;   /* AA-safe teal for links/accent text (~6.3:1 on white) */
    --green:     #B4CF8B;
    --sky:       #DCEFF3;
    --aqua:      #C7E5E5;
    --offwhite:  #F7FAFA;
    --ink:       #253A44;
    --slate:     #526B7A;
    --border:    #D8E7EA;
}

/* Sensible fallbacks while the CDN fonts/utilities load */
body { font-family: 'Quicksand', ui-sans-serif, system-ui, sans-serif; color: var(--ink); }
h1, h2, h3, h4, h5, h6, .logo { font-family: 'Fredoka', ui-sans-serif, sans-serif; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* clears the sticky header on anchor jumps */
    overflow-x: clip;         /* contains off-screen AOS transforms without breaking sticky */
}
body { overflow-x: clip; }   /* clip (not hidden) so position:sticky keeps working */

/* --- Global visible focus (WCAG 2.2: focus appearance / keyboard access) --- */
:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Sticky header scrolled state --- */
#site-header.is-scrolled {
    background: rgba(247, 250, 250, 0.95);
    box-shadow: 0 8px 28px -14px rgba(18, 59, 93, 0.25);
}

/* --- Desktop "More" dropdown --- */
.nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-caret { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }

/* --- Form controls --- */
.form-input {
    width: 100%;
    border-radius: 1rem;
    border: 1.5px solid var(--border);
    background: #FCFEFE;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
    font-family: 'Quicksand', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input::placeholder { color: #8FA6AE; }
.form-input:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 166, 179, 0.16);
}
.form-input.input-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}
select.form-input { appearance: none; -webkit-appearance: none; background-image: none; }

.field-error {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #b91c1c;
}
.field-error:empty { display: none; }

/* --- Consent / checkbox --- */
.consent-check {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--navy);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* --- Honeypot (kept out of view but reachable by bots) --- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Accordion --- */
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel { transition: max-height 0.45s ease; }

/* --- Mobile menu --- */
#mobile-menu { transition: max-height 0.45s ease; }

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb {
    background: #A9D2D6;
    border-radius: 99px;
    border: 3px solid var(--offwhite);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* --- SweetAlert2 brand tweaks --- */
.swal2-popup { border-radius: 1.75rem !important; font-family: 'Quicksand', sans-serif !important; }
.swal2-title { font-family: 'Fredoka', sans-serif !important; color: var(--ink) !important; }
.swal2-styled.swal2-confirm {
    border-radius: 9999px !important;
    background: var(--navy) !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* --- Balanced headings --- */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* --- Eyebrow label --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-dark);
}
.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--teal);
    border-radius: 99px;
}
.eyebrow.is-centered::after {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--teal);
    border-radius: 99px;
}

/* --- Marquee strip --- */
.marquee { overflow: hidden; }
.marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: ss-marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes ss-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Timeline connector (process) --- */
.timeline-line {
    background-image: linear-gradient(90deg, var(--teal) 0 60%, transparent 0);
    background-size: 14px 2px;
    background-repeat: repeat-x;
}

/* --- Number watermark --- */
.num-watermark {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(47, 166, 179, 0.28);
}

/* --- Card hover lift --- */
.lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lift:hover { transform: translateY(-6px); }

/* --- Decorative "soft" cards: gentle corner glow + faint brand leaf --- */
.deco-card { position: relative; overflow: hidden; }
.deco-card > * { position: relative; z-index: 1; }      /* keep content above the decoration */
.deco-card::before {                                     /* soft teal glow, top-right */
    content: "";
    position: absolute;
    top: -2.25rem;
    right: -2.25rem;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(47, 166, 179, 0.16), rgba(47, 166, 179, 0) 70%);
    transition: transform 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
.deco-card::after {                                      /* faint leaf, bottom-right (soft organic accent) */
    content: "";
    position: absolute;
    right: 0.7rem;
    bottom: -0.5rem;
    width: 3.75rem;
    height: 3.75rem;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232FA6B3'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") no-repeat center / contain;
    opacity: 0.12;
    transform: rotate(-12deg);
    transition: transform 0.45s ease, opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
.deco-card:hover::before { transform: scale(1.3); }
.deco-card:hover::after  { transform: rotate(-4deg) scale(1.1); opacity: 0.2; }

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