/* Shared styles for the service pages (/garage-door-repair, /garage-door-spring-repair,
   /garage-door-installation, /garage-door-openers, /commercial-garage-doors).
   Copied from the inline CSS in index.html so the pages look the same. Keep class names in sync. */
:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --accent: #f97316;        /* decorative only (borders, icons) and accents on navy */
    --accent-dark: #c2410c;   /* orange text on light backgrounds and behind white text (5.18:1 on white) */
    --accent-darker: #9a3412; /* hover for --accent-dark (7.31:1 with white) */
    --bg-light: #f8fafc;
    --text: #334155;
    --text-dark: #0f172a;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .btn:hover {
        transform: none;
    }
}

body {
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-dark);
    outline-offset: 2px;
}

/* On the navy areas the brighter orange has the better contrast (6.37:1 vs 3.45:1). */
header :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.mobile-cta :focus-visible,
.skip-link:focus-visible {
    outline-color: var(--accent);
}

/* "Skip to main content": hidden above the page until it gets keyboard focus. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 2000;
    background: #fff;
    color: var(--navy);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
}

.skip-link:focus {
    top: 12px;
}

header {
    background: var(--navy);
    color: #fff;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    text-align: center;
    padding: 84px 5%;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 30px;
    color: #e2e8f0;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--accent-dark);
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--accent-darker);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--navy);
}

.section {
    padding: 76px 5%;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-title p {
    color: #64748b;
    font-size: 1rem;
}

.features,
.services,
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    padding: 28px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery figure {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery figcaption {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.areas {
    background: var(--bg-light);
}

/* Service areas are grouped by region in cards (Dec 2026: 47 towns from the owner). */
.area-groups {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: start;
}

/* 5 regions: 5 across, then 3 + 2, then 2 + 2 + 1, then stacked with two columns of towns. */
@media (max-width: 1200px) {
    .area-groups {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .area-groups {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .area-groups {
        grid-template-columns: 1fr;
    }

    .area-group ul {
        columns: 2;
        column-gap: 16px;
    }
}

.area-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    padding: 20px 20px 10px;
}

.area-group h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.areas ul {
    list-style: none;
}

.areas li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
    color: var(--text-dark);
}

.areas li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 4px;
}

.areas-note {
    text-align: center;
    margin-top: 28px;
    color: #64748b;
}

.areas-note a {
    color: var(--accent-dark);
    font-weight: 700;
}

.cta {
    background: var(--navy);
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.cta p {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.contact-info p {
    margin-bottom: 14px;
}

.contact-info a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.quote-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.quote-form .btn {
    width: 100%;
}

.form-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.form-note a {
    color: #475569;
    font-weight: 600;
}

.hidden-field {
    display: none;
}

.footer {
    background: var(--navy);
    color: #cbd5e1;
    text-align: center;
    padding: 24px 5%;
    font-size: 0.9rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-social {
    margin-top: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-social a:hover {
    color: var(--accent);
}

.faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq a {
    color: var(--accent-dark);
    font-weight: 700;
}

.partner-note {
    text-align: center;
    margin-top: 32px;
    color: #64748b;
}

.card-deal {
    margin-top: 10px;
}

.card-deal a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.card-deal a:hover {
    text-decoration: underline;
}

.card-price {
    margin-top: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.card-price strong {
    color: var(--accent-dark);
    font-size: 1.35rem;
}

/* Starting-price pop-up: shown once per visit (see script at the bottom) */
.partner-note a {
    color: var(--accent-dark);
    font-weight: 700;
}

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

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .hero {
        padding: 64px 5%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.mobile-cta {
    display: none;
}

@media (max-width: 640px) {
    .mobile-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        gap: 8px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: var(--navy);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    .mobile-cta a {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
        color: #fff;
    }

    .mobile-cta .mobile-cta-call {
        background: var(--accent-dark);
    }

    .mobile-cta .mobile-cta-quote {
        border: 2px solid #fff;
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

/* ---- Service page extras ---- */
nav a[aria-current="page"] {
    color: var(--accent);
}

.breadcrumbs {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 10px 5%;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 1160px;
    margin: 0 auto;
}

.breadcrumbs li + li::before {
    content: "\203A";
    margin-right: 6px;
    color: #94a3b8;
}

.breadcrumbs a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.hours-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 44px;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.intro-text p {
    margin-bottom: 14px;
}

.intro-text a,
.card a,
.note-box a {
    color: var(--accent-dark);
    font-weight: 700;
}

.intro-photo {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.intro-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.intro-photo figcaption {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.92rem;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.note-box {
    max-width: 900px;
    margin: 36px auto 0;
    padding: 20px 24px;
    border: 1px solid rgba(249, 115, 22, 0.6);
    background: rgba(249, 115, 22, 0.08);
    border-radius: 10px;
    text-align: center;
    color: var(--text-dark);
}

.note-box strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.price-tag {
    display: inline-block;
    margin: 6px 0 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.price-tag strong {
    color: var(--accent-dark);
    font-size: 1.5rem;
}

.other-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.other-services a {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.other-services a span {
    display: block;
    color: #64748b;
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 4px;
}

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

.footer-links {
    margin-top: 10px;
}

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

/* ---- Mascot next to a section heading (was css/mascot.css) ---- */
.section-title.mascot-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 28px);
    text-align: left;
}

.mascot-heading h2 {
    line-height: 1.2;
}

.mascot-heading .mascot-art {
    display: block;
    flex: none;
    width: clamp(52px, 9vw, 80px);
    height: auto;
    background: radial-gradient(circle closest-side at 50% 60%, #dbeafe 98%, transparent);
}

.mascot-heading--primary .mascot-art {
    width: clamp(68px, 11vw, 124px);
}

@media (max-width: 420px) {
    .section-title.mascot-heading {
        gap: 12px;
    }

    .section-title.mascot-heading h2 {
        font-size: clamp(1.375rem, 7vw, 1.75rem);
    }
}

/* ---- Privacy policy page ---- */
.policy {
    max-width: 800px;
    margin: 0 auto;
}

.policy h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    color: var(--text-dark);
    margin: 36px 0 12px;
    line-height: 1.25;
}

.policy h2:first-of-type {
    margin-top: 0;
}

.policy p,
.policy ul {
    margin-bottom: 14px;
}

.policy ul {
    padding-left: 22px;
}

.policy li {
    margin-bottom: 6px;
}

.policy a {
    color: var(--accent-dark);
    font-weight: 700;
}

.policy-updated {
    color: #64748b;
    font-size: 0.95rem;
}

/* /warranty page */
.warranty-promo {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 752 / 560;
    margin: 0 auto 24px;
    border-radius: 10px;
    background: var(--navy);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

@media (max-width: 640px) {
    .hero--warranty {
        padding-top: 24px;
    }
}

.warranty-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.warranty-summary .card {
    border-top: 5px solid #94a3b8;
}

.warranty-summary .card-gold {
    border-top-color: #b8860b;
}

.warranty-years {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.warranty-years span {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
}

.warranty-summary p {
    margin-bottom: 14px;
}

.warranty-tagline {
    font-style: italic;
    font-weight: 700;
    color: var(--text-dark);
}

.policy h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 22px 0 8px;
}

.section-alt {
    background: var(--bg-light);
}

.gold-certificate {
    border: 2px solid #b8860b;
    border-radius: 12px;
    background: #fffdf5;
    padding: clamp(22px, 4vw, 40px);
}

.gold-certificate .certificate-label {
    display: inline-block;
    background: #7a5a00;
    color: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.registration-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 24px;
    list-style: none;
    padding-left: 0 !important;
}

.registration-list li {
    border-bottom: 1px dashed #d6c48a;
    padding-bottom: 6px;
}

/* Opener brands we install (openers page #pricing) */
.brand-logos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 36px;
    padding: 0;
}

.brand-logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.brand-logos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52px;
}

.opener-prices {
    max-width: 900px;
    margin: 0 auto;
}

.opener-prices .card p {
    margin-bottom: 14px;
}

.brand-note {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.brand-note a {
    color: var(--accent-dark);
    font-weight: 700;
}

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