/*
    HOMEPAGE STYLES (index.html)

    [ 1. HERO ]
    [ 2. SERVICES ]
    [ 3. PRICING TEASER ]
    [ 4. HOW IT WORKS ]
    [ 5. CONTACT CTA (Get In Touch) ]
    [ 6. ABOUT ]
    [ 7. TESTIMONIAL ]
    [ 8. BEFORE & AFTER SECTION ]
    [ 9. FAQ SECTION ]
    [ 10. RESPONSIVE ]
*/

/* 1. HERO */
.hero {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 5% 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Full-bleed transitioning background images */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: left bottom;
    opacity: 0;
    animation: heroBgCrossfade 16s var(--ease) infinite;
    transform-origin: bottom left;
    will-change: opacity, transform;
}

.hero-bg-00 { background-image: url('../images/hero-image00.jpg'); }
.hero-bg-01 { background-image: url('../images/hero-image01.jpg'); animation-delay: -8s; }

@keyframes heroBgCrossfade {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 1; transform: scale(1.06); }
    50%  { opacity: 0; transform: scale(1.08); }
    90%  { opacity: 0; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* Dark scrim to keep the centered hero text legible over the photos */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.30) 50%, rgba(0, 0, 0, 0.55) 100%);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    transform-style: preserve-3d;
    /* Scroll-Driven 3D Transform */
    view-timeline-name: --hero-scroll;
    animation: hero-3d-exit linear both;
    animation-timeline: --hero-scroll;
    animation-range: exit 0% exit 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

@keyframes hero-3d-exit {
    0% {
        transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0);
        opacity: 1;
    }
    100% {
        transform: perspective(1000px) rotateX(8deg) rotateY(-4deg) translateZ(-150px);
        opacity: 0;
    }
}

.hero-text .subtitle {
    text-transform: none;
    letter-spacing: 2px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0px;
    display: block;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease) 0.2s both;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 15px;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease) 0.4s both;
}

.hero-text .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease) 0.6s both;
}

.hero-stats {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: -6px auto 14px;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease) 0.7s both;
}

/* Fast turnaround pill in the hero */
.turnaround-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    margin-bottom: 34px;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease) 0.75s both;
}

/* Each stat wraps as a whole chunk on mobile — never mid-word */
.hero-stats .hero-stat {
    white-space: nowrap;
}

.hero-stats .stat-divider {
    margin: 0 12px;
}

.image-wrapper {
    position: relative;
    padding-bottom: 145%;
}

.image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%) brightness(1) drop-shadow(0 10px 30px transparent);
    transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
    transform: scale(1.03);
}

body.dark-mode .image-wrapper img {
    filter: grayscale(20%) brightness(0.85) drop-shadow(0 10px 30px transparent);
}

.image-wrapper:hover img {
    filter: grayscale(0%) brightness(1.1) drop-shadow(0 20px 50px var(--hero-shadow));
    transform: scale(1.1);
}

/* Dark mode: allow hover to override the dimmed base filter (matches light mode hover) */
body.dark-mode .image-wrapper:hover img {
    filter: grayscale(0%) brightness(1.1) drop-shadow(0 20px 50px var(--hero-shadow));
    transform: scale(1.1);
}

/* Hero secondary buttons: white on the photo background (primary keeps theme accent) */
.hero .btn:not(.btn-primary) {
    background: #ffffff;
    border-color: #ffffff;
    color: #111111;
}

.hero .btn:not(.btn-primary):hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
    color: #111111;
    transform: translateY(-3px);
}

.hero .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

/* 2. SERVICES */
.services-section {
    padding: 80px 5% 60px;
    display: flex;
    justify-content: center;
}

.services-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.services-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: var(--text);
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    justify-content: center;
}

.service-card {
    background: var(--bg-alt);
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.06);
    padding: 38px 32px 32px 32px;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Initial state for reveal animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.2s;
    will-change: transform, opacity;
}

.service-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Custom SVG icons as background images */
.service-icon-arch {
    background-image: url('data:image/svg+xml;utf8,<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="8" y="32" width="20" height="20" rx="2" fill="%23E6F0F7"/><rect x="22" y="38" width="8" height="14" rx="1" fill="%234A90E2"/><rect x="38" y="24" width="18" height="28" rx="2" fill="%23F7E6E6"/><rect x="44" y="30" width="6" height="16" rx="1" fill="%23D0021B"/><line x1="12" y1="60" x2="60" y2="60" stroke="%23BDBDBD" stroke-width="2"/><circle cx="56" cy="24" r="6" stroke="%234A90E2" stroke-width="2" fill="white"/><line x1="56" y1="30" x2="56" y2="54" stroke="%234A90E2" stroke-width="2"/><line x1="56" y1="54" x2="62" y2="66" stroke="%234A90E2" stroke-width="2"/><line x1="56" y1="54" x2="50" y2="66" stroke="%234A90E2" stroke-width="2"/></svg>');
}
.service-icon-portrait {
    background-image: url('data:image/svg+xml;utf8,<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="28" r="16" fill="%23FFF7E6"/><ellipse cx="36" cy="28" rx="10" ry="12" fill="white" stroke="%23F5A623" stroke-width="2"/><path d="M26 52c0-6 8-8 10-8s10 2 10 8v4H26v-4z" fill="%23F5A623" fill-opacity="0.15"/><ellipse cx="36" cy="28" rx="7" ry="8" fill="%23FFF" stroke="%23F5A623" stroke-width="1.5"/><circle cx="36" cy="28" r="6" fill="%23FFF" stroke="%23F5A623" stroke-width="1.5"/></svg>');
}
.service-icon-staging {
    background-image: url('data:image/svg+xml;utf8,<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="12" y="20" width="48" height="32" rx="6" fill="%23F3E6F7"/><rect x="20" y="36" width="16" height="12" rx="3" fill="%238C6FC4"/><rect x="44" y="40" width="8" height="8" rx="2" fill="%23F5A623"/><rect x="48" y="28" width="8" height="8" rx="2" fill="%23BDBDBD"/><rect x="16" y="28" width="8" height="8" rx="2" fill="%23BDBDBD"/></svg>');
}

.service-icon-product {
    background-image: url('data:image/svg+xml;utf8,<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36 10L60 22V48L36 60L12 48V22L36 10Z" fill="%23E6F0F7" stroke="%234A90E2" stroke-width="2" stroke-linejoin="round"/><path d="M12 22L36 34L60 22" stroke="%234A90E2" stroke-width="2" stroke-linejoin="round"/><path d="M36 34V60" stroke="%234A90E2" stroke-width="2"/><path d="M24 16L48 28" stroke="%23F5A623" stroke-width="2" stroke-linecap="round"/></svg>');
}

.service-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: 1px;
}

.service-desc {
    font-size: 1rem;
    color: var(--subtle);
    text-align: center;
    margin-bottom: 0;
}

/* Mini comparison sliders inside service cards (reuses .comparison-slider styles) */
.service-preview {
    width: 100%;
    margin: 0 0 24px;
}

/* Scale the slider handle and labels down for mini previews */
.service-preview .slider-line::after {
    width: 32px;
    height: 32px;
}

.service-preview .slider-line::before {
    width: 8px;
    height: 8px;
}

.service-preview .label {
    top: 10px;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    padding: 3px 6px;
}

.service-preview .label-before {
    left: 10px;
}

.service-preview .label-after {
    right: 10px;
}

/* 3. PRICING TEASER */
.pricing-teaser {
    background: var(--bg-alt);
    border-top: 1px solid rgba(51, 51, 51, 0.08);
    border-bottom: 1px solid rgba(51, 51, 51, 0.08);
    padding: 90px 5%;
    text-align: center;
}

body.dark-mode .pricing-teaser {
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-teaser-inner {
    max-width: 640px;
    margin: 0 auto;
}

.pricing-teaser .subtitle {
    display: block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtle);
}

.pricing-teaser-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    margin: 0 0 14px;
}

.pricing-teaser-price {
    font-size: 1.1rem;
    color: var(--subtle);
    margin-bottom: 32px;
}

.pricing-teaser-price strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text);
}

/* 4. HOW IT WORKS — reuses .process-step styles from pricing.css */
.how-it-works {
    padding: 80px 5%;
    /* Same design tokens the pricing page uses for its process steps */
    --pricing-accent: #7d8870;
    --pricing-line: rgba(51, 51, 51, 0.16);
}

body.dark-mode .how-it-works {
    --pricing-line: rgba(255, 255, 255, 0.16);
}

.how-it-works-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works .process-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
    list-style: none;
}

/* Process steps (duplicated from pricing.css so the homepage doesn't need
   to load the pricing page stylesheet) */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-step { padding-top: 18px; border-top: 1px solid var(--pricing-line); }
.process-number { display: block; margin-bottom: 28px; color: var(--pricing-accent); font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; }
.process-step h3 { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.process-step p { color: var(--subtle); font-size: 0.88rem; }

/* 9. FAQ SECTION */
.faq-section {
    padding: 100px 5% 90px;
    border-top: 1px solid rgba(51, 51, 51, 0.08);
}

body.dark-mode .faq-section {
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-inner {
    max-width: 640px;
    margin: 0 auto;
}

.faq-section .subtitle {
    display: block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtle);
    text-align: center;
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    margin: 0 0 40px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-alt);
    border: 1px solid rgba(51, 51, 51, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}

.faq-item.is-open {
    border-color: rgba(51, 51, 51, 0.2);
}

body.dark-mode .faq-item {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .faq-item.is-open {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-heading {
    margin: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s var(--ease);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 14px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.4s var(--ease);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
}

.faq-answer > p {
    overflow: hidden;
    margin: 0;
    padding: 0 22px;
    color: var(--subtle);
    font-size: 0.95rem;
    transition: padding 0.4s var(--ease), opacity 0.3s var(--ease);
    opacity: 0;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
    padding: 0 22px 22px;
    opacity: 1;
}

/* 5. CONTACT CTA (Get In Touch) */
.contact-cta {
    padding: 100px 5% 90px;
    text-align: center;
}

.contact-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.contact-cta .subtitle {
    display: block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtle);
}

.contact-cta .services-title {
    margin-bottom: 14px;
}

.contact-cta-copy {
    font-size: 1.05rem;
    color: var(--subtle);
    margin-bottom: 32px;
}

.contact-cta .about-contact {
    justify-content: center;
    margin-top: 28px;
}

/* 6. ABOUT */
.about-section {
    padding: 100px 5% 70px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    /* Scroll-Driven 3D Transform Entrance */
    transform-style: preserve-3d;
    view-timeline-name: --about-scroll;
    animation: about-3d-entry linear both;
    animation-timeline: --about-scroll;
    animation-range: entry 0% entry 70%;
    will-change: transform, opacity;
}

@keyframes about-3d-entry {
    0% {
        transform: perspective(1000px) rotateX(-15deg) rotateY(8deg) translateZ(-300px);
        opacity: 0;
    }
    100% {
        transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0);
        opacity: 1;
    }
}

.about-visual {
    display: flex;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}

.about-text {
    transition: transform 0.1s linear;
    will-change: transform;
}

.about-image-wrapper {
    width: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    transition: var(--transition);
    cursor: pointer;
}

.about-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px var(--about-shadow);
}

/* Modern browser adjustments for About section masking and scaling */
@supports (animation-timeline: view()) {
    .about-visual {
        animation: about-visual-entrance 1s var(--ease) both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
    }

    .about-image-wrapper {
        animation: image-mask-reveal 1s var(--ease) both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
    }

    .about-image-wrapper img {
        animation: image-scale-down 1s var(--ease) both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
    }

    .about-text {
        animation: about-text-parallax linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
    }
}

@keyframes image-mask-reveal {
    from { clip-path: inset(15% 15% 15% 15% round 26px); }
    to { clip-path: inset(0% 0% 0% 0% round 26px); }
}

@keyframes image-scale-down {
    from { transform: scale(1.3); }
    to { transform: scale(1); }
}

@keyframes about-text-parallax {
    from { transform: translateY(25px); } /* Increased text parallax start */
    to { transform: translateY(-25px); } /* Increased text parallax end */
}

@keyframes about-visual-entrance {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-text .subtitle {
    text-transform: none;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--subtle);
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--subtle);
    font-size: 1.02rem;
    margin-bottom: 16px;
    max-width: 620px;
}

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

.about-list-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 10px;
}

.about-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    max-width: 620px;
}

.about-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: var(--subtle);
    font-size: 1.02rem;
    line-height: 1.6;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.about-list strong {
    color: var(--text);
    font-weight: 600;
}

.about-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eeeeee;
    background: var(--bg);
    color: var(--text);
    transition: all 0.5s var(--ease);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.dark-mode .contact-link {
    border-color: #333333;
}

.contact-link svg {
    transition: transform 0.5s var(--ease);
}

.contact-link:hover {
    background: var(--text);
    color: #ffffff;
    border-color: var(--text);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-link:hover svg {
    transform: scale(1.1);
}

/* 7. TESTIMONIAL */
.testimonial-section {
    padding: 80px 5%;
    display: flex;
    justify-content: center;
}
.testimonial-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    background: var(--bg);
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    padding: 35px 25px;
}
.testimonial-client {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.testimonial-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    width: 100%;
}
.testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #e67c23;
    margin-bottom: 8px;
}
.testimonial-stars {
    color: #e67c23;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.testimonial-score {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}
.testimonial-quote {
    font-size: 0.88rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 5px;
    width: 100%;
}
.testimonial-quote p {
    margin-bottom: 10px;
}
.testimonial-meta {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    width: 100%;
}
.testimonial-badge {
    display: inline-block;
    background: #222;
    color: #fff;
    font-size: 0.74rem;
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 8. BEFORE & AFTER SECTION */
.before-after-section {
    padding: 80px 5% 60px;
    display: flex;
    justify-content: center;
}

.before-after-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.before-after-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: var(--text);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

.before-after-card {
    background: var(--bg-alt);
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.06);
    padding: 16px;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease), box-shadow 0.2s;
    will-change: transform, opacity;
}

.before-after-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.before-after-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

/* Alternating card backgrounds — the even card gets a distinct treatment,
   odd cards keep the base .before-after-card background */
.before-after-card:nth-child(even) {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .before-after-card:nth-child(even) {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.06);
}

.before-after-caption {
    font-size: 0.92rem;
    color: var(--text);
    text-align: center;
    font-weight: 600;
    margin: 0;
    padding: 0 4px 4px;
}

.before-after-cta {
    text-align: center;
    margin-top: 45px;
}

/* 10. RESPONSIVE */

/* --- TABLET CORE (1024px and below) --- */
@media (max-width: 1024px) {
    .hero { height: auto; min-height: 70vh; padding: 140px 5% 60px; text-align: center; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-text { max-width: none; margin: 0; }
    .hero-text .description { margin: 0 auto 30px; }
    .cta-container { justify-content: center; flex-wrap: nowrap; gap: 20px; }
    .image-wrapper { padding-bottom: 0; aspect-ratio: 4/5; }
    .image-wrapper img { position: static; transform: none; height: 100%; width: 100%; }

    .about-container { grid-template-columns: 1fr 1.1fr; gap: 40px; text-align: left; }
    .about-visual { order: 0; max-width: none; margin: 0; }
    .about-text p { margin-left: 0; margin-right: 0; }
    .about-image-wrapper { padding-bottom: 0; aspect-ratio: 4/5; }
    .about-image-wrapper img { position: static; height: 100%; width: 100%; transform: none; border-radius: 26px; }

    .services-section { padding: 80px 5%; }
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 900px;
        margin: 0 auto;
    }
    .service-card { padding: 32px 24px; }
    .before-after-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* --- MOBILE CORE (768px and below) --- */
@media (max-width: 768px) {
    .hero { text-align: center; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-text { max-width: 800px; margin: 0 auto; }
    .hero-text h1 { font-size: clamp(2.4rem, 13vw, 3.2rem); }
    .hero-text .description { margin: 0 auto 30px; }
    .cta-container { justify-content: center; flex-wrap: wrap; gap: 12px; }

    /* Stats wrap as whole chunks instead of overflowing narrow screens */
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 2px;
    }

    .about-section { padding: 100px 5% 60px; }
    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-visual {
        position: static;
        max-width: 280px;
        width: 100%;
        margin-bottom: 0px;
        pointer-events: none;
    }
    .about-image-wrapper { height: auto; padding-bottom: 0; aspect-ratio: auto; clip-path: none !important; }
    .about-image-wrapper img { position: static; width: 100%; height: auto; object-fit: contain; border-radius: 20px; transform: none !important; }
    .about-text {
        position: static;
        padding: 0;
    }
    .about-text p { margin-left: auto; margin-right: auto; color: var(--text); }

    .about-contact {
        justify-content: center;
    }

    .services-section { padding: 60px 2% 40px; }
    /* Single column on phones — the 1024px rule's repeat(2, 1fr) is too
       cramped at 375-500px widths */
    .services-cards { grid-template-columns: 1fr; gap: 24px; }
    .before-after-section { padding: 60px 5% 40px; }
    .before-after-grid { grid-template-columns: 1fr; gap: 20px; }
    .before-after-card { padding: 12px; }
    .before-after-cta { margin-top: 30px; }

    /* Process steps (mirrors pricing.css mobile rules).
       .how-it-works .process-grid is repeated at full specificity here because
       the desktop rule `.how-it-works .process-grid { repeat(3, 1fr) }` (0,2,0)
       would otherwise out-rank a bare `.process-grid` (0,1,0) override and the
       steps would stay squeezed into 3 columns on phones. */
    .how-it-works .process-grid { grid-template-columns: 1fr; gap: 28px; }
    .process-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
    .process-number { grid-row: span 2; margin-bottom: 0; }
    .process-step h3 { margin-bottom: 5px; }

    /* FAQ (moved from the section's own media block for one mobile breakpoint) */
    .faq-section { padding: 80px 5% 70px; }
    .faq-question { padding: 16px 18px; font-size: 0.92rem; }
    .faq-answer > p { padding: 0 18px; font-size: 0.9rem; }
    .faq-item.is-open .faq-answer > p { padding: 0 18px 18px; }
    .faq-title { margin-bottom: 30px; }
}