/* ==========================================================================
   SECTION 1: ROOT VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    /* Rich Warm Color Palette */
    --bg-page: #fdfbf7;
    --text-color: #2c1a11;
    --accent-action: #d97706;
    --accent-hover: #b45309;
    --muted-labels: #78350f;

    /* Segment Color-Blocking */
    --bg-rose: #fef2f2;
    --bg-sage: #f0f4f1;
    --bg-lavender: #f3f0f7;
    --bg-cream: #f9f5eb;

    --nav-bg: rgba(253, 251, 247, 0.92);
    --card-surface: #fffdfa;
    --card-border: #e6dfd3;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --attn-height: 55px;

    /* Compact variables */
    --compact-bg: #fdfbf7;
    --compact-text: #2c1a11;
    --compact-muted: #7a6657;
    --compact-gold: #d97706;
    --compact-border: #e6dfd3;
    --compact-card: #fffdfa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Lock horizontal scrolling completely */
    position: relative;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-color);
    /* Keeps overflow container clipping strictly controlled */
    -webkit-overflow-scrolling: touch; 
}

/* ==========================================================================
   SECTION 2: PROMO BANNER (ATTENTION WRAPPER)
   ========================================================================== */
.custom-attn-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    min-height: var(--attn-height);
    display: flex;
    align-items: center;
    z-index: 99999;
    padding: 8px 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
}

.custom-attn-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.custom-attn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: center;
}


/* ==========================================================================
   SECTION 3: NAVIGATION HEADER & MOBILITY
   ========================================================================== */
nav {
    position: fixed;
    top: var(--attn-height);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid var(--card-border);
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, padding 0.3s ease;
}

nav.nav-up {
    top: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-container:hover .nav-logo {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--accent-action);
}

.nav-right-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Cart Icon Visibility Rules --- */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-color) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-icon-wrapper svg {
    fill: currentColor;
    stroke: currentColor;
    width: 24px;
    height: 24px;
    display: block;
    transition: var(--transition);
}

.cart-icon-wrapper:hover {
    color: var(--accent-action) !important;
}

.cart-icon-wrapper:hover svg {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-action);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(219, 119, 6, 0.4);
}

/* --- Burger Menu Icon --- */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: rgba(44, 26, 17, 0.05);
    border-radius: 12px;
    padding: 11px 10px;
    transition: var(--transition);
}

.burger div {
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    margin: 4px auto;
    transition: var(--transition);
}

/* RESPONSIVE NAVBAR */
@media screen and (max-width: 992px) {
    nav {
        padding: 0.6rem 5%;
    }

    .nav-logo {
        height: 50px;
    }

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 300px;
        max-width: 85%;
        background: var(--card-surface);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 120px 40px;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        left: auto;
        transform: none;
        z-index: 999;
        border-left: 2px solid var(--card-border);
        box-shadow: -10px 0 30px rgba(44, 26, 17, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .burger.toggle .line2 {
        opacity: 0;
        transform: translateX(15px);
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}


/* ==========================================================================
   SECTION 4: HERO SHOWCASE SLIDER
   ========================================================================== */
   .hero-slider {
    position: relative;
    width: 100%;
    margin-top: calc(var(--attn-height) + 85px);
    aspect-ratio: 1920 / 1080; /* Matches desktop dimensions perfectly */
    overflow: hidden;
    background: #ecdcb9;
    border-bottom: 2px solid var(--card-border);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    display: flex;
    align-items: center;
    padding: 0 10%;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    opacity: 0.3;
    transform: translateX(40px);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.5s ease-out;
}

.slide.active .slide-image {
    opacity: 1;
    transform: translateX(0);
}

/* DESKTOP BACKGROUND IMAGES (1920x1080) */
.slide-image.slide-1 { background-image: url('../img/products/Hero_1_1920x1080.png'); }
.slide-image.slide-2 { background-image: url('../img/products/Hero_2_1920x1080.png'); }
.slide-image.slide-3 { background-image: url('../img/products/Hero_1_1920x1080.png'); }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(44, 26, 17, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent-action);
    width: 26px;
    border-radius: 10px;
}

/* RESPONSIVE HERO & MOBILE IMAGES (1024x1536) */
@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 1024 / 1536; /* Forces the box to match portrait proportions */
        margin-top: calc(var(--attn-height) + 65px);
    }

    /* Notice: No space between the classes. This targets the element that has BOTH classes. */
    .slide-image.slide-1 { background-image: url('../img/products/hero-mobile.png'); }
    .slide-image.slide-2 { background-image: url('../img/products/hero-mobile2.png'); }
    .slide-image.slide-3 { background-image: url('../img/products/hero-mobile.png'); } 

    .slide-image {
        transform: translateY(30px) translateX(0);
    }

    .slide.active .slide-image {
        transform: translateY(0) translateX(0);
    }

    .slide {
        padding: 0 5%;
        justify-content: center;
    }
}


/* ==========================================================================
   SECTION 5: STOREFRONT PRODUCT CARDS & GRID LAYOUT (5-COLUMNS)
   ========================================================================== */
   .shop-section {
    padding: 100px 5%;
}

.section-rose { background-color: var(--bg-rose); }
.section-sage { background-color: var(--bg-sage); }
.section-lavender { background-color: var(--bg-lavender); }

.shop-container {
    max-width: 1400px; /* Expanded slightly to give 5 columns breathing room */
    margin: 0 auto;
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
}

.shop-label {
    color: var(--accent-action);
    letter-spacing: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.shop-title {
    font-size: 2.6rem;
    margin-top: 10px;
    font-weight: 400;
    color: var(--text-color);
}

.shop-underline {
    width: 60px;
    height: 3px;
    background: var(--accent-action);
    margin: 20px auto;
    border-radius: 10px;
}

/* Updated to 5 columns for desktop viewports */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px; /* Reduced gap slightly to fit smaller cards comfortably */
}

.product-card {
    background-color: var(--card-surface);
    border: 2px solid var(--card-border);
    border-radius: 14px;
    padding: 12px; /* Tighter padding for a more compact footprint */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(44, 26, 17, 0.05);
    position: relative;
    overflow: hidden;
}

/* Scaled down height from 310px to 230px to match smaller card widths */
.product-img-wrap {
    height: 230px; 
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f4eee1;
    border: 1px solid rgba(44, 26, 17, 0.08);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover {
    border-color: var(--accent-action);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(44, 26, 17, 0.1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 26, 17, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.shop-now-btn {
    background: var(--accent-action);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.shop-now-btn:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.product-details {
    padding: 14px 4px 4px;
}

.p-category {
    font-size: 0.7rem;
    color: var(--muted-labels);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-block;
}

/* Scaled down font sizing so text wraps cleanly in narrow columns */
.product-details h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

.p-price {
    font-weight: 800;
    color: var(--accent-action);
    font-size: 1.05rem;
    border-top: 1px dashed var(--card-border);
    padding-top: 10px;
    display: block;
}

.product-card.hidden-card { display: none !important; }
.product-card.hidden-card.active {
    display: flex !important;
    animation: smoothReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes smoothReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.shop-footer {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.shop-btn {
    background: var(--card-surface);
    border: 2px solid var(--accent-action);
    color: var(--text-color);
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    gap: 10px;
    align-items: center;
}

.shop-btn:hover {
    background: var(--accent-action);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.2);
}

/* RESPONSIVE SHOP LAYOUT */
@media (max-width: 1200px) {
    .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (max-width: 992px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-img-wrap { height: 210px; }
}

@media (max-width: 650px) {
    .shop-section { padding: 60px 4%; }
    .shop-header { margin-bottom: 35px; }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-card { padding: 10px; border-radius: 12px; }
    .product-img-wrap { height: 170px !important; }
    .product-details { padding: 10px 4px 2px; }
    .product-details h3 { font-size: 0.9rem !important; margin-bottom: 6px; }
    .p-price { font-size: 0.9rem !important; padding-top: 8px; }
    .p-category { font-size: 0.65rem; margin-bottom: 2px; }
    .shop-now-btn { padding: 8px 14px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .product-img-wrap { height: 145px !important; }
}


/* ==========================================================================
   SECTION 6: PREMIUM & LARGE LAYOUT MODULES (THE SPECIAL COLLECTION)
   ========================================================================== */

/* Base Grid Options */
.grid-three-large {
    display: grid;
    /* Forces exactly 3 items per row on desktop viewports */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Balanced spacing for a 3-column split */
    max-width: 1300px;
    margin: 0 auto;
}

/* --- SPECIAL TWO-COLUMN GRID CONFIGURATION --- */
.grid-two-large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Base Premium Card Styling */
.premium-card {
    padding: 16px;
    background-color: var(--card-surface);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(44, 26, 17, 0.05);
}

.premium-card:hover {
    border-color: var(--accent-action);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(44, 26, 17, 0.12);
}

/* Optimized image ratio for desktop presentation */
.premium-card .product-img-wrap {
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9; /* Optional: adds a clean backdrop if the image has a transparent background */
}

/* CHANGED TO CONTAIN: Guarantees the full image displays without cropping */
.premium-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.premium-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-color);
    line-height: 1.4;
}


/* ==========================================================================
   RESPONSIVE PREMIUM DISPLAY & MOBILE OPTIMIZATION
   ========================================================================== */

/* Small Desktops / Large Tablets */
@media (max-width: 1100px) {
    .grid-three-large { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px;
    }
    .premium-card .product-img-wrap {
        height: 300px;
    }
}

/* Medium Tablets */
@media screen and (max-width: 992px) {
    .grid-two-large { 
        gap: 30px; 
        padding: 0 20px; 
    }
}

/* Mobile & Small Tablets View (Forces exactly 1 card per row) */
@media (max-width: 768px) {
    .grid-two-large,
    .grid-three-large { 
        grid-template-columns: 1fr !important; 
        max-width: 500px; 
        gap: 24px !important;
    }

    .premium-card {
        padding: 16px;
        border-radius: 14px;
    }

    /* Keeps your 1024x1024 source images perfectly square on mobile */
    .premium-card .product-img-wrap { 
        height: auto !important; 
        aspect-ratio: 1 / 1; 
    }

    .premium-card h3 { 
        font-size: 1.1rem !important; 
        margin-bottom: 8px;
    }
}

/* Extra Small Mobile Viewports */
@media (max-width: 480px) {
    .grid-two-large,
    .grid-three-large {
        padding: 0 15px;
    }
}


/* ==========================================================================
   SECTION 7: CART SIDEBAR SYSTEM
   ========================================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--card-surface);
    border-left: 2px solid var(--card-border);
    z-index: 100000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(44, 26, 17, 0.15);
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 26, 17, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--card-border);
}

.cart-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--accent-action);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 30px;
}

.empty-msg {
    text-align: center;
    color: #7a6657;
    margin-top: 40px;
    font-size: 0.95rem;
    font-style: italic;
}

/* DYNAMIC CART ITEMS INNER SYSTEM */
#cart-items-container .cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px 0 !important;
    border-bottom: 1px dashed var(--card-border) !important;
    position: relative !important;
}

#cart-items-container .cart-item:last-child {
    border-bottom: none !important;
}

#cart-items-container .cart-item-img {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    background-color: var(--bg-cream) !important;
    border: 1px solid rgba(44, 26, 17, 0.08) !important;
}

#cart-items-container .cart-item-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

#cart-items-container .cart-item-info h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cart-items-container .cart-item-info p {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--accent-action) !important;
    margin: 0 !important;
}

#cart-items-container .qty-control {
    display: flex !important;
    align-items: center !important;
    background-color: var(--bg-cream) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 6px !important;
    width: max-content !important;
    margin-top: 4px !important;
    overflow: hidden !important;
}

#cart-items-container .qty-control button {
    background: transparent !important;
    border: none !important;
    color: var(--text-color) !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, color 0.2s !important;
}

#cart-items-container .qty-control button:hover {
    background-color: var(--accent-action) !important;
    color: #ffffff !important;
}

#cart-items-container .qty-control span {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    padding: 0 8px !important;
    min-width: 24px !important;
    text-align: center !important;
}

#cart-items-container .remove-item-icon {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #a38d7d !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
    padding: 5px !important;
}

#cart-items-container .remove-item-icon:hover {
    color: #991b1b !important;
}

.cart-footer {
    padding: 24px 30px;
    border-top: 2px solid var(--card-border);
    background-color: var(--bg-page);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    background: var(--accent-action);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.2);
}

/* RESPONSIVE SIDEBAR */
@media (max-width: 450px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
        border-left: none;
    }

    .cart-header,
    .cart-body,
    .cart-footer {
        padding: 20px;
    }

    .cart-header h2 {
        font-size: 1.25rem;
    }
}


/* ==========================================================================
   SECTION 8: BRAND STORY / ABOUT SEGMENT
   ========================================================================== */
.about-section {
    padding: 140px 5%;
    background-color: var(--bg-cream);
    border-top: 2px solid var(--card-border);
    border-bottom: 2px solid var(--card-border);
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.about-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.25;
}

.about-underline {
    width: 60px;
    height: 3px;
    background: var(--accent-action);
    margin: 25px 0;
    border-radius: 10px;
}

.about-text {
    color: #4a3728;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-action);
}

.stat-desc {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-labels);
    font-weight: 700;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 560px;
}

.visual-accent-line {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 70%;
    height: 85%;
    border-left: 3px solid var(--accent-action);
    border-top: 3px solid var(--accent-action);
    opacity: 0.3;
    z-index: 1;
}

.img-luxury-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 80%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(44, 26, 17, 0.06);
    border: 2px solid var(--card-border);
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-luxury-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid var(--bg-cream);
    box-shadow: 0 15px 30px rgba(44, 26, 17, 0.06);
    outline: 2px solid var(--card-border);
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESPONSIVE ABOUT STORY */
@media screen and (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .about-content {
        text-align: center;
    }

    .about-underline {
        margin: 25px auto;
    }

    .about-stats {
        justify-content: center;
    }

    .image-gallery-wrapper {
        max-width: 420px;
        height: 500px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .image-gallery-wrapper {
        max-width: 100%;
        height: 400px;
    }

    .visual-accent-line {
        display: none;
    }
}


/* ==========================================================================
   SECTION 9: PHILOSOPHY GRID STRUCTURES
   ========================================================================== */
.philosophy-section {
    padding: 100px 5%;
    background: var(--bg-page);
}

.philosophy-container {
    max-width: 1300px;
    margin: 0 auto;
}

.philosophy-header {
    text-align: center;
    margin-bottom: 80px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.philosophy-card {
    background: var(--bg-cream);
    padding: 50px 30px;
    border-radius: 20px;
    border: 2px solid var(--card-border);
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.philosophy-card:hover {
    border-color: var(--accent-action);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 26, 17, 0.08);
}

.philosophy-card h3 {
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.3rem;
}

.philosophy-card p {
    color: #4a3728;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* RESPONSIVE PHILOSOPHY GRID */
@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* ==========================================================================
   SECTION 10: COMPACT SPLIT-SCREEN BRAND PHILOSOPHY
   ========================================================================== */
.philosophy-compact {
    background: var(--compact-bg);
    padding: 100px 8%;
}

.compact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.compact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.compact-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 26, 17, 0.06);
    aspect-ratio: 4 / 5;
    background: var(--compact-border);
}

.compact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.compact-image-frame:hover .compact-img {
    transform: scale(1.03);
}

.compact-image-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 253, 250, 0.95);
    backdrop-filter: blur(8px);
    color: var(--compact-text);
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    border: 1px solid var(--compact-border);
    transition: all 0.3s ease;
}

.compact-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--compact-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.compact-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--compact-text);
    line-height: 1.2;
}

.compact-divider {
    width: 50px;
    height: 2px;
    background: var(--compact-gold);
    margin: 18px 0 25px;
}

.main-statement {
    color: var(--compact-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.compact-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px dashed var(--compact-border);
    padding-top: 25px;
}

.pillar-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--compact-text);
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.pillar-item h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--compact-gold);
    border-radius: 50%;
}

.pillar-item p {
    font-size: 0.95rem;
    color: var(--compact-muted);
    line-height: 1.5;
    padding-left: 15px;
}

/* RESPONSIVE COMPACT PHILOSOPHY */
@media screen and (max-width: 992px) {
    .philosophy-compact {
        padding: 70px 5%;
    }

    .compact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* UPDATED: Changed from 16/10 to 1/1 square to balance look on medium tablets/mobiles */
    .compact-image-frame {
        aspect-ratio: 1 / 1;
        max-height: 450px;
        margin: 0 auto;
        width: 100%;
    }

    .compact-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .philosophy-compact {
        padding: 50px 4%;
    }

    /* UPDATED: Shifts back to an elegant portrait stance on small screens to fit your branding badge cleanly */
    .compact-image-frame {
        aspect-ratio: 4 / 5;
        max-height: 380px;
    }

    .compact-title {
        font-size: 1.5rem;
    }

    .main-statement {
        font-size: 1rem;
    }
    
    /* UPDATED: Shrinks padding and position slightly so it doesn't clutter the mobile shot */
    .compact-image-badge {
        bottom: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}


/* ==========================================================================
   SECTION 11: SCROLL-REVEAL SYSTEM ENGINE
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.17, 0.85, 0.438, 0.99);
}

.reveal.active {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   SECTION 12: CONTACT PORTAL LAYOUT & INPUT FIELDS
   ========================================================================== */
.contact-section {
    padding: 100px 5%;
    background: var(--bg-cream);
    border-top: 2px solid var(--card-border);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-desc {
    color: #4a3728;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: var(--card-surface);
    padding: 40px;
    border-radius: 24px;
    border: 2px solid var(--card-border);
}

.input-group {
    position: relative;
    margin-bottom: 40px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(44, 26, 17, 0.15);
    padding: 10px 0;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #7a6657;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-action);
    font-weight: 700;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-action);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* RESPONSIVE CONTACT PANEL */
@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


/* ==========================================================================
   SECTION 13: MODERN CLEAN BRAND FOOTER MODULE
   ========================================================================== */
.main-footer {
    background: var(--card-surface);
    padding: 80px 5% 40px;
    border-top: 2px solid var(--card-border);
    color: var(--text-color);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
}

.footer-column h4 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-color);
    opacity: 0.85; /* Softens color elegantly while inheriting base text theme */
    line-height: 1.6;
    margin: 20px 0;
    max-width: 300px;
}

/* --- Inline Social Media Icons Configuration --- */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.footer-social-svg {
    width: 16px;
    height: 16px;
    fill: var(--text-color);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: var(--text-color);
    border-color: var(--text-color);
}

.social-links a:hover .footer-social-svg {
    fill: var(--bg-page); /* Perfectly contrast dynamically back to the light background tint */
    transform: scale(1.08);
}

/* --- Navigation Links & Font Awesome Inline Spacing --- */
.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.85;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Smooth spacing rule targeting Font Awesome tags within links */
.footer-column ul li a i {
    width: 20px; 
    margin-right: 8px;
    text-align: center;
    color: var(--muted-labels); /* Uses palette's warm dark amber for section icons */
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--accent-action);
    opacity: 1;
    padding-left: 5px;
}

/* --- Newsletter Dynamic Input Wrapper --- */
.footer-newsletter {
    display: flex;
    align-items: center;
    margin-top: 20px;
    border-bottom: 2px solid var(--card-border);
}

.footer-newsletter input {
    background: transparent;
    border: none;
    padding: 12px 0;
    color: var(--text-color);
    flex: 1;
    outline: none;
    font-size: 0.95rem;
}

.footer-newsletter button {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: var(--transition);
}

.newsletter-svg {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.footer-newsletter button:hover .newsletter-svg {
    fill: var(--accent-action);
    transform: translateX(3px); /* Gives a subtle push forward effect when hovered */
}

/* --- Legal and Footer Bottom Section --- */
.footer-bottom {
    max-width: 1300px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 2px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--compact-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-action);
}

/* ==========================================================================
   RESPONSIVE FOOTER MODIFICATIONS
   ========================================================================== */
@media screen and (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center; /* Centers social links perfectly on tiny mobile configurations */
    }
}

/* Floating WhatsApp Button Container */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Boosted to ensure it sits above all overlays/menus */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* SVG Specific constraints */
.whatsapp-svg {
    width: 32px;
    height: 32px;
    fill: #ffffff; /* Forces vector color to white */
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustment for mobile screens */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-svg {
        width: 26px;
        height: 26px;
    }
}