/* ======================= Global Styles & Variables ======================= */
:root {
    --color-primary: #AD343E;
    --color-secondary: #F2AF29;
    --color-dark: #2a2a2a; /* Darker than 474747 for backgrounds */
    --color-text: #474747;
    --color-light: #f4f4f4;
    --color-white: #ffffff;
    
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --container-width: 1200px;
    --spacing-unit: 1rem;
    --border-radius: 5px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; margin-bottom: calc(var(--spacing-unit) * 1.5); }
h3 { font-size: 1.5rem; margin-bottom: var(--spacing-unit); }
h4 { font-size: 1.2rem; }

p { margin-bottom: var(--spacing-unit); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-secondary); }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

section {
    padding: calc(var(--spacing-unit) * 6) 0;
    overflow-x: hidden;
}

.full-width-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-dark { background-color: var(--color-dark); color: var(--color-light); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--color-white); }
.bg-light { background-color: var(--color-light); }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }
.bg-primary h2, .bg-primary p { color: var(--color-white); }

.text-center { text-align: center; }
.section-title { position: relative; display: inline-block; padding-bottom: var(--spacing-unit); }
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto calc(var(--spacing-unit) * 3) auto;
    font-size: 1.1rem;
    color: #666;
}

/* ======================= Components ======================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}
.btn-dark:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}


.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card img { max-width: 100%; display: block; }
.card h3, .card p { padding: 0 calc(var(--spacing-unit) * 1.5); }
.card h3 { margin-top: calc(var(--spacing-unit) * 1.5); color: var(--color-primary); }
.card p { padding-bottom: calc(var(--spacing-unit) * 1.5); }


/* ======================= Header ======================= */
/* ======================= Header (with Mobile Navigation) ======================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-unit) 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    z-index: 1001; /* Ensure logo is above the mobile nav */
}

/* --- Desktop Navigation --- */
.main-nav .nav-links-wrapper {
    display: flex;
    align-items: center;
}
.main-nav .nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}
.main-nav a {
    color: var(--color-light);
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-btn { display: none; } /* Hide button inside nav on desktop */
.desktop-btn { display: inline-block; } /* Show button outside nav on desktop */

/* --- Mobile Navigation Burger --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Must be above nav panel and overlay */
}
.mobile-nav-toggle .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Burger Animation to "X" */
.mobile-nav-toggle.is-active .line1 {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-nav-toggle.is-active .line2 {
    opacity: 0;
}
.mobile-nav-toggle.is-active .line3 {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* --- Mobile Navigation Panel (Off-Canvas) --- */
@media (max-width: 992px) {
    .main-nav { display: block; } /* Make nav element available */
    .desktop-btn { display: none; } /* Hide desktop button */
    
    .main-nav .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px; /* Width of the slide-in menu */
        height: 100vh;
        background-color: var(--color-darker);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

        /* Hidden by default, slides in from the right */
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    /* Active state for the mobile menu */
    .main-nav.is-active .nav-links-wrapper {
        transform: translateX(0);
    }
    
    .main-nav .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .main-nav a { font-size: 1.2rem; }
    
    /* Show the button inside the nav on mobile */
    .nav-btn {
        display: inline-block;
        margin-top: 2rem;
    }

    .mobile-nav-toggle { display: flex; }
}

/* --- Nav Overlay for Mobile --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.94);
    z-index: 998; /* Below the nav but above the main content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ======================= Hero Section ======================= */
#hero {
    min-height: 100vh;
    color: var(--color-white);
}
.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/hero-bg.webp') no-repeat center center/cover;
    z-index: -2;
}
.hero-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--spacing-unit) * 3);
    max-width: 700px;
    text-align: center;
}
.hero-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-unit);
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* ======================= About Section ======================= */

/* ======================= Redesigned About Section ======================= */
.about-unique-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 4rem 0; /* Add padding for visual breathing room */
}

/* --- Image Area --- */
.about-unique-image-area {
    grid-column: 1 / span 7; /* Image takes up the left portion */
    position: relative;
    padding: 2rem; /* Space between image and its frame */
}

.about-unique-image-area img {
    width: 100%;
    border-radius: var(--border-radius);
    position: relative; /* To ensure it sits above the frame */
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-secondary); /* Golden frame */
    border-radius: var(--border-radius);
    z-index: 1;
    transform: rotate(-3deg); /* Dynamic angle */
    transition: transform var(--transition-speed) ease;
}

.about-unique-image-area:hover .image-frame {
    transform: rotate(0deg); /* Straightens out on hover for a nice micro-interaction */
}


/* --- Overlapping Text Area --- */
.about-unique-text-area {
    grid-column: 7 / span 6; /* Overlaps from the 7th column to the end */
    grid-row: 1; /* Ensures it's on the same row as the image */
    position: relative;
    z-index: 10;
    background-color: var(--color-darker);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-unique-text-area h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.about-unique-text-area p {
    color: var(--color-light);
}

/* The new Pull-Quote element */
.about-unique-text-area blockquote {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 0 0 1.5rem 0;
}

/* --- Responsive Adjustments for the Redesigned Section --- */
@media (max-width: 992px) {
    .about-unique-container {
        grid-template-columns: 1fr; /* Stack elements */
    }

    .about-unique-image-area {
        grid-column: 1 / -1; /* Full width */
        max-width: 500px;
        margin: 0 auto;
    }

    .about-unique-text-area {
        grid-column: 1 / -1; /* Full width */
        grid-row: 2;
        margin-top: -60px; /* Maintain a slight overlap */
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-unique-text-area {
        margin-top: -40px; /* Reduce overlap for smaller screens */
        padding: 2rem;
    }

    .about-unique-text-area blockquote {
        font-size: 1.5rem;
    }
    
    .image-frame {
        transform: rotate(-2deg); /* Reduce rotation on smaller screens */
    }
}

/* ======================= Services Section ======================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2.5);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* ======================= Philosophy Section ======================= */
.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: calc(var(--spacing-unit) * 5);
    align-items: center;
}
.philosophy-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}
.point {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
}
.point-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}

/* ======================= Gallery Preview ======================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}
.gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }

/* ======================= Testimonial Section ======================= */
#testimonial {
    min-height: 500px;
    color: var(--color-white);
    background-attachment: fixed; /* Parallax effect */
}
.testimonial-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: no-repeat center center/cover;
    z-index: -2;
}
.testimonial-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(173, 52, 62, 0.8); /* Primary color overlay */
    z-index: -1;
}
.client-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    margin-bottom: calc(var(--spacing-unit) * 2);
    object-fit: cover;
}
blockquote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    padding: 0;
}
cite {
    display: block;
    margin-top: var(--spacing-unit);
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 1rem;
}

/* ======================= CTA Section ======================= */
.cta-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-unit);
}
.cta-container p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* ======================= Additions for Pricelist Page ======================= */

/* --- Section 1: Pricelist Hero --- */
#pricelist-hero {
    background: no-repeat center center/cover;
    padding: calc(var(--spacing-unit) * 8) 0;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}
#pricelist-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: -1;
}
.page-title { color: var(--color-white); }
.page-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 300;
}

/* --- Section 2 & 3: Service Categories --- */
.service-category {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}
.service-category-reverse {
    grid-template-columns: 1fr 1fr; /* to use grid-auto-flow */
}
.service-category-reverse .service-text { grid-column: 2 / 3; grid-row: 1 / 2; }
.service-category-reverse .service-images { grid-column: 1 / 2; grid-row: 1 / 2; }

.service-images {
    display: grid;
    gap: var(--spacing-unit);
}
.service-images img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.price-list {
    margin-top: calc(var(--spacing-unit) * 2);
}
.price-item {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}
.service-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
}
.price-line {
    flex-grow: 1;
    border-bottom: 1px dashed #ccc;
    margin: 0 10px;
}
.service-price {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
}
.bg-light .service-price { color: var(--color-dark); }
.service-description {
    flex-basis: 100%;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #666;
}

/* --- Section 4: Packages --- */

/* ======================= Redesigned Superb Packages Section ======================= */
.packages-superb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: center; /* Vertically align cards */
}

.package-superb-card {
    background: linear-gradient(145deg, #333333, #2a2a2a);
    border: 2px solid #474747;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.package-superb-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.package-header {
    margin-bottom: 2rem;
}

.package-superb-card h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.package-price {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1;
}

.package-price span {
    font-size: 1.5rem;
    color: var(--color-secondary);
    vertical-align: super;
    margin-right: 5px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    color: var(--color-light);
}

.package-features li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
}

.package-features li::before {
    content: '✓'; /* Checkmark */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.package-superb-card .btn {
    opacity: 0.8;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.package-superb-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* --- The "Most Popular" Card --- */
.package-superb-card--popular {
    transform: scale(1.05); /* Make it stand out */
    border-color: var(--color-primary);
    background: linear-gradient(145deg, #3a3a3a, #222222);
}

.package-superb-card--popular:hover {
    transform: translateY(-10px) scale(1.05); /* Combine hover effects */
}

.popular-banner {
    position: absolute;
    top: -1px; /* Adjust as needed */
    right: -1px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 2rem;
    text-transform: uppercase;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* --- New Button Style --- */
.btn-secondary-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
}

/* --- Responsive Adjustments for Superb Packages --- */
@media (max-width: 992px) {
    .packages-superb-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .package-superb-card--popular {
        transform: scale(1); /* Reset scale to avoid taking up too much vertical space */
        order: -1; /* Place "Most Popular" at the top on mobile */
    }
    
    .package-superb-card--popular:hover {
        transform: translateY(-10px);
    }
}

/* --- Section 5: Add-Ons --- */
/* ======================= Add-Ons Slider Section ======================= */
#add-ons-slider {
    background-color: var(--color-light); /* Ensure background is set */
}

.slider-container {
    position: relative;
    max-width: 900px; /* Adjust max-width as needed */
    margin: 3rem auto 0 auto;
    overflow: hidden;
    -webkit-user-select: none; /* Disable text selection while dragging */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.slider-track.is-dragging {
    cursor: grabbing;
    transition: none; /* Disable transition while dragging for instant feedback */
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 1;
    padding: 0 10px; /* Creates a small gap between slides */
    box-sizing: border-box;
}

.add-on-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    text-align: center;
    height: 100%;
}

.add-on-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.add-on-card .card-content {
    padding: 1.5rem;
}

.add-on-card h4 {
    margin-top: 0;
}

.add-on-card .card-content p
{
    max-width: 500px;
    margin: 0 auto;
}

.add-on-price {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0.5rem 0 1rem 0;
}

/* --- Slider Navigation --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--color-dark);
}

.slider-btn--prev { left: -15px; }
.slider-btn--next { right: -15px; }

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.is-active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive adjustments for arrows */
@media (max-width: 600px) {
    .slider-btn--prev { left: 5px; }
    .slider-btn--next { right: 5px; }
}
/* --- Section 6: Membership --- */
#membership {
    min-height: 500px;
    color: var(--color-white);
}
.membership-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:  no-repeat center center/cover;
    background-attachment: fixed;
    z-index: -2;
}
.membership-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(71, 71, 71, 0.9), rgba(42, 42, 42, 0.9));
    z-index: -1;
}
.glass-box-dark {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: calc(var(--spacing-unit) * 3);
    max-width: 800px;
    text-align: center;
}
.glass-box-dark h2 { color: var(--color-secondary); }
.membership-benefits {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 2) 0;
    font-family: var(--font-primary);
}

/* --- Section 7: Policy & FAQ --- */
.accordion-premium {
    border-bottom: 1px solid #ddd; /* Final border for a clean finish */
}

.accordion-item {
    border-top: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-dark);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0; /* Prevents icon from shrinking */
}

/* --- The Core Animation Logic --- */
.accordion-content {
    display: grid;
    /* Animate the grid row height from 0 to 1fr (fractional unit) */
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease-out;
}

.accordion-body {
    min-height: 0; /* Required for the animation to work correctly */
}

.accordion-body p {
    padding-bottom: 1.5rem;
    margin: 0;
    line-height: 1.7;
}

/* --- Active State Styling --- */
.accordion-item.is-active .accordion-header h4 {
    color: var(--color-primary); /* Highlight active title */
}

.accordion-item.is-active .accordion-icon {
    transform: rotate(180deg); /* Rotate chevron icon */
}

.accordion-item.is-active .accordion-content {
    grid-template-rows: 1fr; /* Expand to fit content */
}
/* --- Responsive Adjustments for Pricelist --- */
@media (max-width: 992px) {
    .service-category, .service-category-reverse, .policy-container {
        grid-template-columns: 1fr;
    }
    .service-category-reverse .service-text { grid-column: auto; grid-row: auto; }
    .service-category-reverse .service-images { grid-column: auto; grid-row: auto; }
    .packages-grid, .add-ons-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .membership-benefits { flex-direction: column; align-items: center; }
}

/* ======================= Additions for Barbers Page ======================= */

/* --- Section 1: Barbers Hero --- */
#barbers-hero {
    background: #1a1a1a;
    padding: calc(var(--spacing-unit) * 6) 0;
    color: var(--color-light);
}

#barbers-hero .page-title { color: var(--color-white); }
#barbers-hero .page-subtitle { color: #ccc; }

/* --- Section 2: Meet the Team --- */
#team-slider-section {
    background-color: var(--color-white); /* Or any background you prefer */
    padding: 4rem 0;
}

.team-slider {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px; /* Width of each card */
    height: auto;
    /* The coverflow effect adds its own box-shadow, but we can add one for the main slide */
    filter: blur(2px) grayscale(50%);
    transition: filter 0.5s ease;
}

.swiper-slide-active {
    filter: blur(0) grayscale(0%);
}

.barber-profile-slide {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    width: 100%;
}

.barber-profile-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.barber-profile-slide .barber-info {
    padding: 1.5rem;
}

.barber-profile-slide .barber-info h3 {
    color: var(--color-primary);
}

.barber-profile-slide .barber-info h4 {
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: none;
    margin-bottom: 1rem;
}

/* --- Styling Swiper Navigation & Pagination --- */
.swiper-pagination-bullet {
    background: var(--color-text);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary); /* Use your primary color */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--color-white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px; /* Adjust arrow size */
    font-weight: bold;
}

/* --- Section 3: Craft Philosophy --- */
.craft-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}
.craft-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* --- Section 4: Apprentice Program --- */
/* ======================= Redesigned Apprentice Program Section ======================= */
#apprentice-premium {
    overflow: hidden; /* Prevents hover effects from spilling out */
    position: relative;
    /* Adds a subtle spotlight effect to the dark background */
    background: #2a2a2a radial-gradient(circle at 50% 50%, rgba(71, 71, 71, 0.2), transparent 70%);
}

.apprentice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

/* --- Text Content Styling --- */
.apprentice-content .eyebrow-text {
    display: block;
    font-family: var(--font-primary);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.apprentice-content .section-title {
    text-align: left; /* Override global text-center */
}

.apprentice-content .section-title::after {
    left: 0; /* Align the underline to the left */
    transform: translateX(0);
}

.apprentice-content p {
    color: var(--color-light);
}

.core-pillars {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    color: #ccc;
}

.core-pillars li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.core-pillars li::before {
    content: '✓'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-secondary);
    font-weight: bold;
}

.core-pillars li span {
    font-weight: 700;
    color: var(--color-white);
}

/* --- Overlapping Images Styling --- */
.apprentice-images {
    position: relative;
    min-height: 550px; /* Give the container height to position images */
}

.apprentice-images img {
    position: absolute;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 4px solid #3a3a3a;
    transition: transform 0.4s ease-out;
}

.image-mentor {
    width: 70%;
    top: 0;
    left: 0;
    z-index: 1;
}

.image-mentee {
    width: 60%;
    bottom: 0;
    right: 0;
    z-index: 2; /* In front of the mentor image */
    border-color: var(--color-primary);
}

/* The beautiful parallax hover effect */
.apprentice-images:hover .image-mentor {
    transform: translate(-10px, -10px) scale(1.02);
}

.apprentice-images:hover .image-mentee {
    transform: translate(10px, 10px) scale(1.02);
}

/* --- Responsive Adjustments for Apprentice Section --- */
@media (max-width: 992px) {
    .apprentice-container {
        grid-template-columns: 1fr; /* Stack the columns */
        gap: 2rem;
    }

    .apprentice-images {
        order: -1; /* Move images to the top on smaller screens */
        min-height: 450px;
        margin-bottom: 2rem;
    }

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

    .apprentice-content .section-title::after {
        left: 50%; /* Re-center the underline */
        transform: translateX(-50%);
    }
}

/* --- Section 5: Tools of the Trade --- */
.tools-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 3);
}
.tool-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}
.tool-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.tool-item:hover img {
    transform: scale(1.05);
}

/* --- Section 6: Barber's Quote --- */
#barber-quote {
    min-height: 500px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.quote-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}
.quote-background img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transform: scale(1.1); /* Slight zoom for effect */
}
.quote-content blockquote {
    font-size: 2rem;
    max-width: 900px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.quote-content cite {
    color: var(--color-secondary);
}

/* --- Responsive Adjustments for Barbers Page --- */
@media (max-width: 992px) {
    .craft-container {
        grid-template-columns: 1fr;
    }
    .craft-image {
        order: -1; /* Move image to top on mobile */
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .tools-gallery {
        grid-template-columns: 1fr;
    }
    .quote-content blockquote {
        font-size: 1.5rem;
    }
}

/* ======================= Additions for Story Page ======================= */

/* --- Section 1: Story Hero --- */
#story-hero {
    background:  no-repeat center center/cover;
    padding: calc(var(--spacing-unit) * 8) 0;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}
#story-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(71, 71, 71, 0.7); /* color-text overlay */
    z-index: -1;
}

/* --- Section 2: The Beginning --- */
/* ======================= Redesigned "The Beginning" Story Section ======================= */
#the-beginning {
    padding: 6rem 0; /* Extra padding for a more spacious, premium feel */
}

.beginning-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid for precise control */
    gap: 2rem;
    align-items: center;
}

/* --- Image Styling --- */
.beginning-image-wrapper {
    grid-column: 8 / span 5; /* Position image on the right side */
    grid-row: 1;
    background-color: var(--color-white);
    padding: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: rotate(2.5deg); /* Slight, natural rotation */
    transition: transform 0.4s ease-out;
}

.beginning-image-wrapper:hover {
    transform: rotate(0deg) scale(1.03); /* Interactivity on hover */
}

.beginning-image-wrapper img {
    width: 100%;
    display: block;
    filter: grayscale(100%); /* Full black & white for a vintage look */
    mix-blend-mode: multiply; /* Deeper, richer blacks */
    opacity: 0.9;
}


/* --- Text Styling --- */
.beginning-text-wrapper {
    grid-column: 1 / span 8; /* Overlap the image slightly for a custom feel */
    grid-row: 1;
    position: relative;
    z-index: 2; /* Ensure text is above the image */
}

.beginning-text-wrapper .section-title {
    text-align: left;
}
.beginning-text-wrapper .section-title::after {
    left: 0;
    transform: none;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* The beautiful Drop Cap effect */
.story-paragraph::first-letter {
    font-family: var(--font-primary);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-primary);
    float: left;
    line-height: 0.8;
    margin-right: 1rem;
    padding-top: 0.5rem;
}

/* The pull-quote styling */
.beginning-text-wrapper blockquote {
    margin: 2rem 0 0 3rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-primary);
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text);
}


/* --- Responsive Adjustments for The Beginning Section --- */
@media (max-width: 992px) {
    .beginning-container {
        grid-template-columns: 1fr; /* Stack elements */
    }

    .beginning-image-wrapper {
        grid-column: 1 / -1;
        grid-row: 1; /* Keep image on top */
        max-width: 400px;
        margin: 0 auto 2rem auto;
        transform: rotate(-2deg);
    }
    .beginning-image-wrapper:hover {
        transform: rotate(0deg) scale(1.02);
    }

    .beginning-text-wrapper {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* --- Section 3: Our Ethos --- */
/* ======================= Ethos Smooth Tabs Section ======================= */
#ethos-tabs {
    padding: 5rem 0; /* Add some vertical spacing */
}

.ethos-tabs-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 for nav, 2/3 for content */
    gap: 4rem;
    align-items: flex-start;
}

/* --- Tab Navigation Styling --- */
.ethos-tab-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ethos-tab-button {
    padding: 1.5rem 1rem;
    cursor: pointer;
    border-left: 4px solid #ddd;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    opacity: 0.7;
}

.ethos-tab-button:hover {
    background-color: #fff;
    opacity: 1;
}

.ethos-tab-button.is-active {
    background-color: var(--color-white);
    border-left-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    opacity: 1;
}

.tab-number {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-primary);
}

.tab-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-dark);
}

/* --- Tab Content Styling --- */
.ethos-tab-content {
    position: relative;
    min-height: 700px; /* Adjust based on your content height */
}

.ethos-content-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;
    display: flex;
    flex-direction: column;
}

.ethos-content-pane.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ethos-content-pane img {
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.pane-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* --- Responsive Adjustments for Tabs --- */
@media (max-width: 992px) {
    .ethos-tabs-container {
        grid-template-columns: 1fr; /* Stack nav and content */
        gap: 2rem;
    }
    
    .ethos-tab-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid #ddd;
    }

    .ethos-tab-button {
        flex: 1;
        justify-content: center;
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 1rem 0.5rem;
    }
    
    .ethos-tab-button.is-active {
        border-bottom-color: var(--color-primary);
    }
    
    .ethos-tab-content {
    }
}

@media (max-width: 768px) {
    .tab-number { display: none; } /* Hide number on small screens for space */
    .tab-title { font-size: 1rem; }
}



/* --- Section 4: Timeline --- */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0 auto;
    padding: 2rem 0;
}
.timeline-wrapper::before { /* The main vertical line */
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 3px;
    background-color: var(--color-text);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}
.timeline-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 24px;
    height: 24px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    border: 4px solid var(--color-dark);
    z-index: 1;
}
.timeline-content h4 {
    font-family: var(--font-primary);
    color: var(--color-secondary);
    font-size: 1.5rem;
}
.timeline-content p {
    color: var(--color-light);
}
.timeline-content img {
    margin-top: 1rem;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* --- Section 5: The Space --- */
.space-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 3);
}
.space-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* --- Section 6: Our Community --- */
#our-community {
    min-height: 500px;
    color: var(--color-white);
}
.community-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: no-repeat center center/cover;
    background-attachment: fixed;
    filter: grayscale(100%) brightness(0.6);
    z-index: -2;
}
.community-content .glass-box-dark {
    max-width: 700px;
}

/* --- Section 7: The Future --- */
#the-future .btn {
    margin-top: 1rem;
}

/* --- Responsive Adjustments for Story Page --- */
@media (max-width: 992px) {
    .story-container, .ethos-container {
        grid-template-columns: 1fr;
    }
    .story-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto 2rem auto;
    }
    .ethos-image-box {
        max-width: 400px;
        margin: 0 auto 3rem auto;
    }
}
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 10px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .timeline-dot {
        left: 0;
        width: 20px;
        height: 20px;
    }
}

/* ======================= Additions for Testimonials Page ======================= */

/* --- Section 1: Testimonials Hero --- */
#testimonials-hero {
    background:  no-repeat center center/cover;
    padding: calc(var(--spacing-unit) * 8) 0;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}
#testimonials-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(20, 20, 20, 0.7);
    z-index: -1;
}

/* --- Section 2: Featured Testimonials --- */

/* ======================= Featured Reviews Slider Section (Swiper.js) ======================= */
#featured-reviews-slider {
    padding: 4rem 0;
    position: relative; /* Needed for positioning nav buttons */
}

.testimonial-slider {
    width: 100%;
    max-width: 600px; /* Controls the size of the main card */
    padding: 2rem 0; /* Add padding for shadows and effects */
    overflow: visible; /* Important for seeing side slides */
}

.swiper-slide {
    /* Style for slides that are not active */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.swiper-slide-active .testimonial-card {
    /* Styles for the main, centered card */
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    padding-top: 3.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 5px solid var(--color-primary);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Shadow for inactive cards */
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: -15px; /* Pop the avatar out of the top */
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid var(--color-white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.review-stars {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.review-author {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-dark);
}

/* --- Styling Swiper Navigation --- */
.testimonial-slider .swiper-button-next,
.testimonial-slider .swiper-button-prev {
    color: var(--color-primary);
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

/* Hide arrows on smaller screens where swiping is more natural */
@media (max-width: 768px) {
    .testimonial-slider .swiper-button-next,
    .testimonial-slider .swiper-button-prev {
        display: none;
    }
}

/* --- Section 3: Ratings Overview --- */
.ratings-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: calc(var(--spacing-unit) * 5);
    align-items: center;
}
.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.rating-bar-item span:first-child {
    font-weight: 500;
    width: 120px;
}
.rating-bar {
    flex-grow: 1;
    height: 15px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 10px;
}
.rating-bar-item span:last-child {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* --- Section 4: Video Testimonials --- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: 3rem;
}
.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.video-thumbnail img {
    width: 100%;
    display: block;
    transition: transform var(--transition-speed) ease;
}
.video-thumbnail:hover img {
    transform: scale(1.05);
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255,255,255,0.9);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: background-color var(--transition-speed) ease;
}
.video-thumbnail:hover .play-button {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.video-thumbnail p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
    font-family: var(--font-primary);
}

/* --- Section 5: Long-Form Review --- */

/* ======================= Redesigned Long-Form Review Section ======================= */
#long-form-premium {
    min-height: 80vh; /* Give the section plenty of space */
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    /* Immersive background image with parallax effect */
    background:  no-repeat center center/cover;
    background-attachment: fixed;
}

/* Dark overlay for text readability */
#long-form-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 42, 42, 0.8); /* var(--color-dark) with opacity */
    backdrop-filter: blur(4px); /* Glass morphism effect */
}

#long-form-premium .container {
    position: relative; /* Ensure container is above the overlay */
    z-index: 2;
}

.review-content-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative; /* Crucial for the pseudo-element */
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 for image, 2/3 for text */
    gap: 3rem;
    align-items: center;
    overflow: hidden; /* Contains the quote mark */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
}

/* The giant decorative quotation mark */
.review-content-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-primary);
    font-size: 12rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05); /* Very subtle color */
    line-height: 1;
    z-index: 1;
}

.review-client-image {
    z-index: 2; /* Sits above the quote mark */
}

.review-client-image img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.review-client-text {
    z-index: 2; /* Sits above the quote mark */
}

.review-client-text h3 {
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.review-client-text p {
    margin-bottom: 1.5rem;
    color: #444;
}

.review-client-text cite {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* --- Responsive Adjustments for Long-Form Review --- */
@media (max-width: 992px) {
    .review-content-card {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        padding: 2.5rem;
    }

    .review-content-card::before {
        font-size: 10rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .review-client-image img {
        max-height: 300px; /* Adjust height for stacked layout */
    }
}
/* --- Section 6: Before & After --- */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
}
.transformation-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.ba-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
}
.ba-images::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-white);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.ba-images img {
    width: 100%;
    border-radius: var(--border-radius);
}
.transformation-card h4 {
    color: var(--color-primary);
}
.transformation-card p {
    margin: 0;
    font-weight: 500;
}

/* --- Responsive Adjustments for Testimonials Page --- */
@media (max-width: 992px) {
    .ratings-container, .long-form-container {
        grid-template-columns: 1fr;
    }
    .long-form-image {
        max-height: 400px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .video-grid, .before-after-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================= Additions for Journal Page ======================= */

/* --- Section 1: Journal Hero --- */
#journal-hero {
    background:  no-repeat center center/cover;
    padding: calc(var(--spacing-unit) * 8) 0;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}
#journal-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 30, 30, 0.75);
    z-index: -1;
}

/* --- Section 2: Featured Article --- */
.featured-post {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}
.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.post-meta {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}
.post-meta .post-category {
    color: var(--color-primary);
    font-weight: 700;
}
.post-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* --- Section 3: Recent Articles --- */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
    margin-top: 3rem;
}
.post-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-card-content {
    padding: 1.5rem;
}
.post-card-content h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem 0;
}
.post-card-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}
.post-card-content a {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Section 4: Categories --- */

/* ======================= Redesigned Category Panels Section ======================= */
#category-panels {
    padding: 4rem 0;
}

.category-panels-container {
    display: flex;
    width: 100%;
    max-width: var(--container-width);
    margin: 3rem auto 0 auto;
    gap: 1rem;
    min-height: 500px;
}

.category-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    
    /* The core of the expanding effect */
    flex: 1; 
    
    background-size: cover;
    background-position: center;
    
    transition: flex 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth animation for flex property */
    
    display: flex;
    align-items: flex-end; /* Align content to the bottom */
}

/* Hover state: the hovered panel grows significantly */
.category-panels-container:hover .category-panel:hover {
    flex: 5;
}

.panel-content {
    color: var(--color-white);
    padding: 2rem;
    position: relative;
    width: 100%;
    z-index: 2;
    box-sizing: border-box;
}

/* Dark overlay for text readability */
.category-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%);
    transition: opacity 0.5s ease;
}

.category-panel:hover::before {
    opacity: 0.8;
}

.panel-number {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    opacity: 0; /* Hidden by default */
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.category-panel:hover .panel-number {
    opacity: 1;
    transform: translateY(0);
}

.panel-content h3 {
    font-size: 2rem;
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0.5rem 0 0 0;
    
    /* Vertical text in collapsed state */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    
    transition: writing-mode 0.5s ease, transform 0.5s ease;
}

.category-panel:hover h3 {
    writing-mode: horizontal-tb; /* Horizontal text on hover */
    transform: rotate(0deg);
}

/* Animated decorative border */
.panel-content::after {
    content: '';
    position: absolute;
    left: 2rem;
    bottom: 1rem;
    width: 0; /* Hidden by default */
    height: 4px;
    background-color: var(--color-primary);
    transition: width 0.5s ease 0.2s;
}

.category-panel:hover .panel-content::after {
    width: 60px; /* Animate to this width on hover */
}

/* --- Responsive Adjustments for Panels --- */
@media (max-width: 768px) {
    .category-panels-container {
        flex-direction: column; /* Stack panels vertically */
        min-height: auto;
        gap: 1.5rem;
    }
    
    .category-panel {
        flex: 1; /* Reset flex grow */
        height: 150px; /* Give each card a fixed height */
    }

    /* We don't need the hover grow effect on mobile */
    .category-panels-container:hover .category-panel:hover {
        flex: 1;
    }

    .panel-content h3 {
        /* Force horizontal text on mobile */
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-size: 1.5rem;
    }

    .panel-number {
        /* Always show the number on mobile */
        opacity: 1;
        transform: translateY(0);
    }
    
    .panel-content::after {
        /* Always show the border on mobile */
        width: 50px;
    }
}

/* ======================= Redesigned Ask a Barber Section ======================= */
#ask-a-barber-premium {
    position: relative;
    padding: 6rem 0;
    /* Immersive background with parallax */
    background:  no-repeat center center/cover;
    background-attachment: fixed;
}

/* Dark overlay with glass effect */
#ask-a-barber-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(42, 42, 42, 0.7); /* var(--color-dark) with opacity */
    backdrop-filter: blur(5px);
    z-index: 1;
}

#ask-a-barber-premium .container {
    position: relative;
    z-index: 2;
}

.ask-card {
    background: var(--color-white);
    max-width: 650px;
    margin: 4rem auto 0 auto; /* Top margin creates space for the avatar */
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    overflow: hidden; /* To contain the decorative element */
}

.barber-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    border: 6px solid var(--color-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    top: -60px; /* Halfway out of the top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ask-card-content {
    padding: 5rem 3rem 3rem 3rem; /* Extra top padding for the avatar space */
    position: relative;
    z-index: 5;
}

/* Decorative Question Mark */
.ask-card::after {
    content: '?';
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    font-family: var(--font-primary);
    font-size: 15rem;
    font-weight: 700;
    color: rgba(0,0,0,0.04);
    z-index: 1;
    line-height: 1;
}

.ask-form {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.ask-form .form-group {
    width: 100%;
}

.ask-form input,
.ask-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--color-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ask-form textarea {
    resize: vertical;
    min-height: 100px;
}

.ask-form input:focus,
.ask-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(173, 52, 62, 0.2);
}

.ask-form .btn {
    width: 100%;
    padding: 15px; /* Make button taller to match inputs */
}

/* --- Responsive Adjustments for Ask a Barber --- */
@media (max-width: 768px) {
    .ask-card-content {
        padding: 4rem 1.5rem 1.5rem 1.5rem;
    }

    .ask-card::after {
        font-size: 10rem;
        opacity: 0.5; /* Make it a bit more visible on smaller screens if desired */
    }
}
/* --- Section 6: Newsletter CTA --- */
.newsletter-container {
    padding: 3rem 0;
}
.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
}
.newsletter-form .btn {
    flex-shrink: 0; /* Prevents button from shrinking */
}

/* --- Section 7: Author Spotlight --- */
.author-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
}
.author-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}
.author-bio h4 {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-primary);
    text-transform: none;
}
.author-bio h3 {
    margin-top: 0;
}

/* --- Responsive Adjustments for Journal Page --- */
@media (max-width: 992px) {
    .featured-post, .ask-barber-container, .author-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .featured-image { order: -1; margin-bottom: 2rem; }
    .ask-barber-image { order: -1; margin-bottom: 2rem; }
    .author-image { margin: 0 auto 1rem auto; }
    .category-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}


/* ======================= Additions for Pictures Page ======================= */

/* --- Section 1: Pictures Hero --- */
#pictures-hero {
    background:  no-repeat center center/cover;
    padding: calc(var(--spacing-unit) * 8) 0;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}
#pictures-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 30, 30, 0.6);
    z-index: -1;
}

/* --- Section 2: Main Gallery --- */
.gallery-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: var(--spacing-unit);
}
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}
.grid-item-tall { grid-row: span 2; }
.grid-item-wide { grid-column: span 2; }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.grid-item:hover .gallery-img {
    transform: scale(1.05);
    filter: brightness(0.7);
}
.img-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 1rem;
    color: var(--color-white);
    font-family: var(--font-primary);
    text-transform: uppercase;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.grid-item:hover .img-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section 3: Atmosphere --- */
.atmosphere-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}
.atmosphere-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* --- Section 4: Process in Action --- */
#process-in-action {
    min-height: 500px;
    background:  no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}
#process-in-action::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.process-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}
.process-content .glass-box h2 { color: var(--color-white); }

/* --- Section 5: Details Gallery --- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-unit) * 1.5;
    margin-top: 3rem;
}
.detail-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* --- Section 6: Community Moments --- */ 
/* ======================= Redesigned Community Collage Section ======================= */
#community-collage {
    padding: 6rem 0;
}

.community-collage-container {
    display: grid;
    /* Using a precise grid for placing items */
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 120px); /* Rows with a fixed height */
    gap: 1.5rem;
}

/* --- Text Block Styling --- */
.collage-text-block {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
    align-self: center; /* Vertically center the text block */
    z-index: 5;
    position: relative;
}

.collage-text-block .section-title {
    text-align: left;
}
.collage-text-block .section-title::after {
    left: 0;
    transform: none;
}
.collage-text-block p {
    color: #ccc;
    max-width: 450px;
    background-color: #3a3a3a;
    padding: 10px;
    border-radius: 10px;
}

/* --- Individual Photo Item Styling --- */
.collage-item {
    position: relative;
    padding: 1rem;
    background-color: var(--color-white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s 0.2s;
}

.collage-item:hover {
    transform: scale(1.05) rotate(0deg) !important; /* Override inline rotation */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s 0s;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The hover caption */
.collage-caption {
    position: absolute;
    bottom: 1rem; /* Aligns with the padding */
    left: 1rem;
    right: 1rem;
    background-color: rgba(0,0,0,0.7);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-align: center;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    
    /* Animation setup */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.collage-item:hover .collage-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Precise positioning and rotation for each photo */
.item-1 {
    grid-column: 3 / span 3;
    grid-row: 1 / span 3;
    transform: rotate(4deg);
    z-index: 2;
}
.item-2 {
    grid-column: 1 / span 2;
    grid-row: 2 / span 3;
    transform: rotate(-5deg);
    z-index: 1;
}
.item-3 {
    grid-column: 4 / span 2;
    grid-row: 3 / span 2;
    transform: rotate(2deg);
    z-index: 3;
}

/* --- Responsive Adjustments for Collage --- */
@media (max-width: 992px) {
    .community-collage-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .collage-text-block {
        text-align: center;
    }
    
    .collage-text-block .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .collage-item {
        width: 80%;
        max-width: 400px;
        transform: rotate(0) !important; /* Remove rotation on mobile */
    }
    
    .collage-item:nth-child(odd) {
        transform: rotate(2deg) !important;
    }
    .collage-item:nth-child(even) {
        transform: rotate(-2deg) !important;
    }
}

/* --- Image Modal (Lightbox) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.modal-close:hover, .modal-close:focus {
    color: #bbb;
}

/* --- Responsive Adjustments for Pictures Page --- */
@media (max-width: 992px) {
    .grid-item-wide { grid-column: span 1; }
    .atmosphere-container { grid-template-columns: 1fr; }
    .atmosphere-image { order: -1; margin-bottom: 2rem; }
}
@media (max-width: 768px) {
    .gallery-main-grid { grid-auto-rows: 200px; }
    .details-grid { grid-template-columns: 1fr; }
}

/* ======================= Footer ======================= */
.main-footer { padding-top: calc(var(--spacing-unit) * 4); }
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 3);
}
.footer-column h4 { color: var(--color-secondary); margin-bottom: var(--spacing-unit); }
.footer-column p, .footer-column ul li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-column a { color: var(--color-light); }
.footer-column a:hover { color: var(--color-secondary); }
.social-links { display: flex; gap: var(--spacing-unit); }
.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--color-text);
    color: var(--color-light);
    border-radius: 50%;
}
.social-links a:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-dark);
}
.footer-bottom {
    text-align: center;
    padding: var(--spacing-unit) 0;
    border-top: 1px solid var(--color-text);
    font-size: 0.8rem;
}

/* ======================= Animations ======================= */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in.is-visible { opacity: 1; }
.slide-up { transform: translateY(50px); }
.slide-up.is-visible { opacity: 1; transform: translateY(0); }
.zoom-in { transform: scale(0.9); }
.zoom-in.is-visible { opacity: 1; transform: scale(1); }


/* ======================= Responsive Design ======================= */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .about-container, .philosophy-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto calc(var(--spacing-unit) * 2) auto;
    }
    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: calc(var(--spacing-unit) * 4) 0; }
    .header-container .btn { display: none; }
    
    .services-grid, .philosophy-points {
        grid-template-columns: 1fr;
    }
    .gallery-item:nth-child(n) { /* Reset masonry grid for mobile */
        grid-column: span 1;
        grid-row: span 1;
    }
    blockquote { font-size: 1.2rem; }
}

/* ======================= Thank You / Confirmation Page ======================= */
.thank-you-page {
    background-color: var(--color-dark);
}

.thank-you-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.thank-you-box {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 550px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-top: 5px solid var(--color-primary);
}

.thank-you-box h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.thank-you-box p {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- The SVG Checkmark and Animation --- */
.checkmark-container {
    height: 100px;
    width: 100px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--color-primary);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--color-primary);
    animation: fill-color 0.4s ease-in-out 0.4s forwards, scale-up 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--color-primary);
    fill: none;
    animation: stroke-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-draw 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Keyframe Animations */
@keyframes stroke-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scale-up {
    from {
        transform: none;
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes fill-color {
    to {
        box-shadow: inset 0px 0px 0px 50px var(--color-primary);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .thank-you-box {
        padding: 2rem;
    }
    .thank-you-box h1 {
        font-size: 2rem;
    }
}