/* Base Variables & Theme */
:root {
    /* Colors - Earthy, Premium, Editorial */
    --clr-bg: #fbfaf8;         /* Very soft warm white */
    --clr-surface: #ffffff;
    --clr-text: #1a1a1a;       /* Deepest charcoal/black */
    --clr-text-light: #666666; /* Elegant grey */
    --clr-primary: #a6987a;    /* Muted gold/sand */
    --clr-primary-dark: #8b7d5e;
    --clr-dark: #1f211f;       /* Almost black with green/olive undertone */
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;
    
    --max-width: 1400px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    color: var(--clr-text);
}

.italic {
    font-style: italic;
    font-weight: 300;
}

.text-center { text-align: center; }
.mt-4 { margin-top: var(--spacing-md); }
.mt-xl { margin-top: var(--spacing-lg); }
.text-white { color: #fff !important; }
.text-white-muted { color: rgba(255,255,255,0.8); }

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.max-w-md {
    max-width: 700px;
    margin: 0 auto;
}

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

.pt-0 { padding-top: 0 !important; }

.relative { position: relative; }
.z-10 { z-index: 10; }

.divider {
    width: 1px;
    height: 60px;
    background-color: var(--clr-text);
    margin: 3rem auto;
    opacity: 0.2;
}

.divider.light {
    background-color: #fff;
    opacity: 0.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--clr-dark);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--clr-primary);
}

.btn-outline {
    border-color: rgba(0,0,0,0.2);
    color: var(--clr-text);
}
.btn-outline:hover {
    border-color: var(--clr-text);
    background-color: var(--clr-text);
    color: #fff;
}

.bg-white { background-color: #fff !important; }
.text-dark { color: var(--clr-dark) !important; }
.hover-gold:hover {
    background-color: var(--clr-primary) !important;
    color: #fff !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(251, 250, 248, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
    transition: padding 0.3s ease;
}

.header.scrolled .header-container {
    padding: 0.5rem var(--spacing-md);
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav ul {
    display: flex;
    gap: 3rem;
}

.nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 var(--spacing-md);
    margin-top: 4rem; /* offset header gently */
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* Intro Section */
.intro {
    background-color: var(--clr-bg);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--clr-text);
}

.section-text {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    font-weight: 300;
}

/* Features Parallax Background */
.parallax-bg-features {
    background-image: url('../images/features_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: var(--spacing-xl) 0;
}

/* Glassmorphism Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 4rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    transform: translateY(-10px);
}

.feature-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 2rem;
}

.feature-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-dark);
}

.feature-text {
    color: var(--clr-text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Editorial Showcase Section */
.showcase {
    background-color: var(--clr-bg);
    padding-top: var(--spacing-xxl);
}

.showcase-block {
    display: flex;
    align-items: center;
    gap: 8rem;
    margin-bottom: var(--spacing-xxl);
}

.showcase-block.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.showcase-header {
    position: relative;
    margin-bottom: 3rem;
}

.showcase-num {
    position: absolute;
    top: -5rem;
    left: -2rem;
    font-family: var(--font-heading);
    font-size: 12rem;
    color: var(--clr-primary);
    opacity: 0.1;
    z-index: -1;
    line-height: 1;
}

.showcase-title {
    font-size: 4.5rem;
    line-height: 1;
}

.showcase-text {
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 90%;
}

.showcase-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.showcase-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Image Reveal Effect */
.reveal-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-bg);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-overlay.visible::after {
    transform: scaleY(0);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: var(--clr-text);
}

.link-arrow::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--clr-text);
    margin-left: 1rem;
    transition: width 0.4s ease;
}

.link-arrow:hover::after {
    width: 50px;
}

/* CTA Parallax Background */
.parallax-bg-cta {
    background-image: url('../images/cta_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: var(--spacing-xxl) 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 33, 31, 0.75); /* Dark olive overlay */
}

/* Footer */
.footer {
    background-color: var(--clr-bg);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    order: 3;
    text-align: right;
}

.footer-brand .logo img {
    margin-left: auto;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand .italic {
    font-size: 1.2rem;
    color: var(--clr-text-light);
}

.footer h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--clr-text-light);
    font-weight: 400;
}

.footer ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer ul li:first-child {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer ul a, .footer-contact p {
    color: var(--clr-text);
    font-size: 0.95rem;
}

.footer ul a:hover {
    color: var(--clr-primary);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--clr-text-light);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Animations Classes */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 1024px) {
    .showcase-block {
        gap: 4rem;
    }
}
@media (max-width: 900px) {
    .showcase-block, .showcase-block.reverse {
        flex-direction: column;
        text-align: center;
    }
    .showcase-num {
        left: 50%;
        transform: translateX(-50%);
    }
    .link-arrow {
        justify-content: center;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(251, 250, 248, 0.98);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav.mobile-active {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .header-container {
        padding: 1rem;
        position: relative;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .header .btn-outline {
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

.logo img { max-height: 80px; width: auto; display: block; transition: max-height 0.3s ease; }
.header.scrolled .logo img { max-height: 45px; }
.footer-brand .logo img { max-height: 120px; margin-bottom: 1rem; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--clr-text); }
@media (max-width: 900px) { .mobile-menu-btn { display: block; } }
