/**
 * Homepage — The Way Barbershop
 * Styles specific to front-page.php sections
 * Matches Stitch design 1-to-1
 */


/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px var(--space-lg);
    padding-top: 120px;
    background-color: var(--color-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay for background image readability */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero__bg-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.hero__title .text-gold {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* White outline button (hero only) */
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline-white:hover {
    background: var(--color-text);
    color: var(--color-bg);
}


/* ═══════════════════════════════════════════════════════════════════════════
   TRUST BAR (matches Stitch: bg #242424, gold text, wide tracking)
   ═══════════════════════════════════════════════════════════════════════════ */

.trust-bar {
    background: var(--color-surface);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

/* Matte noise texture overlay */
.trust-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
}

.trust-bar > * {
    position: relative;
    z-index: 1;
}

.trust-bar__text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
}

.trust-bar__separator {
    color: rgba(200, 164, 94, 0.3);
    margin: 0 var(--space-md);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION (Stitch: flex heading with line, 3 cards)
   ═══════════════════════════════════════════════════════════════════════════ */

.services-section {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-bg);
}

.services-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Section header with line extending right */
.section-header--line {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.section-header--line h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    white-space: nowrap;
}

.section-header--line .header-line {
    height: 2px;
    width: 100%;
    background: rgba(200, 164, 94, 0.3);
}

/* ── Services Filter Pills ── */
.services-filter {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.services-filter__btn {
    padding: var(--space-xs) var(--space-lg);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.services-filter__btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.services-filter__btn.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

/* ── Service Card Meta (duration + barber badge) ── */
.service-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-card__barber {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* ── Signature card gold left border ── */
.service-card--signature {
    border-left: 3px solid var(--color-accent);
}

/* ── Services Slider ── */
.services-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.services-slider__track {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    width: 100%;
}

.services-slider__track::-webkit-scrollbar {
    display: none;
}

.services-slider__track .service-card {
    flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
    scroll-snap-align: start;
    min-width: 280px;
}

.services-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
    flex-shrink: 0;
}

.services-slider__arrow:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-bg);
}

.services-slider__arrow--prev {
    left: -24px;
}

.services-slider__arrow--next {
    right: -24px;
}

/* All Services CTA */
.services-section__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Service card (Stitch: p-8, name top-left, price top-right) */
.service-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    transition: border-color var(--transition-slow);
}

.service-card:hover {
    border-color: rgba(200, 164, 94, 0.5);
}

.service-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.service-card__name {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition-fast);
}

.service-card:hover .service-card__name {
    color: var(--color-accent);
}

.service-card__price {
    font-family: var(--font-body);
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--color-accent);
    white-space: nowrap;
}

.service-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.service-card__duration {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.service-card__duration-icon {
    width: 14px;
    height: 14px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BARBERS SECTION (Stitch: bg surface, text below card, no card border-radius)
   ═══════════════════════════════════════════════════════════════════════════ */

.barbers-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

/* Matte noise texture overlay */
.barbers-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
}

.barbers-section > .container {
    position: relative;
    z-index: 1;
}

.barbers-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Centered heading with gold divider */
.section-header--centered {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header--centered h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.section-header--centered .header-divider {
    width: 96px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto;
}

/* Barber card (Stitch: text-center, text below image) */
a.barber-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.barber-card {
    text-align: center;
    cursor: pointer;
}

.barber-card__image-wrap {
    aspect-ratio: 3 / 4;
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.barber-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.barber-card:hover .barber-card__image {
    transform: scale(1.1);
}

.barber-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-text-subtle);
}

.barber-card__name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.barber-card__specialty {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: var(--space-xs);
}

.barber-card__specialty--primary {
    color: var(--color-accent);
}

.barber-card__specialty--secondary {
    color: var(--color-text-subtle);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION (Stitch: full-bleed grid, no container on image side)
   ═══════════════════════════════════════════════════════════════════════════ */

.about-fullbleed {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-fullbleed__image {
    min-height: 320px;
    overflow: hidden;
}

.about-fullbleed__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-fullbleed__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    color: var(--color-text-subtle);
}

.about-fullbleed__content {
    background: var(--color-bg);
    padding: var(--space-3xl) var(--space-4xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-fullbleed__content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
}

.about-fullbleed__content p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* Underline-style CTA (Stitch: border-b-2 border-primary) */
.btn-underline {
    display: inline-flex;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.btn-underline:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}


/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION (Stitch: cream bg, stars under heading, white cards)
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonials-section {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-cream);
}

.testimonials-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Section header with stars */
.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.testimonials-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cream-heading);
    margin-bottom: var(--space-sm);
}

.testimonials-header__stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--color-accent);
}

/* Platform review badges */
.testimonials-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.testimonials-platform {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.testimonials-platform__rating {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.testimonials-platform__source {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-cream-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonials-platform__count {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: #64748B;
    font-weight: 600;
}

.testimonials-platforms__divider {
    width: 1px;
    height: 28px;
    background: #CBD5E1;
    flex-shrink: 0;
}

/* Reviews CTA */
.testimonials-section__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Testimonial card (Stitch: white bg, p-10, shadow, border) */
.testimonial-card {
    background: var(--color-white);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card__text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: #334155;
    margin-bottom: var(--space-xl);
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #C8A45E;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card__avatar-letter {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-transform: uppercase;
}

.testimonial-card__author-name {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-cream-heading);
}

.testimonial-card__author-role {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}


/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY SECTION (Stitch: flex header with instagram link, 4x2 grid)
   ═══════════════════════════════════════════════════════════════════════════ */

.gallery-section {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-bg);
}

.gallery-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Gallery header: heading left, instagram right */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.gallery-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.gallery-header__instagram {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(200, 164, 94, 0.3);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.gallery-header__instagram:hover {
    color: var(--color-accent-hover);
}

/* Gallery grid: 4 columns, 2 rows */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-grid__item {
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.05);
}

.gallery-grid__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    color: var(--color-text-subtle);
}


/* ═══════════════════════════════════════════════════════════════════════════
   LOCATION SECTION (Stitch: full-bleed grid, gold labels, divider hours)
   ═══════════════════════════════════════════════════════════════════════════ */

.location-fullbleed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.location-fullbleed__map {
    min-height: 500px;
    overflow: hidden;
}

.location-fullbleed__map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    color: var(--color-text-subtle);
    position: relative;
    overflow: hidden;
}

.location-fullbleed__map-placeholder .map-pin-icon {
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.location-fullbleed__map-placeholder p {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-subtle);
}

.location-fullbleed__content {
    background: var(--color-bg);
    padding: var(--space-3xl) var(--space-4xl);
}

.location-fullbleed__content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 40px;
}

/* Gold sub-labels */
.location-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.location-address {
    font-size: var(--text-xl);
    color: var(--color-text);
    line-height: 1.6;
}

.location-phone {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-accent);
    margin-top: var(--space-md);
    text-decoration: none;
    display: inline-block;
}

.location-phone:hover {
    color: var(--color-accent-hover);
}

/* Hours list with border dividers */
.location-hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.location-hours-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.location-hours-row__day {
    color: var(--color-text-muted);
}

.location-hours-row__time {
    color: var(--color-text);
    font-weight: 700;
}

/* Spacing between address block and hours block */
.location-block + .location-block {
    margin-top: var(--space-3xl);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FINAL CTA SECTION (Stitch: big heading, watermark, single button)
   ═══════════════════════════════════════════════════════════════════════════ */

.final-cta {
    padding: 128px var(--space-lg);
    background: var(--color-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Watermark background text */
.final-cta__watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.005;
}

.final-cta__watermark-text {
    font-family: var(--font-heading);
    font-size: 20vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    white-space: nowrap;
    line-height: 1;
    opacity: 0.1;
}

.final-cta__inner {
    position: relative;
    z-index: 1;
}

.final-cta__heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
}

.final-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 24px 64px;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.final-cta__btn:hover {
    transform: scale(1.05);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES FOR HOMEPAGE SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .about-fullbleed {
        grid-template-columns: 1fr;
    }

    .about-fullbleed__image {
        height: 280px;
    }

    .about-fullbleed__content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .location-fullbleed {
        grid-template-columns: 1fr;
    }

    .location-fullbleed__map {
        min-height: 384px;
        height: 384px;
    }

    .location-fullbleed__content {
        padding: var(--space-2xl) var(--space-lg);
    }

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

    .final-cta {
        padding: var(--space-4xl) var(--space-lg);
    }

    .final-cta__heading {
        font-size: var(--text-4xl);
    }

    .final-cta__btn {
        padding: 20px 48px;
        font-size: 1rem;
    }

    /* Services slider: show 2 cards */
    .services-slider__track .service-card {
        flex: 0 0 calc(50% - var(--space-lg) / 2);
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 60dvh;
        padding: 60px var(--space-md);
        padding-top: 120px;
    }

    .hero__content {
        padding: 0;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn-primary,
    .hero__actions .btn-outline-white {
        width: 100%;
        justify-content: center;
    }

    .section-header--line h2,
    .section-header--centered h2,
    .testimonials-header h2,
    .gallery-header h2 {
        font-size: var(--text-3xl);
    }

    .trust-bar {
        padding: var(--space-md) 0;
    }

    .trust-bar__text {
        font-size: 0.58rem;
        letter-spacing: 0.15em;
    }

    .testimonials-platforms {
        gap: var(--space-md);
    }

    .testimonials-platform {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .testimonials-platform__rating {
        font-size: var(--text-lg);
    }

    .testimonials-platform__source {
        font-size: var(--text-xs);
    }

    .testimonials-platform__count {
        font-size: 0.65rem;
    }

    /* Testimonials header spacing */
    .testimonials-header {
        margin-bottom: var(--text-2xl);
    }

    /* Testimonials: horizontal slider on mobile */
    .testimonials-section .grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    .testimonials-section .grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-width: 260px;
        padding: 20px;
    }

    .gallery-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

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

    .grid--3-services {
        grid-template-columns: 1fr;
    }

    /* Services slider: single card on mobile */
    .services-slider__track .service-card {
        flex: 0 0 90%;
        min-width: 0;
    }

    .services-slider__arrow {
        width: 36px;
        height: 36px;
    }

    .services-slider__arrow--prev {
        left: -4px;
    }

    .services-slider__arrow--next {
        right: -4px;
    }

    /* Barbers: horizontal slider on mobile */
    .barbers-section .grid--5-barbers {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    .barbers-section .grid--5-barbers::-webkit-scrollbar {
        display: none;
    }

    .barbers-section .grid--5-barbers .barber-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-width: 180px;
    }

    .about-fullbleed__content h2 {
        font-size: var(--text-3xl);
    }

    .location-fullbleed__content h2 {
        font-size: var(--text-2xl);
    }

    .final-cta__heading {
        font-size: var(--text-3xl);
    }
}
