/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --color-orange: #e73f16;
    --color-blue: #253047;
    --color-blue-dark: #1a2332;
    --color-blue-light: #3a4a63;
    --color-white: #ffffff;
    --color-gray-light: #f5f7fa;
    --color-gray: #e0e4e8;
    --color-gray-dark: #6b7280;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

@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;
    }
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive images - prevent overflow on small viewports */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent long words/URLs from causing horizontal scroll – text breaks to new line */
main,
.legal-page,
.welcome-text,
.section-description,
.cta-content p,
.faq-item p,
.footer,
.footer p,
.footer span,
.footer a,
.footer-description,
.footer-google-text,
.footer-bottom,
.footer-legal {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Tables and pre – scroll on small viewports instead of overflowing */
table,
pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Skip to main content - visible on focus for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 10001;
    padding: 12px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    background: var(--color-orange);
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 12px;
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }
}

/* Keyboard focus only - visible focus ring for accessibility */
a:focus,
button:focus {
    outline: none;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

main,
#main {
    max-width: 100%;
    overflow-x: hidden;
}

/* Visually hidden - still available to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot: hidden from view and assistive tech; bots often fill it */
.quote-form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-required-note {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ============================================
   Top Header
   ============================================ */
.top-header {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 12px 0;
    font-size: 14px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item svg {
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: var(--color-white);
    transition: var(--transition);
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.phone-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 120%;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--color-orange);
}

.header-assessment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b4a 100%);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.header-assessment-btn:hover {
    background: linear-gradient(135deg, #c53512 0%, var(--color-orange) 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(231, 63, 22, 0.4);
    transform: translateY(-1px);
}
.header-assessment-btn:focus {
    outline: none;
}
.header-assessment-btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ============================================
   Main Navigation
   ============================================ */
.main-nav {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-blue);
    font-weight: 700;
    font-size: 24px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 69px;
    width: auto;
    display: block;
}

.logo-text {
    color: var(--color-blue);
}

.google-reviews-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.google-reviews-badge:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.google-reviews-badge .stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.google-reviews-badge .stars i {
    color: var(--color-orange);
}

.google-reviews-badge .google-reviews-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-blue);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .google-reviews-badge {
        display: none;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

/* Close button only shown inside mobile menu (hidden on desktop) */
.nav-menu-close-item {
    display: none;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 8px 4px;
}

.nav-menu a:hover {
    color: var(--color-orange);
}

/* Assessment link only in mobile menu; hidden on desktop */
.nav-menu-assessment {
    display: none;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 220px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: var(--color-text);
}

.dropdown-menu a:hover {
    background-color: var(--color-gray-light);
    color: var(--color-orange);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-blue);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23253047" width="1200" height="600"/><path d="M0,300 Q300,200 600,300 T1200,300" stroke="%23e73f16" stroke-width="2" fill="none" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scaleX(-1);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(15, 6, 3, 0.8) 50%,
        rgba(35, 14, 6, 0.78) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quote-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

.quote-form h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.quote-form > p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Inline form success/error message (replaces alert) */
.quote-form-message {
    display: none;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
}
.quote-form-message.is-visible {
    display: block;
}
.quote-form-message--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}
.quote-form-message--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* Quote lightbox popup */
.quote-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s ease;
}
.quote-lightbox.quote-lightbox--open {
    visibility: visible;
    opacity: 1;
}
.quote-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.quote-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.quote-lightbox-content {
    position: relative;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 28px 32px;
}
.quote-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-gray-light);
    color: var(--color-text);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}
.quote-lightbox-close:hover {
    background: var(--color-gray);
    color: var(--color-blue);
}
.quote-form--lightbox .quote-form > p,
.quote-form--lightbox > p {
    margin-bottom: 16px;
}
.quote-form--lightbox .form-group {
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-gray);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Homepage hero: fit hero + form in viewport on laptop/desktop/iPad (no scroll) */
@media (min-width: 1025px) and (min-height: 700px) {
    .hero--home {
        max-height: calc(100vh - 80px);
        min-height: 0;
        padding: 24px 0 28px;
        display: flex;
        align-items: center;
    }
    .hero--home .hero-content {
        gap: 32px;
        align-items: center;
    }
    .hero--home .hero-subtitle {
        margin-bottom: 8px;
    }
    .hero--home .hero-title {
        font-size: 40px;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    .hero--home .hero-description {
        font-size: 16px;
        margin-bottom: 16px;
        line-height: 1.55;
    }
    .hero--home .hero-buttons {
        gap: 12px;
    }
    .hero--home .quote-form {
        padding: 24px;
    }
    .hero--home .quote-form h2 {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .hero--home .quote-form > p {
        margin-bottom: 12px;
        font-size: 14px;
    }
    .hero--home .quote-form p[style*="margin-top"] {
        margin-top: 6px !important;
    }
    .hero--home .form-group {
        margin-bottom: 12px;
    }
    .hero--home .form-group input,
    .hero--home .form-group select,
    .hero--home .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    .hero--home .form-group textarea {
        min-height: 56px;
    }
}

/* Homepage hero: fit stacked layout in viewport on tablet (e.g. iPad) */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 700px) {
    .hero--home {
        max-height: calc(100vh - 80px);
        min-height: 0;
        padding: 20px 0 24px;
        display: flex;
        align-items: center;
    }
    .hero--home .hero-content {
        gap: 24px;
    }
    .hero--home .hero-subtitle { margin-bottom: 6px; }
    .hero--home .hero-title { font-size: 34px; margin-bottom: 10px; }
    .hero--home .hero-description { font-size: 15px; margin-bottom: 12px; line-height: 1.5; }
    .hero--home .hero-buttons { gap: 10px; }
    .hero--home .quote-form { padding: 20px; }
    .hero--home .quote-form h2 { font-size: 20px; margin-bottom: 4px; }
    .hero--home .quote-form > p { margin-bottom: 10px; }
    .hero--home .quote-form p[style*="margin-top"] { margin-top: 4px !important; }
    .hero--home .form-group { margin-bottom: 10px; }
    .hero--home .form-group input,
    .hero--home .form-group select,
    .hero--home .form-group textarea { padding: 10px 12px; font-size: 14px; }
    .hero--home .form-group textarea { min-height: 52px; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

.btn-primary:hover {
    background-color: #c53512;
    border-color: #c53512;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-blue);
}

/* Secondary button on light backgrounds */
.core-values .btn-secondary,
.welcome-content .btn-secondary {
    background-color: transparent;
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.core-values .btn-secondary:hover,
.welcome-content .btn-secondary:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn-link {
    color: var(--color-orange);
    padding: 0;
    font-weight: 600;
}

.btn-link:hover {
    color: #c53512;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Core Values Section
   ============================================ */
.core-values {
    padding: 80px 0;
    background-color: var(--color-white);
}

/* Contact page: ensure text is readable on light background when using footer-contact blocks */
.core-values .footer-contact-info,
.core-values .footer-contact-item {
    color: var(--color-text);
}
.core-values .footer-contact-item span {
    color: inherit;
}
.core-values .footer-contact-item i {
    color: var(--color-orange);
}
.core-values .footer-contact-item a {
    color: var(--color-orange);
}
.core-values .footer-contact-item a:hover {
    color: var(--color-blue);
}

/* Contact page: phone number above address, 2x size */
.contact-page-contact-info .contact-page-phone {
    font-size: 2em;
}
.contact-page-contact-info .contact-page-phone a {
    font-size: 1em;
    text-decoration: none;
}
.contact-page-contact-info .contact-page-phone i {
    font-size: 0.85em;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-blue);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* In-page content links (e.g. "Learn about our roof repair services"): orange, underlined; no underline on hover */
#main p a:not(.btn),
#main .section-description a:not(.btn),
#main .welcome-intro a:not(.btn),
#main .welcome-description a:not(.btn) {
    color: var(--color-orange);
    text-decoration: underline;
    transition: var(--transition);
}
#main p a:not(.btn):hover,
#main .section-description a:not(.btn):hover,
#main .welcome-intro a:not(.btn):hover,
#main .welcome-description a:not(.btn):hover {
    text-decoration: none;
}

/* Welcome Section Creative Layout */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-text .section-title {
    text-align: left;
    margin-bottom: 0;
}

.welcome-intro {
    font-size: 20px;
    color: var(--color-blue);
    font-weight: 600;
    line-height: 1.6;
}

.welcome-description {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    text-align: left;
    max-width: 65ch;
}

/* Prose: cap line length for readability */
.prose,
.legal-page p,
.section-description {
    max-width: 65ch;
}

.signature-block {
    margin-top: 30px;
    margin-bottom: 20px;
}

.signature {
    font-family: 'Mr Dafoe', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 48px;
    color: var(--color-blue);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 5px;
}

.signature::before {
    content: attr(data-signature);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(37, 48, 71, 0.15);
    transform: translate(1px, 1px);
    z-index: -1;
    filter: blur(1px);
}

.signature-title {
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 5px;
}

.welcome-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-image-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.welcome-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.welcome-image-small {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.welcome-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.values-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.value-image {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.values-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 80px 0;
    background-color: var(--color-gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.service-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.service-image a:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 15px;
}
.service-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.service-content h3 a:hover {
    color: var(--color-orange);
}
.service-content h3 a:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.service-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card-full {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.service-card-full .service-image {
    aspect-ratio: 16/10;
}

.service-card-full .service-content {
    padding: 30px;
}

/* Related Services (bottom of service pages) */
.related-services {
    padding: 60px 0;
    background-color: var(--color-gray-light);
}

.related-services .section-title {
    margin-bottom: 10px;
}

.related-services .section-description {
    margin-bottom: 40px;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.related-service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.related-service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-orange);
    transform: translateY(-4px);
}

.related-service-card a.card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-service-card .related-service-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-service-card .related-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.related-service-card .related-service-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 12px;
    line-height: 1.3;
}

.related-service-card .related-service-body p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.related-service-card .btn {
    align-self: flex-start;
    transition: var(--transition);
}
.related-service-card a.card-link:hover .btn,
.related-service-card a.card-link:focus .btn {
    background: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

@media (max-width: 992px) {
    .related-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-services-grid {
        grid-template-columns: 1fr;
    }
    .related-services {
        padding: 40px 0;
    }
}

.services-cta {
    margin-top: 50px;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    padding: 40px;
    border-radius: 12px;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-orange) 0%, #c53512 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-buttons {
    margin-top: 30px;
}

.cta-section .btn-primary {
    background-color: var(--color-white);
    color: var(--color-blue);
    border-color: var(--color-white);
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--color-blue);
}

.btn-large {
    font-size: 18px;
    padding: 16px 32px;
}

.testimonials-cta {
    margin-top: 50px;
    text-align: center;
}

/* ============================================
   Financing Section
   ============================================ */
.financing {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-white);
}

.financing-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.financing-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.financing-icons {
    position: relative;
    width: 180px;
    height: 180px;
}

.icon-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(231, 63, 22, 0.15);
    border: 3px solid var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.icon-circle i {
    font-size: 32px;
    color: var(--color-orange);
}

.icon-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.icon-2 {
    bottom: 20px;
    left: 0;
    z-index: 2;
}

.icon-3 {
    bottom: 20px;
    right: 0;
    z-index: 2;
}

.financing-text {
    text-align: left;
}

.financing-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.financing-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.financing-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.financing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.financing-feature i {
    color: var(--color-orange);
    font-size: 16px;
}

.financing-btn {
    font-size: 16px;
    padding: 14px 28px;
}

/* ============================================
   Statistics Section
   ============================================ */
.statistics {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 63, 22, 0.1) 0%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-orange);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ============================================
   Trust Signals Section
   ============================================ */
.trust-signals {
    padding: 80px 0;
    background-color: var(--color-white);
}

.trust-content {
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-gray-light);
    border-radius: 8px;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.trust-item i {
    font-size: 48px;
    color: var(--color-orange);
    margin-bottom: 20px;
}

.trust-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.trust-item p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits {
    padding: 80px 0;
    background-color: var(--color-blue);
    color: var(--color-white);
}

.benefits .section-title {
    color: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(231, 63, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
}

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-white);
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: 80px 0;
    background-color: var(--color-white);
}

/* Masonry-style layout for testimonials */
.google-reviews-grid {
    column-count: 3;
    column-gap: 30px;
    margin-top: 50px;
}

.google-review-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 30px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.google-review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .google-reviews-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .google-reviews-grid {
        column-count: 1;
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-avatar .reviewer-initial {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
}

/* Odd cards: first initial orange, second initial blue */
.google-review-card:nth-child(odd) .reviewer-initial-first {
    background-color: var(--color-orange);
}

.google-review-card:nth-child(odd) .reviewer-initial-last {
    background-color: var(--color-blue);
}

/* Even cards: first initial blue, second initial orange */
.google-review-card:nth-child(even) .reviewer-initial-first {
    background-color: var(--color-blue);
}

.google-review-card:nth-child(even) .reviewer-initial-last {
    background-color: var(--color-orange);
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 15px;
    margin-bottom: 2px;
}

.review-date {
    color: var(--color-text-light);
    font-size: 13px;
}

.google-logo {
    flex-shrink: 0;
    opacity: 0.7;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-stars i {
    color: var(--color-orange);
    font-size: 14px;
}

.review-text {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.testimonials-cta {
    margin-top: 50px;
    text-align: center;
}

/* ============================================
   Family Services Section
   ============================================ */
.family-services {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-white);
}

.family-services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.family-services .section-title {
    color: var(--color-white);
    text-align: left;
}

.family-services .section-description {
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    margin-bottom: 30px;
}

.family-services-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.family-services-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(231, 63, 22, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    flex-shrink: 0;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

.family-services-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

/* Image Slider */
.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--color-blue);
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 63, 22, 0.4);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dots .dot.active {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 80px 0;
    background-color: var(--color-gray-light);
}

.service-area-map-section {
    padding: 60px 0;
    background-color: var(--color-gray-light);
    border-top: 1px solid var(--color-gray);
}

.service-area-map-section .section-title {
    text-align: center;
    margin-bottom: 12px;
}

.service-area-map-intro {
    text-align: center;
    color: var(--color-text-light);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.service-area-map-container {
    height: 580px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-gray);
    box-shadow: var(--shadow-md);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-blue);
    color: var(--color-white);
    max-width: 100%;
    overflow-x: hidden;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    min-width: 0;
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo-image {
    height: 70px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: var(--color-white);
    font-weight: 700;
    font-size: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
    max-width: 100%;
}

.footer-contact-item span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.footer-contact-item i {
    color: var(--color-orange);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.footer-contact-item a:hover {
    color: var(--color-orange);
}

.footer-column {
    min-width: 0;
    max-width: 100%;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 4px;
}

.footer-column ul li a {
    display: inline;
    padding: 2px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: var(--transition);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-orange);
}

.contact-list span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-google-reviews {
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-google-badge {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
    min-width: 0;
    max-width: 100%;
}

.footer-google-badge:hover {
    opacity: 0.9;
}

.footer-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-stars i {
    color: var(--color-orange);
    font-size: 14px;
}

.footer-google-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--color-orange);
    transform: translateY(-3px);
}

/* In-content Facebook section (service pages) */
.facebook-section {
    background-color: var(--color-gray-light);
    padding: 48px 0 56px;
}

.facebook-section .section-title {
    margin-bottom: 8px;
}

.facebook-section .section-description {
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.facebook-section-inner {
    max-width: 500px;
    margin: 0 auto;
    min-height: 400px;
}

.facebook-section-inner .fb-page {
    display: block;
}

.facebook-embed-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.facebook-embed-wrapper iframe {
    width: 100% !important;
    max-width: 100%;
    height: 1000px;
    border: none;
    overflow: hidden;
    display: block;
}

.facebook-section-inner iframe {
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .facebook-section {
        padding: 32px 0 40px;
    }
    .facebook-section-inner {
        max-width: 100%;
        min-height: 350px;
    }
    .facebook-embed-wrapper {
        max-width: 100%;
    }
    .facebook-embed-wrapper iframe {
        height: 800px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.footer-legal a:hover {
    color: #fff;
}

.legal-prose h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-prose p { margin-bottom: 1rem; }
.legal-prose a { color: var(--color-orange); text-decoration: underline; }

/* Privacy & Terms: centered, narrow column, stacked, super readable */
.legal-page .legal-page-container {
    max-width:  min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.legal-page .legal-page-content {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.legal-page .legal-page-content .section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.legal-page .legal-page-content .welcome-intro {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 2rem;
}

.legal-page .legal-prose {
    text-align: left;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.legal-page .legal-prose h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-blue);
}

.legal-page .legal-prose h2:first-child {
    margin-top: 0;
}

.legal-page .legal-prose p {
    margin-bottom: 1.25rem;
}

.legal-page .legal-prose a {
    color: var(--color-orange);
    text-decoration: underline;
}

.legal-page .legal-prose a:hover {
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-orange);
}

.website-by {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.website-by:hover {
    color: rgba(255, 255, 255, 1);
}

.website-by span {
    color: inherit;
}

.graticle-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.graticle-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-form {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .welcome-text .section-title {
        text-align: center;
    }
    
    .welcome-description {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .family-services-content {
        grid-template-columns: 1fr;
    }
    
    .family-services-image {
        order: -1;
    }
}

/* Mobile: stack text + images, no side-by-side; keep everything in frame */
@media (max-width: 768px) {
    section,
    .welcome-content,
    .hero-content,
    .family-services-content,
    .financing-content,
    .cta-section .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .welcome-content,
    .hero-content,
    .family-services-content,
    .financing-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .welcome-text,
    .welcome-images,
    .welcome-description,
    .hero-form,
    .quote-form,
    .family-services-image {
        min-width: 0;
        max-width: 100%;
    }
    
    .welcome-images .welcome-image-main,
    .welcome-images .welcome-image-grid,
    .welcome-image-small {
        max-width: 100%;
    }
    
    .hero-form,
    .quote-form {
        width: 100%;
        box-sizing: border-box;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 18px;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .quote-lightbox {
        padding: 16px;
    }
    
    .quote-lightbox-content {
        padding: 24px 20px;
    }
    
    .service-area-map-container {
        height: 420px;
    }
    
    /* Top header: compact bar with Open 24 Hours + phone, vertically centered */
    .top-header {
        padding: 8px 0;
    }
    .top-header-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 12px;
        min-height: 0;
    }
    .contact-info {
        display: none;
    }
    .header-right {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-wrap: nowrap;
    }
    .header-right .contact-item {
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }
    .header-right .phone-link {
        font-size: 1em;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        left: -100%;
        flex-direction: column;
        background-color: var(--color-white);
        padding: 80px 24px 30px;
        box-shadow: none;
        transition: left 0.3s ease, visibility 0.3s ease;
        align-items: stretch;
        gap: 0;
        z-index: 10002;
        overflow-y: auto;
        visibility: hidden;
    }
    
    .nav-menu.active {
        left: 0;
        visibility: visible;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid var(--color-gray);
    }
    
    .nav-menu > li > a {
        padding: 16px 0;
        min-height: auto;
    }
    
    /* Roof Assessment link inside mobile menu (shown only on mobile) */
    .nav-menu-assessment {
        display: list-item;
        border-bottom: none;
    }
    
    .nav-menu-assessment a {
        display: flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b4a 100%);
        color: var(--color-white) !important;
        padding: 14px 16px !important;
        border-radius: 6px;
        margin-top: 16px;
        font-weight: 600;
        justify-content: center;
    }
    
    .nav-menu-assessment a:hover {
        background: linear-gradient(135deg, #c53512 0%, var(--color-orange) 100%);
        color: var(--color-white) !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 10000;
    }
    
    /* When menu is open, hide the hamburger (X is inside the menu) */
    .mobile-menu-toggle.active {
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Close (X) button inside the mobile menu */
    .nav-menu-close-item {
        display: block;
        position: absolute;
        top: 20px;
        right: 24px;
        border-bottom: none;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .nav-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: none;
        border: none;
        color: var(--color-blue);
        font-size: 24px;
        cursor: pointer;
        border-radius: 6px;
        transition: var(--transition);
        text-decoration: none;
    }
    .nav-menu-close i {
        text-decoration: none;
    }
    .nav-menu-close:hover,
    .nav-menu-close:focus {
        background: var(--color-gray-light);
        color: var(--color-orange);
        text-decoration: none;
    }
    .nav-menu-close:focus-visible {
        outline: 2px solid var(--color-orange);
        outline-offset: 2px;
    }
    
    /* Hide top header assessment button and email on mobile; assessment lives in menu */
    .top-header .header-assessment-btn {
        display: none !important;
    }
    
    .top-header .top-header-email {
        display: none !important;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
        padding-left: 20px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-tagline {
        margin-top: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .welcome-image-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-full {
        grid-template-columns: 1fr;
    }
    
    .service-card-full .service-image {
        order: -1;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-images,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .financing {
        padding: 40px 0;
    }
    
    .financing-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .financing-visual {
        order: -1;
    }
    
    .financing-icons {
        margin: 0 auto;
    }
    
    .financing-text {
        text-align: center;
    }
    
    .financing-title {
        text-align: center;
    }
    
    .financing-features {
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact-info {
        align-items: center;
    }
    
    .footer-google-reviews {
        display: flex;
        justify-content: center;
    }
    
    .footer-google-badge {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column ul {
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .legal-page .legal-page-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    section {
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-tagline {
        margin-top: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-section {
        padding: 32px 0;
    }
    
    .cta-section .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-section .cta-buttons .btn {
        width: 100%;
    }
    
    .quote-form {
        padding: 30px 20px;
    }
    
    .quote-lightbox {
        padding: 12px;
    }
    
    .quote-lightbox-content {
        padding: 20px 16px;
    }
    
    .service-area-map-container {
        height: 360px;
    }
    
    .service-area-map-section {
        padding: 40px 0;
    }
    
    .google-reviews-grid {
        column-count: 1;
        column-gap: 20px;
    }
    
    .google-review-card {
        margin-bottom: 20px;
    }
    
    .google-review-card:last-child {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 42px;
    }
}

/* ============================================
   Roof Calculator Tool
   ============================================ */
.roof-calculator {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

.calculator-header {
    text-align: center;
    margin-bottom: 0;
    transition: var(--transition);
}

.calculator-header.collapsed {
    cursor: pointer;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--color-white) 0%, #fef8f6 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(231, 63, 22, 0.12);
    margin-bottom: 0;
    border-left: 5px solid var(--color-orange);
}

.calculator-header.collapsed:hover {
    box-shadow: 0 8px 32px rgba(231, 63, 22, 0.15), 0 0 0 3px rgba(231, 63, 22, 0.25);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--color-white) 0%, #fff5f2 100%);
}

.calculator-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.calculator-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b4a 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.calculator-header-text {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.calculator-header-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-orange);
    margin-bottom: 8px;
}

.calculator-header-title {
    color: var(--color-blue);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.calculator-header-description {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 12px 0;
}

.calculator-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-orange);
}

.calculator-header-cta i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.calculator-header.collapsed:hover .calculator-header-cta i {
    transform: translateY(2px);
}

.calculator-toggle {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b4a 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.calculator-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 63, 22, 0.4);
}

.calculator-toggle.expanded {
    transform: rotate(180deg);
}

/* Calculator lightbox overlay */
.calculator-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 12px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: calculatorFadeIn 0.25s ease;
    max-width: 100vw;
}

@keyframes calculatorFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.calculator-open {
    overflow: hidden;
}

.calculator-wrapper .calculator-container {
    position: relative;
    width: 100%;
    max-width: min(900px, 100%);
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 40px 40px 48px;
    overflow-x: hidden;
    overflow-y: visible;
    animation: calculatorSlideIn 0.3s ease;
}

@keyframes calculatorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--color-gray-light);
    color: var(--color-blue);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.calculator-close:hover {
    background: var(--color-gray);
    color: var(--color-blue-dark);
}

.calculator-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--color-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange) 0%, #ff6b4a 100%);
    width: 25%;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-gray);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.step-indicator.active {
    background-color: var(--color-orange);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 63, 22, 0.3);
}

.calculator-form {
    position: relative;
}

.calculator-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.calculator-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-step h3 {
    font-size: 30px;
    color: var(--color-blue);
    margin-bottom: 30px;
    font-weight: 700;
}

.step-description {
    color: var(--color-text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.calculator-step .form-group {
    margin-bottom: 30px;
}

/* Questions only (direct label of form-group), not the radio/checkbox option labels */
.calculator-step .form-group > label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 18px;
}

/* All answer fields: same font size (radios/checkboxes get size via .radio-option span / .checkbox-option span below) */
.calculator-step input[type="text"],
.calculator-step input[type="email"],
.calculator-step input[type="tel"],
.calculator-step input[type="number"],
.calculator-step select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-gray);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--color-white);
}

.calculator-step input:focus,
.calculator-step select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(231, 63, 22, 0.1);
}

.calculator-step small {
    display: block;
    color: var(--color-text-light);
    font-size: 13px;
    margin-top: 6px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option,
.checkbox-option {
    position: relative;
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--color-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--color-white);
}

.radio-option span,
.checkbox-option span {
    position: relative;
    z-index: 1;
    display: block;
    line-height: 1.4;
    font-weight: normal;
    font-size: 15px;
}

/* Hide radio/checkbox visually; still works for click and keyboard */
.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--color-orange);
    background-color: rgba(231, 63, 22, 0.05);
}

.radio-option input:checked + span,
.checkbox-option input:checked + span {
    font-weight: 600;
    color: var(--color-orange);
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    border-color: var(--color-orange);
    background-color: rgba(231, 63, 22, 0.1);
}

.calculator-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--color-gray-light);
}

.calculator-actions .btn {
    min-width: 150px;
}

/* Results Section */
.calculator-results {
    animation: fadeIn 0.6s ease;
    min-width: 0;
    max-width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header i {
    font-size: 60px;
    color: var(--color-orange);
    margin-bottom: 15px;
    display: block;
}

.results-header h3 {
    font-size: 32px;
    color: var(--color-blue);
    font-weight: 700;
}

.results-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    min-width: 0;
}

.result-card {
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--color-gray);
    display: flex;
    gap: 20px;
    transition: var(--transition);
    min-width: 0;
}

.result-info {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.result-card:hover {
    border-color: var(--color-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.result-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b4a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 28px;
}

.result-info h4 {
    font-size: 18px;
    color: var(--color-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

.score-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
}

.score-label {
    font-size: 24px;
    color: var(--color-text-light);
    font-weight: 600;
}

.score-description {
    color: var(--color-text-light);
    font-size: 14px;
    margin: 0;
}

.priority-summary {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 0 0;
    color: var(--color-blue);
}
.priority-summary.priority-high { color: #c53512; }
.priority-summary.priority-medium { color: var(--color-orange); }
.priority-summary.priority-low { color: var(--color-blue); }

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tips-list {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tips-list li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 8px;
    color: var(--color-text-light);
    font-size: 14px;
}
.tips-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
}

.result-card.contact-now .contact-now-intro {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0 0 12px 0;
}
.result-card.contact-now .contact-now-phone {
    font-size: 20px;
    margin: 0 0 8px 0;
}
.result-card.contact-now .contact-now-phone a {
    color: var(--color-orange);
    text-decoration: none;
}
.result-card.contact-now .contact-now-phone a:hover {
    text-decoration: underline;
}
.result-card.contact-now .contact-now-email {
    font-size: 14px;
    margin: 0 0 6px 0;
}
.result-card.contact-now .contact-now-email a {
    color: var(--color-blue);
    text-decoration: underline;
}
.result-card.contact-now .contact-now-email a:hover {
    color: var(--color-orange);
}
.result-card.contact-now .contact-now-hours {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
}

.cost-display {
    margin-bottom: 10px;
}

.cost-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-blue);
    line-height: 1;
}

.cost-note {
    color: var(--color-text-light);
    font-size: 13px;
    margin: 0;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.recommendations-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
    font-size: 14px;
}

.recommendations-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
}

.urgency-level {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 8px;
}

.urgency-description {
    color: var(--color-text-light);
    font-size: 14px;
    margin: 0;
}

.results-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    border-radius: 8px;
    color: var(--color-white);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.results-cta h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-white);
}

.results-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 16px;
}

.calculator-warranty-note {
    margin-bottom: 25px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    border-left: 4px solid var(--color-orange);
    text-align: left;
}

.calculator-warranty-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.results-cta .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .calculator-header.collapsed {
        padding: 24px 20px;
        border-left-width: 4px;
    }
    
    .calculator-header-content {
        gap: 16px;
    }
    
    .calculator-header-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .calculator-header-title {
        font-size: 22px;
    }
    
    .calculator-header-description {
        font-size: 15px;
    }
    
    .calculator-container {
        padding: 30px 20px;
    }
    
    .results-content {
        grid-template-columns: 1fr;
    }
    
    .calculator-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .calculator-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .results-cta .cta-buttons {
        flex-direction: column;
    }
    
    .results-cta .cta-buttons .btn {
        width: 100%;
    }
    
    .calculator-step h3 {
        font-size: 24px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .cost-value {
        font-size: 28px;
    }
    
    /* Assessment results page – contain within viewport */
    .results-header {
        margin-bottom: 28px;
    }
    
    .results-header i {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .results-header h3 {
        font-size: 24px;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .result-card {
        padding: 18px 16px;
        gap: 14px;
        min-width: 0;
    }
    
    .result-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        flex-shrink: 0;
    }
    
    .result-info h4 {
        font-size: 16px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .results-cta {
        padding: 24px 20px;
        border-radius: 8px;
    }
    
    .results-cta h4 {
        font-size: 20px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .results-cta p {
        font-size: 15px;
    }
    
    .calculator-warranty-note {
        padding: 12px 16px;
        margin-bottom: 20px;
    }
    
    .calculator-warranty-note p {
        font-size: 13px;
    }
    
    .inspection-choice {
        gap: 12px;
        margin-top: 20px;
    }
    
    .inspection-choice .btn-large {
        width: 100%;
        min-width: 0;
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .progress-steps {
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .step-indicator {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .calculator-progress {
        margin-bottom: 28px;
    }
}

/* Extra-small viewports – assessment and site */
@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 16px 8px 32px;
    }
    
    .calculator-wrapper .calculator-container {
        padding: 24px 16px 36px;
        border-radius: 10px;
    }
    
    .calculator-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .results-header i {
        font-size: 42px;
    }
    
    .results-header h3 {
        font-size: 20px;
    }
    
    .result-card {
        padding: 14px 12px;
        gap: 12px;
    }
    
    .result-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .result-info h4 {
        font-size: 15px;
    }
    
    .score-value {
        font-size: 32px;
    }
    
    .score-label {
        font-size: 20px;
    }
    
    .cost-value {
        font-size: 24px;
    }
    
    .results-cta {
        padding: 20px 16px;
    }
    
    .results-cta h4 {
        font-size: 18px;
    }
    
    .results-cta p {
        font-size: 14px;
    }
    
    .calculator-warranty-note {
        padding: 10px 12px;
    }
    
    .calculator-warranty-note p {
        font-size: 12px;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .calculator-step h3 {
        font-size: 22px;
    }
    
    .calculator-actions .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

.inspection-choice {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.btn-large {
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
}

.btn-large i {
    margin-right: 10px;
}

.thank-you-message,
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.thank-you-message {
    color: var(--color-white);
}

.thank-you-message i,
.success-message i {
    font-size: 60px;
    color: var(--color-orange);
    margin-bottom: 20px;
    display: block;
}

.thank-you-message h4 {
    font-size: 28px;
    color: var(--color-white);
    margin-bottom: 15px;
    font-weight: 700;
}

.thank-you-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-message h3 {
    font-size: 28px;
    color: var(--color-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-message .success-call-btn i {
    color: #fff;
    font-size: 0.85em;
    margin-right: 8px;
}

.success-info {
    text-align: left;
    background-color: var(--color-gray-light);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.success-info p {
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 15px;
}

.success-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-info ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
    font-size: 15px;
}

.success-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
    font-size: 18px;
}

/* ============================================
   Scroll to top button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 12px rgba(231, 63, 22, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(37, 48, 71, 0.35);
}

.scroll-to-top:focus {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.scroll-to-top i {
    font-size: 1.25rem;
}

/* ============================================
   Service Page (uses same sections as homepage)
   ============================================ */
/* Breadcrumb bar: full-width background; content stays in .container */
.breadcrumb-bar {
    width: 100%;
    background-color: var(--color-gray-light);
    padding: 10px 0;
}

.breadcrumb {
    font-size: 14px;
    color: var(--color-text-light);
}
.breadcrumb a {
    color: var(--color-blue);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

/* Service page hero: single column, centered (no form) */
.hero-content--centered {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-content--centered .hero-text {
    text-align: center;
}
.hero-content--centered .hero-buttons {
    justify-content: center;
}
.service-page-hero.hero {
    min-height: 420px;
    padding: 60px 0;
}

/* ============================================
   Service page layout variations (distinct layouts per service)
   ============================================ */
/* Intro: image on left, text on right */
.welcome-content--reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.welcome-content--reverse .welcome-text { order: 2; }
.welcome-content--reverse .welcome-images { order: 1; }
@media (max-width: 992px) {
    .welcome-content--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .welcome-content--reverse .welcome-text,
    .welcome-content--reverse .welcome-images { order: unset; }
}

/* Trust grid: 3 or 2 columns (default is 4) */
.trust-grid--3col { grid-template-columns: repeat(3, 1fr); }
.trust-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
    .trust-grid--3col,
    .trust-grid--2col { grid-template-columns: 1fr; }
}

/* Hero tagline: same size/weight as hero title, white, below buttons on service pages */
/* Match hero subtitle size/weight (e.g. "New Roof Installation in Longview, WA") */
.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-tagline span { margin: 0 10px; color: var(--color-white); opacity: 0.85; }

/* Section with subtle tint (alternate from gray-light) */
.section--tint { background-color: rgba(37, 48, 71, 0.03); }

/* Benefits section: 2-col grid for trust-items when used */
.benefits .trust-grid--2col { grid-template-columns: repeat(2, 1fr); }
.benefits .trust-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .benefits .trust-grid--2col,
    .benefits .trust-grid--3col { grid-template-columns: 1fr; }
}

