/* ==========================================================================
   DIMUTHU FURNITURE - CSS DESIGN SYSTEM & STYLING
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & THEMES
   -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Theme: Light (Default) */
    --bg-primary: #FAF9F6;
    --bg-secondary: #F2EFE9;
    --bg-card: #FFFFFF;
    --bg-header: rgba(250, 249, 246, 0.85);
    
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #878179;
    
    --accent-wood: #854D0E;      /* Rich Teak */
    --accent-wood-hover: #A16207;
    --accent-gold: #CA8A04;      /* Golden Oak */
    --accent-gold-light: #FEF08A;
    
    --border-color: #E7E5E4;
    --border-light: rgba(133, 77, 14, 0.08);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 16px -4px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 20px 32px -8px rgba(28, 25, 23, 0.08);
    --shadow-primary: 0 8px 20px rgba(133, 77, 14, 0.15);
    
    --overlay-dark: rgba(28, 25, 23, 0.45);
    --overlay-glass: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(12px);

    /* Layout & Constants */
    --header-height: 80px;
    --container-width: 1280px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme: Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0C0A09;       /* Obsidian Black */
    --bg-secondary: #171412;     /* Dark Charcoal Wood */
    --bg-card: #1C1917;          /* Soft Card Grey */
    --bg-header: rgba(12, 10, 9, 0.85);
    
    --text-primary: #F5F5F4;
    --text-secondary: #D6D3D1;
    --text-muted: #A8A29E;
    
    --accent-wood: #A16207;      /* Light Teak Brown */
    --accent-wood-hover: #B45309;
    --accent-gold: #854D0E;      /* Rich Wood Brown */
    --accent-gold-light: rgba(161, 98, 7, 0.15);
    
    --border-color: #2E2A24;
    --border-light: rgba(245, 158, 11, 0.1);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 40px -8px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 24px rgba(245, 158, 11, 0.2);
    
    --overlay-dark: rgba(0, 0, 0, 0.75);
    --overlay-glass: rgba(28, 25, 23, 0.7);
}

/* Transition Helper to Animate Theme Toggling */
.theme-transition,
.theme-transition * {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease !important;
}

/* --------------------------------------------------------------------------
   2. ACCESSIBILITY & BASE RESETS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial; /* Handled smoothly by Lenis */
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: transparent;
    transition: var(--transition-base);
}

/* Keyboard Focus States */
:focus-visible {
    outline: 2px solid var(--accent-wood);
    outline-offset: 4px;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background-color: var(--accent-wood);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 500;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-wood), var(--accent-gold));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   3. REUSABLE UTILITIES & LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 120px 0;
    }
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

@media (min-width: 768px) {
    .section-heading {
        margin-bottom: 70px;
    }
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-wood);
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .section-heading h2 {
        font-size: 3rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    border-radius: 100px; /* Elegant iOS Pill Shape */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

/* Wood-Theme Hover Animation */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Elegant Wood Texture Gradient */
    background: linear-gradient(90deg, 
        var(--accent-wood) 0%, 
        var(--accent-wood-hover) 50%, 
        var(--accent-wood) 100%);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 20px -10px var(--accent-wood);
    border-color: transparent;
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. PAGE LOADER
   -------------------------------------------------------------------------- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
}

.loader-content {
    text-align: center;
}

.loader-content h1 {
    font-size: 2.5rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.loader-content span {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--accent-wood);
    text-transform: uppercase;
    font-weight: 600;
}
.loader-line {
    width: 120px;
    height: 2px;
    background-color: var(--border-color);
    margin: 24px auto 0;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}
.loader-fill {
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-wood);
    animation: loader-slide 1.5s infinite ease-in-out;
}
@keyframes loader-slide {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Loader Logo */
.loader-logo {
    max-width: 180px; /* Adjust as needed */
    height: auto;
    margin: 0 auto 20px; /* Center and add space below */
}

@media (max-width: 480px) {
    .loader-logo {
        max-width: 140px;
    }
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
    transition: var(--transition-base);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex; /* Make logo a flex container to align image and text */
    align-items: center;
}

.nav-logo {
    height: 40px; /* Default size for desktop */
    width: auto;
    margin-right: 10px;
    transition: var(--transition-base);
}

@media (max-width: 480px) {
    .nav-logo {
        height: 30px; /* Smaller on mobile */
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem;
    }
}

.nav-links {
    display: none;
    list-style: none;
    gap: 36px;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
        margin: 0 auto;
    }
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-wood);
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

@media (max-width: 991.98px) {
    .nav-actions {
        margin-left: auto;
    }
}

#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.nav-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--accent-wood);
    background-color: transparent;
    border: 2px solid var(--accent-wood);
    transition: all 0.4s ease;
}

.nav-call-btn:hover {
    background-color: var(--accent-wood);
    color: #FFFFFF;
    transform: rotate(15deg) scale(1.1);
}

#theme-toggle:hover {
    background-color: var(--border-color);
    transform: scale(1.05);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Drawer Overlay styles (controlled via JS) */
@media (max-width: 991.98px) {
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        padding: 40px 24px;
        gap: 24px;
        z-index: 998;
        box-shadow: var(--shadow-lg);
        animation: slideInLeft 0.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    }

    .header.scrolled .nav-links.mobile-open {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-links.mobile-open a {
        font-size: 1.4rem;
        font-family: var(--font-heading);
    }

}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 100px) 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/images/hero/hero-img.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.6) 0%, rgba(12, 10, 9, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.2rem;
    }
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    margin: 0 auto 40px;
    max-width: 550px;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.3rem;
    }
}

.hero .btn-primary {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
}

.hero .btn-primary::before {
    background: #FFFFFF;
}

.hero .btn-primary:hover {
    color: var(--accent-wood);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--accent-wood);
    border-radius: 2px;
    animation: scroll-wheel 1.6s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 0; }
    30% { opacity: 1; }
    80% { top: 20px; opacity: 0; }
    100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
    background-color: var(--accent-wood);
    color: #FFFFFF;
    overflow: hidden;
    padding: 24px 0;
    border-bottom: 4px solid var(--accent-gold);
}

.marquee {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    gap: 40px;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   8. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 80px;
    }
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    /* Added matching background color to keep it seamless while loading */
    background-color: var(--bg-secondary, #f4eee8); 
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix: Vertically shifts the frame down to crop out the top shop banner */
    object-position: 50% 88%;
    display: block;
    
    /* Blend Filters: Warms up wood tones and reduces harsh modern background colors */
    filter: sepia(0.15) saturate(0.95) contrast(1);
    
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Subtle elegant hover effect - clears the filter slightly on focus */
.about-image:hover img {
    transform: scale(1.025);
    filter: sepia(0.05) saturate(1.2) contrast(1.02);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-content p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.5;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   9. CATEGORIES
   -------------------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.category-card img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

.category-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0) 0%, rgba(12, 10, 9, 0.8) 100%);
    color: #FFFFFF;
    transition: var(--transition-base);
}

.category-card h3 {
    font-size: 1.35rem;
    color: #FFFFFF;
    transform: translateY(8px);
    transition: var(--transition-slow);
}

/* Card Hover States */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card:hover h3 {
    transform: translateY(0);
    color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   10. WHY CHOOSE US
   -------------------------------------------------------------------------- */
.why-us {
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.feature-card svg {
    color: var(--accent-wood);
    margin-bottom: 24px;
    width: 44px;
    height: 44px;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   11. FILTERABLE GALLERY
   -------------------------------------------------------------------------- */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.gallery-filter button {
    padding: 10px 24px;
    border-radius: 30px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.gallery-filter button.active,
.gallery-filter button:hover {
    background-color: var(--accent-wood);
    color: #FFFFFF;
    border-color: var(--accent-wood);
    box-shadow: var(--shadow-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-slow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

.gallery-item-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0) 40%, rgba(12, 10, 9, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item-info h4 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.gallery-item-info span {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Gallery Hover effects */
.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-item-info {
    opacity: 1;
}

/* Class applied by JS filter animation */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: scaleUp 0.4s ease forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   12. REVIEWS SLIDER
   -------------------------------------------------------------------------- */
.reviews {
    background-color: var(--bg-secondary);
    position: relative;
}

/* Slider structural styles overrides default HTML output */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform var(--transition-slow);
    will-change: transform;
}

.review {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .review {
        padding: 50px;
    }
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold-light);
    object-fit: cover;
}

.review-meta h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    font-family: var(--font-body);
}

.review-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.review .stars {
    color: #FBBF24;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Navigation UI */
.slider-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.slider-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.slider-btn:hover {
    background-color: var(--accent-wood);
    color: #FFFFFF;
    border-color: var(--accent-wood);
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.slider-dot.slider-dot[aria-selected="true"] {
    background-color: var(--accent-wood);
    width: 24px;
    border-radius: 5px;
}

/* --------------------------------------------------------------------------
   13. VISIT US & MAP
   -------------------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 60px;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-card {
    display: flex;
    gap: 20px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    color: var(--accent-wood);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.map-container {
    height: 100%;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   14. CALL TO ACTION (CTA)
   -------------------------------------------------------------------------- */
.cta {
    color: #FFFFFF;
    text-align: center;
    position: relative;
    padding: 80px 0; /* Re-add section padding */
}
@media (min-width: 768px) {
    .cta {
        padding: 120px 0;
    }
}

/* Remove CTA's own background and pattern, now handled by wrapper */
.cta::before {
    display: none;
}

/* New wrapper for CTA and Footer */
.cta-footer-wrapper {
    background: linear-gradient(135deg, var(--accent-wood) 0%, #452402 100%);
    position: relative;
    overflow: hidden;
}

.cta-footer-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--accent-gold-light) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .cta-footer-wrapper {
    background: linear-gradient(135deg, #2b1a05 0%, #0c0a09 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .cta h2 {
        font-size: 3.2rem;
    }
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .cta p {
        font-size: 1.25rem;
    }
}

.cta .btn-primary {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
}

.cta .btn-primary::before {
    background: #FFFFFF;
}

.cta .btn-primary:hover {
    color: var(--accent-wood);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.3);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 576px) {
    .cta-actions {
        flex-direction: row;
    }
}

.cta-actions .btn {
    width: 100%;
}

@media (min-width: 576px) {
    .cta-actions .btn {
        width: auto;
    }
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    position: relative; /* Keep relative for glass card positioning */
    margin-top: 0; /* Remove margin-top as it's part of the wrapper */
    padding: 60px 0; /* Add some padding to the footer itself, background is handled by wrapper */
    clip-path: none; /* Remove angled shape */
    z-index: 2; /* Ensure footer content is above wrapper's ::before */
}

[data-theme="dark"] .footer {
}

.footer-glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 40px; /* iOS style large curves */
    padding: 60px 40px 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand-section {
    max-width: 700px;
    width: 100%;
    margin-bottom: 50px;
}

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .footer-logo-wrapper {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
}

.footer-logo-wrapper img {
    height: 70px;
    width: auto;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    line-height: 1;
}

.footer-slogan {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-wood);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 5px;
}

.footer-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-social-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-pill {
    width: 54px;
    height: 54px;
    border-radius: 18px; /* iOS Squircle shape */
    background: rgba(133, 77, 14, 0.1); /* Matching CTA wood tones */
    color: var(--accent-wood);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] .social-pill {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-pill:hover {
    background-color: var(--accent-wood);
    color: #FFFFFF;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(133, 77, 14, 0.2);
}

.footer-legal {
    width: 100%;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal .credits a {
    color: var(--accent-wood);
    font-weight: 600;
}

.footer-legal .credits a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-legal {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-glass-card {
        padding: 80px 60px 40px;
    }
}

/* --------------------------------------------------------------------------
   16. PAGE UP BUTTON
   -------------------------------------------------------------------------- */
.page-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999; /* Above other content but below loader */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--accent-wood);
    background-color: var(--bg-card);
    border: 2px solid var(--accent-wood);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    opacity: 0; /* Initially hidden */
    visibility: hidden;
    transform: translateY(20px); /* Start slightly off-screen for animation */
}

.page-up-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-up-btn:hover {
    background-color: var(--accent-wood);
    color: #FFFFFF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.page-up-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .page-up-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .page-up-btn svg {
        width: 20px;
        height: 20px;
    }
}
