@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('home-sections.css');

:root {
    --bg-color: #FDFBF7;
    --text-dark: #2C3A29;
    --brand-green: #5A7A46;
    --brand-green-light: #739B58;
    --accent-blue: #C7D6DF;
    --text-muted: #5C5C59;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-solid {
    background-color: var(--brand-green);
    color: white;
    border: none;
}

.btn-solid:hover {
    background-color: var(--brand-green-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-outline:hover {
    background-color: rgba(44, 58, 41, 0.05);
}

.btn-dashed {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px dashed var(--text-dark);
}

.btn-dashed:hover {
    background-color: rgba(44, 58, 41, 0.05);
}

/* Layout */
.d-flex { display: flex; flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

/* Header Navigation */
.site-header {
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Responsive Grids & Layouts */
.responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.responsive-grid-footer {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
}

/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 992px) {
    .responsive-grid-4, .responsive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .responsive-grid-footer {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .responsive-grid-footer > div:nth-child(2) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px !important;
    }
    
    /* Header & Navigation Mobile */
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-color);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1050;
        padding: 40px;
    }
    .main-nav.active {
        right: 0;
    }
    .nav-links {
        flex-direction: column;
        gap: 20px;
        font-size: 1.2rem;
    }
    .site-header {
        padding: 15px 20px !important;
    }
    .nav-icons form input {
        width: 100px !important; /* Smaller search bar on mobile */
    }
    
    /* Global Grids */
    .responsive-grid-4, .responsive-grid-3, .responsive-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* Global Animations & Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-premium {
    background: #FFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
