@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --heritage-gold: #D4A03A;
    --braganca-stone: #F5F3EF;
    --transmontana-earth: #8B6F47;
    --deep-charcoal: #2C2C2C;
    --warm-gray: #6B6B6B;
    --white: #FFFFFF;
    --gelato-cream: #FFF8E7;
    --pastry-glaze: #FFE6B3;

    --header-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--white);
    color: var(--deep-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--header-font);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s transform, 0.3s background-color;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--heritage-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--transmontana-earth);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--heritage-gold);
    color: var(--heritage-gold);
}

.btn-outline:hover {
    background-color: var(--heritage-gold);
    color: var(--white);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo h1 {
    font-size: 28px;
    color: var(--heritage-gold);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a:hover {
    color: var(--heritage-gold);
}

.nav-links .active {
    color: var(--heritage-gold);
}

/* Footer */
footer {
    background-color: var(--deep-charcoal);
    color: var(--white);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--heritage-gold);
    margin-bottom: 24px;
    font-size: 20px;
}

.footer-col p,
.footer-col li {
    color: #ccc;
    margin-bottom: 12px;
}

.bottom-bar {
    border-top: 1px solid #444;
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--deep-charcoal);
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: 0.5s;
        z-index: 1000;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }

    .header-desktop-cta {
        display: none !important;
    }

    .header-actions {
        gap: 15px !important;
    }

    .lang-switcher {
        font-size: 12px !important;
    }

    .section {
        padding: 48px 0;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* S20 & Ultra-Small Mobile Fixes (Viewport < 480px) */
@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden;
        position: relative;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
    }

    .header-actions {
        gap: 12px !important;
    }

    .lang-switcher {
        font-size: 11px !important;
    }

    .logo h1 {
        font-size: 24px !important;
    }

    .section {
        padding: 40px 0;
    }
}

/* WhatsApp Button Fix */
@media (max-width: 768px) {
    .whatsapp-btn {
        right: 15px !important;
        bottom: 15px !important;
        width: 45px !important;
        height: 45px !important;
        z-index: 1000;
    }
}