/* ============================================================
   Toronto Waterproofing — Design System
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Colors */
    --primary: #4054b2;
    --primary-dark: #2e3d8f;
    --primary-light: #5b6dc7;
    --primary-bg: #eef0f9;
    --accent: #e8590c;
    --accent-dark: #d04a08;

    /* Neutrals */
    --text: #1a1a2e;
    --text-light: #555770;
    --text-muted: #8b8da3;
    --border: #d8dae5;
    --bg: #ffffff;
    --bg-alt: #f5f6fa;
    --bg-dark: #1a1a2e;
    --bg-dark-alt: #252540;

    /* Sizing */
    --max-w: 1200px;
    --max-w-narrow: 800px;
    --max-w-wide: 1000px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

    /* Transitions */
    --transition: 0.25s ease;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-dark .text-light { color: #b3b5c6; }

.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-dark .section-label { color: var(--primary-light); }

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
}
.btn-white:hover {
    background: var(--bg-alt);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ---- Grid ---- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Header / Navigation ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--bg-dark);
    color: #fff;
    font-size: 0.8125rem;
    padding: 0.4rem 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #fff;
    font-weight: 500;
}
.header-top a:hover { color: var(--primary-light); }

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo:hover { color: var(--primary-dark); }

/* Main Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > li {
    list-style: none;
    position: relative;
}

.main-nav > li > a,
.main-nav > li > button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color var(--transition);
    white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li > button:hover,
.main-nav > li.active > a {
    color: var(--primary);
}

/* Dropdown */
.dropdown-arrow {
    width: 10px;
    height: 10px;
    transition: transform var(--transition);
}

.main-nav > li:hover .dropdown-arrow,
.main-nav > li.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
    padding: 0.5rem 0;
}

.main-nav > li:hover .dropdown,
.main-nav > li.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--text);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.dropdown a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Mega dropdown for services */
.dropdown-mega {
    min-width: 540px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.dropdown-mega a {
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}

/* Header Phone CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--primary);
    white-space: nowrap;
}

.header-phone:hover { color: var(--primary-dark); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: #fff;
    padding: 6rem 0;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    max-width: 700px;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.25rem;
    color: #c5c7d5;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero .btn + .btn,
.hero-buttons .btn + .btn {
    margin-left: 1rem;
}

/* Hero split layout (text + image) */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-split-image {
    position: relative;
}

.hero-split-image img {
    display: block;
    max-height: 420px;
    width: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c5c7d5;
    font-size: 0.9375rem;
}

.hero-badge strong {
    color: #fff;
    font-size: 1.25rem;
}

/* ---- Service Cards ---- */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card h3 a {
    color: var(--text);
}

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

.service-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.service-card .card-link {
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ---- FAQ Accordion ---- */
.faq-list {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: background var(--transition);
    gap: 1rem;
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ---- Pricing Table ---- */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pricing-table thead {
    background: var(--primary);
    color: #fff;
}

.pricing-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

.pricing-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.pricing-table tbody tr:hover {
    background: var(--bg-alt);
}

.pricing-table .price {
    font-weight: 700;
    color: var(--primary);
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn + .btn {
    margin-left: 1rem;
}

/* ---- Contact Form ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(64, 84, 178, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555770' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-info-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-info-item h4 {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* ---- Breadcrumbs ---- */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.375rem;
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after { display: none; }

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .current {
    color: var(--text);
    font-weight: 500;
}

/* ---- Expert Content (Service Pages) ---- */
.expert-intro {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--text);
}

.expert-callout {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: var(--primary-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.expert-columns {
    columns: 2;
    column-gap: 3rem;
    font-size: 0.9675rem;
    line-height: 1.85;
    color: var(--text-light);
}

.expert-column-block {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.warning-sign-card {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.9375rem;
}

.method-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.method-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.method-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.inline-cta {
    background: var(--bg-dark);
    padding: 1.25rem 0;
}

.inline-cta .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.inline-cta span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.inline-cta .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.inline-cta .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ---- Process Steps ---- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.process-step {
    text-align: center;
    counter-increment: step;
    position: relative;
}

.process-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ---- Stats Row ---- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.section-dark .stat-item h3 { color: var(--primary-light); }

.stat-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.section-dark .stat-item p { color: #b3b5c6; }

/* ---- Blog Cards ---- */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.blog-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: var(--text);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-dark);
    color: #b3b5c6;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--bg-dark-alt);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
}

.footer-brand .logo {
    color: #fff;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #b3b5c6;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer-contact-item a { color: #b3b5c6; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: #b3b5c6;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---- Utility ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dropdown-mega { min-width: 100%; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section { padding: 3.5rem 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .expert-columns { columns: 1; }
    .expert-intro { font-size: 1.0625rem; }
    .inline-cta .container { text-align: center; }
    .hero-split-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-split-image { display: none; }
    .hero-split-text .hero-buttons .btn + .btn { margin-left: 0; margin-top: 0.75rem; }
    .hero-split-text .hero-buttons { display: flex; flex-direction: column; align-items: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    /* Mobile nav */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        overflow-y: auto;
        align-items: stretch;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav > li > a,
    .main-nav > li > button {
        padding: 0.875rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .main-nav > li.open .dropdown {
        max-height: 1000px;
        padding: 0.25rem 0;
    }

    .dropdown-mega {
        grid-template-columns: 1fr;
    }

    .dropdown a {
        padding: 0.5rem 1rem;
    }

    .menu-toggle { display: flex; }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero mobile */
    .hero { padding: 4rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .hero .btn + .btn { margin-left: 0; margin-top: 0.75rem; }
    .hero-badges { flex-direction: column; gap: 1rem; }

    /* CTA mobile */
    .cta-banner .btn + .btn { margin-left: 0; margin-top: 0.75rem; }

    /* Footer mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* Header mobile */
    .header-top { display: none; }
    .header-phone span { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.75rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Cost Calculator
   ============================================================ */

.calc-wrap {
    position: relative;
    padding-bottom: 2rem;
}

/* Progress */
.calc-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.calc-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.calc-step-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Steps */
.calc-step {
    display: none;
}

.calc-step.active {
    display: block;
    animation: calcFadeIn 0.3s ease;
}

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-step h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.calc-step > .text-light {
    margin-bottom: 1.5rem;
}

/* Option buttons */
.calc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-options-compact {
    grid-template-columns: 1fr 1fr 1fr;
}

.calc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s ease;
}

.calc-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.calc-option.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(64, 84, 178, 0.15);
}

.calc-option strong {
    font-size: 1rem;
    color: var(--text);
}

.calc-option span {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.3;
}

.calc-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    margin-bottom: 0.375rem;
}

.calc-option-icon svg {
    width: 22px;
    height: 22px;
}

.calc-option.selected .calc-option-icon {
    background: var(--primary);
    color: #fff;
}

/* Back button */
.calc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.calc-back:hover {
    color: var(--primary);
}

/* Results */
.calc-results {
    text-align: center;
}

.calc-results-header {
    margin-bottom: 2rem;
}

.calc-price-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.calc-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.calc-price-sep {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Rebate banner */
.calc-rebate {
    margin-bottom: 2rem;
}

.calc-rebate-inner {
    display: inline-block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    text-align: center;
}

.calc-rebate-inner strong {
    display: block;
    color: #065f46;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.calc-rebate-inner p {
    color: #047857;
    font-size: 1rem;
    margin: 0;
}

/* Breakdown */
.calc-breakdown {
    text-align: left;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.calc-breakdown h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.calc-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-breakdown li {
    position: relative;
    padding: 0.375rem 0 0.375rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.calc-breakdown li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* Recommendation */
.calc-recommendation {
    text-align: left;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.calc-recommendation h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.calc-recommendation p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Disclaimer */
.calc-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* CTA */
.calc-results-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Restart */
.calc-restart {
    display: inline-block;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: underline;
    padding: 0.5rem;
}

.calc-restart:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .calc-options {
        grid-template-columns: 1fr;
    }
    .calc-options-compact {
        grid-template-columns: 1fr;
    }
    .calc-price {
        font-size: 2rem;
    }
    .calc-results-cta {
        flex-direction: column;
        align-items: center;
    }
    .calc-breakdown,
    .calc-recommendation {
        padding: 1.25rem 1.25rem;
    }
}
