/* Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary: #2d6a4f;
    --primary-light: #52b788;
    --primary-dark: #1b4332;
    --accent: #e07a5f;
    --accent-warm: #f2cc8f;
    --bg-main: #faf7f2;
    --bg-card: #ffffff;
    --bg-dark: #1a1a18;
    --text-main: #1c1c1a;
    --text-muted: #6b6b63;
    --text-light: #a8a89e;
    --border: #e8e4dc;
    --header-bg: rgba(250, 247, 242, 0.95);
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

body.no-scroll { overflow: hidden; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }

/* ── Header ── */
body > header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.4rem 0;
}

body > header.scrolled {
    padding: 0.7rem 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo img {
    height: 36px;
    transition: var(--transition);
}

.logo:hover img { opacity: 0.75; }

.nav-list ul {
    display: flex;
    gap: 2.5rem;
}

.nav-list a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-list a:hover,
.nav-list a.active { color: var(--text-main); }

.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

.header-auth .btn-signup {
    font-family: 'DM Sans', sans-serif;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.header-auth .btn-signup:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .header-auth {
        margin-left: auto;
        margin-right: 1.2rem;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        padding: 7rem 2rem 4rem;
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        overflow-y: auto;
    }

    .nav-list.active {
        display: block;
        opacity: 1;
    }

    .nav-list ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-list a {
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }

    .mobile-menu-toggle { display: flex; }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--accent);
    }

    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--accent);
    }
}

/* ── Footer ── */
footer {
    background: var(--bg-dark);
    padding: 6rem 5% 3rem;
    border-top: 3px solid var(--primary);
    color: #c8c8c0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #8a8a82;
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'DM Sans', sans-serif;
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: #8a8a82;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav a:hover { color: var(--primary-light); }

.footer-contact p {
    color: #8a8a82;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5a5a52;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: #5a5a52; }
.footer-links a:hover { color: var(--primary-light); }

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { justify-content: center; }
}

/* ── Ad Container ── */
.ad-container {
    max-width: 1100px;
    margin: 3rem auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ── Section Title ── */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ── Mobile Fixed Button ── */
.mobile-fixed-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    z-index: 1000;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.mobile-btn {
    flex: 1;
    max-width: 200px;
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.mobile-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.mobile-btn--outline:active,
.mobile-btn--outline:hover {
    background: var(--primary);
    color: #fff;
}

.mobile-btn--solid {
    background: var(--primary);
    color: #fff;
    border: 1.5px solid var(--primary);
}

.mobile-btn--solid:active,
.mobile-btn--solid:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (max-width: 992px) {
    .mobile-fixed-btn {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}
