:root {
    /* Brand Colors */
    --primary-color: #91211f;
    /* Cardiff Red */
    --secondary-color: #cd9e2c;
    /* Oak Yellow */
    --accent-color: #f4e4bc;
    /* Light Wood */

    /* Neutral Palette */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #ffffff;
    --bg-light: #fdfcf9;
    --bg-dark: #121212;

    /* Glassmorphism & Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --pill-radius: 50px;
    --section-radius: 40px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 20px 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Base Component: Pill Button */
.pill-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--pill-radius);
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pill-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(145, 33, 31, 0.2);
    background-color: var(--secondary-color);
}

.pill-button.outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pill-button.outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 90%;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

header.scrolled .brand-logo {
    height: 45px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 30px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    /* Changed from white to dark for visibility */
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

header.scrolled .nav-links li a {
    color: var(--text-dark);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
}

.nav-links li a:hover::after {
    width: 100%;
}

header.scrolled .nav-links li a:hover {
    color: var(--primary-color);
}

/* Nav CTA Specifics */
.nav-cta {
    padding: 10px 25px !important;
    font-size: 0.95rem !important;
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-cta:hover {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

header.scrolled .nav-cta {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

header.scrolled .nav-cta:hover {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

/* Hamburger Menu Base (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-close {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: var(--secondary-color);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    line-height: 1;
}

.mobile-logo-container {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: 80px;
    margin-bottom: 20px;
}

.mobile-menu-logo {
    height: 80px;
    width: auto;
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 2000;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        padding: 40px 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-close,
    .mobile-logo-container {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
        padding: 40px 0;
    }

    .nav-links li a {
        font-size: 1.8rem;
        color: var(--secondary-color) !important;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-menu .nav-cta {
        margin-top: 30px;
        font-size: 1.3rem !important;
        padding: 16px 50px !important;
        background: var(--secondary-color) !important;
        color: var(--primary-color) !important;
        border-radius: 50px !important;
    }

    .nav-menu .nav-cta:hover {
        background: var(--primary-color) !important;
        color: var(--secondary-color) !important;
        transform: translateY(-3px) scale(1.05) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }
}

@media screen and (prefers-reduced-motion: reduce) {
    .nav-menu {
        transition: none;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu:not(.active) {
        right: -100%;
    }
}

/* Hero Redesign Styles - Mobile First Approach */
#hero-redesign {
    position: relative;
    background-color: var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* Base Mobile Styles (Small Screens) */
    margin: 70px 0 0;
    border-radius: 0;
    padding: 30px 15px 40px;
    height: auto;
    min-height: unset;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-bg-texture {
    position: absolute;
    top: 0;
    left: -20%;
    width: 150%;
    height: 100%;
    background-image: url("/images/oakbg.webp");
    background-size: cover;
    background-position: left;
    opacity: 0.3;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero-dotted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 2;
}

.hero-header-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 15;
}

.review-pill {
    margin-left: -10px;
    margin-top: 0;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.stars {
    color: #FFD700;
    font-size: 1.3rem;
}

.review-text {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* Hero Content - Mobile First */
.hero-main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    height: auto;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-text-side {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(3rem, 9vw, 3.5rem);
    color: white;
    line-height: 1.05;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-text {
    color: var(--secondary-color);
    font-size: 1.05em;
    display: inline-block;
    transform: skewX(-5deg);
    margin: 0 5px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.4;
    display: block;
}

.hero-book-btn {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 800;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
    margin: 20px auto 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.hero-book-btn:hover {
    background-color: var(--text-dark);
    color: white;
    transform: translateY(-3px);
}

.experience-text {
    /* Hidden on mobile default or adjusted? Using scale for simplicity */
    position: absolute;
    bottom: 70px;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 0.8;
    font-family: var(--font-heading);
    pointer-events: none;
    white-space: nowrap;
    display: none;
    /* Hide on mobile by default to avoid clutter */
}

.experience-text span {
    font-size: 1.1rem;
    display: block;
    font-weight: 400;
    font-style: italic;
    padding-left: 8px;
}

.hero-image-side {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.hero-person-img {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    max-height: 400px;
    width: 100%;
    max-width: 450px;
    object-fit: contain;
    margin-bottom: 0;
}

.intro-video-pill {
    position: relative;
    bottom: auto;
    right: auto;
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    gap: 12px;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    margin: -30px auto 0;
    animation: float 5s ease-in-out infinite;
}

.pill-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--secondary-color);
}

.pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pill-info p {
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
    font-size: 1.2rem;
}

.watch-video-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 5rem;
}

.play-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 5rem;
    padding-left: 2px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Medium Devices (Tablets, > 480px) */
@media (min-width: 481px) {
    #hero-redesign {
        margin: 95px 10px 10px;
        border-radius: 30px;
        padding-top: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Large Devices (Desktops, > 991px) */
@media (min-width: 992px) {
    #hero-redesign {
        --hero-original-height: calc(100vh - 100px);
        height: calc(var(--hero-original-height) * 1);
        min-height: 500px;
        flex-direction: row;
        padding: 20px 5%;
        overflow: hidden;
    }

    .hero-bg-texture {
        opacity: 0.3;
    }

    .hero-header-bar {
        top: 80px;
        left: 40px;
    }

    .review-pill {
        margin-left: -18px;
        margin-top: -30px;
        padding: 10px 20px;
    }

    .hero-main-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        height: var(--hero-original-height);
    }

    .hero-text-side {
        flex: 1;
        padding-bottom: 40px;
        padding-top: 40px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: clamp(6rem, 4vw, 3.5rem);
        margin-top: 0;
        margin-bottom: 20px;
        padding-top: 40px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 450px;
        margin-bottom: 30px;
        display: block;
    }

    .hero-book-btn {
        width: fit-content;
        padding: 18px 34px;
        font-size: 1.2rem;
        margin: 0 0 30px;
    }

    .experience-text {
        display: block;
    }

    .hero-image-side {
        flex: 1;
        align-items: flex-end;
        justify-content: flex-end;
        height: 100%;
        margin-top: 0;
    }

    .hero-person-img {
        position: absolute;
        top: 0;
        right: 0;
        height: var(--hero-original-height);
        max-height: unset;
        width: auto;
        max-width: unset;
        object-fit: cover;
        object-position: bottom;
    }

    .intro-video-pill {
        position: absolute;
        bottom: 90px;
        right: 170px;
        margin: 0;
        width: 300px;
        padding: 20px 30px;
    }
}

/* Mobile Video Section - Hidden on Desktop */
.mobile-only-video {
    display: none;
}

@media (max-width: 991px) {
    .mobile-only-video {
        display: block;
        background-color: #f9f9f9;
        padding: 40px 0;
        margin: 0;
    }

    .video-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .video-container iframe {
        width: 100% !important;
        max-width: 500px;
        height: auto;
        aspect-ratio: 9 / 16;
        min-height: 70vh;
        max-height: 85vh;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .mobile-only-video {
        padding: 30px 0;
    }

    .video-container {
        padding: 0 10px;
    }

    .video-container iframe {
        min-height: 65vh;
        max-height: 80vh;
        border-radius: 15px;
    }
}

/* Facebook video facade — shown before user taps to load */
.fb-video-facade {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    min-height: 65vh;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #111;
}

.fb-video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.72;
    display: block;
    transition: opacity 0.2s ease;
}

.fb-video-facade:hover img,
.fb-video-facade:focus-within img {
    opacity: 0.85;
}

.fb-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fb-play-circle {
    width: 72px;
    height: 72px;
    background: #1877f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-video-facade:hover .fb-play-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(24, 119, 242, 0.65);
}

.fb-play-label {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.01em;
}


/* Section Containers & Headers */
.section-header {
    padding-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Pill Containers (About/Services) */
.pill-container {
    background: white;
    padding: 60px;
    border-radius: var(--section-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pill-container.alt {
    background: var(--accent-color);
}

@media (max-width: 991px) {
    .pill-container {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 20px;
    }
}

.pill-content h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 24px;
    line-height: 1.2;
}

.pill-content h3 span {
    color: var(--primary-color);
}

.pill-content p {
    margin-bottom: 20px;
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* Hero Testimonials Carousel */
/* Hero Testimonials Carousel */
.hero-testimonials-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    /* More transparent (was 0.75) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    /* Gradient mask to fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 60s linear infinite;
    /* Slowed down from 40s */
}

/* Smooth continuous scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    white-space: nowrap;
    opacity: 0.95;
    font-size: 1.2rem;
}

.carousel-item p {
    font-style: normal;
    /* Changed from italic */
    font-weight: 300;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    display: inline;
}

.carousel-item .author {
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .hero-testimonials-carousel {
        border-radius: 0 0 30px 30px;
        height: 50px;
    }

    .carousel-item {
        font-size: 1.2rem;
    }
}



.pill-image {
    border-radius: calc(var(--section-radius) - 10px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.pill-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.table-placeholder {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.table-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3C%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.placeholder-content span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.placeholder-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.7;
    margin: 0 !important;
}

/* Process Grid */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.process-grid.centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.process-card {
    background: white;
    padding: 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    flex: 1 1 300px;
    /* Better flexibility */
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .process-card {
        padding: 30px 20px;
        border-radius: 30px;
    }
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.step-icon svg {
    width: 38px;
    height: 38px;
}

.process-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Testimonials Section */
#testimonials .process-card {
    padding: 50px 40px;
    background: white;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
}

#testimonials .process-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-dark);
}

#testimonials .process-card strong {
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    /* Removed aspect-ratio to prevent zooming */
    overflow: hidden;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Changed from 100% to auto */
    display: block;
    /* Removes bottom whitespace */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(145, 33, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 50px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoom 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.2rem;
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 50px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--section-radius) var(--section-radius) 0 0;
    padding-top: 100px;
}

#contact h2 {
    color: var(--text-light);
}

/* Contact Section Cleanup */
.contact-form-wrapper {
    display: none;
}

/* Contact Section Refactor (Social First) */
.social-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .social-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.social-contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.social-contact-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--text-dark);
}

.social-contact-card h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.social-contact-card p {
    margin-bottom: 30px;
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.5;
}

.social-contact-card .pill-button {
    width: 100%;
    justify-content: center;
}

.social-contact-card.whatsapp .contact-icon-wrapper {
    background: #25D366;
    color: white;
}

.social-contact-card.facebook .contact-icon-wrapper {
    background: #1877F2;
    color: white;
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.footer-logo {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    display: block;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Up Animation (default) */
.reveal.fade-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left Animation */
.reveal.fade-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal.fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right Animation */
.reveal.fade-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal.fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.reveal.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.reveal.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animations */
.reveal.active .process-card,
.reveal.active .gallery-item,
.reveal.active .pill-container {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.reveal.active .process-card:nth-child(1),
.reveal.active .gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal.active .process-card:nth-child(2),
.reveal.active .gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal.active .process-card:nth-child(3),
.reveal.active .gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal.active .process-card:nth-child(4),
.reveal.active .gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.reveal.active .gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.reveal.active .gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimizations - reduce animation distance */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(30px);
    }

    .reveal.fade-up {
        transform: translateY(30px);
    }

    .reveal.fade-left {
        transform: translateX(-30px);
    }

    .reveal.fade-right {
        transform: translateX(30px);
    }

    .reveal.scale-in {
        transform: scale(0.95);
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Respect user's motion preferences */
@media screen and (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.fade-up,
    .reveal.fade-left,
    .reveal.fade-right,
    .reveal.scale-in {
        opacity: 0;
        transform: none;
        transition: opacity 0.3s ease;
    }

    .reveal.active,
    .reveal.fade-up.active,
    .reveal.fade-left.active,
    .reveal.fade-right.active,
    .reveal.scale-in.active {
        opacity: 1;
        transform: none;
    }

    .reveal.active .process-card,
    .reveal.active .gallery-item,
    .reveal.active .pill-container {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Pause carousel animation for reduced motion */
    .carousel-track {
        animation: none;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}
/* ───────────────────────────────────────────────────────────────────────────
   Added 2026-10-07 — buyer-order layout + mobile.

   Rationale: someone looking for this service wants, in order,
   (1) proof it works, (2) what it costs, (3) how to start.
   The old order put 484 words of prose ahead of the before/after images.
   ─────────────────────────────────────────────────────────────────────────── */

/* 1 ── RESULTS, straight after the hero ────────────────────────────────── */
.results-first { padding: 50px 0 10px; }
.results-first .results-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 28px;
}
.results-pair {
    background: #fff; border-radius: 30px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.results-pair img { width: 100%; height: auto; display: block; }
.results-pair .pair-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.results-pair .pair-imgs figure { margin: 0; position: relative; }
.results-pair .pair-imgs figcaption {
    position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.72);
    color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 50px; font-family: var(--font-heading);
}
.results-pair .pair-label {
    padding: 16px 20px; font-size: .95rem; color: var(--text-medium); text-align: center;
}

/* 2 ── PRICE ───────────────────────────────────────────────────────────── */
.price-block { padding: 50px 0; }
.price-card {
    background: var(--primary-color); color: #fff; border-radius: var(--section-radius);
    padding: 48px 50px; text-align: center; box-shadow: 0 20px 40px rgba(145,33,31,.18);
}
.price-card h2 { color: #fff; margin-bottom: 8px; }
.price-figures {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    max-width: 620px; margin: 28px auto 20px;
}
.price-figure {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px; padding: 22px 18px;
}
.price-figure .amount {
    font-family: var(--font-heading); font-weight: 800; color: var(--secondary-color);
    font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; display: block;
}
.price-figure .label {
    display: block; margin-top: 6px; font-size: .9rem; color: rgba(255,255,255,.82);
}
.price-note { color: rgba(255,255,255,.9); max-width: 540px; margin: 0 auto; }
.price-included {
    list-style: none; padding: 0; margin: 22px auto 0; max-width: 540px;
    display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
    font-size: .92rem; color: rgba(255,255,255,.9);
}
.price-included li::before { content: "✓ "; color: var(--secondary-color); font-weight: 700; }

/* 3 ── HOW TO GET IT ───────────────────────────────────────────────────── */
.how-block { padding: 20px 0 50px; }
.how-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px;
}
.how-step {
    background: #fff; border-radius: 30px; padding: 32px 26px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.how-step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent-color); color: var(--primary-color);
    font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.how-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.how-step p { color: var(--text-medium); font-size: .95rem; }
.how-cta { text-align: center; margin-top: 34px; }
.how-cta .pill-button { margin: 6px; }

/* 4 ── Local detail, moved below and made scannable ────────────────────── */
.local-detail { padding: 40px 0 50px; }
.local-detail .pill-container { padding: 44px 48px; }
.local-detail p { margin-bottom: 16px; max-width: 68ch; }
.local-detail h2 { margin-bottom: 18px; }

/* 5 ── MOBILE: stack everything, centre everything ─────────────────────── */
@media (max-width: 991px) {
    .results-first .results-grid,
    .price-figures,
    .how-steps { grid-template-columns: 1fr; }

    .results-pair .pair-imgs { grid-template-columns: 1fr 1fr; }  /* keep before|after side by side */

    .price-card { padding: 36px 24px; border-radius: 30px; }

    /* Centre-align body content on small screens */
    .local-intro-section, .local-detail, .pill-content, .areas-intro,
    .comparison-section, .before-after-section, .faq-section, .seo-hero {
        text-align: center;
    }
    .local-detail p, .areas-intro p, .pill-content p { margin-left: auto; margin-right: auto; }

    /* CTA rows that use inline flex should centre and stack */
    .pill-content > div[style*="flex"],
    .local-detail div[style*="flex"],
    .areas-intro + div,
    .how-cta { justify-content: center !important; align-items: center !important; }

    .pill-button { width: auto; }
}

@media (max-width: 600px) {
    .results-pair .pair-imgs { grid-template-columns: 1fr; }   /* fully stack on phones */
    .price-included { flex-direction: column; align-items: center; gap: 8px; }
    .how-step { padding: 26px 20px; }
    .local-detail .pill-container { padding: 30px 22px; }
    .pill-button { display: block; width: 100%; max-width: 330px; margin: 8px auto !important; }
}

/* 6 ── TABLES: stack into cards on mobile ──────────────────────────────────
   Reported 2026-10-07: the comparison table caused horizontal scroll. It is
   width:100% with three columns and 20px cell padding, which exceeds a 360px
   viewport; the only existing mobile rule just shrank the font.

   Specificity note: the page-level <style> block loads AFTER style.css, and
   its rules are (0,2,1) e.g. `.comparison-table td.feature-col`. These use
   `table.comparison-table td[data-label]` = (0,2,2) so they win on merit
   rather than by !important, except where a page background must be overridden.

   data-label comes from each column's <th>, added by responsive_tables.py, so
   this works for .comparison-table, .price-table and any table added later. */
@media (max-width: 760px) {
    table[class] {
        display: block; width: 100%; max-width: 100%;
        border-collapse: separate; border-spacing: 0; font-size: .95rem;
    }
    /* Keep headers for screen readers, remove them from the visual flow. */
    table[class] thead {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
    table[class] tbody { display: block; }
    table[class] tbody tr {
        display: block; margin: 0 auto 16px; max-width: 420px;
        border: 1px solid #ececec; border-radius: 20px; overflow: hidden;
        box-shadow: 0 6px 18px rgba(0,0,0,.05); background: #fff;
    }
    table[class] tbody td[data-label] {
        display: flex; align-items: baseline; justify-content: space-between;
        gap: 16px; padding: 12px 18px; text-align: right;
        border-bottom: 1px solid #f1f1f1;
    }
    table[class] tbody tr td[data-label]:last-child { border-bottom: 0; }
    table[class] tbody td[data-label]::before {
        content: attr(data-label);
        font-family: var(--font-heading); font-weight: 600; font-size: .8rem;
        letter-spacing: .03em; text-transform: uppercase;
        color: var(--text-medium); text-align: left; flex: 0 0 auto;
    }
    /* First column of the comparison table reads as the card's title. */
    table.comparison-table tbody td.feature-col {
        display: block; text-align: center; padding: 13px 18px;
        background: var(--primary-color) !important; color: #fff !important;
        font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
        border-bottom: 0;
    }
    table.comparison-table tbody td.feature-col::before { content: none; }
    /* Keep the restoration/replacement colour coding, drop the full-bleed fills. */
    table.comparison-table tbody td.restore-col { background: #fff !important; color: #2a7a2a !important; }
    table.comparison-table tbody td.replace-col { background: #fff !important; color: #c0392b !important; }
    /* First column of the cost tables is the row's subject. */
    table.price-table tbody td:first-child {
        display: block; text-align: center; background: var(--accent-color) !important;
        font-family: var(--font-heading); font-weight: 700; border-bottom: 0;
    }
    table.price-table tbody td:first-child::before { content: none; }
}

/* 7 ── Safety net against any future sideways scroll ───────────────────── */
img, video, iframe, table, pre { max-width: 100%; }
img { height: auto; }
