/* ------------------------------------------------------------
   CSS VARIABLES (Design Tokens)
   ----------------------------------------------------------- */
:root {
    --color-primary:        #00004a;
    --color-primary-dark:   #000035;
    --color-primary-light:  #00006b;
    --color-accent:         #dbb45e;
    --color-accent-dark:    #c49a3e;
    --color-accent-light:   #e8c87a;
    --color-bg:             #ffffff;
    --color-bg-subtle:      #f4f5f7;
    --color-border:         #e2e4ea;
    --color-text:           #222222;
    --color-text-muted:     #5a5a6e;

    --font-display:         'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body:            'Inter', 'Segoe UI', system-ui, sans-serif;

    --space-xs:    0.5rem;    /*  8px */
    --space-sm:    1rem;      /* 16px */
    --space-md:    1.5rem;    /* 24px */
    --space-lg:    2rem;      /* 32px */
    --space-xl:    3rem;      /* 48px */
    --space-2xl:   4rem;      /* 64px */
    --space-3xl:   6rem;      /* 96px */

    --max-width:   1200px;
    --radius:      4px;
    --radius-lg:   8px;

    --transition:  all 0.2s ease;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: var(--space-sm); color: var(--color-text); }
p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section--subtle { background: var(--color-bg-subtle); }
.section--dark { background: var(--color-primary); color: white; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: white; }

/* Grid systems */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.nav-logo span { color: var(--color-accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-item > a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    transition: var(--transition);
    display: block;
}
.nav-link-row {
    display: flex;
    color: rgba(255,255,255,0.85);
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-link-row a:hover {
    color: white;
}

.nav-item > a:hover { color: white; }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,30,0.15);
    min-width: 220px;
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.625rem var(--space-md);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown li a:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
    padding-left: calc(var(--space-md) + 4px);
}
/* CTA nav item */
.nav-cta a.btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}


/* NEW: dropdown arrow button */
.dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

.dropdown-toggle:hover {
    color: white;
}

/* rotate arrow when open */
.has-dropdown.open .dropdown-toggle {
    transform: rotate(180deg);
}
/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.75);
    padding-top: var(--space-3xl);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.footer-col h4 {
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.footer-col ul li { margin-bottom: 0.625rem; }

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-md) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Mobile nav */
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-md);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open { max-height: 100vh; }

    .nav-item { width: 100%; }
    .nav-link-row {
    width: 100%;
}

.nav-link-row a {
    flex: 1;
    padding: var(--space-sm);
}

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius);
        padding: var(--space-xs) 0;
        margin-left: var(--space-md);
        display: none;
    }

    .has-dropdown.open .dropdown {
    display: block;
}

    .dropdown li a { color: rgba(255,255,255,0.7); }
    .dropdown li a:hover { background: rgba(255,255,255,0.05); color: white; }

    .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    .grid-4 { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr; }
}



/* ============================================================
   NAV MOBILE FIX
   Append to the BOTTOM of public/css/style.css

   THE BUG: .nav-links on mobile had padding: var(--space-md)
   in the closed state (max-height: 0). Padding is not clipped
   by max-height — so the browser rendered it as a white gap
   below the nav on every page.

   THE FIX: padding is 0 when closed, only added when .open.
   Everything else (colours, fonts, layout) is untouched.
   ============================================================ */

@media (max-width: 768px) {

    /* CLOSED STATE — zero padding, zero height, no white strip */
    .nav-links {
        padding-top: 0;
        padding-bottom: 0;
        /* max-height: 0 and overflow: hidden already set in your CSS */
    }

    /* OPEN STATE — restore padding */
    .nav-links.open {
        padding-top: var(--space-sm);
        padding-bottom: var(--space-lg);
    }

    /* Ensure nav-container is the anchor for the absolute dropdown */
    .nav-container {
        position: relative;
    }

    /* Full-width tap targets on nav links (minimum 48px) */
    .nav-item > a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* iOS: prevent font zoom on form inputs in contact pages */
    .contact-form__input,
    .contact-form__select,
    .contact-form__textarea {
        font-size: 16px;
    }
}

/* Contact trust strip: don't stick on mobile (causes overlap) */
@media (max-width: 768px) {
    .contact-trust-strip {
        position: static;
    }
}



