/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Navigation
   Breakpoints (nav):
   - >1024px: horizontal desktop nav, compact logo
   - ≤1024px: hamburger menu (tablet + phone)
   - Truck artwork is framed separately from its transparent image padding
*/
.navbar {
    --nav-logo-height: 64px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Frame the truck artwork, excluding the source image's transparent margins. */
.logo a {
    display: block;
    position: relative;
    width: calc(var(--nav-logo-height) * 2.35);
    height: var(--nav-logo-height);
    overflow: hidden;
}

.logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: calc(var(--nav-logo-height) * 2.45);
    width: auto;
    max-width: none;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active {
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/truck-hero.1bc5d3964081.webp') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
    margin-bottom: 1rem;
    color: white;
}

.hero-motto {
    font-size: clamp(1rem, 1.2vw + 0.7rem, 1.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: #fcd34d;
}

.hero-subtitle {
    font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #1f2937;
}

.btn-primary:hover {
    background-color: #d97706;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Truck Gallery */
.truck-gallery {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* About Section */
.about {
    padding: 4rem 0;
}

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

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

a.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.service-card-link h3,
a.service-card-link p {
    text-decoration: none;
    color: inherit;
}

a.service-card-link:hover h3 {
    color: var(--primary-dark);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Service Areas Section */
.service-areas {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.areas-nav {
    max-width: 920px;
    margin: 0 auto;
}

.areas-cities-block {
    text-align: center;
}

.areas-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.625rem;
    margin: 0 0 0.75rem;
    padding: 0;
}

.areas-chips a {
    display: inline-block;
    padding: 0.5rem 1.125rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.areas-chips a:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    color: var(--primary-dark);
}

.areas-county-link-wrap {
    margin: 0.5rem 0 0;
}

.areas-county-link {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.areas-county-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Legacy areas-list (city pages, county page) */
.areas-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin: 0 auto 1.5rem;
    max-width: 900px;
}

.areas-list li {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 500;
}

.service-areas-note {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    text-align: center;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.review-rating {
    margin-top: 0.25rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
    white-space: nowrap;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.google-badge::before {
    content: 'G';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #4285f4;
    color: white;
    border-radius: 2px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.reviews-cta {
    text-align: center;
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.faq-item summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    list-style-position: outside;
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-light);
    line-height: 1.7;
}


/* Forms */
.estimate,
.book-appointment {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Pair short fields side-by-side on tablet/desktop; stack on phone */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.form-row .form-group {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form {
        max-width: 720px;
    }

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

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .estimate .form,
    .book-appointment .form {
        max-width: 800px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-privacy-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

.form-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    display: block;
}

/* Honeypot (spam trap) fields */
.honeypot {
    display: none !important;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.map-container {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    min-height: 280px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.turnstile-wrap {
    margin-bottom: 0.5rem;
}

.turnstile-wrap .cf-turnstile {
    display: flex;
    justify-content: center;
}

.areas-nav .areas-list {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Let grid columns shrink below intrinsic content width (prevents horizontal overflow) */
.footer-content > .footer-section {
    min-width: 0;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 100%;
}

.social-links a {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.footer-bottom-inner > p {
    margin: 0;
    text-align: left;
}

/* PoweredByMoLumina — understated tech-company signature */
.powered-by-molumina {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.powered-by-molumina[data-powered-by-molumina="false"] {
    display: none;
}

.powered-by-molumina__label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.powered-by-molumina__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.powered-by-molumina__link:hover {
    color: #fff;
    opacity: 0.92;
}

.powered-by-molumina__link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.powered-by-molumina__mark {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.powered-by-molumina__name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.powered-by-molumina__external {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.powered-by-molumina__link:hover .powered-by-molumina__external {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 640px) {
    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-inner > p {
        text-align: center;
    }

    .powered-by-molumina {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .powered-by-molumina__link {
        transition: none;
    }
}

/* Hero Phone List */
.hero-phone-list {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-phone-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.hero-phone-list a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.phone-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    color: var(--text-light);
    font-size: 0.8rem;
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-light);
    font-weight: 500;
}

/* City Contact + Form Layout */
.city-contact-form-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* City Contact Info */
.city-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

@media (min-width: 901px) {
    .city-contact-info {
        position: sticky;
        top: calc(var(--nav-logo-height, 64px) + 1.25rem);
    }
}

.city-estimate-form {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.city-estimate-form .form {
    display: grid;
    gap: 1rem;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.city-estimate-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Desktop-only sticky CTA beside long city/service copy (hidden on phone) */
.city-about-aside {
    display: none;
}

@media (min-width: 1024px) {
    .city-about-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
        gap: 2.5rem;
        align-items: start;
    }

    .city-about-aside {
        display: block;
        position: sticky;
        top: calc(var(--nav-logo-height, 64px) + 1.25rem);
    }

    .city-about-aside-card {
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: var(--shadow);
    }

    .city-about-aside-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.35rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .city-about-aside-text {
        color: var(--text-light);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .city-about-aside-card .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .city-about-aside-card .btn:last-child {
        margin-bottom: 0;
    }

    .city-about-aside-card .btn-secondary {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .city-about-aside-card .btn-secondary:hover {
        background-color: var(--primary-color);
        color: white;
    }
}

@media (max-width: 900px) {
    .city-contact-form-layout {
        grid-template-columns: 1fr;
    }
    .city-contact-info {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .city-estimate-form {
        padding: 1.25rem;
    }
    .city-estimate-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer Phones */
.footer-phones {
    margin-top: 0.75rem;
}

.footer-phones p {
    margin-bottom: 0.25rem;
}

.footer-phones a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-phones a:hover {
    color: var(--secondary-color);
}


/* Areas list link styling */
.areas-list li a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.areas-list li a:hover {
    text-decoration: underline;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 6px 6px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Global Focus Indicators */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

.social-links a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.footer-section a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Touch Target Sizing */
.nav-menu a {
    padding: 0.5rem 0.25rem;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}

.footer-section ul li {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-section ul li a {
    padding: 0.375rem 0;
    display: block;
    min-height: 44px;
    line-height: 2;
}

.contact-item a {
    padding: 0.25rem 0;
    display: inline-block;
    min-height: 44px;
    line-height: 2;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility: centered CTA block (replaces inline style="text-align:center; margin-top:...") */
.cta-center {
    text-align: center;
    margin-top: 2rem;
}

.checklist-home-link a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.checklist-home-link a:hover {
    color: var(--primary-dark);
}

.cta-center-sm {
    text-align: center;
    margin-top: 1.5rem;
}

/* Hero variant for 404 */
.hero--short {
    min-height: 400px;
}

/* Responsive Design */

/* Desktop: compact nav link hit areas (phones/tablets keep 44px+ below) */
@media (min-width: 1025px) {
    .nav-menu a {
        min-height: auto;
        line-height: 1.4;
        padding: 0.35rem 0.15rem;
    }
}

/* Tablet + phone: hamburger nav (phones keep prior logo sizes at ≤768px) */
@media (max-width: 1024px) {
    .navbar {
        --nav-logo-height: 56px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        display: block;
        min-height: 48px;
        line-height: 1.6;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: calc(100vh - var(--nav-logo-height) - 1.5rem);
        max-height: calc(100dvh - var(--nav-logo-height) - 1.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        top: calc(var(--nav-logo-height) + 1.5rem);
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        visibility: visible;
        pointer-events: auto;
        left: 0;
    }
}

/* Phone layout (unchanged visual treatment) */
@media (max-width: 768px) {
    .navbar {
        /* Baseline mobile size */
        --nav-logo-height: 56px;
    }

    .logo img {
        max-width: none;
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-motto {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-links a {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Portrait: make logo noticeably larger */
@media (max-width: 768px) and (orientation: portrait) {
    .navbar {
        --nav-logo-height: 56px;
    }
}

/* Landscape: larger than before, but not as large as portrait */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        --nav-logo-height: 56px;
    }
}

@media (max-width: 480px) {
    .navbar {
        --nav-logo-height: 56px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-motto {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .review-date {
        align-self: flex-start;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .navbar {
        --nav-logo-height: 56px;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    .navbar {
        --nav-logo-height: 56px;
    }
}


/* Quick Facts (collapsible) — keeps key business facts in the DOM for AI/LLM
   extraction without consuming visible space. Lives inside the Contact section. */
.quick-facts-details {
    max-width: 900px;
    margin: 1.5rem auto 0;
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 8px;
    background: #fff;
}

.quick-facts-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-facts-details > summary::-webkit-details-marker {
    display: none;
}

.quick-facts-details > summary::after {
    content: "▾";
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.quick-facts-details[open] > summary::after {
    transform: rotate(180deg);
}

.quick-facts-details > summary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

.quick-facts {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem 1.5rem;
}

.quick-facts > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.quick-facts dt {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.quick-facts dd {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Query-intent answer block — collapsible; content stays in DOM for AI/SERP */
.quick-answer-details {
    max-width: 900px;
    margin: 1.25rem 0 0;
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 8px;
    background: rgba(26, 58, 92, 0.04);
}

.about .quick-answer-details,
.contact .quick-answer-details {
    margin-top: 1.5rem;
}

.quick-answer-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-answer-details > summary::-webkit-details-marker {
    display: none;
}

.quick-answer-details > summary::after {
    content: "▾";
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.quick-answer-details[open] > summary::after {
    transform: rotate(180deg);
}

.quick-answer-details > summary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

.answer-block {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.answer-block a {
    font-weight: 500;
}

/* Audit fixes: visible focus, readable footer links and stable media crops. */
.footer-bottom a, .footer-bottom a:visited { color: #fcd34d; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #b45309;
    outline-offset: 3px;
}
button:disabled { opacity: 0.65; cursor: wait; }
.gallery-item img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.jf-chat-launcher { position: fixed; bottom: 20px; right: 20px; z-index: 1100; border: 0; border-radius: 999px; padding: 14px 18px; background: #1e3a8a; color: #fff; cursor: pointer; font: inherit; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Motion */
@keyframes jf-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes jf-hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@keyframes jf-shine {
    from { transform: translateX(-120%) skewX(-20deg); }
    to { transform: translateX(260%) skewX(-20deg); }
}

@keyframes jf-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* The H1 stays static so it never delays Largest Contentful Paint. */
.hero-motto,
.hero-subtitle,
.hero-buttons {
    animation: jf-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-motto { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.25s; }
.hero-buttons { animation-delay: 0.4s; }

.hero::before {
    animation: jf-hero-drift 22s ease-in-out infinite alternate;
    will-change: transform;
}

.js-motion .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.js-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
}
.js-motion .service-card.reveal.is-visible,
.js-motion .review-card.reveal.is-visible,
.js-motion .gallery-item.reveal.is-visible {
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
        transform 0.3s ease, box-shadow 0.3s ease;
}
.js-motion .service-card.reveal.is-visible:hover,
.js-motion .review-card.reveal.is-visible:hover,
.js-motion .gallery-item.reveal.is-visible:hover {
    transform: translateY(-5px);
}

.navbar {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.logo a {
    transition: width 0.3s ease, height 0.3s ease;
}
.logo img {
    transition: height 0.3s ease;
}
.navbar.is-scrolled {
    --nav-logo-height: 48px;
    padding: 0.35rem 0;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1025px) {
    .nav-content {
        position: relative;
    }
    .nav-indicator {
        position: absolute;
        top: 0;
        left: 0;
        height: 3px;
        width: 0;
        border-radius: 3px;
        background: var(--secondary-color);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    }
    .nav-indicator.is-active {
        opacity: 1;
    }
}
@media (max-width: 1024px) {
    .nav-indicator { display: none; }
}

.trust-stats {
    background: var(--bg-white);
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}
.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-light);
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .trust-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.btn-primary {
    position: relative;
    overflow: hidden;
}
.hero .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-120%) skewX(-20deg);
    animation: jf-shine 1.1s ease-out 1.2s 1 both;
    pointer-events: none;
}
a.btn[href="#book"]:hover,
a.btn[href="#book"]:focus-visible,
.book-appointment .btn-primary:hover,
.book-appointment .btn-primary:focus-visible {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 8px 24px rgba(245, 158, 11, 0.35);
}

.form-message.success,
.form-message.error,
.form-message.info {
    animation: jf-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.form-message.success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    font-weight: 700;
    vertical-align: middle;
    animation: jf-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .hero-motto,
    .hero-subtitle,
    .hero-buttons,
    .hero::before,
    .hero .btn-primary::after,
    .form-message.success,
    .form-message.error,
    .form-message.info,
    .form-message.success::before {
        animation: none !important;
    }
    .hero .btn-primary::after { display: none; }
    .gallery-item:hover img { transform: none; }
}
