/* iRepair — single-page styles */
:root {
    --bg-deep: #0a0e12;
    --bg-panel: #121820;
    --bg-elevated: #181f2a;
    --text: #e8ecf1;
    --text-muted: #94a3b8;
    --accent: #e63946;
    --accent-glow: rgba(230, 57, 70, 0.55);
    --accent-soft: rgba(230, 57, 70, 0.12);
    --cyan-glow: rgba(56, 189, 248, 0.12);
    --border: rgba(255, 255, 255, 0.07);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    --font: "Outfit", system-ui, sans-serif;
    --font-logo: "Syne", "Outfit", system-ui, sans-serif;
    --transition: 0.22s ease;
    --header-h: 4.25rem;
    /* Fluid layout — scales with viewport; mobile-specific rules use max-width: 767px */
    --wrap-max: 1100px;
    --gutter-x: clamp(0.875rem, 2.8vw + 0.25rem, 2rem);
    --section-y: clamp(2.6rem, 5vw + 1.5rem, 4.75rem);
    --safe-inline: env(safe-area-inset-left, 0px);
    --safe-inline-end: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-tag__dot {
        animation: none;
    }

    .custom-select--invalid .custom-select__btn {
        animation: none;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(0.9375rem, 0.2vw + 0.9rem, 1.0625rem);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: var(--wrap-max);
    margin-inline: auto;
    padding-left: calc(var(--gutter-x) + var(--safe-inline));
    padding-right: calc(var(--gutter-x) + var(--safe-inline-end));
}

/* ——— Logo (header + footer + inline brand) ——— */
.logo {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    /* Centre wordmark + tag (every .logo on this site uses .logo--mark). Higher than flex-start so merges/caches can’t drop .logo--mark rules. */
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.2vw, 2.15rem);
    letter-spacing: -0.045em;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.logo-i {
    color: #fff;
}

.logo-repair {
    color: var(--accent);
}

.logo-tag {
    font-family: var(--font);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.logo--mark {
    padding: clamp(0.35rem, 1.2vw, 0.45rem) clamp(0.65rem, 2.5vw, 1rem) clamp(0.4rem, 1.2vw, 0.5rem)
        clamp(0.7rem, 2.6vw, 1.05rem);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        0 0 0 1px rgba(230, 57, 70, 0.22),
        0 0 10px rgba(230, 57, 70, 0.06),
        0 8px 28px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.logo--mark .logo-tag {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
}

.logo--mark:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 1px rgba(230, 57, 70, 0.32),
        0 0 14px rgba(230, 57, 70, 0.09),
        0 0 22px rgba(230, 57, 70, 0.05),
        0 10px 32px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo-glow {
    display: none;
}

.logo-glow--footer {
    display: none;
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 14, 18, 0.78);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(10, 14, 18, 0.92);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.45), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.55rem, 1.5vw, 0.85rem) 0;
    gap: clamp(0.65rem, 2vw, 1.25rem);
    min-height: var(--header-h);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.15rem;
}

.nav a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(0.78rem, 0.35vw + 0.72rem, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem clamp(0.45rem, 1.2vw, 0.75rem);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition), text-shadow var(--transition);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    box-shadow: 0 0 12px var(--accent-glow);
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: min(82vh, clamp(22rem, 52vh, 47.5rem));
    display: flex;
    align-items: center;
    padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-visual__photo {
    position: absolute;
    inset: -8%;
    background-image: url("https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?auto=format&fit=crop&w=2400&q=80");
    background-size: cover;
    background-position: center 35%;
    filter: blur(18px) saturate(1.15) brightness(0.55);
    transform: scale(1.08);
}

.hero-visual__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 15% 20%, rgba(230, 57, 70, 0.22), transparent 50%),
        radial-gradient(ellipse 70% 60% at 85% 80%, rgba(56, 189, 248, 0.08), transparent 45%),
        linear-gradient(165deg, rgba(10, 14, 18, 0.88) 0%, rgba(10, 14, 18, 0.72) 45%, rgba(10, 14, 18, 0.94) 100%);
}

.hero-visual__grain {
    position: absolute;
    inset: 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");
    mix-blend-mode: overlay;
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    width: min(46rem, 100%);
    max-width: min(46rem, 94vw);
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.75rem) clamp(2.25rem, 4vw, 3.15rem);
    text-align: center;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, rgba(18, 24, 32, 0.78) 0%, rgba(18, 24, 32, 0.58) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
}

.hero-tag {
    margin: 0 auto 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.hero-tag__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
    animation: tagPulse 2.4s ease-in-out infinite;
}

@keyframes tagPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(0.92);
    }
}

.hero h1 {
    margin: 0 auto 1.15rem;
    max-width: min(28rem, 100%);
    font-size: clamp(2.15rem, 5.5vw, 3.15rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.hero-lead {
    margin: 0 auto 2.1rem;
    max-width: 38rem;
    color: rgba(232, 236, 241, 0.85);
    font-size: clamp(1.02rem, 2.2vw, 1.12rem);
    line-height: 1.72;
    text-wrap: balance;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.68rem, 1.5vw, 0.78rem) clamp(1.1rem, 2.5vw, 1.45rem);
    font-family: inherit;
    font-size: clamp(0.88rem, 0.25vw + 0.84rem, 0.95rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background: #ff4d5c;
    box-shadow: 0 12px 36px rgba(230, 57, 70, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
}

/* ——— Sections ——— */
.section {
    padding: var(--section-y) 0;
}

.section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3.2vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-title--brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.45rem;
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    letter-spacing: -0.045em;
    line-height: 1.15;
    color: var(--text);
}

.about-head .section-title--brand {
    justify-content: flex-start;
}

.brand-lockup {
    font-family: inherit;
    font-weight: inherit;
    font-size: 1em;
    letter-spacing: inherit;
}

.brand-lockup .logo-i {
    color: #fff;
}

.brand-lockup .logo-repair {
    color: var(--accent);
}

.section-intro {
    margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: min(38rem, 100%);
    color: var(--text-muted);
    font-size: clamp(0.98rem, 0.35vw + 0.92rem, 1.06rem);
    line-height: 1.65;
}

.about {
    position: relative;
    background: var(--bg-panel);
    border-block: 1px solid var(--border);
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(230, 57, 70, 0.08), transparent),
        linear-gradient(180deg, rgba(56, 189, 248, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.about-head {
    position: relative;
    z-index: 1;
}

.about-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Desktop: wrapper is layout-transparent so the list grids inside .wrap */
.feature-carousel {
    display: contents;
}

.feature-grid {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.35rem);
}

.feature-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.15rem, 2.8vw, 1.5rem);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: rgba(230, 57, 70, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.85rem;
    display: block;
    margin-bottom: 0.85rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ——— Quote ——— */
.quote-section {
    background: var(--bg-deep);
    position: relative;
}

.quote-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100%);
    height: 280px;
    background: radial-gradient(ellipse at center top, rgba(230, 57, 70, 0.08), transparent 70%);
    pointer-events: none;
}

.quote-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.65rem, 3.5vw, 2.5rem);
    overflow: visible;
}

.quote-intro {
    text-align: center;
    max-width: min(40rem, 100%);
    margin-inline: auto;
}

.quote-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.35rem, 2.5vw, 1.75rem);
    align-items: start;
    overflow: visible;
}

@media (min-width: 768px) {
    .quote-split {
        grid-template-columns: minmax(0, 1fr) minmax(12.5rem, 18.75rem);
        gap: clamp(1.5rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.75rem);
    }

    .contact-direct {
        position: sticky;
        top: calc(var(--header-h) + 1.75rem);
        z-index: 1;
    }
}

.quote-split__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 2;
}

/* While device dropdown is open: stack above .site-header (z-index 200) and typical Hostinger overlays so taps reach the list. */
.quote-split__form.quote-split__form--lift {
    z-index: 10000;
}

.quote-intro .section-title {
    margin-left: auto;
    margin-right: auto;
}

.quote-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.quote-intro__text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.alert-success {
    text-align: center;
    background: rgba(46, 160, 67, 0.14);
    border: 1px solid rgba(46, 160, 67, 0.38);
    color: #86efac;
}

.alert-error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.32);
    color: #fecaca;
}

.quote-form {
    background: linear-gradient(165deg, rgba(24, 31, 42, 0.95) 0%, rgba(18, 24, 32, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: calc(var(--radius) + 4px);
    padding: 0;
    box-shadow: var(--shadow), 0 0 0 1px rgba(230, 57, 70, 0.06);
    /* visible so the device dropdown (position:absolute) stays clickable outside the box */
    overflow: visible;
}

.quote-form__panels {
    display: flex;
    flex-direction: column;
}

.form-panel {
    padding: 1.5rem 1.35rem 1.35rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
    .form-panel {
        padding: 1.65rem 1.85rem 1.5rem;
    }
}

.form-panel:last-child,
.form-panel--footer {
    border-bottom: none;
}

.form-panel__title {
    margin: 0 0 1.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-panel--footer {
    padding-top: 1.35rem;
    background: rgba(0, 0, 0, 0.2);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.quote-form {
    position: relative;
}

.form-row.two {
    display: grid;
    gap: 1rem;
}

@media (min-width: 560px) {
    .form-row.two {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    margin-bottom: 1.1rem;
}

.field:last-child {
    margin-bottom: 0;
}

.field label,
.field legend {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.42rem;
    color: rgba(232, 236, 241, 0.75);
}

.req {
    color: var(--accent);
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.72rem 0.95rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: rgba(10, 14, 18, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: rgba(10, 14, 18, 0.85);
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

/* Native select hidden — custom UI */
.select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.field-device {
    position: relative;
    z-index: 20;
}

.custom-select {
    position: relative;
    isolation: isolate;
}

.custom-select__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    background: rgba(10, 14, 18, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.custom-select__btn:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(10, 14, 18, 0.8);
}

.custom-select__btn:focus-visible {
    outline: none;
    border-color: rgba(230, 57, 70, 0.55);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.custom-select.is-open .custom-select__btn {
    border-color: rgba(230, 57, 70, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.custom-select--invalid .custom-select__btn {
    border-color: rgba(230, 57, 70, 0.65);
    animation: shake 0.45s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-4px);
    }
    40%,
    80% {
        transform: translateX(4px);
    }
}

.custom-select__value {
    flex: 1;
    min-width: 0;
}

.custom-select__value.is-placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.custom-select__chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition), border-color var(--transition);
}

.custom-select.is-open .custom-select__chevron {
    transform: rotate(225deg) translateY(2px);
    border-color: var(--accent);
}

.custom-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    touch-action: manipulation;
    background: linear-gradient(180deg, #1a222e 0%, #141a22 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(230, 57, 70, 0.08);
    z-index: 300;
}

.custom-select__list:focus {
    outline: none;
}

.custom-select__option {
    margin: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    transition: background var(--transition), color var(--transition);
}

.custom-select__option:hover,
.custom-select__option.is-highlighted {
    background: rgba(230, 57, 70, 0.14);
    color: #fff;
}

.custom-select__option[aria-selected="true"] {
    background: rgba(230, 57, 70, 0.22);
    box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.25);
}

.custom-select__option.is-placeholder-opt {
    color: var(--text-muted);
    font-weight: 400;
}

.fieldset-contact {
    border: none;
    margin: 0 0 1.1rem;
    padding: 0;
}

.fieldset-contact legend {
    padding: 0;
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.radio-label:has(input:checked) {
    border-color: rgba(230, 57, 70, 0.45);
    background: rgba(230, 57, 70, 0.1);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.12);
}

.radio-label:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.radio-label input {
    width: auto;
    accent-color: var(--accent);
}

.btn-submit {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.95rem 1.5rem;
    border: none;
}

.btn-submit:hover {
    background: #ff4d5c;
}

.contact-direct {
    padding: 1.5rem 1.4rem 1.55rem;
    border-radius: var(--radius);
    text-align: center;
    background: linear-gradient(160deg, rgba(24, 31, 42, 0.92) 0%, rgba(15, 20, 28, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(230, 57, 70, 0.12),
        0 0 12px rgba(230, 57, 70, 0.05),
        0 14px 44px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
    .contact-direct {
        text-align: left;
        padding: 1.6rem 1.5rem 1.65rem;
    }
}

.contact-direct__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.3;
}

.contact-direct__text {
    margin: 0 0 1.15rem;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.contact-direct__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.72rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: rgba(230, 57, 70, 0.14);
    border: 1px solid rgba(230, 57, 70, 0.32);
    box-shadow: 0 0 16px rgba(230, 57, 70, 0.08);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (min-width: 768px) {
    .contact-direct__phone {
        justify-content: flex-start;
    }
}

.contact-direct__phone:hover {
    background: rgba(230, 57, 70, 0.24);
    border-color: rgba(230, 57, 70, 0.48);
    box-shadow: 0 0 22px rgba(230, 57, 70, 0.14);
}

.contact-direct__phone:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ——— Map ——— */
.map-section {
    padding-bottom: 0;
    background: var(--bg-panel);
    border-block: 1px solid var(--border);
}

.map-header {
    text-align: center;
    padding-bottom: 1.5rem;
    padding-top: 0;
}

.map-header .section-title {
    margin-bottom: 0.5rem;
}

.map-sub {
    margin: 0 auto 0.75rem;
    width: 100%;
    max-width: none;
    padding: 0;
    line-height: 1.35;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.015em;
}

@media (min-width: 900px) {
    .map-sub {
        white-space: nowrap;
        font-size: 0.8125rem;
        letter-spacing: -0.02em;
    }
}

.address-line {
    margin: 0;
    color: var(--text-muted);
    font-style: normal;
}

.map-canvas {
    height: clamp(16rem, 42vh, 26.25rem);
    width: 100%;
    max-width: var(--wrap-max);
    margin: 0 auto;
    border-top: 1px solid var(--border);
    z-index: 1;
}

.leaflet-container {
    font-family: var(--font);
}

/* ——— Hours ——— */
.hours-section {
    padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
    position: relative;
    overflow: hidden;
}

.hours-section::before {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.06), transparent 65%);
    pointer-events: none;
}

.hours-wrap {
    position: relative;
    z-index: 1;
}

.hours-intro {
    text-align: center;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
}

.hours-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.hours-intro .section-title {
    margin-bottom: 0.65rem;
}

.hours-lead {
    margin: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.55;
}

.hours-showcase {
    position: relative;
    max-width: min(920px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 3.5vw, 2rem) clamp(1rem, 3vw, 1.25rem) clamp(1.35rem, 3vw, 1.75rem);
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(160deg, rgba(24, 31, 42, 0.9) 0%, rgba(15, 20, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .hours-showcase {
        padding: 2.25rem 2rem 1.85rem;
    }
}

.hours-showcase__glow {
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), rgba(56, 189, 248, 0.5), transparent);
    border-radius: 2px;
    opacity: 0.85;
    filter: blur(0.5px);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hours-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .hours-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.65rem;
    }
}

.hours-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1rem 0.65rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(10, 14, 18, 0.55);
    border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.hours-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 16px rgba(148, 163, 184, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.25);
}

.hours-tile--extended:hover {
    border-color: rgba(125, 211, 252, 0.35);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.15),
        0 0 18px rgba(56, 189, 248, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.25);
}

.hours-tile--sun:hover {
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow:
        0 0 0 1px rgba(230, 57, 70, 0.2),
        0 0 18px rgba(230, 57, 70, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.25);
}

.hours-tile__day {
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
}

.hours-tile__full {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .hours-tile__full {
        display: none;
    }
}

@media (max-width: 767px) {
    .hours-tile__day {
        font-size: 1.1rem;
    }
}

.hours-tile__time {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(232, 236, 241, 0.88);
    font-variant-numeric: tabular-nums;
    margin-top: 0.15rem;
}

.hours-tile--extended {
    border-color: rgba(56, 189, 248, 0.2);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, rgba(10, 14, 18, 0.55) 100%);
}

.hours-tile--extended .hours-tile__time {
    color: #7dd3fc;
}

.hours-tile--sun {
    grid-column: span 2;
    border-color: rgba(230, 57, 70, 0.25);
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.1) 0%, rgba(10, 14, 18, 0.55) 100%);
}

@media (min-width: 640px) {
    .hours-tile--sun {
        grid-column: span 2;
    }
}

@media (min-width: 900px) {
    .hours-tile--sun {
        grid-column: span 1;
    }
}

.hours-tile--sun .hours-tile__day {
    color: var(--accent);
}

.hours-tile--sun .hours-tile__time {
    color: #fecaca;
}

.hours-note {
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
    max-width: none;
    width: 100%;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

@media (min-width: 900px) {
    .hours-note {
        white-space: nowrap;
        font-size: 0.8125rem;
        letter-spacing: -0.02em;
    }
}

/* ——— Footer ——— */
.site-footer {
    border-top: 1px solid var(--border);
    background: #070a0d;
    padding: clamp(2rem, 4.5vw, 2.75rem) 0
        calc(clamp(1.75rem, 3.5vw, 2.25rem) + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.slogan {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-address {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
    max-width: 22rem;
    line-height: 1.5;
}

.footer-credit {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    :root {
        --header-h: clamp(4.35rem, 11vw, 5.85rem);
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.55rem 0 0.65rem;
    }

    .header-inner > .logo.logo--mark {
        align-self: center;
    }

    /* Single nav: four equal columns, one row, no overlap */
    .header-inner .nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 0.15rem;
        row-gap: 0;
        width: 100%;
        max-width: 100%;
        justify-content: stretch;
        align-items: stretch;
    }

    .header-inner .nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: clamp(0.52rem, 2.35vw, 0.68rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.15;
        padding: 0.45rem 0.12rem;
        min-width: 0;
        white-space: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .header-inner .nav a::after {
        left: 0.2rem;
        right: 0.2rem;
        bottom: 0.22rem;
    }

    /* Allow horizontal swipe carousel (overflow:hidden on .about clipped it before) */
    .about {
        overflow: visible;
    }

    /* “Why iRepair” — centre all copy above the card carousel */
    .about-head {
        text-align: center;
    }

    .about-head .section-title--brand {
        justify-content: center;
    }

    .about-head .section-intro {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        text-wrap: balance;
    }

    .hours-lead {
        font-size: clamp(0.82rem, 3.4vw, 0.98rem);
        line-height: 1.45;
    }

    .feature-carousel {
        display: block;
        width: calc(100% + (var(--gutter-x) + var(--safe-inline)) + (var(--gutter-x) + var(--safe-inline-end)));
        max-width: none;
        margin-left: calc(-1 * (var(--gutter-x) + var(--safe-inline)));
        margin-right: calc(-1 * (var(--gutter-x) + var(--safe-inline-end)));
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: max(0.75rem, var(--safe-inline));
        scroll-padding-right: max(0.75rem, var(--safe-inline-end));
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.85rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(230, 57, 70, 0.45) transparent;
    }

    .feature-carousel::-webkit-scrollbar {
        height: 5px;
    }

    .feature-carousel::-webkit-scrollbar-thumb {
        background: rgba(230, 57, 70, 0.4);
        border-radius: 99px;
    }

    .feature-carousel .feature-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.85rem;
        width: max-content;
        min-width: 100%;
        padding-left: max(0.75rem, var(--safe-inline));
        padding-right: max(0.75rem, var(--safe-inline-end));
        box-sizing: border-box;
    }

    .feature-carousel .feature-card {
        flex: 0 0 min(19.5rem, calc(100vw - 2.5rem));
        scroll-snap-align: center;
        max-width: none;
    }

    /* Tighter gap above “Visit us” */
    .map-section.section {
        padding-top: clamp(1rem, 2.8vw, 1.65rem);
    }

    .map-header {
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .feature-carousel {
        scroll-snap-type: none;
    }
}
