/* --- CSS RESET & ROOT VARIABLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --kosh-ruby: #A52A2A;
    --mithai-gold: #C5A06D; /* A softer, more sophisticated gold */
    --ivory-cream: #F7F5F2; /* A warmer, more premium cream */
    --clove-brown: #362C23;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--ivory-cream);
    color: var(--clove-brown);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--clove-brown);
    display: grid;
    place-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-gem {
    width: 50px; height: 50px;
    background-color: var(--mithai-gold);
    animation: gem-load 1.5s infinite ease-in-out;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
@keyframes gem-load {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.8) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}
.preloader.hidden { opacity: 0; visibility: hidden; }

/* --- GLOBAL TYPOGRAPHY & BUTTONS --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(3.2rem, 7vw, 5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--mithai-gold);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}
.cta-button, .cta-button-large {
    display: inline-block;
    background: var(--kosh-ruby);
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-fast);
    border: 2px solid var(--kosh-ruby);
}
.cta-button-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.cta-button:hover, .cta-button-large:hover {
    background-color: transparent;
    color: var(--kosh-ruby);
    transform: translateY(-4px);
}

/* --- HEADER --- */
#header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}
#header.scrolled {
    background: rgba(247, 245, 242, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav.container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-logo img { height: 32px; width: 32px; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clove-brown);
}

/* --- HERO SECTION --- */
#hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8rem 0 4rem 0;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-subtext {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 1.5rem 0 2.5rem 0;
    color: #5c4f45;
}
.hero-content .line { overflow: hidden; }
.hero-content .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform var(--transition-slow);
    transition-delay: calc(0.05s * var(--word-index));
}
body.loaded .hero-content .word { transform: translateY(0); }

/* --- ANIMATIONS --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LAYOUT & SECTIONS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.content-section { padding: 7rem 0; }
.content-section-dark {
    padding: 7rem 0;
    background-color: var(--clove-brown);
    color: var(--ivory-cream);
}
.content-section-dark h2, .content-section-dark h3, .content-section-dark h4 { color: #fff; }
.content-section-dark .subtitle { color: var(--mithai-gold); }
.subtitle-dark { color: var(--mithai-gold); }
.section-title { text-align: center; margin-bottom: 4rem; }

/* --- GRID LAYOUT --- */
.grid-layout-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}
.grid-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.grid-text p { margin-bottom: 1rem; }
.reverse-grid .grid-image { grid-column: 2; grid-row: 1; }
.reverse-grid .grid-text { grid-column: 1; grid-row: 1; }

/* --- TREASURY SECTION --- */
.treasury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.treasury-card {
    border: 1px solid #4a3f35;
    padding: 2.5rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}
.treasury-card:hover {
    background-color: #4a3f35;
    transform: translateY(-8px);
}
.treasury-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--mithai-gold);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 7rem 0;
    text-align: center;
}
.cta-section .container { max-width: 700px; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { font-size: 1.15rem; margin-bottom: 2rem; }

/* --- FOOTER --- */
#footer {
    background: var(--clove-brown);
    color: var(--ivory-cream);
    text-align: center;
    padding: 4rem 0;
}
#footer .brand-logo { justify-content: center; }
#footer .brand-name { color: #fff; }
.footer-tagline { margin: 1rem 0 2rem 0; color: #aaa; }
.footer-socials { /* Placeholder */ }
.copyright { font-size: 0.9rem; color: #888; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .grid-layout-2col { grid-template-columns: 1fr; }
    .grid-image { grid-row: 1 !important; grid-column: 1 !important; margin-bottom: 3rem; }
    .grid-text { text-align: center; }
}