/* ============================================================
   Kaidok.net — Global Stylesheet
   Loaded on every page via header.php
   Fonts: Barlow Condensed (display) + Barlow (body)
   ============================================================ */

:root {
    --navy:        #0A1128;
    --navy-mid:    #112040;
    --navy-light:  #1C3260;
    --gold:        #FFD700;
    --gold-dark:   #E0BC00;
    --gold-dim:    rgba(255, 215, 0, 0.15);
    --frost:       #FFFFFF;
    --slate:       #8A95AD;
    --slate-light: #C5CBDB;
    --border:      rgba(255,255,255,0.08);
    --gold-border: rgba(255,215,0,0.3);
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --transition: 0.25s ease;
    --container: 1180px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--frost); background: var(--navy); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent  { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-accent:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--frost); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--frost); }
.btn-ghost   { background: transparent; color: var(--frost); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--frost); }
.btn-large   { font-size: 1.05rem; padding: 15px 36px; }
.btn-block   { display: block; width: 100%; text-align: center; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}
.brand-logo a { display: flex; align-items: center; gap: 10px; color: var(--frost); }
.logo-img { height: 40px; width: auto; }
.logo-text-fallback { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; color: var(--frost); }
.logo-text-fallback em { color: var(--gold); font-style: normal; }
.logo-img + .logo-text-fallback { display: none; }

.primary-nav ul { display: flex; gap: 4px; align-items: center; }
.primary-nav a { color: var(--slate-light); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em; padding: 6px 12px; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.primary-nav a:hover,
.primary-nav a.active { color: var(--gold); background: rgba(255,215,0,0.07); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.login-link { color: var(--slate-light); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.login-link:hover { color: var(--gold); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
}
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--frost); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.section-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--frost);
    margin-bottom: 32px;
}
.plans-footnote { text-align: center; margin-top: 36px; font-size: 0.9rem; color: var(--slate); }
.plans-footnote a { color: var(--gold); font-weight: 600; }
.plans-footnote a:hover { text-decoration: underline; }

/* ============================================================
   EYEBROW + AK DOT
   ============================================================ */
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    border: 1px solid var(--gold-border);
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--gold-dim);
}
.ak-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================================
   INNER PAGE HERO (all pages except index)
   ============================================================ */
.page-hero {
    position: relative;
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background-color: var(--navy);
    /* Each page CSS overrides background-image with its own hero png */
    background-size: cover;
    background-position: center 35%;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(255,215,0,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .container,
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--frost);
    margin-bottom: 20px;
}
.page-hero > .container > p,
.page-hero p.hero-sub-para {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--slate-light);
    max-width: 580px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.page-trust-bar { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.ptb-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--slate-light); font-weight: 500; padding: 0 14px; }
.ptb-item:first-child { padding-left: 0; }
.ptb-icon { color: var(--gold); }
.ptb-div { width: 1px; height: 14px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }
.reveal-delay-5 { transition-delay: 0.48s; }
.reveal-delay-6 { transition-delay: 0.58s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   FAQ COMPONENT (shared across hosting, care-plans, migrations, support)
   ============================================================ */
.faq-section { padding: 90px 0; background: var(--navy); border-top: 1px solid var(--border); }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.faq-head .section-title { margin-bottom: 16px; }
.faq-head p { font-size: 0.95rem; color: var(--slate-light); line-height: 1.7; }
.faq-head a { color: var(--gold); }
.faq-head a:hover { text-decoration: underline; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 44px 20px 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--frost);
    cursor: pointer;
    letter-spacing: 0.01em;
    position: relative;
    transition: color var(--transition);
    line-height: 1.3;
}
.faq-q:hover { color: var(--gold); }
.faq-q::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    transition: transform var(--transition);
}
.faq-q[aria-expanded="true"] { color: var(--gold); }
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-a.open { max-height: 400px; padding-bottom: 20px; }
.faq-a p { font-size: 0.93rem; color: var(--slate-light); line-height: 1.75; }

/* ============================================================
   SHARED FORM STYLES
   ============================================================ */
.form-row { display: grid; gap: 20px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-light);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--frost);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate); }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95AD' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-group select option { background: var(--navy-mid); color: var(--frost); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-disclaimer { font-size: 0.78rem; color: var(--slate); text-align: center; line-height: 1.6; }
.form-disclaimer a { color: var(--gold); }

/* ============================================================
   CTA SECTION (shared)
   ============================================================ */
.cta-section { background: var(--navy-mid); padding: 80px 0; border-top: 1px solid var(--border); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-copy { max-width: 640px; }
.cta-copy h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; text-transform: uppercase; color: var(--gold); line-height: 1.05; margin-bottom: 16px; }
.cta-copy p { font-size: 0.97rem; color: var(--slate-light); line-height: 1.75; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); }
.footer-top { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand-logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--frost); letter-spacing: 0.02em; margin-bottom: 12px; }
.footer-brand-logo span { color: var(--gold); }
.footer-tagline { font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-light); line-height: 1.4; margin-bottom: 14px; }
.footer-sub { font-size: 0.82rem; color: var(--slate); line-height: 1.6; }
.footer-sub a { color: var(--slate); text-decoration: underline; }
.footer-sub a:hover { color: var(--gold); }
.footer-links-col h4 { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links-col ul li { margin-bottom: 10px; }
.footer-links-col ul li a { color: var(--slate); font-size: 0.9rem; transition: color var(--transition); }
.footer-links-col ul li a:hover { color: var(--frost); }
.footer-bottom { padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--slate); text-align: center; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 680px)
   KEY FIX: header stays sticky; nav dropdown is absolute inside sticky parent
   ============================================================ */
@media (max-width: 680px) {

    /* --- Mobile Nav --- */
    .primary-nav {
        display: none;
        position: absolute;
        top: 70px; /* header height 68px + 2px border */
        left: 0;
        right: 0;
        background: var(--navy);
        border-top: 1px solid var(--border);
        border-bottom: 2px solid var(--gold);
        padding: 8px 0 16px;
        z-index: 200;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav a { display: block; padding: 14px 24px; font-size: 1.05rem; border-radius: 0; }
    /* Header stays sticky — DO NOT set to position:relative */
    .login-link { display: none; }
    .mobile-menu-btn { display: flex; }

    /* --- Page Hero --- */
    .page-hero { padding: 56px 0 44px; }
    .page-hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
    .ptb-div { display: none; }
    .ptb-item { padding: 0; width: 50%; margin-bottom: 4px; }

    /* --- CTA --- */
    .cta-inner { text-align: left; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { text-align: center; width: 100%; }

    /* --- Forms --- */
    .form-row-2 { grid-template-columns: 1fr; }

    /* --- FAQ --- */
    .faq-layout { grid-template-columns: 1fr; gap: 32px; }
    .faq-section { padding: 60px 0; }

    /* --- Footer --- */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { padding: 48px 0 32px; }
}
