/* ==========================================================================
   PB Pressure Washing — "New England Trade" design system
   Type:  Barlow Condensed (display) / Barlow (text)
   Color: ink navy · aqua · safety orange · warm paper
   ========================================================================== */

:root {
    --ink: #0c2233;
    --ink-2: #133650;
    --ink-3: #1b4a6b;
    --aqua: #2fb8d8;
    --aqua-deep: #1690ad;
    --cta: #e8590c;
    --cta-dark: #c74a08;
    --paper: #f4f1ea;
    --paper-dark: #eae5d9;
    --white: #ffffff;
    --text: #2b3a45;
    --text-soft: #5b6b76;
    --line: #dcd6c8;
    --star: #f5a623;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(12, 34, 51, 0.10);
    --shadow-md: 0 10px 30px -12px rgba(12, 34, 51, 0.28);
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-text: "Barlow", "Helvetica Neue", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

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

/* ---- Type scale ------------------------------------------------------- */

h1, h2, h3, .step-number, .logo-main {
    font-family: var(--font-display);
    line-height: 1.05;
    color: var(--ink);
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--aqua-deep);
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--aqua);
}

.section-lead {
    max-width: 620px;
    color: var(--text-soft);
    margin-bottom: 44px;
}

section {
    scroll-margin-top: 90px;
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                background-color 0.18s ease, color 0.18s ease;
}

.btn:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--cta);
    color: var(--white);
    box-shadow: 0 6px 18px -6px rgba(232, 89, 12, 0.55);
}

.btn-primary:hover {
    background: var(--cta-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-ink {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline-ink:hover {
    background: var(--ink);
    color: var(--white);
}

/* ---- Header ------------------------------------------------------------ */

.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    gap: 16px;
}

.topbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.topbar a:hover {
    color: var(--aqua);
}

header.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e8e4da;
    box-shadow: var(--shadow-sm);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(150deg, var(--ink-2), var(--ink));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1.5px rgba(47, 184, 216, 0.55);
}

.logo-text {
    line-height: 1;
}

.logo-main {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.logo-sub {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--aqua-deep);
    text-transform: uppercase;
    margin-top: 3px;
}

/* ---- Navigation --------------------------------------------------------- */

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

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: var(--radius);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--aqua-deep);
    background: rgba(47, 184, 216, 0.10);
}

.nav-cta {
    margin-left: 10px;
}

.nav-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    line-height: 1.15;
    margin-left: 8px;
}

.nav-phone .phone-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.nav-phone .phone-number {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.nav-phone:hover .phone-number {
    color: var(--cta);
}

/* Dropdown (desktop: hover + keyboard focus) */

.dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    background: var(--white);
    border: 1px solid #e8e4da;
    border-top: 3px solid var(--aqua);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1001;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 10px 14px;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: var(--paper);
    color: var(--aqua-deep);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--ink);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    color: var(--white);
    background: var(--ink);
    isolation: isolate;
    overflow: hidden;
    padding: clamp(84px, 12vw, 150px) 0 clamp(110px, 14vw, 170px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(28px, 4vw, 56px)), 0 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/before-after/hero-neighborhood.jpg");
    background-size: cover;
    background-position: center 65%;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(78deg,
            rgba(12, 34, 51, 0.96) 0%,
            rgba(12, 34, 51, 0.86) 34%,
            rgba(12, 34, 51, 0.45) 66%,
            rgba(12, 34, 51, 0.25) 100%);
    z-index: -1;
}

.hero-inner {
    max-width: 640px;
}

.hero .eyebrow {
    color: var(--aqua);
}

.hero h1 {
    font-size: clamp(2.9rem, 6.4vw, 4.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--aqua);
}

.hero .subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.hero-proof .proof-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-proof svg {
    color: var(--aqua);
    flex-shrink: 0;
}

.hero-proof .stars {
    color: var(--star);
    letter-spacing: 2px;
    font-size: 1rem;
}

/* ---- Sections ----------------------------------------------------------- */

.section {
    padding: clamp(64px, 9vw, 104px) 0;
}

.section-paper {
    background:
        repeating-linear-gradient(-45deg,
            rgba(12, 34, 51, 0.022) 0 1px,
            transparent 1px 9px),
        var(--paper);
}

.section-ink {
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(47, 184, 216, 0.14), transparent 60%),
        var(--ink);
    color: rgba(255, 255, 255, 0.9);
}

.section-ink h2,
.section-ink h3 {
    color: var(--white);
}

.section-ink .eyebrow {
    color: var(--aqua);
}

.section-ink .section-lead {
    color: rgba(255, 255, 255, 0.72);
}

/* ---- Services ----------------------------------------------------------- */

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

.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--aqua), var(--aqua-deep));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(47, 184, 216, 0.12);
    color: var(--aqua-deep);
    margin-bottom: 18px;
}

.service-card p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aqua-deep);
    text-decoration: none;
}

.service-card .card-link:hover {
    color: var(--cta);
}

/* ---- About / features ---------------------------------------------------- */

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-soft);
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--aqua);
    border-radius: var(--radius);
    padding: 20px 18px;
}

.feature h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.92rem;
    color: var(--text-soft);
}

/* ---- Process ------------------------------------------------------------- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 4vw, 44px);
    counter-reset: step;
    position: relative;
}

.step {
    position: relative;
    padding-top: 14px;
}

.step-number {
    font-size: clamp(3.6rem, 6vw, 5rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px var(--aqua);
    line-height: 1;
    margin-bottom: 14px;
}

.section-ink .step-number {
    -webkit-text-stroke: 2px var(--aqua);
}

.step h3 {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.step p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.section-ink .step p {
    color: rgba(255, 255, 255, 0.72);
}

/* ---- Before / After sliders ---------------------------------------------- */

.before-after-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.before-after-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ba-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    user-select: none;
    background: var(--ink);
    touch-action: pan-y;
}

.ba-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-after-wrap {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--split, 50%));
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split, 50%);
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.ba-handle::after {
    content: "◂ ▸";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ba-label {
    position: absolute;
    top: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(12, 34, 51, 0.72);
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.ba-label-before { left: 14px; }
.ba-label-after  { right: 14px; background: rgba(232, 89, 12, 0.85); }

.ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.ba-range:focus-visible ~ .ba-handle::after {
    outline: 3px solid var(--aqua);
    outline-offset: 2px;
}

.before-after-caption {
    padding: 20px 22px 22px;
}

.before-after-caption h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 4px;
}

.before-after-caption p {
    font-size: 0.94rem;
    color: var(--text-soft);
}

.gallery-more {
    text-align: center;
    margin-top: 38px;
}

/* ---- Testimonials ---------------------------------------------------------- */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.testimonial {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 2px;
    left: 18px;
    font-family: Georgia, serif;
    font-size: 4.4rem;
    line-height: 1;
    color: var(--aqua);
    opacity: 0.55;
}

.testimonial-stars {
    color: var(--star);
    letter-spacing: 3px;
    margin-bottom: 14px;
    position: relative;
}

.testimonial p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 18px;
}

.testimonial-author {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aqua);
}

/* ---- FAQ -------------------------------------------------------------------- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-text);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.faq-question:hover {
    color: var(--aqua-deep);
}

.faq-question:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: -3px;
}

.faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(47, 184, 216, 0.14);
    color: var(--aqua-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--cta);
    color: var(--white);
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    color: var(--text-soft);
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---- Quote form --------------------------------------------------------------- */

.quote-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 1020px;
    margin: 0 auto;
}

.quote-side {
    background:
        radial-gradient(500px 300px at 10% 110%, rgba(47, 184, 216, 0.25), transparent 65%),
        var(--ink);
    color: rgba(255, 255, 255, 0.88);
    padding: clamp(30px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quote-side h3 {
    color: var(--white);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    text-transform: uppercase;
}

.quote-side .quote-promise {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--aqua);
}

.quote-side .side-phone {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.92rem;
}

.quote-side .side-phone a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    margin-top: 2px;
}

.quote-side .side-phone a:hover {
    color: var(--aqua);
}

.quote-form-container {
    padding: clamp(28px, 4vw, 44px);
}

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

.form-group {
    margin-bottom: 18px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(47, 184, 216, 0.18);
}

.form-group input.field-error,
.form-group select.field-error {
    border-color: #d64541;
}

.quote-submit {
    width: 100%;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 12px;
    text-align: center;
}

.form-status {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    background: #e7f6ec;
    border: 1px solid #9ed8b2;
    color: #1e6b3a;
}

.form-status.error {
    display: block;
    background: #fdeceb;
    border: 1px solid #f0b3b0;
    color: #a03230;
}

/* ---- CTA band -------------------------------------------------------------------- */

.cta {
    position: relative;
    background:
        repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.025) 0 2px,
            transparent 2px 12px),
        linear-gradient(120deg, var(--ink) 30%, var(--ink-3));
    color: var(--white);
    text-align: center;
    padding: clamp(60px, 8vw, 90px) 0;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Footer -------------------------------------------------------------------------- */

footer {
    background: #081826;
    color: rgba(255, 255, 255, 0.72);
    padding: 56px 0 28px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 34px;
    margin-bottom: 38px;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-section p {
    margin-bottom: 8px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    margin-bottom: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---- Sticky mobile call bar ------------------------------------------------------------ */

.mobile-call-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
}

.mobile-call-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.mobile-call-bar .call-now {
    background: var(--cta);
    color: var(--white);
}

.mobile-call-bar .get-quote {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---- Page templates (subpages) ----------------------------------------------------------- */

.page-header {
    background:
        linear-gradient(78deg, rgba(12, 34, 51, 0.95), rgba(12, 34, 51, 0.72)),
        var(--ink-2);
    color: var(--white);
    padding: clamp(56px, 8vw, 84px) 0;
}

.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
}

.page-content {
    padding: clamp(48px, 7vw, 80px) 0;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.content-section h3 {
    color: var(--ink-2);
}

/* ---- Gallery grid (gallery page) ---- */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-image {
    position: relative;
    height: 260px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(8, 24, 38, 0.88));
    color: var(--white);
    padding: 18px;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---- Animations ------------------------------------------------------------------------------ */

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

.reveal {
    opacity: 0;
}

.reveal.fade-in {
    animation: fadeInUp 0.65s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
    }
    .reveal.fade-in {
        animation: none;
    }
    .btn,
    .service-card {
        transition: none;
    }
}

/* ---- Responsive ------------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .about-content,
    .quote-panel {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-phone {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 68px; /* room for sticky call bar */
    }

    .topbar .container {
        justify-content: center;
    }

    .topbar .topbar-hours {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid #e8e4da;
        box-shadow: var(--shadow-md);
        padding: 10px 14px 18px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 13px 12px;
        font-size: 1.05rem;
    }

    /* Mobile: submenu always visible, indented (no hover dependency) */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 18px;
        background: transparent;
    }

    .dropdown-content a {
        font-size: 0.98rem;
        color: var(--text-soft);
    }

    .nav-cta {
        margin: 10px 0 0;
    }

    .nav-cta .btn {
        width: 100%;
    }

    .mobile-call-bar {
        display: flex;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

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