/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Optimize for mobile performance */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Force scroll to top */
    scroll-padding-top: 0;
}

/* Prevent scroll restoration */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #4A4238;
    overflow-x: hidden;
    background: #F2EDE4;
    position: relative;
    /* Optimize for mobile rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: auto;
    scroll-padding-top: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(74, 66, 56, 0.03) 1px, transparent 0);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    /* Optimize background for mobile */
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Mobile-first container */
    width: 100%;
}

/* Mobile-first responsive breakpoints */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 20px rgba(74, 66, 56, 0.08);
    z-index: 2000;
    padding: 0.25rem 0;
    transition: top 0.4s cubic-bezier(.4,0,.2,1), background 0.3s, box-shadow 0.3s, opacity 0.3s;
    opacity: 1;
    pointer-events: auto;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 70px;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 84px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: #4A4238;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #C99A2E;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.nav-link:hover,
.nav-link:focus {
    color: #C99A2E;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    margin-left: 10px;
}

.bar {
    width: 28px;
    height: 3px;
    background: #4A4238;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, #3A7046 0%, #C99A2E 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.language-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #3A7046;
    border-color: white;
}

/* Disclaimer Content */
.disclaimer-content {
    padding: 80px 0;
    background: #F2EDE4;
}

.disclaimer-section {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.disclaimer-section.active {
    display: block;
}

.disclaimer-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(166, 95, 63, 0.1);
    border: 1px solid #A65F3F;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-card h2 {
    color: #3A7046;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.disclaimer-text {
    color: #4A4238;
    line-height: 1.8;
}

.disclaimer-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.disclaimer-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.disclaimer-text li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.disclaimer-text li:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #3A7046;
    color: #F2EDE4;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #C99A2E;
}

.footer-section p {
    color: #F2EDE4;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #A65F3F;
    color: #F2EDE4;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .nav-logo img {
        height: 50px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 80vw;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 24px rgba(74,66,56,0.10);
        padding-top: 70px;
        padding-left: 30px;
        gap: 1.5rem;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        align-items: flex-start;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-toggle {
        display: flex;
        cursor: pointer;
        z-index: 2200;
    }
    
    /* Mobile navigation backdrop */
    .nav-links-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-links-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Header Section */
    .header-section {
        padding: 100px 0 40px;
    }
    
    .header-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .language-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .tab-btn {
        width: 200px;
        text-align: center;
    }
    
    /* Disclaimer Content */
    .disclaimer-content {
        padding: 40px 0;
    }
    
    .disclaimer-card {
        padding: 25px 20px;
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .disclaimer-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .disclaimer-text p,
    .disclaimer-text li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .disclaimer-text ol {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-section {
        padding: 90px 0 30px;
    }
    
    .header-title {
        font-size: 1.6rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .tab-btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .disclaimer-content {
        padding: 30px 0;
    }
    
    .disclaimer-card {
        padding: 20px 15px;
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .disclaimer-card h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .disclaimer-text p,
    .disclaimer-text li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .disclaimer-text ol {
        margin-left: 0.8rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Optimize animations for mobile */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 