/*
Theme Name: High Quality Roofing
Theme URI: https://www.highqualityroofingatl.com
Author: High Quality Roofing
Author URI: https://www.highqualityroofingatl.com
Description: Premium WordPress theme for High Quality Roofing — Atlanta's trusted residential and commercial roofing contractor. Features a lead-capture hero form, interactive roof estimator, project gallery with before/after slider, and full WordPress Customizer integration.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hqr
Tags: one-column, custom-colors, custom-logo, featured-images, theme-options

High Quality Roofing WordPress Theme, (C) 2026 High Quality Roofing LLC
*/

/* ================================================
   BRAND FONTS (High Quality Roofing guidelines)
   ================================================ */
@font-face {
  font-family: "Georgia HQ";
  src: url("assets/fonts/georgia-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Cond";
  src: url("assets/fonts/helvetica-neue-57-condensed.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Cond";
  src: url("assets/fonts/helvetica-neue-77-bold-cond.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Ext";
  src: url("assets/fonts/helvetica-neue-43-light-ext.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Ext";
  src: url("assets/fonts/helvetica-neue-83-heavy-ext.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ================================================
   CSS VARIABLES & RESET
   ================================================ */
:root {
  /* Brand palette: official orange #FF7A08 + gray #717171 */
  --red: #FF7A08;
  --red-dark: #E06600;
  --red-deep: #B85400;
  --black: #0E0E0E;
  --ink: #1A1A1A;
  --charcoal: #2B2B2B;
  --slate: #4A4A4A;
  --slate-2: #717171;
  --gray-brand: #717171;
  --line: #E6E4DF;
  --bone: #F6F3EE;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --gold: #B8924A;

  --f-display: "Helvetica Neue Cond", "Helvetica Neue", "Helvetica", "Arial Narrow", "Arial", sans-serif;
  --f-sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --f-ext: "Helvetica Neue Ext", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --f-accent: "Georgia HQ", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --gutter: clamp(24px, 4vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ================================================
   TYPOGRAPHY
   ================================================ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--red);
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }
.eyebrow.on-dark::before { background: var(--red); }

.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-style: normal;
}
.display em {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
}

h1.display { font-size: clamp(40px, 5.2vw, 76px); font-weight: 700; }
h2.display { font-size: clamp(32px, 3.8vw, 56px); font-weight: 600; }
h3.display { font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; }

.lede { font-size: clamp(18px, 1.3vw, 22px); color: var(--slate); max-width: 62ch; line-height: 1.5; }

/* ================================================
   LAYOUT
   ================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 220ms cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(14,14,14,0.18); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--black); }
.btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-ghost.on-dark:hover { background: var(--white); color: var(--ink); }

.btn .arrow {
  width: 28px; height: 28px;
  background: currentColor;
  border-radius: 50%;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") center/14px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") center/14px no-repeat;
}
.btn-primary .arrow { background: var(--white); }
.btn-primary .arrow::after { background: var(--red); }
.btn-ghost .arrow { background: var(--ink); }
.btn-ghost .arrow::after { background: var(--paper); }
.btn-dark .arrow { background: var(--white); }
.btn-dark .arrow::after { background: var(--ink); }

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo .logo-img,
.logo .custom-logo {
  height: 58px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.footer .logo .logo-img { height: 110px; }
.nav-links {
  display: flex; gap: 36px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 160ms;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--red);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.nav-phone .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 96px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer ul a { opacity: 0.75; transition: opacity 160ms; }
.footer ul a:hover { opacity: 1; color: var(--red); }
.footer-brand p { margin-top: 20px; color: rgba(255,255,255,0.6); max-width: 32ch; font-size: 14px; line-height: 1.6; }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: var(--f-mono);
}
.footer .logo { color: var(--white); }

/* ================================================
   PLACEHOLDER IMAGE BLOCKS
   ================================================ */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
  color: rgba(255,255,255,0.35);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,122,8,0.25), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.08), transparent 50%);
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0 95%, rgba(255,255,255,0.06) 95% 100%),
    linear-gradient(90deg, transparent 0 95%, rgba(255,255,255,0.06) 95% 100%);
  background-size: 40px 40px;
  mix-blend-mode: overlay;
}
.ph > span { position: relative; z-index: 1; }

.ph-roof-aerial { background: linear-gradient(180deg, #8a6d4a 0%, #5c4630 50%, #3a2d20 100%); }
.ph-roof-aerial::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(0,0,0,0.15) 20px 22px),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(255,255,255,0.05) 10px 11px);
}
.ph-house { background: linear-gradient(180deg, #a8b8c8 0%, #7b8a99 60%, #5c6b78 100%); }
.ph-storm { background: linear-gradient(180deg, #1a2838 0%, #3a4858 80%, #556575 100%); }
.ph-construction { background: linear-gradient(180deg, #6a5d48 0%, #4a3f30 100%); }
.ph-shingles {
  background:
    repeating-linear-gradient(180deg, #3a2d20 0 22px, #2a1f15 22px 24px),
    linear-gradient(180deg, #4a3a28 0%, #2a1f15 100%);
  background-blend-mode: overlay;
}
.ph-metal {
  background:
    repeating-linear-gradient(90deg, #4a5560 0 18px, #3a4550 18px 22px, #5a6570 22px 26px),
    linear-gradient(180deg, #3a4550, #2a3540);
}

/* ================================================
   SECTION HEADS
   ================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head p { font-size: 18px; color: var(--slate); line-height: 1.55; }

/* ================================================
   PAGE HEADER (non-home pages)
   ================================================ */
.page-header {
  padding: 120px 0 80px;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
/* Gallery intro shares the same top spacing as the other page headers so the
   distance between the sticky nav and the first heading is consistent. */
.g-intro {
  padding: 120px 0 80px;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 96px;
  align-items: end;
}
.page-header h1 { margin: 40px 0 24px; }

/* ================================================
   HOME: HERO
   ================================================ */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}
.hero h1 { margin: 28px 0 20px; font-size: clamp(40px, 4.8vw, 68px); }
.hero .lede { font-size: 17px; max-width: 52ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta-item .n { font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.hero-meta-item .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-top: 10px; }

/* Hero lead form */
.hero-form-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.hero-form-wrap .bg { position: absolute; inset: 0; opacity: 0.55; }
.hero-form-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.3) 0%, rgba(14,14,14,0.85) 60%, rgba(14,14,14,0.95) 100%);
}
.hero-form {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 32px;
  color: white;
}
.hero-form .eyebrow.on-dark { color: rgba(255,255,255,0.75); }
.hero-form h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 14px 0 6px;
  color: white;
}
.hero-form p.sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 22px; }
.hero-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.hero-form input, .hero-form select {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: white;
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms, background 160ms;
}
.hero-form input::placeholder { color: rgba(255,255,255,0.45); }
.hero-form input:focus, .hero-form select:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.12);
}
.hero-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}
.hero-form select option { background: var(--ink); color: white; }
.hero-form .submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--red);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 180ms;
  border: none;
  cursor: pointer;
}
.hero-form .submit-btn:hover { background: var(--red-dark); }
.hero-form .fine {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 14px;
  text-align: center;
}
.hero-form .trust-inline {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.hero-form .trust-inline span { display: flex; align-items: center; gap: 6px; }
.hero-form .trust-inline span::before { content: ""; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }

.hero-form-success {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 40px 32px;
  color: white;
  text-align: center;
  display: none;
}
.hero-form-success.show { display: block; }
.hero-form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}

/* Hero floating certification badges
   (replaces the old black ribbon — small logos, soft opacity) */
.hero-badges {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px clamp(16px, 2.5vw, 36px);
}
.hero-badges .badge-logo {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  filter: grayscale(35%);
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
  animation: badge-float 6s ease-in-out infinite;
}
.hero-badges .badge-logo:nth-child(2n) { animation-delay: -2s; }
.hero-badges .badge-logo:nth-child(3n) { animation-delay: -4s; }
.hero-badges .badge-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-3px);
}
.hero-badges .badge-logo img {
  height: 40px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badges .badge-logo { animation: none; }
}
@media (max-width: 900px) {
  .hero-badges .badge-logo img { height: 32px; max-width: 88px; }
  .hero-badges-row { gap: 16px 20px; }
}

/* ================================================
   HOME: SERVICES GRID
   ================================================ */
.services {
  padding: clamp(100px, 12vw, 180px) 0;
  background: var(--bone);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  transition: transform 260ms, box-shadow 260ms;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.2); }
.svc-card .svc-img { aspect-ratio: 4/3; }
.svc-card-body { padding: 32px; }
.svc-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 20px;
  display: block;
}
.svc-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.svc-card p { color: var(--slate); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.svc-card .link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  color: var(--ink);
}
.svc-card .link::after { content: "\2192"; transition: transform 200ms; }
.svc-card:hover .link::after { transform: translateX(4px); }

/* ================================================
   HOME: STATS
   ================================================ */
.stats {
  background: var(--black);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,122,8,0.15), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255,122,8,0.08), transparent 50%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.stat {
  padding: 40px 32px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .n {
  font-family: var(--f-ext);
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}
.stat .n sup {
  font-size: 0.4em;
  font-family: var(--f-sans);
  font-weight: 500;
  color: var(--red);
  margin-left: 6px;
  margin-top: 0.3em;
}
.stat .l {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.stat .d {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-top: 14px;
  max-width: 28ch;
}

/* ================================================
   HOME: FEATURED PROJECT
   ================================================ */
.featured {
  padding: clamp(100px, 12vw, 180px) 0;
  background: var(--paper);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.featured-img {
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-img .badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}
.featured h2 { margin: 32px 0 24px; }
.featured-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-meta div .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.featured-meta div .v { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

/* ================================================
   HOME: PROCESS
   ================================================ */
.process {
  padding: clamp(100px, 12vw, 160px) 0;
  background: var(--bone);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
}
.step {
  padding: 40px 32px 40px 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.step + .step { padding-left: 32px; }
.step .n {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 40px;
}
.step h4 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.step p { color: var(--slate); font-size: 15px; line-height: 1.55; }

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
  padding: clamp(100px, 12vw, 160px) 0;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.t-card blockquote {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  flex: 1;
}
.t-card blockquote::before {
  content: "\201C";
  font-size: 56px;
  line-height: 0;
  color: var(--red);
  display: block;
  height: 0;
  margin-bottom: 20px;
}
.t-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bone);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.t-author b { display: block; font-weight: 600; font-size: 14px; }
.t-author span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--slate); text-transform: uppercase; }

/* Google reviews — native summary bar + per-card star ratings */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 24px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.reviews-summary .rs-brand { display: flex; align-items: center; gap: 14px; }
.reviews-summary .rs-google { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bone); flex-shrink: 0; }
.reviews-summary .rs-brand-text b { display: block; font-weight: 600; font-size: 15px; }
.reviews-summary .rs-brand-text span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--slate); text-transform: uppercase; }
.reviews-summary .rs-score { display: flex; align-items: baseline; gap: 10px; }
.reviews-summary .rs-num { font-family: var(--f-display); font-size: 40px; font-weight: 600; line-height: 1; }
.reviews-summary .rs-stars { color: #fbbc05; font-size: 20px; letter-spacing: 2px; }
.reviews-summary .btn { margin-left: auto; }
.t-card .t-stars { color: #fbbc05; font-size: 17px; letter-spacing: 2px; line-height: 1; }
@media (max-width: 640px) {
  .reviews-summary { gap: 20px; padding: 20px; }
  .reviews-summary .btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta {
  padding: clamp(100px, 12vw, 160px) 0;
  background: var(--red);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none; /* decorative only — must not intercept clicks on CTA buttons */
}
/* Ensure CTA content (incl. buttons) always sits above the decorative overlay,
   even on layouts that don't use .cta-grid (e.g. the services page band). */
.cta > .container { position: relative; z-index: 1; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
}
.cta h2 { color: white; }
.cta-grid p { color: rgba(255,255,255,0.9); font-size: 20px; line-height: 1.45; max-width: 40ch; margin-top: 24px; }
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-phone-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 28px;
}
.cta-phone-card .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.75; margin-bottom: 12px; }
.cta-phone-card .v { font-family: var(--f-display); font-size: 40px; font-weight: 400; letter-spacing: -0.01em; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-primary { background: var(--black); color: white; }
.cta .btn-primary:hover { background: white; color: var(--red); }
.cta .btn-primary .arrow { background: white; }
.cta .btn-primary .arrow::after { background: var(--black); }
.cta .btn-primary:hover .arrow { background: var(--red); }

/* ================================================
   SERVICES PAGE
   ================================================ */
.svc-list { padding: 120px 0; }
.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 200px;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.15em; color: var(--red); padding-top: 12px; }
.svc-row h3 { font-family: var(--f-display); font-size: 44px; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.svc-row .sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); margin-top: 12px; display: block; }
.svc-row p { color: var(--slate); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.svc-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-row ul li { background: var(--bone); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--charcoal); }
.svc-row .vis { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; }

/* Materials section */
.materials { padding: 120px 0; background: var(--black); color: white; }
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.mat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 32px; transition: background 240ms; }
.mat-card:hover { background: rgba(255,255,255,0.07); }
.mat-card .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.mat-card h4 { font-family: var(--f-display); font-weight: 500; font-size: 32px; letter-spacing: -0.01em; margin-bottom: 14px; }
.mat-card p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
.mat-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.mat-card dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.mat-card dd { font-family: var(--f-display); font-weight: 500; font-size: 20px; margin-top: 4px; }

/* ================================================
   ABOUT PAGE
   ================================================ */
.story { padding: 120px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: start; }
.story-img { aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; position: sticky; top: 120px; }
.story h2 { margin-bottom: 32px; }
.story .body p { font-size: 18px; line-height: 1.6; color: var(--charcoal); margin-bottom: 20px; }
.story .body p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 72px;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  margin-right: 14px;
  margin-top: 6px;
  color: var(--red);
}

.values { padding: 120px 0; background: var(--ink); color: white; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 56px; }
.value { padding: 48px 32px 48px 0; border-top: 2px solid var(--red); }
.value + .value { padding-left: 32px; }
.value .n { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--red); margin-bottom: 40px; }
.value h4 { font-family: var(--f-display); font-size: 36px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; margin-bottom: 16px; }
.value p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.55; }

.team { padding: 120px 0; background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.member .portrait { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.member h5 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.member .role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-top: 6px; }
/* Team cards (template uses .team-card/.team-img) */
.team-card .team-img { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; margin-bottom: 20px; position: relative; }
.team-card .team-img > img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.team-card p { font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: 0.02em; line-height: 1.3; text-transform: uppercase; color: var(--slate); margin-top: 8px; }

.areas { padding: 120px 0; background: var(--bone); border-top: 1px solid var(--line); }
.areas-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.areas-list { column-count: 3; column-gap: 32px; }
.areas-list li { font-family: var(--f-display); font-size: 22px; font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; list-style: none; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* ================================================
   GALLERY PAGE
   ================================================ */
.filter-bar { display: flex; gap: 8px; padding: 40px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.filter-bar button { padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; background: transparent; border: 1px solid var(--line); color: var(--slate); white-space: nowrap; transition: all 180ms; }
.filter-bar button:hover { border-color: var(--ink); color: var(--ink); }
.filter-bar button.active { background: var(--ink); color: white; border-color: var(--ink); }
.filter-bar .count { font-family: var(--f-mono); font-size: 11px; color: var(--slate); margin-left: auto; align-self: center; }

.grid-projects { padding: 56px 0 120px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.gp { grid-column: span 6; border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: pointer; transition: transform 280ms; }
.gp.wide { grid-column: span 8; }
.gp.narrow, .gp.tall { grid-column: span 4; aspect-ratio: 3/4; }
.gp:hover { transform: translateY(-4px); }
.gp .ph { position: absolute; inset: 0; }
.gp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-widget .layer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp .gp-info { position: absolute; left: 24px; right: 24px; bottom: 24px; color: white; z-index: 2; }
.gp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%); z-index: 1; }
.gp .gp-info .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.gp .gp-info .top .chip { padding: 4px 10px; background: rgba(255,255,255,0.2); backdrop-filter: blur(6px); border-radius: 999px; }
.gp .gp-info h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.gp .gp-info .meta { margin-top: 8px; font-size: 13px; opacity: 0.85; }

/* Before/After */
.ba { padding: 120px 0; background: var(--ink); color: white; }
.ba-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.ba-head-copy h2 { margin-top: 24px; }
.ba-head h2 { color: white; }
.ba-head p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 40ch; }
.ba-widget { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; cursor: ew-resize; user-select: none; }
.ba-widget .layer { position: absolute; inset: 0; }
.ba-widget .before { z-index: 1; }
.ba-widget .after { z-index: 2; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); transition: clip-path 100ms; }
.ba-widget .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: white; z-index: 3; transform: translateX(-50%); }
.ba-widget .handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: white; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.ba-widget .handle::before { content: "\2039 \203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4; font-family: var(--f-mono); font-weight: 700; color: var(--ink); font-size: 14px; letter-spacing: 2px; }
.ba-widget .tag-before, .ba-widget .tag-after { position: absolute; top: 24px; padding: 8px 14px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: white; z-index: 4; }
.ba-widget .tag-before { left: 24px; }
.ba-widget .tag-after { right: 24px; }
.ba-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ba-meta div { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.ba-meta .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.ba-meta .v { font-family: var(--f-display); font-size: 22px; font-weight: 500; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-info { padding: 80px 0; border-bottom: 1px solid var(--line); }
.ci-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ci .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.ci .v { font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.ci .v a { color: inherit; }
.ci .sub { margin-top: 8px; font-size: 14px; color: var(--slate); }

/* Estimator */
.estimator { padding: 120px 0; background: var(--ink); color: white; position: relative; overflow: hidden; }
.estimator::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255,122,8,0.2), transparent 50%); }
.est-grid { display: grid; grid-template-columns: 0.85fr 1.9fr; gap: 48px; align-items: center; position: relative; }
.est-head h2 { color: white; margin-top: 24px; }
.est-head p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.55; margin-top: 20px; max-width: 36ch; }
.est-head .list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.est-head .list li { display: flex; gap: 14px; align-items: start; font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.est-head .list li::before { content: "\2713"; color: var(--red); font-weight: 700; flex-shrink: 0; }

.est-card { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 16px; position: relative; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.est-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.est-progress .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--slate); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 600; transition: all 200ms; }
.est-progress .dot.active { background: var(--ink); color: white; }
.est-progress .dot.done { background: var(--red); color: white; }
.est-progress .line { flex: 1; height: 2px; background: var(--line); position: relative; }
.est-progress .line.done { background: var(--red); }

.est-step-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.est-step h3 { font-family: var(--f-display); font-size: 36px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 24px; }
.est-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.est-opt { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: white; text-align: left; cursor: pointer; transition: all 200ms; }
.est-opt:hover { border-color: var(--ink); }
.est-opt.sel { border-color: var(--red); background: rgba(255,122,8,0.04); box-shadow: 0 0 0 3px rgba(255,122,8,0.1); }
.est-opt .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 6px; }
.est-opt b { font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.est-opt .tag-mini { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); background: var(--bone); padding: 4px 8px; border-radius: 999px; }
.est-opt p { font-size: 13px; color: var(--slate); line-height: 1.4; }

.est-slider-wrap { margin-bottom: 32px; }
.est-slider-val { font-family: var(--f-display); font-size: 80px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.est-slider-val small { font-size: 22px; color: var(--slate); margin-left: 12px; font-family: var(--f-sans); font-weight: 500; }
.est-slider-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); margin-top: 8px; margin-bottom: 24px; }
.est-slider { appearance: none; width: 100%; height: 6px; background: var(--line); border-radius: 999px; outline: none; }
.est-slider::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); cursor: pointer; border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.est-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--red); cursor: pointer; border: 3px solid white; }
.est-slider-ticks { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--f-mono); font-size: 10px; color: var(--slate); }

.est-field { margin-bottom: 16px; }
.est-field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.est-field input, .est-field select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: white; border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); }
.est-field input:focus, .est-field select:focus { outline: none; border-color: var(--ink); }

.est-nav { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; }
.est-nav .btn-back { padding: 14px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; background: transparent; color: var(--slate); }
.est-nav .btn-back:hover { color: var(--ink); }
.est-nav .btn-next { padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--ink); color: white; display: inline-flex; align-items: center; gap: 8px; }
.est-nav .btn-next:disabled { opacity: 0.35; cursor: not-allowed; }
.est-nav .btn-next:not(:disabled):hover { background: var(--red); }

.est-result .price-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.est-result .price { font-family: var(--f-display); font-size: 64px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.est-result .price .sep { color: var(--red); margin: 0 10px; font-style: italic; font-weight: 300; }
.est-result .price-note { font-size: 14px; color: var(--slate); margin-bottom: 24px; }
.est-breakdown { border-top: 1px solid var(--line); padding: 20px 0 4px; margin: 20px 0 24px; }
.est-breakdown .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.est-breakdown .row:last-child { border-bottom: none; font-weight: 600; }
.est-breakdown .row b { font-family: var(--f-display); font-size: 16px; font-weight: 500; }
.est-disclaimer { font-size: 12px; color: var(--slate); line-height: 1.5; padding: 14px 16px; background: var(--bone); border-radius: 10px; margin-bottom: 20px; }

/* Map */
.map-area { padding: 120px 0; background: var(--bone); border-top: 1px solid var(--line); }
.map-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.map-text p { color: var(--slate); font-size: 18px; line-height: 1.55; margin-top: 16px; max-width: 46ch; }
.map-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(14,14,14,0.22); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.map-vis { aspect-ratio: 4/3; background: #1a1f2a; border-radius: 24px; position: relative; overflow: hidden; }
.map-vis::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,122,8,0.1) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; }
/* Real Google Maps embed sits above the decorative grid overlay. */
.map-vis iframe { position: relative; z-index: 1; }
.map-pin { position: absolute; top: 40%; left: 52%; transform: translate(-50%, -50%); width: 20px; height: 20px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,122,8,0.3), 0 0 0 20px rgba(255,122,8,0.1); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(255,122,8,0.3), 0 0 0 20px rgba(255,122,8,0.1); } 50% { box-shadow: 0 0 0 12px rgba(255,122,8,0.25), 0 0 0 32px rgba(255,122,8,0.05); } }
.map-label { position: absolute; bottom: 24px; left: 24px; background: rgba(255,255,255,0.95); padding: 14px 18px; border-radius: 12px; font-size: 13px; color: var(--ink); backdrop-filter: blur(8px); }
.map-label b { font-family: var(--f-display); font-weight: 500; font-size: 16px; display: block; }

/* ================================================
   FORM MESSAGES
   ================================================ */
.form-message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-message.success { background: rgba(34,197,94,0.1); color: #166534; border: 1px solid rgba(34,197,94,0.3); }
.form-message.error { background: rgba(239,68,68,0.1); color: #991b1b; border: 1px solid rgba(239,68,68,0.3); }

/* ================================================
   ESTIMATOR FLOATING TAB & SLIDEOUT PANEL
   ================================================ */

/* Overlay */
.est-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.est-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Floating side tab */
.est-side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9997;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 12px 0 0 12px;
  padding: 18px 14px;
  cursor: pointer;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
  transition: background 200ms ease, padding 200ms ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.est-side-tab:hover {
  background: var(--red-dark);
  padding: 18px 18px 18px 14px;
}
.est-side-tab-text {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Slideout panel */
.est-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--paper);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}
.est-panel.open {
  transform: translateX(0);
}

.est-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.est-panel-header .eyebrow {
  color: var(--red);
  margin: 0;
}
.est-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
}
.est-panel-close:hover {
  background: var(--bone);
  border-color: var(--ink);
}

.est-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px;
  -webkit-overflow-scrolling: touch;
}

/* Hide the side tab when panel is open */
.est-panel.open ~ .est-side-tab,
.est-overlay.open ~ .est-side-tab {
  transform: translateY(-50%) translateX(100%);
}

/* ================================================
   SERVICE DETAIL PAGES
   ================================================ */
.svc-detail { padding: clamp(72px, 9vw, 120px) 0; }
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.svc-detail-img {
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
}
img.svc-detail-img { width: 100%; object-fit: cover; }
img.svc-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.svc-row .vis a { display: block; width: 100%; height: 100%; }
.svc-row .vis img,
.svc-row .vis .ph { width: 100%; height: 100%; object-fit: cover; }
.svc-detail .body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.pills li {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--charcoal);
}
.svc-includes-title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}
.svc-includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.svc-includes li {
  display: flex;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal);
}
.svc-includes li::before {
  content: "\2713";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}
.svc-aside {
  position: sticky;
  top: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-facts { margin: 18px 0 10px; display: flex; flex-direction: column; }
.svc-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.svc-facts dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 3px;
}
.svc-facts dd { font-weight: 600; font-size: 14px; text-align: right; }
.svc-aside .btn { justify-content: center; }
.svc-all-link {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-align: center;
  margin-top: 6px;
  transition: color 160ms;
}
.svc-all-link:hover { color: var(--red); }
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: color 160ms;
}
.svc-more:hover { color: var(--red); }
.svc-copy h3 a { transition: color 160ms; }
.svc-copy h3 a:hover { color: var(--red); }

/* FAQ */
.svc-faq { padding: clamp(72px, 9vw, 120px) 0; background: var(--bone); border-top: 1px solid var(--line); }
.svc-faq h2 { margin: 20px 0 36px; }
.faq-list { max-width: 820px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 52px 20px 24px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--red);
  transition: transform 200ms;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

/* ================================================
   FLOATING CALL BUTTON (site-wide CTA)
   ================================================ */
.call-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9996;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 16px;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(255,122,8,0.45);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.call-fab:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255,122,8,0.55);
}
.call-fab .call-fab-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid; place-items: center;
  animation: call-ring 2.4s ease-in-out infinite;
}
.call-fab .call-fab-icon svg { width: 18px; height: 18px; }
.call-fab .call-fab-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.call-fab .call-fab-label small {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
@keyframes call-ring {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab .call-fab-icon { animation: none; }
}
@media (max-width: 640px) {
  .call-fab {
    left: 16px;
    bottom: 16px;
    padding: 12px 16px 12px 12px;
    font-size: 13px;
  }
  .call-fab .call-fab-icon { width: 30px; height: 30px; }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1000px) {
  .hero-grid, .section-head, .featured-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .process-grid, .t-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 24px var(--gutter); border-bottom: 1px solid var(--line); gap: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); z-index: 100; }
  .nav-inner { position: relative; }
  .nav-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-header-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-row { grid-template-columns: 1fr; gap: 24px; }
  .mat-grid { grid-template-columns: 1fr; }
  .story-grid, .areas-grid, .est-grid, .map-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-img { position: static; }
  .svc-detail-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-includes { grid-template-columns: 1fr; }
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-list { column-count: 2; }
  .g-intro-grid, .ba-head { grid-template-columns: 1fr; gap: 32px; }
  .gp, .gp.wide, .gp.narrow, .gp.tall { grid-column: span 12; aspect-ratio: 4/3; }
  .ba-meta { grid-template-columns: repeat(2, 1fr); }
  .c-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .ci-grid { grid-template-columns: 1fr 1fr; }
  .est-options { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .process-grid, .t-grid, .stats-grid { grid-template-columns: 1fr; }
  .step { border-left: none !important; padding-left: 0 !important; }
  .step + .step { border-top: 2px solid var(--ink); }
  .hero-badges .badge-logo img { height: 30px; max-width: 84px; }
  .hero-meta { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-form .form-row { grid-template-columns: 1fr; }
  .est-panel { width: 100vw; }
  .est-panel-body { padding: 20px; }
  .est-side-tab { padding: 14px 10px; }
  .est-side-tab-text { font-size: 11px; }
}

/* ================================================
   Careers / Apply
   ================================================ */
.careers-apply { padding: 120px 0; background: var(--ink); color: white; }
.careers-apply .display { color: white; }
.careers-apply > .container > .careers-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.careers-apply p { color: rgba(255,255,255,0.7); max-width: 44ch; }
.careers-apply .hero-form-wrap { min-height: 0; }
.hero-form-wrap img.bg { width: 100%; height: 100%; object-fit: cover; }
.hero-form .form-row-1 { grid-template-columns: 1fr; }
.hero-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.hero-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.hero-form textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,0.12); }
@media (max-width: 900px) {
  .careers-apply > .container > .careers-apply-grid { grid-template-columns: 1fr; gap: 40px; }
}
