/* ==========================================================================
   BEACON HILL RUGS - Premium Luxury Design System & Style Sheet
   ========================================================================== */

/* Variables & Design Tokens */
:root {
    --color-bg: #0b0b0b;
    --color-card-bg: #121212;
    --color-card-hover: #1a1a1a;
    --color-primary: #d4af37; /* Metallic Gold */
    --color-primary-hover: #b8935b;
    --color-text: #eae6df; /* Soft Linen */
    --color-text-muted: #9f9b96;
    --color-border: rgba(212, 175, 55, 0.15);
    --color-border-hover: rgba(212, 175, 55, 0.35);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.25s ease;
    
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: clip;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

/* Common Layout Grids */
.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-2-simple {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

@media (max-width: 991px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Custom layout for visualizer */
.grid-custom {
    grid-template-columns: 1.2fr 0.8fr;
}

@media (max-width: 991px) {
    .grid-custom {
        grid-template-columns: 1fr;
    }
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: var(--transition-smooth);
    white-space: nowrap; /* Prevent button wrapping */
}

.btn-primary {
    background-color: var(--color-primary);
    color: #0b0b0b;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    color: #0b0b0b;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-light {
    background-color: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-text);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--color-text);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn i {
    margin-right: 0.6rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

/* Helper Text Classes */
.text-center { text-align: center; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Layout Utilities */
.section {
    padding: 6rem 0;
}

@media (max-width: 991px) {
    .section {
        padding: 4rem 0;
    }
}

.section-dark {
    background-color: var(--color-card-bg);
}

.section-tag {
    display: block;
    color: var(--color-primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-quick);
}

.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(11, 11, 11, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: var(--transition-quick);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 1rem; /* Ensure spacing between logo and nav links */
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem; /* Slightly smaller logo on desktop for better fit */
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    white-space: nowrap; /* Prevent logo wrapping */
}

.logo-subtext {
    font-size: 0.65rem;
    letter-spacing: 7px;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.8rem; /* Compact gap for 6 items in header */
    align-items: center;
}

.nav-link {
    font-size: 0.75rem; /* Slightly smaller text for 6 items */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    white-space: nowrap; /* Prevent menu link wrapping */
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--color-primary);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-quick);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-quick);
    font-family: var(--font-body);
}

.dropdown-item:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn.nav-cta {
    padding: 0.65rem 1.15rem; /* Slightly more compact CTA button */
    font-size: 0.75rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.nav {
    flex-shrink: 0;
}

/* Mobile Nav Styles */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-quick);
}

@media (max-width: 1200px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(11, 11, 11, 0.98);
        overflow: hidden;
        transition: var(--transition-smooth);
        border-bottom: 0px solid var(--color-border);
    }
    
    .header.scrolled .nav {
        top: 70px;
    }
    
    .nav.open {
        height: 520px; /* Increased to accommodate dropdown */
        border-bottom: 1px solid var(--color-border);
        overflow-y: auto;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        border-left: 2px solid rgba(255,255,255,0.1);
        box-shadow: none;
        min-width: auto;
        padding: 0.5rem 0 0 0;
        margin: 1rem 0 0 1rem;
        display: block;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-cta {
        display: none; /* Hide on tablet/mobile header */
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: calc(100vh - 180px);
}

.hero-content {
    max-width: 700px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 2rem 0;
}

.hero-tagline {
    display: block;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-description {
    font-size: 1.25rem;
    color: #dfdfdf;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 2s ease forwards;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.badge-item span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Heritage Section */
.heritage {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.heritage-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

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

.heritage-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    padding: 1.5rem;
}

.border-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 2px solid var(--color-primary);
    z-index: 1;
}

.heritage-img {
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 0 #121212;
    transition: var(--transition-smooth);
}

.heritage-img:hover {
    transform: translate(5px, 5px);
    box-shadow: 15px 15px 0 #121212;
}

/* Collections Cards */
.collections {
    padding: 8rem 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.collection-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    border-color: var(--color-border-hover);
    background-color: var(--color-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.collection-card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.card-img-wrapper:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    min-height: 3.9rem; /* Equal Title Area (supports 2 lines) */
}

.card-tag {
    color: var(--color-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    min-height: 2.2rem; /* Equal Subtitle Area */
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    min-height: 7.6rem; /* Equal Description Area (supports longest text) */
}

.card-details {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-details li {
    display: grid;
    grid-template-columns: 110px 1fr; /* Two-column layout */
    gap: 0.5rem;
    align-items: flex-start;
}

.card-details strong {
    color: var(--color-text);
}

/* Interactive Room Visualizer Section */
.visualizer-section {
    padding: 8rem 0;
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.visualizer-canvas-container {
    position: relative;
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visualizer-header-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(11, 11, 11, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-primary);
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
}

.visualizer-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background-color: #0b0b0b;
    overflow: hidden;
}

.room-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The magic 3D perspective wrapper */
.rug-overlay-container {
    position: absolute;
    bottom: 5%;
    left: 50%;
    /* Accurate perspective transformation mapping the flat rug flat onto the room's wooden floor */
    transform: translateX(-50%) perspective(450px) rotateX(68deg) rotateY(0deg) rotateZ(0deg) scaleX(1.3) scaleY(1.15);
    width: 48%;
    height: 40%;
    z-index: 5;
    pointer-events: none;
    transform-origin: bottom center;
}

.rug-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    opacity: 0.95;
    /* Soft drop shadow + blur matching floor height */
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.85)) brightness(0.9);
    transition: opacity 0.5s ease-out;
}

/* Loader Spinner */
.visualizer-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.6);
    backdrop-filter: blur(4px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visualizer-loader.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Visualizer Controls */
.visualizer-controls {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .visualizer-controls {
        padding-left: 0;
        margin-top: 3rem;
    }
}

.rug-selectors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rug-select-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background-color: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-quick);
}

.rug-select-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 175, 55, 0.25);
}

.rug-select-btn.active {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: var(--color-primary);
}

.selector-thumb {
    width: 60px;
    height: 45px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selector-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.selector-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.rug-specs-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.spec-row:last-of-type {
    border-bottom: none;
}

.spec-label {
    color: var(--color-text-muted);
}

.spec-value {
    font-weight: 500;
}

.spec-value.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.spec-note {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.spec-note i {
    color: var(--color-primary);
    margin-top: 0.1rem;
}

.visualizer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Services section */
.services {
    padding: 8rem 0;
}

.service-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 3rem 2.2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    background-color: var(--color-card-hover);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-quick);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-primary);
    color: #0b0b0b;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact & Appointment Form */
.contact {
    padding: 8rem 0;
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-detail-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.boston-badge {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background-color: rgba(212, 175, 55, 0.04);
    border-left: 3px solid var(--color-primary);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.boston-badge i {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 0.15rem;
}

/* Consultation Form Styling */
.contact-form-container {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.4s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--color-card-bg);
    color: var(--color-text);
}

.form-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.form-success-message.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.success-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.form-success-message h3 {
    margin-bottom: 0.8rem;
}

.form-success-message p {
    color: var(--color-text-muted);
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 2rem;
    }
}

/* Footer Section */
.footer {
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    max-width: 320px;
}

.footer-links h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-bottom-bar a {
    transition: color 0.2s ease;
}

.footer-bottom-bar a:hover {
    color: var(--color-primary);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Reveal on Scroll styling */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Charitable Giving Section
   ========================================================================== */
.charity {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(255, 255, 255, 0.005);
}

.gallery-item {
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    border-color: var(--color-border-hover) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.05) !important;
}

@media (max-width: 991px) {
    .charity .grid-2 {
        grid-template-columns: 1fr !important;
    }
}



/* ==========================================================================
   Blog Page & Reading Modal Styles
   ========================================================================== */
.blog-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(rgba(11, 11, 11, 0.75), rgba(11, 11, 11, 0.9)), url('images/showroom.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.blog-search-container {
    max-width: 500px;
    margin: -1.5rem auto 4rem;
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
}

.blog-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: #121212;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1rem;
    transition: var(--transition-quick);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.blog-search-container i {
    position: absolute;
    left: 2.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.1rem;
}

.blog-section {
    padding: 2rem 0 8rem;
}

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

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--color-border-hover);
    background-color: var(--color-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-bottom: 1px solid var(--color-border);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-tag {
    color: var(--color-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.blog-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.blog-card:hover .blog-card-link {
    color: var(--color-primary-hover);
    gap: 0.8rem;
}

/* Premium Reading Modal */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 2rem;
}

.blog-modal.active {
    opacity: 1;
    pointer-events: all;
}

.blog-modal-content {
    background-color: #121212;
    border: 1px solid var(--color-border);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.blog-modal.active .blog-modal-content {
    transform: translateY(0);
}

/* Scrollbar styling for modal */
.blog-modal-content::-webkit-scrollbar {
    width: 8px;
}
.blog-modal-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.blog-modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
}
.blog-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

.blog-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(11, 11, 11, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: var(--transition-quick);
}

.blog-modal-close:hover {
    background: var(--color-primary);
    color: #0b0b0b;
    border-color: var(--color-primary);
    transform: rotate(90deg);
}

.blog-modal-header-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.blog-modal-body {
    padding: 3rem;
}

.blog-modal-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.blog-modal-meta {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.blog-modal-text {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-modal-text p {
    margin-bottom: 1.5rem;
}

.blog-modal-text p:last-child {
    margin-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

/* Charity Policy Accordion Details */
.charity-policy-accordion {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.accordion-item:hover, .accordion-item.active {
    border-color: var(--color-border-hover);
}

.accordion-item.active {
    background-color: rgba(212, 175, 55, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    transition: var(--transition-quick);
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-header i {
    font-size: 1rem;
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--color-primary-hover);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-body {
    padding: 0 2rem 2.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.accordion-body p {
    margin-bottom: 1.2rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.accordion-body ul li {
    display: flex;
    gap: 0.8rem;
}

.accordion-body ul li i {
    color: var(--color-primary);
    margin-top: 0.3rem;
}

.accordion-body strong {
    color: var(--color-text);
}

/* ==========================================================================
   PHASE 2 - Testimonials & File Upload Styles
   ========================================================================== */

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(18, 18, 18, 0.95));
    border-top: 1px solid rgba(212, 175, 55, 0.05);
}

.testimonial-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 3rem 2.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.testimonial-quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.08);
}

.testimonial-stars {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

.testimonial-city {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

/* File Upload Field styling */
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--color-border);
    padding: 1.2rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: var(--transition-quick);
}

.file-upload-label:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    background: rgba(212, 175, 55, 0.03);
}

.file-upload-label i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.file-name-display {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-style: italic;
}

/* ==========================================================================
   PHASE 3 - Before/After Slider & Gallery Styles
   ========================================================================== */

/* Interactive Slider Styles */
.ba-slider-container {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    user-select: none;
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    clip-path: polygon(var(--clip-pos, 50%) 0, 100% 0, 100% 100%, var(--clip-pos, 50%) 100%);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--clip-pos, 50%);
    width: 2px;
    background-color: var(--color-primary);
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.ba-handle::before {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 700;
    z-index: 4;
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    margin: 0;
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    z-index: 4;
    pointer-events: none;
    transition: var(--transition-quick);
}

.ba-label-before {
    left: 1.5rem;
}

.ba-label-after {
    right: 1.5rem;
}

.ba-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
}

.ba-gallery-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 0.5rem;
    transition: var(--transition-quick);
}

.ba-gallery-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Standalone Case Study Gallery Page styles */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 991px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    border-color: var(--color-border-hover);
    background-color: var(--color-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.case-images-side-by-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .case-images-side-by-side {
        grid-template-columns: 1fr;
    }
}

.case-img-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-img-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.case-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Before / After Image Comparison Slider
   ========================================================================== */

.ba-slider-container {
    padding: 0 2rem 4rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}

/* Both layers fill the whole slider */
.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The "before" image is on top and gets clipped by the slider position */
.ba-before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--clip-pos)) 0 0);
}

/* The "after" image sits behind, always fully visible */
.ba-after {
    z-index: 1;
}

/* Labels */
.ba-label {
    position: absolute;
    bottom: 1.2rem;
    background: rgba(11, 11, 11, 0.75);
    backdrop-filter: blur(6px);
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 5;
    pointer-events: none;
}

.ba-label-before {
    left: 1rem;
}

.ba-label-after {
    right: 1rem;
}

/* Vertical divider handle */
.ba-handle {
    position: absolute;
    top: 0;
    left: var(--clip-pos);
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Circular grab indicator on the handle */
.ba-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid #0b0b0b;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35),
                0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Left/right arrows inside the circle */
.ba-handle::before {
    content: '◀  ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    font-size: 0.55rem;
    color: #0b0b0b;
    font-weight: 700;
    letter-spacing: 2px;
    pointer-events: none;
}

/* Invisible range input that captures user interaction */
.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    z-index: 10;
    cursor: col-resize;
    -webkit-appearance: none;
    appearance: none;
}

/* Caption below the slider */
.ba-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1.2rem;
}

.ba-gallery-link {
    color: var(--color-primary);
    font-weight: 500;
}

.ba-gallery-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Responsive: taller aspect ratio on mobile */
@media (max-width: 768px) {
    .ba-slider {
        aspect-ratio: 3 / 4;
    }

    .ba-slider-container {
        padding: 0 1rem 3rem;
    }
}

/* --- Dynamic Rug Card --- */
.rug-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.rug-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.rug-card-img-wrapper {
    overflow: hidden;
    aspect-ratio: 4/3;
    border-bottom: 1px solid var(--color-border);
}
.rug-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.rug-card:hover .rug-card-image {
    transform: scale(1.05);
}

.rug-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rug-card-header {
    margin-bottom: 1rem;
}

.rug-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
    line-height: 1.3;
    min-height: 5.5rem; /* Reserve space for up to 3 lines */
}

.rug-card-origin {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    min-height: 1.8rem;
}

.rug-card-specs {
    margin-bottom: 1.5rem;
    /* flex-grow removed so footer spacer pushes from here */
}

.rug-card-spec-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.rug-card-spec-item:last-child {
    border-bottom: none;
}

.rug-card-spec-label {
    color: var(--color-text-muted);
}

.rug-card-spec-value {
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.rug-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    gap: 0.5rem;
}

.rug-card-price {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
}

.rug-card-btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    position: relative;
    z-index: 2;
    flex-shrink: 1;
}

/* --- Inventory Filtering Layout --- */
.inventory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .inventory-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
}

.filter-sidebar {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 2rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}
.filter-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.btn-clear-filters {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-clear-filters:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    margin-bottom: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for filter options */
.filter-options::-webkit-scrollbar {
    width: 4px;
}
.filter-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.filter-options::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.filter-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-quick);
    line-height: 1.4;
}

.filter-label:hover {
    color: var(--color-text);
}

.filter-label input[type="checkbox"],
.filter-label input[type="radio"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.inventory-results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-results-header {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.inventory-sort {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.inventory-sort select {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    background: var(--color-card-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}

.inventory-sort select:hover {
    border-color: var(--color-border-hover);
}

.inventory-sort select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* 16px stops iPhones from zooming the page when the menu is tapped */
@media (max-width: 576px) {
    .inventory-sort select {
        font-size: 16px;
    }
}

/* --- Dynamic Rug Detail Page --- */
.rug-detail-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 100%;
}

@media (max-width: 992px) {
    .rug-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Image column: flex column so thumbnails sit below the main image */
.rug-detail-image-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Sticky container — wraps both image + thumbnails so they scroll together */
    position: sticky;
    top: 100px;
    align-self: start;
    min-width: 0;
}

.rug-detail-image-wrapper {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    overflow: hidden;
    cursor: zoom-in;
    max-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rug-detail-main-img {
    max-width: 100%;
    max-height: calc(100vh - 300px);
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.25s ease-in-out;
    transform-origin: center center;
}

.rug-detail-info {
    color: var(--color-text-muted);
    min-width: 0;
}

.rug-detail-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.rug-detail-origin {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 2rem;
}

.rug-detail-price {
    font-size: 2rem;
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.rug-detail-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.rug-detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    align-items: stretch;
}

.rug-detail-spec-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem 1.25rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 80px;
    height: 100%;
    transition: var(--transition-quick);
}



.rug-detail-spec-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
}

.rug-detail-spec-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.rug-detail-spec-value {
    display: block;
    font-size: 1.05rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
}

.error-container {
    text-align: center;
    padding: 4rem 1rem;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* --- Lightbox Styles --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 10000;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 20px;
    z-index: 10000;
    transition: color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-primary);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* Prevent body scroll when active */
body.lightbox-open {
    overflow: hidden;
}

.case-img-container img {
    cursor: pointer;
}

.filter-title-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
}

.filter-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-title-btn[aria-expanded="false"] .filter-icon {
    transform: rotate(-90deg);
}

.filter-options {
    margin-top: 1rem;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.filter-options.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

/* Price Range Slider */
.price-slider-container {
    padding: 0.5rem 0 1rem;
}
.price-display {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}
.range-slider {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.range-track {
    position: absolute;
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    top: 0;
    left: 0%;
    right: 0%;
}
.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    margin: 0;
}
.range-slider input[type="range"]:focus {
    outline: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    margin-top: -6px;
}
.range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Premium Filter Additions */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}
.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-quick);
}
.filter-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}
.filter-chip i {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.filter-chip:hover i {
    color: var(--color-text);
}
.filter-chip.clear-all {
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    color: var(--color-text-muted);
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}
.filter-chip.clear-all:hover {
    color: var(--color-text);
    background: transparent;
    border-color: transparent;
}

/* Custom Checkbox */
.filter-label {
    position: relative;
    user-select: none;
}
.filter-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-quick);
}
.filter-label:hover .checkbox-custom {
    border-color: var(--color-primary);
}
.filter-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
}
.filter-label input[type="checkbox"]:checked ~ .checkbox-custom:after {
    display: block;
}
.filter-label .checkbox-custom:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #0b0b0b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-name {
    flex-grow: 1;
}
.filter-count {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: auto;
}

/* Stretched link for making the whole card clickable */
.stretched-link {
    color: inherit;
    text-decoration: none;
}
.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Community Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--color-border);
}
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-bg);
}
.timeline-date {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}
.timeline-content {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2rem;
}
.timeline-content h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--color-text);
}
.timeline-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.timeline-gallery {
    display: grid;
    gap: 1rem;
}
.timeline-gallery.grid-2 {
    grid-template-columns: 1fr 1fr;
}
.timeline-gallery.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.timeline-gallery.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.timeline-photo {
    aspect-ratio: 4/3;
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .timeline-gallery.grid-3,
    .timeline-gallery.grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .timeline-gallery.grid-2,
    .timeline-gallery.grid-3,
    .timeline-gallery.grid-4 {
        grid-template-columns: 1fr;
    }
}

.placeholder-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Story Timeline (Luxury Editorial Layout)
   ========================================================================== */

.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.4) 10%, rgba(212, 175, 55, 0.4) 90%, rgba(212, 175, 55, 0) 100%);
    z-index: 1;
}

.story-card {
    position: relative;
    display: flex;
    gap: 4rem;
    margin-bottom: 8rem;
    align-items: center;
    z-index: 2;
}

.story-card:last-child {
    margin-bottom: 0;
}

.story-card.layout-image-left {
    flex-direction: row;
}

.story-card.layout-image-right {
    flex-direction: row-reverse;
}

.story-card.layout-hero-top {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

/* Markers */
.story-card-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    z-index: 3;
}

.story-card-marker-top {
    position: absolute;
    left: 50%;
    top: -2rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    z-index: 3;
}

/* Content */
.story-card-content {
    flex: 1;
    padding: 2rem;
}

.story-card.layout-image-left .story-card-content {
    padding-left: 4rem;
}

.story-card.layout-image-right .story-card-content {
    padding-right: 4rem;
    text-align: right;
}

.story-card-content-center {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.story-date {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 4px;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* Images */
.story-card-image-wrap {
    flex: 1;
    position: relative;
}

.story-card-image-wrap-full {
    width: 100%;
    position: relative;
}

.story-hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.story-hero-image-full {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.story-card:hover .story-hero-image,
.story-card:hover .story-hero-image-full {
    transform: scale(1.02);
}

.story-supporting-image-wrap {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 50%;
    border: 8px solid var(--color-background);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 4;
}

.story-card.layout-image-right .story-supporting-image-wrap {
    right: auto;
    left: -30px;
}

.story-supporting-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .timeline-line {
        left: 20px;
    }
    .story-card.layout-image-left,
    .story-card.layout-image-right {
        flex-direction: column;
        gap: 2rem;
    }
    .story-card-marker {
        left: 20px;
        top: 0;
        transform: translate(-50%, -50%);
    }
    .story-card.layout-image-left .story-card-content,
    .story-card.layout-image-right .story-card-content {
        padding: 0 0 0 3rem;
        text-align: left;
    }
    .story-supporting-image-wrap {
        display: none; /* Hide supporting image on mobile to keep it clean */
    }
    .story-hero-image, .story-hero-image-full {
        height: 300px;
    }
    .story-card-marker-top {
        left: 20px;
    }
    .story-card-content-center {
        padding: 0 0 0 3rem;
        text-align: left;
    }
}

/* ==========================================================================
   Premium Timeline (Overlapping True Cards)
   ========================================================================== */

.premium-timeline {
    position: relative;
    max-width: 1000px;
    margin: 6rem auto 0 auto;
    padding: 2rem 0 4rem 0;
}

.premium-timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -2rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.4) 10%, rgba(212, 175, 55, 0.4) 90%, rgba(212, 175, 55, 0) 100%);
    z-index: 1;
}

.premium-timeline-event {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8rem;
    padding-top: 3rem; /* Space for date badge */
}

.premium-timeline-event:last-child {
    margin-bottom: 0;
}

.left-card {
    justify-content: flex-start;
}

.right-card {
    justify-content: flex-end;
}

.center-card {
    flex-direction: column;
    text-align: center;
}

/* Date Badge */
.premium-date-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background);
    padding: 0.6rem 2rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* The True Card */
.premium-card {
    width: 60%;
    background: #ffffff;
    padding: 4rem;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border-radius: 4px;
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--color-primary);
}

.left-card .premium-card {
    margin-right: -10%; /* Overlap */
    padding-right: 8rem;
}

.right-card .premium-card {
    margin-left: -10%; /* Overlap */
    padding-left: 8rem;
}

/* Wide card for the anchor event */
.premium-card-wide {
    width: 80%;
    background: #ffffff;
    padding: 4rem;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border-radius: 4px;
    position: relative;
    z-index: 3;
    border-top: 4px solid var(--color-primary);
    margin-top: -4rem; /* Overlap the hero image above */
}

/* Typography inside card */
.premium-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.premium-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Images */
.premium-image-wrapper {
    width: 50%;
    position: relative;
    z-index: 3;
}

.premium-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.premium-image-wrapper-full {
    width: 100%;
    position: relative;
    z-index: 2;
}

.premium-hero-img-full {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.premium-timeline-event:hover .premium-hero-img,
.premium-timeline-event:hover .premium-hero-img-full {
    transform: scale(1.02);
}

.premium-support-img {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 50%;
    height: 200px;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 4;
}

/* Dark mode compatibility if needed */
.section-dark .premium-card,
.section-dark .premium-card-wide {
    background: #111;
    border-top: 4px solid var(--color-primary);
}

.section-dark .premium-title {
    color: #f4f4f4;
}

.section-dark .premium-text {
    color: #bbb;
}

.section-dark .premium-support-img {
    border-color: #111;
}

/* Responsive */
@media (max-width: 992px) {
    .premium-timeline-line {
        left: 30px;
    }
    .premium-date-badge {
        left: 30px;
        transform: translateX(0);
    }
    .premium-timeline-event.left-card {
        flex-direction: column-reverse !important;
    }
    .premium-timeline-event.right-card,
    .premium-timeline-event.center-card {
        flex-direction: column !important;
    }
    .premium-timeline-event {
        padding-top: 4rem;
        margin-bottom: 5rem;
    }
    .premium-card, .premium-card-wide {
        width: 100%;
        margin: -3rem 0 0 0 !important;
        padding: 2.5rem !important;
        z-index: 3;
    }
    .premium-image-wrapper, .premium-image-wrapper-full {
        width: 100%;
        margin-top: 0;
        z-index: 2;
    }
    .premium-hero-img, .premium-hero-img-full {
        height: 300px;
    }
    .premium-support-img {
        display: none;
    }
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(212, 175, 55, 0.05); /* subtle gold tint */
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
    color: var(--color-text-muted);
}

.faq-question.active + .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* --- Dynamic Rug Detail Multi-Image Gallery, Zoom & Lightbox Styles --- */

/* Thumbnail strip: horizontal scrollable row below the hero image */
.rug-detail-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px; /* room for scrollbar on Windows */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but keep scrollability */
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.rug-detail-thumbnails::-webkit-scrollbar {
    height: 3px;
}
.rug-detail-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}
.rug-detail-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2px;
    opacity: 0.5;
}

.rug-thumb-btn {
    flex: 0 0 80px;       /* fixed width, no shrink/grow */
    width: 80px;
    height: 80px;
    background: var(--color-card-bg);
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    scroll-snap-align: start;
    outline: none;
    position: relative;
}

.rug-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Active state: gold border + full opacity + scale + shadow */
.rug-thumb-btn.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transform: scale(1.08);
    z-index: 10;
}

.rug-thumb-btn.active img {
    opacity: 1;
}

/* Hover: slightly brighten and scale up the thumbnail image */
.rug-thumb-btn:not(.active):hover img {
    opacity: 0.9;
    transform: scale(1.06);
}

.rug-thumb-btn:not(.active):hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.03);
}

/* Documentation section below gallery */
.rug-detail-documentation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.rug-detail-documentation-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.rug-detail-documentation .rug-detail-thumbnails {
    /* Reuse thumbnail strip styles for doc images */
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Responsive: on narrow screens shrink thumbnails slightly */
@media (max-width: 600px) {
    .rug-thumb-btn {
        flex: 0 0 66px;
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 992px) {
    /* On tablet/mobile, the image column is no longer sticky (full-width stacked) */
    .rug-detail-image-column {
        position: static;
    }
}

/* Availability Badge Alert style */
.availability-badge-alert {
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: fit-content;
}

/* Lightbox Modal setup */
.rug-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rug-lightbox.active {
    display: flex;
    opacity: 1;
}

.rug-lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rug-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    background: #000;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.rug-lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10010;
}

.rug-lightbox-close:hover {
    color: var(--color-primary);
}

.rug-lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-border);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10005;
    transition: var(--transition-quick);
}

.rug-lightbox-btn:hover {
    background: var(--color-primary);
    color: #0b0b0b;
    border-color: var(--color-primary);
}

.rug-lightbox-prev {
    left: 2.5rem;
}

.rug-lightbox-next {
    right: 2.5rem;
}

@media (max-width: 991px) {
    .rug-lightbox-content {
        max-width: 90%;
    }
    
    .rug-lightbox-prev {
        left: 15px;
    }
    
    .rug-lightbox-next {
        right: 15px;
    }
    
    .rug-lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Premium Related Rugs Cards Hover Styling */
.related-rug-card-link {
    display: block;
    outline: none;
}

.related-rug-card-link:hover .related-rug-card {
    border-color: var(--color-primary) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.08);
    background: rgba(255, 255, 255, 0.04) !important;
}

.related-rug-card-link:hover .related-card-img {
    transform: scale(1.06);
}

.cta-sub-link {
    transition: var(--transition-quick);
}

.cta-sub-link:hover {
    color: var(--color-primary) !important;
    text-decoration: underline !important;
}

/* Premium Trust Cards Hover Styling */
.rug-trust-card {
    transition: var(--transition-quick);
}

.rug-trust-card:hover {
    border-color: var(--color-primary) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.04);
}

/* Premium FAQ Accordion Styles */
.rug-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.rug-faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-quick);
}

.rug-faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.rug-faq-item[open] {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.03);
}

.rug-faq-summary {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    outline: none;
}

.rug-faq-summary::-webkit-details-marker {
    display: none;
}

.rug-faq-summary::after {
    content: '\f078'; /* FontAwesome Angle Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.rug-faq-item[open] .rug-faq-summary::after {
    transform: rotate(180deg);
}

.rug-faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1rem;
}

/* Luxury Purchase Experience Card Hover */
.luxury-purchase-card {
    transition: var(--transition-quick);
}
.luxury-purchase-card:hover {
    border-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Premium Related Rugs Grid Responsive Layout */
.related-rugs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
    .related-rugs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-rugs-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   RUG DETAIL — PREMIUM EDITORIAL DESCRIPTION TYPOGRAPHY
   Scoped to .rug-editorial-* — zero global impact on any other section
   ========================================================================== */

/* ── Outer article wrapper ─────────────────────────────────────────────── */
.rug-editorial-article {
    margin-bottom: 4.5rem;
}

/* ── "DESCRIPTION" label — small-caps, very understated ───────────────── */
.rug-editorial-article-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    opacity: 0.7;
}

/* ── Each ### heading block with its following paragraphs ─────────────── */
.rug-editorial-section {
    margin-bottom: 3.5rem;     /* spacious breathing room between sections */
    padding-top: 0;
}

.rug-editorial-section:last-child {
    margin-bottom: 0;
}

/* ── Section heading — elegant serif, clearly separated from body ─────── */
.rug-editorial-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);         /* full luminance — anchors each section */
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin-top: 0;
    margin-bottom: 1.5rem;            /* generous gap before paragraph begins */
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

/* ── Gold accent bar — restrained, 2px, fades toward base ─────────────── */
.rug-editorial-heading-accent {
    display: inline-block;
    flex-shrink: 0;
    width: 2px;
    /* height matches one cap-height line of the heading font */
    height: 1.1em;
    margin-top: 0.12em;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.85)  0%,
        rgba(212, 175, 55, 0.1)  100%
    );
}

/* ── Body paragraphs — sans-serif, light, spacious ────────────────────── */
.rug-editorial-body {
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;             /* slightly smaller than headings */
    font-weight: 300;               /* visibly lighter than the 600-weight heading */
    line-height: 1.95;              /* generous — never cramped */
    color: var(--color-text-muted);
    max-width: 66ch;                /* ~66 chars — comfortable reading measure */
    margin-bottom: 1.1rem;
    letter-spacing: 0.01em;
}


.rug-editorial-body:last-child {
    margin-bottom: 0;
}

/* ── Subtle emphasis on key heritage phrases ──────────────────────────── */
.rug-editorial-em {
    font-style: normal;
    font-weight: 400;               /* one step above body weight — barely noticeable */
    color: rgba(212, 175, 55, 0.65); /* very soft, warm gold */
    letter-spacing: 0.015em;
}

/* ── Responsive: tablet ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .rug-editorial-body {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .rug-editorial-section {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .rug-editorial-heading {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .rug-editorial-body {
        font-size: 0.93rem;
        line-height: 1.85;
    }

    .rug-editorial-section {
        margin-bottom: 2.5rem;
    }
}

/* ── Responsive: mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .rug-editorial-heading {
        font-size: 1.05rem;
        gap: 0.65rem;
        margin-bottom: 1.1rem;
    }

    .rug-editorial-body {
        font-size: 0.91rem;
        line-height: 1.8;
    }

    .rug-editorial-section {
        margin-bottom: 2.25rem;
    }

    .rug-editorial-article-title {
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   RUG DETAIL — MOBILE RESPONSIVE OVERRIDES (BUG FIXES)
   ========================================================================== */

@media (max-width: 768px) {
    /* Optimize outer container padding for wider mobile screen space */
    .container {
        padding: 0 1.5rem !important;
    }

    /* Refine purchase card padding on mobile */
    .luxury-purchase-card {
        padding: 1.5rem !important;
        gap: 1.25rem !important;
    }

    /* Wrap button text and tweak typography parameters to fit narrow screens */
    .luxury-purchase-card .btn {
        white-space: normal !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.95rem !important;
        letter-spacing: 0.5px !important;
        word-wrap: break-word !important;
        word-break: keep-all !important;
        line-height: 1.4 !important;
    }

    .luxury-purchase-card .btn-outline {
        font-size: 0.85rem !important;
        padding: 0.75rem 0.5rem !important;
        flex-wrap: wrap !important;
    }

    /* Adjust main zoom container max height for mobile viewports */
    .rug-detail-image-wrapper {
        max-height: 50vh !important;
    }
    
    .rug-detail-main-img {
        max-height: calc(50vh - 20px) !important;
    }
}

@media (max-width: 480px) {
    /* Maximize container real estate on narrow phones */
    .container {
        padding: 0 1rem !important;
    }

    .luxury-purchase-card {
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    /* Specs card responsive grid: 2 columns */
    .rug-glance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
    }

    .rug-glance-card {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }

    /* Make the 5th card span 2 columns to fill the row symmetrically */
    .rug-glance-card:nth-child(5) {
        grid-column: span 2 !important;
    }
    
    /* Slightly reduce heading size on small mobile screen */
    .rug-detail-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 360px) {
    /* Collapse specs grid to single column on extra-small mobile viewports */
    .rug-glance-grid {
        grid-template-columns: 1fr !important;
    }

    .rug-glance-card:nth-child(5) {
        grid-column: span 1 !important;
    }
}

/* Align 'Rug at a Glance' card content to the top (all viewports) */
.rug-glance-card {
    align-items: flex-start !important;
}

/* Align icons vertically with the first line of the label text */
.rug-glance-card > div:first-child {
    margin-top: 0.15rem;
}

/* ==========================================================================
   Blog post pages (blog/<slug>.html, built by build_blog.py)
   ========================================================================== */
a.blog-card {
    color: inherit;
    text-decoration: none;
}

.blog-post-page {
    padding: 8rem 0 4rem;
}

.blog-post {
    max-width: 780px;
}

.blog-post-breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.blog-post-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.blog-post-breadcrumb a:hover {
    color: var(--color-primary);
}

.blog-post-breadcrumb span {
    margin: 0 0.35rem;
}

.blog-post-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
    color: var(--color-text);
}

.blog-post-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.blog-post-hero {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

.blog-post-body {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.85;
}

.blog-post-body p,
.blog-post-body ul,
.blog-post-body ol,
.blog-post-body blockquote {
    margin-bottom: 1.5rem;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
}

.blog-post-body h2 { font-size: 1.75rem; }
.blog-post-body h3 { font-size: 1.35rem; }
.blog-post-body h4 { font-size: 1.15rem; }

.blog-post-body ul,
.blog-post-body ol {
    padding-left: 1.5rem;
}

.blog-post-body li {
    margin-bottom: 0.6rem;
}

.blog-post-body a {
    color: var(--color-primary);
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.blog-post-body blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.blog-post-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
}

.blog-post-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post-cta p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.blog-post-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-post-related {
    margin-top: 5rem;
}

.blog-post-related .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .blog-post-page {
        padding-top: 6.5rem;
    }

    .blog-post-body {
        font-size: 1.02rem;
    }
}

/* Homepage hero: the small tagline is the page's H1 (keywords + location);
   the large display line is a paragraph styled as before. */
h1.hero-tagline {
    font-family: var(--font-body);
    line-height: 1.6;
    letter-spacing: 4px;
}

p.hero-title {
    font-family: var(--font-heading);
    color: var(--color-text);
}

/* Name, address, phone and hours in every footer */
.footer-nap {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-top: 1.25rem;
}

.footer-nap strong {
    color: var(--color-text);
    font-weight: 600;
}

.footer-nap a {
    color: inherit;
    text-decoration: none;
}

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