/* KeyTech Limited — 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. */

:root {
    --cream:      #E9E9E8; /* neutral light grey, faintly cool — page background */
    --cream-soft: #FFFFFF; /* content / cards */
    --ink:        #1C1E1F; /* cool near-black text */
    --ink-soft:   #34383B;
    --muted:      #6E7377; /* cool grey */
    --accent:     #5E6E72; /* muted cool slate */
    --accent-2:   #9FB0B2; /* light cool grey spark */
    --graphite:   #1C2024; /* cool charcoal (footer, dark blocks) */
    --graphite-2: #2B3035;
    --card:       #FFFFFF;
}

html { scroll-behavior: smooth; }
body { background: var(--cream); }

/* Display heading: heavy Archivo grotesque, uppercase */
.display {
    font-family: 'Archivo', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    line-height: 0.95;
}
.display em {
    font-style: normal;
    font-family: inherit;
    font-weight: inherit;
}

/* Rounded-rectangle buttons with an inline arrow */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.35rem;
    border-radius: 12px;
    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(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.btn--ghost   { background: transparent; color: var(--ink); border: 1px solid rgba(28,30,31,0.25); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white   { background: #fff; color: var(--ink); }
.btn--white:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.22); }

/* Sticky header — transparent over the hero, solid after scroll */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    color: #fff;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.site-header.is-scrolled {
    background: rgba(233,233,232,0.90);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border-bottom-color: rgba(0,0,0,0.07);
    color: var(--ink);
}
.site-header a { color: currentColor; }
/* Header CTA: outlined on the hero, filled once scrolled */
.header-cta {
    border: 1px solid rgba(255,255,255,0.55);
    color: #fff;
    background: transparent;
}
.site-header.is-scrolled .header-cta {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

/* Hero-less pages (legal, etc.): header is solid/dark from the very top
   so the logo and nav stay legible over the light page background. */
.has-solid-header .site-header {
    background: rgba(233,233,232,0.90);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    border-bottom-color: rgba(0,0,0,0.07);
    color: var(--ink);
}
.has-solid-header .header-cta {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

/* Full-viewport hero with background photo */
.hero-full {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.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%; }

/* 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: 20px;
    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; }

/* Full-width media band (background photo + dark overlay), e.g. final CTA */
.media-band { position: relative; overflow: hidden; }
.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: 16px;
    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 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; }

/* 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: 14px;
    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); }

/* 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: 1px solid var(--ink);
    border-radius: 14px;
    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: var(--ink); }
.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,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;
}

/* 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 — slightly darker base with a faint grey mesh gradient */
.site-footer {
    background:
        radial-gradient(60% 80% at 14% 4%,    rgba(155,167,176,0.22) 0%, transparent 56%),
        radial-gradient(55% 75% at 88% 26%,   rgba(110,120,128,0.13) 0%, transparent 55%),
        radial-gradient(85% 100% at 82% 112%, rgba(6,8,10,0.60)      0%, transparent 62%),
        #15181B;
}

/* 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; }
}
