/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f11;
    color: #e4e4e7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Buttons --- */
.btn-primary {
    background: #c1121f;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #a10f1a;
    box-shadow: 0 0 15px rgba(193, 18, 31, 0.4);
}

.btn-secondary {
    color: #a1a1aa;
    padding: 10px 22px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: #fff;
}

.btn-outline {
    border: 2px solid #3f3f46;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
}

.btn-outline:hover {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.05);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1c1c1f;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.logo span {
    color: #c1121f;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #a1a1aa;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f43f5e;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    background: linear-gradient(rgba(15, 15, 17, 0.75), #0f0f11), 
                url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.tagline {
    color: #f43f5e;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    color: #a1a1aa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* --- Features Section --- */
.features {
    max-width: 1200px;
    margin: -60px auto 80px auto;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.feature-card {
    background: #18181b;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #27272a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #f43f5e;
}

.feature-card i {
    font-size: 2rem;
    color: #c1121f;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #a1a1aa;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* --- AI Recommendation Section --- */
.ai-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.scanner-box {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.camera-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #09090b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3f3f46;
}

.camera-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #71717a;
    gap: 12px;
    text-align: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.camera-icon {
    font-size: 3rem;
    color: #3f3f46;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, #f43f5e, transparent);
    box-shadow: 0 0 12px #f43f5e;
    opacity: 0;
    z-index: 5;
}

@keyframes scanAnimation {
    0% { top: 0%; opacity: 1; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0%; opacity: 1; }
}

.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #f43f5e;
    z-index: 4;
}
.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.camera-controls {
    display: flex;
    gap: 12px;
}

.camera-controls button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ai-results-panel {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-results-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.ai-results-panel p {
    color: #a1a1aa;
    line-height: 1.6;
    font-size: 0.95rem;
}

.diagnostic-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diag-item {
    font-size: 0.9rem;
    color: #71717a;
}
.diag-item span {
    color: #e4e4e7;
    font-weight: 600;
}
.diag-item i {
    color: #c1121f;
    margin-right: 6px;
}

.analysis-badge {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.rec-cards {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rec-card {
    display: flex;
    gap: 16px;
    background: #202024;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.rec-img-sim {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.text-fade { background-image: url('https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=150&q=80'); }
.low-fade { background-image: url('https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=150&q=80'); }

.rec-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}
.rec-details p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* --- Services Section --- */
.services-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: #a1a1aa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Card: photo on top, details below; grid stretch keeps every card the same height */
.service-item {
    background: #18181b;
    border-radius: 8px;
    border-top: 3px solid #c1121f;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    background: #202024;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.service-image {
    height: 200px;
    overflow: hidden;
    background: #0f0f11;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.06);
}

.service-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111113;
    color: #3f3f46;
    font-size: 2.6rem;
}

.service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 22px;
}

/* Pinned to the bottom so duration/price line up across a row */
.service-meta {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.service-meta .service-duration {
    margin-top: 0;
}

.service-item.has-image {
    cursor: pointer;
}

.service-item.has-image:focus-visible {
    outline: 2px solid #f43f5e;
    outline-offset: 3px;
}

/* --- Service photo modal --- */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;              /* above the fixed site header */
    background: rgba(9, 9, 11, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: serviceModalFade 0.2s ease;
}

.service-modal[hidden] {
    display: none;
}

.service-modal-dialog {
    position: relative;
    max-width: min(960px, 100%);
    background: #18181b;
    border-radius: 8px;
    border-top: 3px solid #c1121f;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Full photo, uncropped, scaled to fit the screen */
.service-modal-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    margin: 0 auto;
    object-fit: contain;
    background: #0f0f11;
}

.service-modal-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
}

.service-modal-caption h3 {
    font-size: 1.2rem;
    color: #fff;
}

.service-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.75);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.service-modal-close:hover,
.service-modal-close:focus-visible {
    background: #c1121f;
    outline: none;
}

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

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.service-info p {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f43f5e;
}

/* --- About Section --- */
.about-section {
    background: linear-gradient(rgba(15,15,17,0.9), rgba(15,15,17,0.9)), 
                url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1200&q=80') center/cover fixed;
    padding: 100px 20px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: #a1a1aa;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-box h4 {
    font-size: 2.5rem;
    color: #c1121f;
    margin-bottom: 5px;
}

.stat-box p {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
}

/* --- Footer --- */
footer {
    background: #09090b;
    padding: 60px 20px 20px 20px;
    border-top: 1px solid #1c1c1f;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-col h3 span {
    color: #c1121f;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: #f43f5e;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-col p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.socials a {
    font-size: 1.2rem;
    color: #a1a1aa;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: #f43f5e;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1c1c1f;
    padding-top: 20px;
    color: #71717a;
    font-size: 0.85rem;
}

/* --- Responsive Adjustments ---
   Shared breakpoints: mobile <= 767px, tablet 768-1023px, computer >= 1024px. */
@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Hero: smaller type, darker wash so the copy stays readable over the photo */
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 110px 20px 90px;
        background: linear-gradient(rgba(15, 15, 17, 0.84), #0f0f11),
                    url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    }

    .hero h1 {
        font-size: 2.1rem;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .tagline {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
    }

    .btn-large {
        padding: 13px 24px;
    }

    .features {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2,
    .about-content h2 {
        font-size: 1.85rem;
    }

    .services-section,
    .ai-section {
        margin-bottom: 70px;
    }

    .service-body {
        padding: 18px 18px 20px;
    }

    /* Fixed backgrounds jump on phones */
    .about-section {
        padding: 70px 20px;
        background-attachment: scroll;
    }

    .about-content p {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .stats {
        gap: 30px;
    }

    .scanner-box {
        padding: 16px;
    }

    .camera-controls {
        flex-direction: column;
    }

    .camera-controls button {
        min-height: 44px;
    }

    .ai-results-panel {
        padding: 24px 20px;
    }

    .rec-img-sim {
        width: 64px;
        height: 64px;
    }

    .rec-details {
        min-width: 0;
    }

    .service-modal {
        padding: 12px;
    }

    .service-modal-caption {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .service-modal-caption h3 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Footer: one centred column */
    footer {
        padding: 44px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    /* 44px tap targets */
    .btn-primary,
    .btn-outline {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* ===================================================================
   Site navigation — logo left, links centred, account chip right.
   =================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 17, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1c1c1f;
}

.site-header .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header .logo {
    flex-shrink: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

.site-header .logo span { color: #f43f5e; }

/* Centre block takes the leftover space so links sit in the middle */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-links a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: #d4d4d8;
    font-weight: 500;
    font-size: 0.97rem;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header .nav-links a:hover { color: #fff; }

/* Active page marker — the underline from the design */
.site-header .nav-links a.active { color: #f43f5e; }

.site-header .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: #f43f5e;
}

.nav-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Account chip --- */
.account-menu { position: relative; }

.account-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.account-chip:hover {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.45);
}

.account-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f43f5e;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    max-width: 190px;
}

.account-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
}

.account-email {
    color: #9ca3af;
    font-size: 0.78rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-caret {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-left: 2px;
    transition: transform 0.25s ease;
}

/* Chevron points down until the menu opens */
.account-menu:not(.open) .account-caret { transform: rotate(180deg); }

/* --- Dropdown --- */
.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: #1b1b1f;
    border: 1px solid #2a2a30;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.account-menu.open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-head {
    padding: 16px 18px;
    border-bottom: 1px solid #2a2a30;
}

.account-dropdown-head .account-name { font-size: 0.95rem; }

.account-dropdown-head .account-email {
    max-width: 100%;
    margin-top: 2px;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: #e4e4e7;
    font-size: 0.93rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-item i {
    width: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.98rem;
    transition: color 0.15s ease;
}

.account-item:hover { background: #232329; color: #fff; }
.account-item:hover i { color: #f43f5e; }

.account-sep {
    height: 1px;
    background: #2a2a30;
}

.account-signout { color: #f43f5e; font-weight: 600; }
.account-signout i { color: #f43f5e; }
.account-signout:hover { background: rgba(244, 63, 94, 0.12); color: #f43f5e; }

/* --- Hamburger (tablet + mobile) --- */
.nav-toggle {
    display: none;
}

/* Only shown inside the mobile menu (e.g. Login, when the bar has no room) */
.site-header .nav-links .nav-mobile-only {
    display: none;
}

.account-dropdown-head .account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-text {
    min-width: 0;
}

.account-text .account-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .site-header .nav-container {
        gap: 12px;
        padding: 10px 20px;
    }

    .nav-right {
        margin-left: auto;
        min-width: 0;
    }

    .nav-toggle {
        order: 3;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 1px solid #27272a;
        border-radius: 10px;
        color: #e4e4e7;
        font-size: 1.15rem;
        cursor: pointer;
        transition: border-color 0.2s ease, color 0.2s ease;
    }

    .nav-toggle:hover,
    .nav-toggle:focus-visible,
    .site-header.nav-open .nav-toggle {
        border-color: rgba(244, 63, 94, 0.5);
        color: #f43f5e;
        outline: none;
    }

    /* Links drop down under the bar */
    .nav-center {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: block;
        background: rgba(15, 15, 17, 0.98);
        border-bottom: 1px solid #27272a;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .site-header.nav-open .nav-center {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-header .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-width: 1280px;
        margin: 0 auto;
        padding: 6px 20px 12px;
    }

    .site-header .nav-links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 6px;
        border-bottom: 1px solid #1c1c1f;
    }

    .site-header .nav-links li:last-child a {
        border-bottom: none;
    }

    .site-header .nav-links a.active::after {
        display: none;
    }

    .site-header .nav-links a.active {
        box-shadow: inset 3px 0 0 #f43f5e;
        padding-left: 14px;
    }
}

@media (max-width: 767px) {
    .site-header .nav-container {
        gap: 8px;
        padding: 10px 14px;
    }

    .site-header .logo {
        font-size: 1.25rem;
    }

    .nav-right {
        gap: 8px;
    }

    /* Login moves into the menu; Book Now stays in the bar */
    .nav-right .btn-secondary {
        display: none;
    }

    .site-header .nav-links .nav-mobile-only {
        display: block;
    }

    .nav-right .btn-primary {
        padding: 12px 14px;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    /* Avatar circle only (.account-chip prefix: Font Awesome's later
       .fa-solid rule would otherwise show the caret again) */
    .account-chip .account-text,
    .account-chip .account-caret {
        display: none;
    }

    .account-chip {
        padding: 2px;
        border-radius: 50%;
    }

    .account-avatar {
        width: 40px;
        height: 40px;
    }

    /* Dropdown spans the screen width instead of hanging off the left edge */
    .account-menu {
        position: static;
    }

    .account-dropdown {
        top: calc(100% + 6px);
        left: 12px;
        right: 12px;
        min-width: 0;
    }

    .account-item {
        min-height: 48px;
    }
}

/* Home services/prices section extras */
.service-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #a1a1aa;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------------------------------------------------------------
   Date and time fields on the dark customer pages: white calendar/clock
   icon. The browser draws it black; invert(1) flips it to white without
   touching the field text or the pop-up calendar.
   --------------------------------------------------------------- */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.85;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Red message under a field, in place of the browser's own
   "Please fill out this field." bubble (same reds as the error toasts). */
.field-error {
    display: block;
    margin: 6px 0 0;
    color: #fca5a5;
    font-size: 0.85rem;
    line-height: 1.4;
}

.field-error[hidden] {
    display: none;
}

input[aria-invalid="true"] {
    border-color: #ef4444 !important;
}
