:root {
    /* Color Palette from Logo */
    --clr-bg: #fdf9f3; /* Richer Cream */
    --clr-primary: #423224; /* Deep, luxury earth brown */
    --clr-accent: #8b5d33; /* Warm bronze / cognac */
    --clr-dark: #2a1f17;
    --clr-olive: #606d4e; /* Muted olive for subtle accents */
    --clr-text-main: #3d3b36;
    --clr-text-muted: #6e6b66;
    --clr-white: #ffffff;
    --clr-overlay: rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing & Borders */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --radius: 12px;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 40px rgba(78, 48, 32, 0.05);
    --shadow-hover: 0 30px 60px rgba(78, 48, 32, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.grid {
    display: grid;
    gap: 80px;
    align-items: center;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-weight: 500;
}

h1 { letter-spacing: -1px; }

/* Label & Titles */
.label {
    display: inline-block;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-left: 60px;
}

.label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45px;
    height: 1px;
    background-color: var(--clr-accent);
}

h2 {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 30px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(78, 48, 32, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1); /* White logo for dark background */
}

header.scrolled .logo img {
    height: 55px;
    filter: none; /* Original color for light background */
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-white); /* White links by default */
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header.scrolled .nav-links a {
    color: var(--clr-primary); /* Dark links when scrolled */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--clr-accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--clr-accent);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Prevent overlap with fixed header */
    position: relative;
    color: var(--clr-white);
    overflow: hidden;
    background-color: #2a1f17;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeInUp 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero .subtitle {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-size: 13px;
    margin-bottom: 30px;
    color: var(--clr-bg);
}

.hero h1 {
    font-size: clamp(54px, 10vw, 110px);
    color: var(--clr-white);
    line-height: 0.9;
    margin-bottom: 40px;
}

.hero p {
    font-size: 19px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 22px 48px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 2px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: 1px solid var(--clr-primary);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--clr-white);
    transform: translateY(-5px);
}

.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--clr-white);
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    border-color: var(--clr-white);
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about .grid {
    grid-template-columns: 1.1fr 1fr;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--clr-text-muted);
    font-size: 17px;
}

.about-image {
    position: relative;
    padding: 20px;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--clr-accent);
    transform: translate(-45%, -45%);
    z-index: -1;
    pointer-events: none;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 20px 20px 80px rgba(0,0,0,0.15);
}

/* Mission Section */
.mission {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--clr-bg);
}

.mission-box {
    max-width: 900px;
    margin: 0 auto;
}

.mission-box h2 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--clr-primary);
    margin-bottom: 30px;
}

.mission-box p {
    font-size: 19px;
    color: var(--clr-text-muted);
    font-weight: 300;
}

/* Collections Grid (Tiles) */
.collections {
    padding: var(--section-padding);
    background-color: #f7f2ea;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-tile {
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--clr-white);
}

.category-tile h3 {
    color: var(--clr-white);
    font-size: 36px;
    margin-bottom: 10px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.tile-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    color: var(--clr-bg);
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile:hover h3 {
    transform: translateY(0);
}

.category-tile:hover .tile-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-utilities i {
    cursor: pointer;
    color: var(--clr-white); /* White icons by default */
    font-size: 18px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-utilities i {
    color: var(--clr-primary); /* Dark icons when scrolled */
}

.nav-utilities i:hover {
    color: var(--clr-accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    transition: var(--transition-smooth);
    padding: 10px;
    margin-right: -10px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background-color: var(--clr-white); /* White spans for dark background */
    transition: var(--transition-smooth);
    display: block;
}

header.scrolled .mobile-menu-btn span {
    background-color: var(--clr-primary); /* Dark spans for light background */
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-btn.active span {
    background-color: var(--clr-primary); /* Always dark when menu is open */
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 31, 23, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-contact i {
    color: var(--clr-accent);
    width: 20px;
}

.footer-social .social-icons {
    margin-top: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tile {
        height: 300px;
    }
    
    .tile-overlay h3 {
        font-size: 28px;
    }
}

/* Quote Section */
.quote-section {
    padding: 150px 0;
    text-align: center;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 200px;
    line-height: 1;
    opacity: 0.1;
    pointer-events: none;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
    max-width: 1000px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

/* Visit Section */
.visit {
    padding: var(--section-padding);
}

.visit .grid {
    grid-template-columns: 1fr 1.3fr;
}

.info-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.info-item .icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f7f2ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item i {
    font-size: 20px;
    color: var(--clr-accent);
}

.info-item h4 {
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.info-item p {
    color: var(--clr-text-muted);
    font-size: 16px;
}

.map-container {
    height: 600px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
}

/* Footer */
footer {
    background-color: var(--clr-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 350px;
    font-size: 17px;
    line-height: 1.8;
}

.footer-links h4, .footer-social h4 {
    color: var(--clr-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 40px;
}

.footer-links ul li {
    margin-bottom: 18px;
}

.footer-links a:hover {
    color: var(--clr-bg);
    padding-left: 12px;
}

.social-icons {
    display: flex;
    gap: 25px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    color: var(--clr-white);
}

.social-icons a:hover {
    background-color: var(--clr-white);
    color: var(--clr-dark);
    border-color: var(--clr-white);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    font-size: 13px;
    letter-spacing: 1px;
}

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

/* Mobile Responsive Improvements */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }
    
    .grid {
        gap: 40px;
    }
}

@media (max-width: 968px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Fixed mobile issues */
    .container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--clr-bg);
        z-index: 1500;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        gap: 30px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .nav-utilities {
        gap: 15px;
    }

    .nav-utilities .fa-search {
        display: none; /* Hide search on mobile by default */
    }

    header {
        padding: 20px 0;
    }

    header.scrolled {
        padding: 10px 0;
    }

    .logo img {
        height: 50px;
    }

    header.scrolled .logo img {
        height: 45px;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: clamp(40px, 12vw, 60px);
        margin-bottom: 30px;
    }

    .hero p {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 18px 30px;
    }

    .btn.secondary {
        margin-left: 0;
    }

    /* Sections */
    .grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .label {
        padding-left: 0;
    }

    .label::before {
        display: none;
    }

    .mission-box h2 {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-tile {
        height: 300px;
    }

    .tile-overlay h3 {
        font-size: 28px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 90%;
        margin: 0 auto;
    }

    .about-image::after {
        display: none;
    }

    .quote-section {
        padding: 100px 0;
    }

    .quote-section blockquote {
        font-size: 28px;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .map-container {
        height: 350px;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 30px;
    }

    .footer-logo {
        height: 60px;
        margin: 0 auto 30px;
    }

    .footer-links h4 {
        margin-bottom: 25px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* Fix for horizontal scroll on some mobile browsers */
body.nav-active {
    overflow: hidden;
}

/* Animation Refinements */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}
