/* =========================================================
   Fit Painting: styles
   Palette from the Instagram design: charcoal, cream, orange
   ========================================================= */
:root {
  --ink: #1c1c1c;          /* dark sections, main text */
  --ink-2: #262626;        /* cards on dark */
  --ink-3: #333333;
  --cream: #f3efe7;        /* light section background */
  --paper: #fbf9f5;        /* white-ish section background */
  --orange: #e8601c;       /* brand accent */
  --orange-dark: #c94f12;
  --orange-soft: rgba(232, 96, 28, 0.12);
  --text: #1c1c1c;
  --muted: #5f5a52;
  --muted-dark: #b8b3ab;   /* muted text on dark */
  --line: #e4ded3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --header-h: 72px;
  /* space taken by an in-app browser's see-through top bar (Telegram etc.); 0 in Safari.
     Works together with viewport-fit=cover in the <meta name="viewport"> tag. */
  --safe-top: env(safe-area-inset-top, 0px);
  --hero-img: url("assets/img/bg/bg-1.jpg");
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* light surfaces (cards, form fields) and their text: night theme swaps them */
  --surface: #ffffff;
  --surface-tint: #fff6f0;   /* selected option, hovered drop zone */
  --text-soft: #3a3631;      /* long text: reviews, privacy policy */
  --orange-text: var(--orange-dark); /* orange words and links on light surfaces */
  --danger: #b42318;
  --field-line: #d6cbbb;     /* dashed drop zone, scrollbars, hovered option */
  --check-line: #cfc6b8;     /* empty radio / checkbox */
}

/* =========================================================
   Night theme: theme.js adds class "theme-night" to <html>
   after sunset in Los Angeles (and back at sunrise), or when
   the visitor's device is set to dark mode.
   Warm charcoal instead of cream; orange stays the accent.
   ========================================================= */
html.theme-night {
  color-scheme: dark;
  --ink: #0f0e0d;            /* header, footer, hero, "How it works": a bit darker than the page */
  --ink-2: #1f1d1b;
  --ink-3: #2b2926;
  --paper: #171614;
  --cream: #1e1c1a;
  --surface: #262421;
  --surface-tint: rgba(232, 96, 28, 0.16);
  --text: #eeeae3;
  --text-soft: #d9d4cc;
  --muted: #a8a299;
  --line: #3a3631;
  --orange-soft: rgba(232, 96, 28, 0.18);
  --orange-text: #ff9157;
  --danger: #ff7b6e;
  --field-line: #4d4842;
  --check-line: #625c54;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35);
}
.theme-night .btn-outline-dark:hover { background: var(--text); color: var(--paper); border-color: var(--text); }
/* "Contact" block at night: a large orange fill is too bright in the dark,
   so the brand orange (same #e8601c) moves to accents: top stripe, heading line, button, icons */
/* plain background that keeps the light/dark section alternation:
   home page: between two "paper" sections, so "cream"; service pages: after a "cream" hero, so "paper" */
.theme-night .bg-orange { background: var(--cream); }
.theme-night .bg-cream + .bg-orange { background: var(--paper); }
/* header at night: a lighter warm gray "raised" bar with a soft light edge and shadow,
   so it does not merge with the dark page behind it */
.theme-night .site-header {
  background: #24221f;
  border-bottom-color: rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.theme-night .site-header::before { background: #24221f; }
@media (max-width: 860px) { .theme-night .main-nav { background: #24221f; } }
.theme-night .contact-copy h2 { color: var(--text); }
.theme-night .contact-copy h2::after { content: ""; display: block; width: 72px; height: 4px; margin: 18px auto 0; border-radius: 2px; background: var(--orange); }
.theme-night .bg-orange .btn-outline-dark { border-color: var(--line); color: var(--text); }
.theme-night .bg-orange .btn-outline-dark:hover { border-color: var(--orange); background: transparent; color: var(--text); }
.theme-night .project-form { border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.theme-night .pf-submit { background: var(--orange); color: #fff; }
.theme-night .pf-submit:hover { background: var(--orange-dark); }
.theme-night .service-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.5); }
/* thin light outline, same as the line under the header */
.theme-night .service-card { border: 1px solid rgba(255,255,255,.10); }
.theme-night .service-card:hover { border-color: rgba(255,255,255,.18); }
.theme-night .pf-files button:hover { background: rgba(255,123,110,.16); }
.theme-night .map-wrap .leaflet-tile-pane { filter: grayscale(.7) invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }
.theme-night .leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--line); }
.theme-night .leaflet-control-attribution { background: rgba(23,22,20,.8) !important; color: var(--muted); }
.theme-night .leaflet-control-attribution a { color: var(--orange-text); }

*, *::before, *::after { box-sizing: border-box; }
/* dark page edge: what browsers show above the header (under their top bar, pull-down bounce) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + var(--safe-top)); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-dark { border-color: var(--text); color: var(--text); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Pills / section heads ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-text);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.pill-dark { background: rgba(232,96,28,.16); color: #ff9a62; border: 1px solid rgba(232,96,28,.35); }

.section { padding: 96px 0; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-orange { background: var(--orange); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; text-transform: uppercase;
}
.section-head p { color: var(--muted); font-size: 18px; }
.section-head.on-dark p { color: var(--muted-dark); }

/* ---------- Header ---------- */
/* Fixed with a solid color: iPhone Safari (iOS 26) then fills the area under its
   top bar with the header color instead of showing the page scrolling behind it. */
body { padding-top: calc(var(--header-h) + var(--safe-top)); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding-top: var(--safe-top); /* header color fills the area under an in-app browser's top bar */
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
/* Some phone browsers (Chrome, Google app, in-app browsers on iPhone) draw the page
   under their status/address bar, above the header. This dark strip covers that area. */
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 100vh; background: var(--ink); pointer-events: none;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* larger logo square and name: the brand should read at a glance */
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #ece8e1; } /* soft white: pure white on dark looked like a glow */
.brand-text small { font-size: 13px; color: var(--muted-dark); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: #d9d5ce; transition: color .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--orange); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  min-height: calc(100vh - var(--header-h) - var(--safe-top));
  display: flex; align-items: center;
  padding: 72px 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.82) 45%, rgba(20,20,20,.55) 100%),
    var(--hero-img) center / cover no-repeat;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
}
.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(36px, 5vw, 58px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.02;
}
.accent { color: var(--orange); }
.hero .lead { font-size: 19px; color: #d6d2cb; max-width: 520px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
/* "Request an Estimate" in the hero text: phones only (see the 760px block) */
.hero-badges {
  list-style: none; padding: 0; margin: 34px 0 40px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
}
.hero-badges li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.badge-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: rgba(232,96,28,.15); color: var(--orange);
}

/* estimate card: dark, the orange button is the main accent */
.estimate-card {
  background: rgba(30,30,30,.92); border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 30px 28px 26px; display: grid; gap: 12px;
}
.estimate-card h2 { font-size: 24px; font-weight: 800; text-transform: uppercase; }
.estimate-card h2 + .est-path { margin-top: 8px; }
.est-path { display: grid; gap: 10px; }
.estimate-cta { width: 100%; padding-top: 18px; padding-bottom: 18px; font-size: 18px; box-shadow: 0 10px 28px rgba(232,96,28,.35); }
.estimate-alt { width: 100%; }
.estimate-or {
  display: flex; align-items: center; gap: 12px; margin: 6px 0 2px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark);
}
.estimate-or::before, .estimate-or::after { content: ""; flex: 1; border-top: 1px solid rgba(255,255,255,.12); }
.chip {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.25); color: #fff; transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.estimate-note { font-size: 14px; color: var(--muted-dark); margin-top: 4px; }

/* ---------- Services ---------- */
/* tighter top so that after "Services" in the menu all six cards fit on a large screen */
#services { padding-top: 64px; }
#services .section-head { margin-bottom: 36px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.service-img { aspect-ratio: 3 / 2; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 24px 24px 28px; flex: 1; }
.service-body h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.service-body p { color: var(--text-soft); font-size: 15.5px; } /* same tone as the service page descriptions */
.service-arrow { width: 20px; height: 20px; color: var(--orange); stroke-width: 2.5; transition: transform .25s; }
.service-card:hover .service-arrow { transform: translateX(5px); }
.service-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Service pages ---------- */
/* Computer: name, text and photo on the left, estimate form on the right; both columns end on one line
   (the photo fills the space left under the text). Phone order: name, text, form, photo. */
.svc-page { padding: 48px 0 72px; }
.svc-layout {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  grid-template-areas: "title form" "text form" "pic form";
  grid-template-rows: auto auto 1fr;
}
.svc-title { grid-area: title; font-size: clamp(34px, 4.6vw, 52px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.02; }
/* easy reading: a bit larger, more space between lines and letters, comfortable line length */
.svc-text { grid-area: text; margin-top: 16px; color: var(--text-soft); font-size: 18px; line-height: 1.5; max-width: 34em; text-wrap: pretty; }
.svc-pic { grid-area: pic; position: relative; margin-top: 28px; min-height: 240px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.svc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-form-card { grid-area: form; background: var(--surface); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.16); }
.theme-night .svc-form-card { border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.svc-form-card .project-form { background: none; box-shadow: none; border: 0; padding: 0; border-radius: 0; }
.svc-form-title { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--text); }
.svc-form-card .pf-submit { background: var(--orange); color: #fff; }
.svc-form-card .pf-submit:hover { background: var(--orange-dark); }
@media (max-width: 900px) {
  .svc-page { padding: 28px 0 48px; }
  .svc-layout { grid-template-columns: 1fr; grid-template-areas: "title" "text" "form" "pic"; grid-template-rows: none; }
  .svc-form-card { margin-top: 24px; padding: 20px 16px; }
  .svc-pic { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Our work gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  list-style: none; margin: 0; padding: 4px 2px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3.5); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--field-line) transparent;
}
.gallery li { scroll-snap-align: start; }
.gallery-nav {
  position: absolute; top: calc(50% - 7px); z-index: 2; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: background .2s, color .2s, opacity .2s;
}
.gallery-nav:hover { background: var(--orange); color: #fff; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-nav .icon { width: 24px; height: 24px; }
.gallery-prev { left: -20px; }
.gallery-next { right: -20px; }
.gallery a {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
  background: var(--cream); box-shadow: var(--shadow); cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.1); border: 0; color: #fff; transition: background .2s;
}
.lb-btn:hover { background: var(--orange); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: calc(14px + var(--safe-top)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #cfcac2; font-size: 14px; font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-copy h2 { margin: 18px 0 22px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; text-transform: uppercase; }
.about-copy p { color: var(--muted); font-size: 17px; }
.about-copy p + p { margin-top: 16px; }
.about-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.about-stats li {
  flex: 1 1 180px; display: flex; align-items: baseline; gap: 10px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.about-stats strong { font-size: 34px; font-weight: 900; line-height: 1; color: var(--orange); letter-spacing: -0.02em; }
.about-stats span { font-size: 15px; font-weight: 700; color: var(--text); }
.about-copy .about-creds {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--text);
}
.about-creds span { color: var(--orange); margin: 0 6px; }
.about-creds a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.about-creds a:hover { color: var(--orange); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
/* owner photo: portrait shape */
.about-photo[data-shape] { width: 100%; max-width: 460px; justify-self: center; }
.about-photo[data-shape="portrait"] img { aspect-ratio: 4 / 5; object-position: center 25%; }

/* ---------- Why us ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center;
}
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 14px;
  display: grid; place-items: center; background: var(--orange-soft); color: var(--orange);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* ---------- How it works ---------- */
.steps {
  list-style: none; margin: 0 auto; padding: 0; max-width: 960px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 36px; left: 16.66%; right: 16.66%;
  border-top: 2px dashed rgba(232,96,28,.45);
}
.step { text-align: center; position: relative; }
.step-icon {
  position: relative; width: 72px; height: 72px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--ink-2); border: 1px solid rgba(232,96,28,.5); color: var(--orange);
}
.step-icon .icon { width: 28px; height: 28px; }
.step-icon b {
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  background: var(--orange); color: #fff;
}
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted-dark); font-size: 16px; max-width: 260px; margin: 0 auto; }

/* ---------- Reviews ---------- */
.rating-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.rating-source {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; color: var(--muted); transition: border-color .2s;
}
.rating-source strong { color: var(--text); }
.rating-source:hover { border-color: var(--orange); }
.rating-stars { display: inline-flex; gap: 2px; color: #f4a21b; }
.rating-stars svg { width: 16px; height: 16px; fill: currentColor; }
/* one-row carousel, same arrows as the projects gallery */
.reviews-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 3.25); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--field-line) transparent;
}
.review-card {
  scroll-snap-align: start;
  margin: 0; background: var(--surface); border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.review-card blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-soft); }
.review-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.review-card figcaption strong { font-size: 15.5px; }
.review-card figcaption span { font-size: 13.5px; color: var(--muted); }

/* ---------- Contact / project form ---------- */
.contact-section { padding: 80px 0; }
/* one centred column: heading, then the form (phone, text, email live in the footer and the call button) */
.contact-grid { max-width: 808px; }
.contact-copy { text-align: center; margin-bottom: 32px; }
.contact-copy h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; text-transform: uppercase; color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }

.project-form {
  background: var(--surface); border-radius: 18px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2); display: grid; gap: 14px;
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field { display: grid; gap: 6px; min-width: 0; }
.pf-field > span { font-size: 14px; font-weight: 700; color: var(--text); }
.pf-field em { color: var(--orange-text); font-style: normal; }
.pf-field small { font-weight: 500; color: var(--muted); }
.pf-field input, .pf-field textarea {
  width: 100%; font: 500 16px var(--font); color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
}
.pf-field textarea { resize: vertical; min-height: 110px; }
/* clearly visible fields: stronger borders, readable hints; at night fields are a bit lighter than the card */
.pf-field input, .pf-field textarea, .pf-choice label > span { border-color: var(--field-line); }
.pf-field input::placeholder, .pf-field textarea::placeholder { color: #8b847a; opacity: 1; }
/* description hints: more air between lines, slightly smaller so list items stay on one line */
.pf-field textarea { line-height: 1.5; }
.pf-field textarea::placeholder { font-size: 15px; line-height: 1.6; }
.theme-night .pf-field input, .theme-night .pf-field textarea, .theme-night .pf-choice label > span, .theme-night .pf-drop { background: #302d2a; }
.theme-night .pf-field input, .theme-night .pf-field textarea, .theme-night .pf-choice label > span { border-color: #5a544d; }
.theme-night .pf-drop { border-color: #6a635b; }
.theme-night .pf-field input::placeholder, .theme-night .pf-field textarea::placeholder { color: #bdb7ae; }
.pf-field input:focus, .pf-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,96,28,.15); }
.pf-field.has-error input, .pf-field.has-error textarea { border-color: var(--danger); }
.pf-err { font-size: 13.5px; color: var(--danger); font-weight: 600; }
/* preferred contact: Call / Text / Email */
.pf-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-choice label { position: relative; cursor: pointer; }
.pf-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pf-choice label > span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px; border: 1.5px solid var(--field-line); border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--text); transition: border-color .2s, background .2s, color .2s;
}
.pf-choice .icon { width: 17px; height: 17px; }
.pf-choice label:hover > span { border-color: var(--orange); }
.pf-choice input:checked + span { border-color: var(--orange); background: var(--surface-tint); color: var(--orange-text); }
.pf-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232,96,28,.25); }
.pf-drop {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border: 2px dashed var(--field-line); border-radius: 12px; background: var(--paper);
  color: var(--muted); font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s;
}
.pf-drop:hover, .pf-drop.is-over { border-color: var(--orange); background: var(--surface-tint); }
.pf-drop strong { color: var(--orange-text); }
.pf-drop .icon { color: var(--orange); width: 22px; height: 22px; }
.pf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pf-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-files:empty { display: none; }
.pf-files li {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
}
.pf-files img, .pf-files .pf-noprev { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: var(--cream); }
.pf-files .pf-noprev { display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); }
.pf-files .pf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-files .pf-size { color: var(--muted); flex: none; }
.pf-files button {
  width: 30px; height: 30px; flex: none; border-radius: 8px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--cream); color: var(--text);
}
.pf-files button:hover { background: #fde4d6; color: var(--danger); }
.pf-files button .icon { width: 16px; height: 16px; }
.pf-hint { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-submit { width: 100%; margin-top: 4px; }
.pf-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.pf-status { font-size: 15px; font-weight: 600; }
.pf-status:empty { display: none; }
.pf-status.is-error { color: var(--danger); }
.pf-status.is-error a { text-decoration: underline; }
.pf-done { text-align: center; padding: 30px 10px; }
.pf-done .icon { width: 48px; height: 48px; color: var(--orange); margin: 0 auto 14px; }
.pf-done p { font-size: 18px; font-weight: 700; color: var(--text); }

/* ---------- Service area / map ---------- */
.area { background: var(--paper); padding-top: 80px; }
.area-head { text-align: center; max-width: 860px; margin-bottom: 40px; }
.area-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; text-transform: uppercase; margin-bottom: 14px; }
.area-head p { color: var(--muted); font-size: 17px; }
.area-base { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text) !important; }
.area-base .icon { color: var(--orange); }
.map-wrap { height: 460px; background: var(--cream); z-index: 0; }
.map-wrap .leaflet-tile-pane { filter: grayscale(.55) contrast(1.02); }
/* "40 miles" label on the edge of the service circle */
.map-radius { background: none; border: 0; }
.map-radius span {
  display: inline-block; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--orange); color: #fff; font: 700 13px var(--font); letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo img { width: 52px; height: 52px; }
.footer-logo span { display: flex; flex-direction: column; line-height: 1.2; }
.footer-logo strong { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.footer-logo small { font-size: 14px; color: #cfcac2; }
.footer-brand p { color: #cfcac2; font-size: 16px; max-width: 320px; }
.footer-license { margin-top: 14px; font-weight: 600; }
.footer-license a { display: inline-flex; align-items: center; gap: 6px; color: #f1ede6; text-decoration: underline; text-underline-offset: 3px; }
.footer-license a:hover { color: var(--orange); }
.footer-license .icon { width: 14px; height: 14px; }
.footer-brand .footer-social-label {
  margin-top: 22px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #8f8a83;
}
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.28); color: #fff;
  transition: border-color .2s, color .2s, transform .2s;
}
.footer-social a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.footer-social .icon { width: 22px; height: 22px; }
.site-footer h4 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer li { color: #cfcac2; font-size: 16px; }
.site-footer li a:hover { color: var(--orange); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--orange); width: 18px; height: 18px; }
.footer-lang { display: inline-flex; align-items: center; gap: 10px; }
/* phone number as plain, selectable text, with Call / Text buttons for phones */
.footer-phone { display: grid; gap: 10px; }
.footer-number {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: #f1ede6; user-select: all;
}
.footer-phone-actions { display: flex; gap: 8px; margin-left: 28px; }
.footer-phone-actions .chip { font-size: 13.5px; padding: 5px 12px; }
.site-footer .footer-phone-actions a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 15px; color: #b3aea6;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Privacy Policy page ---------- */
.legal-inner { max-width: 780px; }
/* 404 page */
.notfound { min-height: calc(100vh - var(--header-h) - var(--safe-top)); display: flex; align-items: center; }
.notfound-inner { max-width: 640px; text-align: center; }
.notfound-code { font-size: clamp(72px, 14vw, 120px); font-weight: 900; line-height: 1; color: var(--orange); letter-spacing: -0.03em; }
.notfound h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.notfound-inner > p:not(.notfound-code) { margin-top: 12px; font-size: 18px; color: var(--text-soft); }
.notfound-btns { justify-content: center; margin-top: 28px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.legal-date { margin: 8px 0 28px; color: var(--muted); font-weight: 600; }
.legal h2 { margin: 32px 0 10px; font-size: 21px; font-weight: 800; }
.legal p, .legal li { font-size: 16.5px; color: var(--text-soft); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating call button (bottom-right, all pages) ---------- */
.call-fab { position: fixed; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 1500; }
.call-fab-btn {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff;
  box-shadow: 0 10px 26px rgba(232,96,28,.45), 0 2px 6px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
}
.call-fab-btn .icon { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.call-fab-btn .icon-close { opacity: 0; transform: rotate(-90deg); }
.call-fab.is-open .call-fab-btn { background: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.call-fab.is-open .icon-phone { opacity: 0; transform: rotate(90deg); }
.call-fab.is-open .icon-close { opacity: 1; transform: none; }
.call-fab-btn:hover { background: var(--orange-dark); transform: scale(1.06); }
.call-fab.is-open .call-fab-btn:hover { background: #000; }
.call-fab-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* computer: card with the number and actions (call-button.js) */
.call-card {
  position: absolute; right: 0; bottom: 74px; width: 272px;
  background: var(--surface); color: var(--text); border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.08);
  display: grid; gap: 4px;
  transform-origin: bottom right; animation: call-card-in .18s ease-out;
}
.call-card[hidden] { display: none; }
@keyframes call-card-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.call-card small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.call-card-num { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; user-select: all; }
.call-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.call-card-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface);
  font: 700 15px var(--font); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.call-card-btn .icon { width: 18px; height: 18px; }
.call-card-btn:hover { border-color: var(--orange); color: var(--orange-text); }
.call-card-btn.is-main { background: var(--orange); border-color: var(--orange); color: #fff; }
.call-card-btn.is-main:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.call-card-copy { grid-column: 1 / -1; }
.call-card-copy.is-done { border-color: #2e7d32; color: #2e7d32; }
.call-card-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 13px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-photo { max-width: 680px; }
  .estimate-card { max-width: 560px; }
  .cards-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-auto-columns: calc((100% - 24px) / 2.2); }
  .gallery { grid-auto-columns: calc((100% - 32px) / 2.5); }
  .gallery-prev { left: 4px; }
  .gallery-next { right: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phones and small tablets: the section links don't fit in one row next to the logo,
   so they move into a drop-down opened by the menu button (menu.js). */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 12px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; padding: 0; cursor: pointer;
    background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; } /* header is dark day and night */
  .nav-open .nav-toggle { border-color: var(--orange); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 6px 24px 14px;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 32px rgba(0,0,0,.35);
    max-height: calc(100vh - var(--header-h) - var(--safe-top)); overflow-y: auto;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 15px 2px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .container { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 18px; }
  .main-nav { padding-left: 16px; padding-right: 16px; }
  /* phones: compact first screen so "Request an Estimate" is visible without scrolling */
  .hero { min-height: auto; padding: 22px 0 40px; }
  .hero-grid { gap: 20px; }
  .hero-pills { gap: 8px; }
  .hero-pills .pill { font-size: 11.5px; padding: 5px 10px; gap: 6px; }
  .hero h1 { margin: 14px 0 10px; font-size: 33px; }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
  .hero-badges li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.25; }
  .badge-icon { width: 30px; height: 30px; }
  .estimate-card h2 { font-size: 18px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-btns { display: none; }
  .section { padding: 64px 0; }
  .svc-hero { padding: 32px 0 56px; }
  .svc-copy p { font-size: 17px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16.5px; }
  .cards-grid, .features-grid, .steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-auto-columns: 85%; gap: 14px; }
  .steps::before { display: none; }
  .steps { row-gap: 40px; }
  .gallery { grid-auto-columns: 80%; gap: 10px; }
  .gallery-nav { display: none; }
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-count { bottom: 22px; }
  .estimate-card { padding: 18px 16px 18px; gap: 10px; }
  .contact-section { padding: 56px 0; }
  .project-form { padding: 20px 16px; }
  .pf-row { grid-template-columns: 1fr; }
  .area { padding-top: 64px; }
  .map-wrap { height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* bigger finger targets for footer links on phones */
  .site-footer ul { gap: 2px; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-license a { display: inline-flex; align-items: center; min-height: 40px; }
  .call-fab { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .call-fab-btn { width: 56px; height: 56px; }
}

/* =========================================================
   Scroll reveal (animations.js): "Rise". When a section scrolls into view,
   everything in it rises 40px and fades in at the same moment (0.9s).
   The first screen (hero, service page intro) is never animated, so the
   main content shows instantly. Skipped for visitors who prefer reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* the list matches SELECTOR in animations.js */
  .js-anim :is(.section-head, .service-card, .gallery-wrap, .about-copy, .about-photo,
    .feature, .steps, .contact-copy, .project-form, .contact-alt,
    .area-head, .map-wrap):not(.is-in) {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  .js-anim .is-in:not(.anim-done) {
    transition:
      opacity .9s cubic-bezier(.22, 1, .36, 1),
      transform .9s cubic-bezier(.22, 1, .36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
