/* ============================================================
   HyIQ Website — Stylesheet
   Brand: Navy #0f1e54 | Gold #cbb26a | Lavender #e6eaf7
   Fonts: Alata (headings) | Roboto Slab (body)
   ============================================================ */

/* ===== Variables ===== */
:root {
    --navy:          #0f1e54;
    --navy-deep:     #091540;
    --gold-light:    #dfcc8c;
    --gold:          #cbb26a;
    --gold-dark:     #9b6326;
    --lavender:      #e6eaf7;
    --charcoal:      #1a1a2e;
    --white:         #ffffff;
    --off-white:     #f7f8fc;
    --text-dark:     #1a1a2e;
    --text-medium:   #4a4a6a;
    --text-light:    #6b6b80;
    --border:        #d4d8ec;

    --gold-gradient: linear-gradient(
        135deg,
        #fff7ae 0%,
        #9b6326 21%,
        #fff7ae 38%,
        #d3c175 53%,
        #fceec4 65%,
        #b78626 70%,
        #fffacf 82%,
        #9b6326 100%
    );

    --font-heading:  'Alata', sans-serif;
    --font-body:     'Roboto Slab', serif;

    --max-width:     1160px;
    --nav-height:    72px;
    --section-pad:   6rem;

    --radius:        10px;
    --radius-pill:   50px;
    --transition:    0.2s ease;
    --shadow-sm:     0 2px 12px rgba(15, 30, 84, 0.07);
    --shadow:        0 4px 24px rgba(15, 30, 84, 0.10);
    --shadow-lg:     0 8px 40px rgba(15, 30, 84, 0.16);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ===== Layout ===== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--nav-height);
    background: var(--white);
    border-bottom: 1px solid rgba(15, 30, 84, 0.07);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-symbol {
    height: 34px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 400;
    color: var(--text-medium);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

/* Login Button */
.btn-login {
    padding: 0.55rem 1.3rem;
    font-size: 0.88rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy);
    font-weight: 600;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(203, 178, 106, 0.45);
}

/* Hero CTA Button */
.btn-hero {
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.55);
    margin-top: 2.2rem;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Primary Button */
.btn-primary {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: #162d80;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 30, 84, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 1.25rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(203, 178, 106, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(230, 234, 247, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(9, 21, 64, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-heading {
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 1.4rem;
}

.hero-subtext {
    font-size: 1.05rem;
    color: var(--lavender);
    font-weight: 300;
    max-width: 470px;
    line-height: 1.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-symbol {
    width: min(400px, 90%);
    opacity: 0.88;
    animation: float 7s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(203, 178, 106, 0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-18px) rotate(1deg); }
}

/* ============================================================
   Built Different Section
   ============================================================ */
.built-different {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    padding: var(--section-pad) 0;
    text-align: center;
}

.built-different-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(9, 21, 64, 0.91) 0%,
        rgba(15, 30, 84, 0.80) 100%
    );
}

.built-different-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.section-heading-light {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    color: var(--white);
    margin-bottom: 1.4rem;
}

.section-body-light {
    font-size: 1.05rem;
    color: var(--lavender);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-tagline-gold {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   Pillars Section
   ============================================================ */
.pillars {
    background: var(--navy);
    padding: var(--section-pad) 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pillar {
    text-align: center;
    padding: 1rem 0.5rem;
}

/* Subtle dividers between pillars */
.pillar:not(:last-child) {
    border-right: 1px solid rgba(230, 234, 247, 0.1);
}

.pillar-heading {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pillar-body {
    font-size: 0.93rem;
    color: var(--lavender);
    font-weight: 300;
    line-height: 1.85;
}

/* ============================================================
   CTA / Sign Up Section
   ============================================================ */
.cta-section {
    background: var(--off-white);
    padding: var(--section-pad) 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Pull quote */
.cta-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    color: var(--navy);
    line-height: 1.45;
    padding-left: 1.6rem;
    border-left: 4px solid var(--gold);
    position: relative;
}

/* Sign up panel */
.cta-signup-heading {
    font-size: 1.45rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.cta-signup-body {
    font-size: 0.93rem;
    color: var(--text-medium);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.signup-input-row {
    display: flex;
    gap: 0.75rem;
}

.signup-input-row input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.signup-input-row input[type="email"]:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 30, 84, 0.08);
}

.signup-input-row .btn-primary {
    flex-shrink: 0;
    padding: 0.75rem 1.6rem;
}

/* Turnstile */
.cf-turnstile {
    margin-top: 1rem;
}

/* Form messages */
.form-message {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.form-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-section {
    min-height: calc(100vh - var(--nav-height));
    padding: calc(var(--nav-height) + 5rem) 0 6rem;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-heading {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    color: var(--navy);
    margin-bottom: 1.4rem;
}

.contact-body {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 2rem;
}

.contact-email-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
}

.contact-email-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity var(--transition);
    display: inline-block;
}

.contact-email-link:hover {
    opacity: 0.75;
}

/* Contact form card */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

/* Form internals */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 30, 84, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--charcoal);
    padding: 4rem 0 2.5rem;
    text-align: center;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    height: 110px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--lavender);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(230, 234, 247, 0.3);
    font-weight: 300;
}

/* ============================================================
   Responsive — Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
    :root {
        --section-pad: 4.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 4rem 2rem;
    }

    .hero-subtext {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-symbol {
        width: 200px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pillar:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(230, 234, 247, 0.1);
        padding-bottom: 2.5rem;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-section {
        padding-top: calc(var(--nav-height) + 3rem);
    }
}

/* ============================================================
   Responsive — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root {
        --section-pad: 3.5rem;
    }

    /* Mobile nav */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 199;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero-symbol {
        width: 160px;
    }

    /* Sign up form */
    .signup-input-row {
        flex-direction: column;
    }

    .signup-input-row .btn-primary {
        width: 100%;
        border-radius: var(--radius-pill);
    }

    /* Contact form */
    .form-row-split {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* Disable parallax on mobile (Safari bug) */
    .built-different {
        background-attachment: scroll;
    }
}
