/* =========================
   DESIGN TOKENS
========================= */
:root {
    --accent: #e3662d;
    --font-main: "Inter", sans-serif;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: #222;
    line-height: 1.6;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* =========================
   HERO (FIXED)
========================= */
.hero {
    height: 90vh;
    min-height: 650px;

    background: url("images/hero.jpg") center/cover no-repeat;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.28);
    z-index: 1;
}

/* CENTERED CONTENT FIX */
.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #fff;

    padding: 0 var(--space-3);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;

    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(16px);

    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;

    height: 85px;
    padding: 0 var(--space-4);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

/* =========================
   DESKTOP NAV
========================= */
.desktop-nav {
    display: flex;
    gap: var(--space-4);
}

.desktop-nav a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: var(--space-6) var(--space-3);
    scroll-margin-top: 90px;
}

.section h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    margin-bottom: 28px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
}

/* =========================
   CARDS
========================= */
.card {
    background: #fff;
    border-radius: 14px;
    padding: var(--space-3);

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    text-decoration: none;
    color: inherit;

    transition: transform 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
}

.card-body {
    padding: 18px 20px;
}

.card-body h3 {
    margin-bottom: 8px;
    font-weight: 600;
}

.card-body p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.card-body span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* MEDIA CARDS */
.media-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* =========================
   ABOUT / TEAM (FIXED)
========================= */
.team {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;

    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.person {
    text-align: center;
    width: 220px;
}

.person img {
    width: 170px;
    height: 170px;
    object-fit: cover;

    border-radius: 50%;
    border: 4px solid var(--accent);

    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* =========================
   CONTACT FORM
========================= */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px 14px;

    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;

    font-family: var(--font-main);
    font-size: 1rem;

    outline: none;

    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 102, 45, 0.15);
}

.contact-form button {
    width: 100%;
    padding: 14px;

    background: var(--accent);
    color: white;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 0 var(--space-2);
    }
}
/* =========================
   FOOTER
========================= */
.footer {
    padding: var(--space-4);
    text-align: center;

    background: #111;
    color: #fff;
}

/* =========================
   MOBILE MENU BASE (SAFE DEFAULT)
========================= */
.mobile-menu,
.burger-button,
#menu-toggle {
    display: none;
}

/* =========================
   MOBILE STYLES
========================= */
@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .header-container {
        padding: 0 var(--space-2);
    }

    .logo img {
        height: 45px;
    }

    /* HERO MOBILE FIX */
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    /* ABOUT MOBILE STACK */
    .team {
        flex-direction: column;
        align-items: center;
    }

    /* BURGER BUTTON */
    .burger-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 4px;

        position: fixed;
        bottom: 20px;
        left: 20px;

        width: 64px;
        height: 64px;

        border-radius: 50%;
        background: var(--accent);

        box-shadow: 0 12px 30px rgba(0,0,0,0.25);

        z-index: 9999;
        cursor: pointer;
    }

    .burger-button .dot {
        background: #fff;
        border-radius: 50%;
        display: block;
    }

    .dot-1 { width: 9px; height: 9px; }
    .dot-2 { width: 7px; height: 7px; opacity: 0.85; }
    .dot-3 { width: 5px; height: 5px; opacity: 0.7; }

    /* IOS BOTTOM SHEET */
    .mobile-menu {
        display: flex;
        flex-direction: column;

        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 90px;

        max-width: 420px;
        margin: 0 auto;

        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(22px);

        border-radius: 22px;

        box-shadow: 0 25px 60px rgba(0,0,0,0.25);

        overflow: hidden;

        opacity: 0;
        transform: translateY(30px) scale(0.96);
        pointer-events: none;

        transition:
            opacity 0.35s ease,
            transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);

        z-index: 9999;
    }

    .mobile-menu a {
        padding: 18px 20px;
        text-decoration: none;
        color: var(--accent);
        font-weight: 500;

        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    /* OPEN STATE */
    #menu-toggle:checked ~ .mobile-menu {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
}

/* =========================
   FINAL DESKTOP SAFETY OVERRIDES
========================= */
@media (min-width: 769px) {

    .mobile-menu,
    .burger-button {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .hero-content h1 {
        font-size: 4rem !important;
    }

    .team {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
}