/* ==========================================================================
   Raphzshots — Custom Styles
   Tailwind handles utility classes via CDN. This file holds only the
   custom CSS that Tailwind can't express: base body styles, scrollbar,
   glassmorphism, hero transitions, and the marquee animation.
   ========================================================================== */

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0b0c0f;
    color: #ffffff;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 180ms ease;
}

body.page-entering {
    animation: pageFadeIn 180ms ease both;
}

body.page-leaving {
    opacity: 0;
}

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

/* Contact form — notification banners */
.notify-banner {
    display: flex;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin-bottom 0.35s ease, padding 0.35s ease;
}
.notify-banner.show {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.intake-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.intake-options label {
    align-items: center;
    background: #0b0c0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    font-size: 0.85rem;
    gap: 0.75rem;
    padding: 0.68rem 0.85rem;
    transition: border-color 180ms ease, background 180ms ease;
}

.contact-card {
    padding: clamp(1.4rem, 3vw, 2rem) !important;
}

.premium-intake > * + * {
    margin-top: 1rem !important;
}

.premium-intake .gap-6 {
    gap: 1rem !important;
}

.premium-intake input,
.premium-intake select,
.premium-intake textarea {
    border-radius: 0.7rem !important;
    padding: 0.78rem 0.95rem !important;
}

.premium-intake select {
    padding-right: 2.35rem !important;
}

.premium-intake textarea {
    min-height: 6.4rem;
    resize: vertical;
}

.premium-intake button[type="submit"] {
    border-radius: 0.7rem !important;
    padding-bottom: 0.9rem !important;
    padding-top: 0.9rem !important;
}

.intake-options label:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(210, 20, 4, 0.35);
}

.intake-options input {
    accent-color: #D21404;
    height: 1rem;
    width: 1rem;
}

@media (min-width: 640px) {
    .intake-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Reviews track — smooth height transition on mobile only */
@media (max-width: 767px) {
    #reviews-track {
        transition: transform 0.5s ease-in-out, height 0.4s ease-in-out;
    }

    /* Hide review photos on mobile — text only */
    #reviews-track .grid.grid-cols-2,
    #reviews-track .grid.grid-cols-3 {
        display: none;
    }
}

/* FAQ accordion — CSS-controlled, not JS maxHeight (more reliable on mobile) */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}
.faq-content.open {
    max-height: 2000px;
}

.faq-shell {
    align-items: start;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: 1fr;
}

.faq-aside {
    border-left: 2px solid #D21404;
    padding-left: clamp(1.25rem, 2vw, 1.75rem);
}

.faq-aside p {
    color: #a8a29e;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 30rem;
}

.faq-aside-points {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}

.faq-aside-points span {
    align-items: center;
    color: #e5e7eb;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-aside-points i {
    align-items: center;
    background: rgba(210, 20, 4, 0.12);
    border: 1px solid rgba(210, 20, 4, 0.24);
    border-radius: 999px;
    color: #D21404;
    display: inline-flex;
    height: 1.6rem;
    justify-content: center;
    width: 1.6rem;
}

.faq-aside-cta {
    align-items: center;
    color: #D21404;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    gap: 0.65rem;
    letter-spacing: 0.14em;
    margin-top: 2.1rem;
    text-transform: uppercase;
    transition: color 180ms ease, transform 180ms ease;
}

.faq-aside-cta:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.faq-list {
    display: grid;
    gap: 0.85rem;
}

.faq-item {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        #15171e;
}

.faq-item.is-open {
    border-color: rgba(210, 20, 4, 0.38);
    background:
        linear-gradient(90deg, rgba(210, 20, 4, 0.11), rgba(255, 255, 255, 0.018)),
        #15171e;
}

.faq-toggle {
    gap: 1rem;
}

.faq-question {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.faq-index {
    color: #D21404;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

@media (min-width: 1024px) {
    .faq-shell {
        grid-template-columns: minmax(19rem, 0.75fr) minmax(0, 1.25fr);
    }
}

@media (max-width: 640px) {
    .faq-question {
        align-items: flex-start;
    }
}

/* Hide native scrollbar completely — custom one drawn via JS */
html {
    scrollbar-width: none;
    overflow-x: hidden; /* Fix iOS Safari body-as-scroll-container bug */
}
::-webkit-scrollbar {
    display: none;
}

/* Custom overlay scrollbar */
#custom-scrollbar {
    position: fixed;
    top: 0;
    right: 4px;
    width: 4px;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}
#custom-scrollbar-thumb {
    position: absolute;
    width: 100%;
    border-radius: 4px;
    background: #2d313f;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: all;
    cursor: grab;
}
#custom-scrollbar-thumb:active {
    cursor: grabbing;
    background: #D21404;
}
body.is-scrolling #custom-scrollbar-thumb {
    opacity: 1;
}
#custom-scrollbar-thumb:hover {
    background: #D21404;
    opacity: 1;
}

/* Navbar blur — CSS transition is GPU-accelerated, far cheaper than JS blur on scroll */
nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    -webkit-transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
nav.nav-scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

/* Glassmorphism utility */
.glass-nav {
    background: rgba(11, 12, 15, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-nav.nav-solid {
    background: rgba(11, 12, 15, 0.86);
}


/* Advanced Custom Cubic Bezier Transitions for Expandable Hero */
.hero-content-panel {
    transition: opacity 0.5s ease-in-out;
}

.hero-video-panel {
    transition: inset 0.5s ease-in-out, width 0.5s ease-in-out, height 0.5s ease-in-out;
}

/* Scroll reveals — reusable section motion */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-on-scroll:nth-child(5) {
    transition-delay: 0.32s;
}

/* Infinite scrolling brand marquee */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Logo text — Montserrat Black */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 0.06em;
}

/* Brand lockup */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1;
}

.brand-mark {
    width: 2.05rem;
    height: 2.05rem;
    object-fit: contain;
    display: block;
}

.brand-wordmark {
    width: 8.4rem;
    height: auto;
    object-fit: contain;
    display: block;
    transform: translateY(2px);
}

.brand-mark-footer {
    width: 2.5rem;
    height: 2.5rem;
}

.brand-wordmark-footer {
    width: 10rem;
    transform: translateY(2px);
}

/* Client need section */
.client-need-section {
    padding-top: clamp(4.5rem, 10vh, 6rem);
    padding-bottom: clamp(4.5rem, 10vh, 6rem);
}

.client-need-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 0.78fr);
    gap: clamp(2.25rem, 5vw, 5rem);
    align-items: center;
}

.need-proof-panel {
    min-height: 24rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background:
        linear-gradient(135deg, rgba(210, 20, 4, 0.18), rgba(210, 20, 4, 0) 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        #0b0c0f;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.need-proof-panel::after {
    content: "";
    position: absolute;
    inset: auto -18% -38% auto;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    pointer-events: none;
}

.need-proof-list {
    display: grid;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.need-proof-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #a8a29e;
    font-size: 0.875rem;
    line-height: 1.6;
}

.need-proof-row i {
    color: #D21404;
    margin-top: 0.2rem;
    width: 1rem;
}

.need-proof-fix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.need-proof-step {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
}

.need-proof-step span {
    display: block;
    color: #D21404;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.need-proof-step p {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

@media (max-width: 1023px) {
    .client-need-grid {
        grid-template-columns: 1fr;
    }

    .need-proof-panel {
        min-height: 23rem;
    }
}

@media (max-width: 640px) {
    .client-need-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .need-proof-fix {
        grid-template-columns: 1fr;
    }

    .need-proof-panel {
        min-height: auto;
    }
}

/* Outcome services section */
.outcome-services-section {
    display: flex;
    align-items: center;
    padding-top: clamp(4.5rem, 10vh, 6rem);
    padding-bottom: clamp(4.5rem, 10vh, 6rem);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.services-copy {
    border-left: 2px solid #D21404;
    padding-left: clamp(1.25rem, 2vw, 1.75rem);
}

.services-copy p {
    color: #a8a29e;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    max-width: 31rem;
}

.services-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.services-meta span {
    border: 1px solid rgba(210, 20, 4, 0.28);
    border-radius: 999px;
    color: #e5e7eb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.55rem 0.75rem;
    text-transform: uppercase;
}

.outcome-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.outcome-service-card {
    min-height: 11rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
        #15171e;
    padding: 1.1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.outcome-service-card:hover {
    transform: translateX(4px);
    border-color: rgba(210, 20, 4, 0.5);
    background:
        linear-gradient(90deg, rgba(210, 20, 4, 0.16), rgba(255, 255, 255, 0.03)),
        #15171e;
}

.outcome-service-card i {
    grid-row: span 4;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(210, 20, 4, 0.12);
    border: 1px solid rgba(210, 20, 4, 0.25);
    color: #D21404;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.outcome-service-card span {
    color: #D21404;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.outcome-service-card h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.outcome-service-card p {
    color: #a8a29e;
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.outcome-service-card small {
    color: #6b7280;
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.outcome-service-card-feature {
    background:
        linear-gradient(145deg, rgba(210, 20, 4, 0.2), rgba(255, 255, 255, 0.03)),
        #15171e;
}

@media (min-width: 768px) {
    .outcome-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .outcome-service-card-feature {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .services-layout {
        grid-template-columns: minmax(20rem, 0.74fr) minmax(0, 1.26fr);
    }

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

    .outcome-service-card-feature {
        grid-column: span 2;
    }
}

/* Process section */
.process-section {
    display: flex;
    align-items: center;
    padding-top: clamp(4.5rem, 10vh, 6rem);
    padding-bottom: clamp(4.5rem, 10vh, 6rem);
}

.process-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.process-step {
    min-height: auto;
    border-left: 1px solid rgba(210, 20, 4, 0.38);
    padding: 0 0 0 1.25rem;
    position: relative;
}

.process-step::after {
    content: "";
    position: absolute;
    left: -0.35rem;
    top: 0.2rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #D21404;
    box-shadow: 0 0 0 0.45rem rgba(210, 20, 4, 0.12);
}

.process-step span {
    color: #D21404;
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
}

.process-step i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #D21404;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.process-step h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: #a8a29e;
    font-size: 0.9rem;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .process-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

}

@media (min-width: 768px) {
    .process-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .process-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        position: relative;
    }

    .process-track::before {
        content: "";
        position: absolute;
        left: 0.25rem;
        right: 0.25rem;
        top: 0.5rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(210, 20, 4, 0.65), rgba(255, 255, 255, 0.08));
    }

    .process-step {
        border-left: 0;
        padding: 2.25rem 1rem 0 0;
    }
}

/* Proof section */
.proof-section {
    display: flex;
    align-items: center;
    padding-top: clamp(4.5rem, 10vh, 6rem);
    padding-bottom: clamp(4.5rem, 10vh, 6rem);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
}

.proof-stat {
    min-height: 9.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        #111318;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
}

.proof-stat p {
    color: #D21404;
    font-size: clamp(2.25rem, 4.4vw, 4.15rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.proof-stat span {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.proof-trust-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 0.85rem;
}

.proof-brand-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.proof-brand-card {
    min-height: 11.5rem;
    background:
        radial-gradient(circle at top left, rgba(210, 20, 4, 0.12), transparent 34%),
        #111318;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    justify-content: space-between;
    padding: 1.35rem;
}

.proof-brand-card > span {
    color: #D21404;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.proof-brand-logos {
    min-height: 6.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1.2rem;
}

.proof-brand-logos img {
    max-width: 100%;
    max-height: 5.7rem;
    object-fit: contain;
    opacity: 0.95;
    filter: saturate(1.05) contrast(1.04);
    transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease;
}

.proof-brand-card:hover img {
    opacity: 1;
    filter: saturate(1.15) contrast(1.08);
    transform: translateY(-2px);
}

.proof-logo-shabab,
.proof-logo-police,
.proof-logo-spartan {
    max-height: 6.1rem;
}

.proof-logo-aquarium {
    max-height: 6.2rem;
    transform: scale(1.08);
}

.proof-brand-card:hover .proof-logo-aquarium {
    transform: scale(1.12) translateY(-2px);
}

.proof-logo-clinic {
    transform: scale(1.22);
}

.proof-brand-card:hover .proof-logo-clinic {
    transform: scale(1.27) translateY(-2px);
}

.proof-logo-holding {
    max-height: 4rem;
}

.proof-logo-frame {
    max-width: 12.5rem;
}

@media (max-width: 1023px) {
    .proof-brand-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .proof-brand-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .proof-brand-card {
        min-height: 10.5rem;
    }
}

@media (min-width: 768px) {
    .proof-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .proof-trust-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .proof-section {
        min-height: auto;
    }
}

/* Case study section */
.case-study-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.case-study-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        #111318;
    overflow: hidden;
}

.case-study-media {
    aspect-ratio: 16 / 10;
    background: #0b0c0f;
    overflow: hidden;
}

.case-study-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease, filter 350ms ease;
}

.case-study-card:hover .case-study-media img {
    transform: scale(1.035);
    filter: contrast(1.06);
}

.case-study-copy {
    padding: 1.35rem;
}

.case-study-copy > span {
    color: #D21404;
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.case-study-copy h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.case-study-copy dl {
    display: grid;
    gap: 1rem;
}

.case-study-copy dt {
    color: #e5e7eb;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.case-study-copy dd {
    color: #9ca3af;
    font-size: 0.86rem;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .case-study-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Google reviews section */
.reviews-section {
    padding-top: clamp(4.5rem, 10vh, 6rem);
    padding-bottom: clamp(4.5rem, 10vh, 6rem);
}

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

.reviews-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.google-review-summary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background:
        linear-gradient(145deg, rgba(210, 20, 4, 0.17), rgba(210, 20, 4, 0) 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        #111318;
    padding: clamp(1.35rem, 2.6vw, 1.8rem);
}

.google-score {
    color: #ffffff;
    font-size: clamp(3.4rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.9;
}

.google-score-stars {
    color: #facc15;
    display: flex;
    gap: 0.35rem;
    margin: 1rem 0 1.4rem;
}

.google-review-summary h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.google-review-summary ul {
    display: grid;
    gap: 0.85rem;
    color: #a8a29e;
    font-size: 0.88rem;
    line-height: 1.55;
}

.google-review-summary li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

.reviews-carousel-panel {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 1rem;
}

#reviews-track > div {
    gap: 1rem;
}

#reviews-track .bg-brandGray {
    border-radius: 0.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        #15171e;
    padding: 1.25rem;
}

#reviews-track .aspect-square {
    display: none;
}

#reviews-track p {
    line-height: 1.6;
}

.reviews-controls {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.reviews-control-button {
    align-items: center;
    background: #15171e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
    width: 2.35rem;
}

.reviews-control-button:hover {
    background: #D21404;
    border-color: #D21404;
    transform: translateY(-1px);
}

.reviews-dots {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    min-width: 4rem;
}

@media (min-width: 1024px) {
    .reviews-showcase {
        grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 0.66fr);
    }
}

/* About section team photo */
.about-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

@media (max-width: 767px) {
    .about-team-photo {
        object-position: center 40%;
    }
}

/* Founder profile photo */
.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Team photo boxes */
.production-support-grid {
    align-items: stretch;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-photo-box {
    width: 100%;
    padding-bottom: calc(100% - 10px);
    height: 0;
    position: relative;
    overflow: hidden;
}

.team-photo-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-jr {
    object-fit: cover;
    object-position: center 16%;
}

.team-photo-henry {
    object-fit: cover;
    object-position: center 24%;
}

.team-photo-khan {
    transform: scale(1.02);
    transform-origin: center;
}

.team-bio-details {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.team-bio-details[hidden] {
    display: none;
}

.team-bio-details summary {
    color: #D21404;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    list-style: none;
    text-transform: uppercase;
}

.team-bio-details summary::-webkit-details-marker {
    display: none;
}

.team-bio-details summary::after {
    content: "+";
    margin-left: 0.45rem;
}

.team-bio-details[open] summary::after {
    content: "-";
}

.team-bio-details div {
    display: grid;
    gap: 0.85rem;
    padding-top: 1rem;
}

.team-bio-details p {
    color: #9ca3af;
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */

/* 1. Brand logo centering in proof section */
.proof-brand-logos {
    justify-items: center;
}
.proof-brand-logos img {
    display: block;
    margin: 0 auto;
}

/* 2. FAQ: override Tailwind transition-all to avoid height-transition conflicts,
      and improve touch target on mobile */
.faq-item {
    transition: border-color 0.3s ease, background 0.3s ease !important;
}
.faq-toggle {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 3. Premium mobile menu — slide-in from right */
#mobile-menu {
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
#mobile-menu.menu-open {
    transform: translateX(0);
    opacity: 1;
}

/* 4. Back-to-top — ensure it stays above cookie banner */
#back-to-top {
    z-index: 9990;
}

/* 5. Date input — full cross-platform normalization */
input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    color-scheme: dark; /* dark native picker on iOS/Android */
}

/* Webkit datetime edit area (Safari/Chrome mobile) */
input[type="date"]::-webkit-datetime-edit {
    padding: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
    background: transparent;
}
/* Separators ( / ) */
input[type="date"]::-webkit-datetime-edit-text {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 1px;
}
/* Individual date fields — gray when empty, white when filled */
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #9ca3af;
}
input[type="date"]:not([value=""])::-webkit-datetime-edit-month-field,
input[type="date"]:not([value=""])::-webkit-datetime-edit-day-field,
input[type="date"]:not([value=""])::-webkit-datetime-edit-year-field {
    color: #ffffff;
}
/* Calendar icon — white on dark bg */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    filter: invert(0.6);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(1);
}

/* 6. Cookie consent card — floating, slide-up from bottom */
#cookie-banner {
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
}
#cookie-banner.cookie-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 7. Review cards — reduce padding on mobile so text breathes */
@media (max-width: 767px) {
    #reviews-track .bg-brandGray {
        padding: 1.25rem !important;
        border-radius: 0.75rem !important;
    }

    /* FAQ toggle: align chevron to top when question wraps on narrow screens */
    .faq-toggle {
        align-items: flex-start;
    }
    .faq-toggle i.fa-chevron-down {
        margin-top: 0.25rem;
        flex-shrink: 0;
    }
}
