/* Reset & Variables - Warm Editorial Theme */
:root {
    --primary: #c75b39;
    --primary-hover: #a84a2f;
    --secondary: #4a6741;
    --accent: #d4a574;
    --bg-main: #faf8f5;
    --bg-cream: #f5f1eb;
    --bg-card: #ffffff;
    --text-dark: #2d2926;
    --text-body: #5c5652;
    --text-light: #8b837d;
    --border: #e8e2d9;
    --shadow: rgba(45, 41, 38, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', 'Open Sans', system-ui, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Prevent content hiding under sticky header when scrolled to anchors */
:target {
    scroll-margin-top: 80px;
}

/* Global form input iOS zoom prevention */
input,
textarea,
select {
    font-size: 16px;
}

/* Header - Minimalist with subtle border */
body > header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
}

.logo img {
    height: 42px;
    filter: brightness(0.9);
}

.nav-list ul {
    display: flex;
    gap: 2.5rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-body);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-auth .btn-signup {
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

.header-auth .btn-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin: -8px;
    border-radius: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 1024px) {
    .nav-list ul {
        gap: 1.5rem;
    }

    .header-container {
        padding: 1rem 4%;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 0;
        box-shadow: 0 10px 40px var(--shadow);
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-list.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 1rem 5%;
        font-size: 1.1rem;
    }

    .nav-list a::after {
        display: none;
    }

    .header-auth {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    .header-auth .btn-signup {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
        display: block;
        background: var(--text-dark);
        transition: 0.3s;
        border-radius: 1px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Footer mobile */
    footer {
        padding: 3rem 4% 2rem;
        margin-top: 4rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.875rem 3%;
    }

    .logo img {
        height: 36px;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .container {
        width: 94%;
    }
}

/* Footer - Warm and inviting */
footer {
    background-color: var(--bg-cream);
    padding: 5rem 5% 2.5rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary-hover);
}

.ad-container {
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
}