@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text-dark: #1F2937;
    --color-text-light: #6B7280;
    --color-accent-wood: #B48B57; /* Warm Golden Wood Accent, matching timber */
    --color-accent-hover: #9E7441;
    --color-accent-slate: #374151;
    --color-border: #E5E7EB;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-section: 6rem;
    --spacing-container: 80%;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: var(--spacing-container);
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-section) 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent-wood);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

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

.btn-outline:hover {
    background-color: var(--color-accent-wood);
    color: #FFFFFF;
}

/* Header & Nav - Floating Glass Pill Design */
.header-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: var(--spacing-container);
    max-width: 1200px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* appropriately scaled for pill */
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem; 
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(180, 139, 87, 0.1); /* light wood tint */
    color: var(--color-accent-wood);
}

.nav-cta {
    display: none;
}

@media (min-width: 1025px) {
    .nav-cta {
        display: block;
        margin-left: 0.5rem;
        padding-left: 1.5rem;
        border-left: 1px solid var(--color-border);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-dark);
}

/* Page Banner (Inner Pages) */
.page-banner {
    background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.8)), url('../images/hero.png') center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    margin-top: 80px; /* offset header */
}

.page-banner h1 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.2rem;
    color: #E5E7EB;
}

/* Footer */
.footer {
    background-color: var(--color-text-dark);
    color: #FFFFFF;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: #9CA3AF;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: #9CA3AF;
}

.footer-links ul a:hover {
    color: var(--color-accent-wood);
    padding-left: 5px;
}

.footer-contact p {
    color: #9CA3AF;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact .icon {
    color: var(--color-accent-wood);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive Variables Update */
@media (max-width: 1024px) {
    :root {
        --spacing-container: 90%;
        --spacing-section: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 20px);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
    }
    
    .nav-wrapper.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-cta {
        display: flex;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
        border-left: none;
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .page-banner h1 {
        font-size: 2.2rem;
    }
}
