/* =========================================================
   ChiSlam "Modern" Theme (fits your current HTML classes)
   Drop-in replacement for your existing pages
========================================================= */

:root {
    --bg: #0b0b0d;
    --card: #ffffff;
    --text: #111;
    --muted: rgba(17, 17, 17, .65);
    --line: rgba(17, 17, 17, .10);
    --brand: #316d9d;
    --brand2: #3572a7;
    --shadow: 0 18px 40px rgba(0, 0, 0, .10);
    --shadow2: 0 10px 25px rgba(0, 0, 0, .08);
    --radius: 18px;
    --radius2: 14px;
    --max: 1100px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #f6f7fb;
    overflow-x: hidden;
}

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

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


/* =========================================================
   HEADER (supports BOTH layouts)
   - Old:  <header class="main-header"> ... </header>
   - New:  <header class="site-header"> ... </header>
========================================================= */

.site-header,
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 13, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}


/* Inner wrappers */

.header-inner,
.header-top {
    max-width: var(--max);
    margin: 0 auto;
    padding: .85rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


/* Hamburger (works for both) */

.hamburger {
    display: none;
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: .55rem .65rem;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.hamburger:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .11);
}


/* ===== Old header layout (your current HTML) ===== */

.title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
}

.main-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.left-logo,
.right-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.main-title h1 {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 1.35rem;
}

.subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
}

.butterfly-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 11, 13, .86);
    padding: .3rem .5rem;
    border-radius: 12px;
}

.butterfly-link img {
    width: 120px;
    height: auto;
    opacity: .95;
}


/* ===== New header layout (site-header + brand/sponsor) ===== */

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 240px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-text {
    line-height: 1.1;
}

.brand-name {
    color: #fff;
    font-weight: 900;
    letter-spacing: .2px;
}

.brand-sub {
    color: rgba(255, 255, 255, .75);
    font-size: .85rem;
    margin-top: .15rem;
}

.sponsor {
    background: rgba(11, 11, 13, .86);
    padding: .3rem .5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sponsor img {
    width: 120px;
    height: auto;
    opacity: .95;
}


/* Nav (same for both) */

.nav-menu {
    max-width: var(--max);
    margin: 0 auto;
    padding: .2rem 1.1rem .9rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, .88);
    font-weight: 650;
    font-size: .95rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.nav-links a.active {
    background: rgba(49, 109, 157, .22);
    border-color: rgba(49, 109, 157, .35);
    color: #fff;
}


/* Mobile behavior for both */

@media (max-width: 860px) {
    .hamburger {
        display: inline-flex;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: .6rem;
    }
    /* Old header: align left on mobile */
    .title-group {
        align-items: flex-start;
    }
    /* New header: allow brand to shrink */
    .brand {
        min-width: 0;
    }
}


/* =========================
   HERO (your classes)
========================= */

.hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dim {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 50% 25%, rgba(49, 109, 157, .55), transparent 60%), linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .70));
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 1.25rem;
}

.hero-text h2 {
    margin: .9rem 0 .45rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.02em;
}

.hero-text p {
    margin: 0 auto 1.15rem;
    max-width: 58ch;
    color: rgba(255, 255, 255, .85);
    font-size: 1.05rem;
}


/* MLTT logo */

.mltt-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.mltt-logo {
    width: 90px;
    /* adjust size if needed */
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}


/* =========================
   PAGE LAYOUT HELPERS
========================= */

.offers-section,
.butterfly-section,
.visit-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2.2rem 1.1rem;
}

.section-title,
.offers-section h2,
.butterfly-section h2,
.visit-section h2 {
    margin: 0 0 1.2rem;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}


/* =========================
   OFFERS GRID (your classes)
========================= */

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.offer-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
    overflow: hidden;
    padding: 1.25rem 1.25rem 1.1rem;
    position: relative;
}

.offer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(49, 109, 157, .10), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.offer-card>* {
    position: relative;
}

.offer-card h3 {
    margin: 0 0 .55rem;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.offer-card p {
    margin: .35rem 0;
    color: rgba(17, 17, 17, .78);
    line-height: 1.45;
}

.offer-card ul {
    margin: .55rem 0 0;
    padding-left: 1.1rem;
}

.offer-card li {
    margin: .38rem 0;
    line-height: 1.45;
}

.important-note,
.team-note {
    margin-top: 1rem;
    border-radius: 14px;
    padding: .85rem .9rem;
    border: 1px solid rgba(49, 109, 157, .20);
    background: rgba(49, 109, 157, .08);
}


/* =========================
   PRODUCTS SECTION (your classes)
========================= */

.butterfly-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
    overflow: hidden;
    padding: 1.35rem;
}

.product-info img {
    width: 100%;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
}

.product-text p {
    margin: .45rem 0;
    color: rgba(17, 17, 17, .78);
    line-height: 1.5;
}


/* =========================
   VISIT SECTION (your classes)
========================= */

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
    overflow: hidden;
    padding: 1.35rem;
}

.visit-info p {
    margin: .5rem 0;
    color: rgba(17, 17, 17, .78);
    line-height: 1.5;
}

.visit-map iframe {
    border-radius: var(--radius2);
    border: 1px solid var(--line);
}


/* =========================
   FOOTER (your markup is <footer>)
========================= */

footer {
    padding: 1.4rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, .75);
    background: #0b0b0d;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer p {
    margin: 0;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
    .butterfly-content {
        grid-template-columns: 1fr;
    }
    .visit-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 70vh;
    }
    .mltt-logo {
        width: 110px;
    }
    .offer-card {
        padding: 1.1rem;
    }
}


/* Keep faces nicer on mobile (matches your original idea) */

@media (max-width: 560px) {
    .hero-img {
        object-position: 50% 20%;
    }
}