/* ============================================================
   Warrington Plumbing Co. — global stylesheet
   Mobile-first. Single file, no external dependencies.
   ============================================================ */

/* -----------------------------------------------------------
   Design tokens
----------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #1a3c6e;      /* Deep navy blue */
  --color-primary-dark: #142f57;
  --color-primary-light: #24508f;
  --color-accent: #f5a623;       /* Warm amber/orange */
  --color-accent-dark: #dc9012;
  --color-text: #1f2937;         /* Near black */
  --color-text-light: #6b7280;   /* Muted gray */
  --color-bg: #ffffff;           /* White */
  --color-bg-alt: #f9fafb;       /* Off-white for alternating sections */
  --color-border: #e5e7eb;       /* Light border */
  --color-success: #16a34a;      /* Green for trust signals */
  --color-star: #f5a623;

  /* Fonts */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Type scale */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;

  /* Misc */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
  --transition: 0.2s ease;
  --header-height: 68px;
  --maxw: 1160px;
}

/* -----------------------------------------------------------
   Reset & base
----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

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

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-to-content link — visible only when focused */
.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}
/* Remove the focus ring that appears when a skip target is programmatically focused */
main:focus { outline: none; }

/* -----------------------------------------------------------
   Layout helpers
----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-8) 0;
}
.section--tight { padding: var(--space-6) 0; }
.section--alt { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}
.section-head h2 { margin-bottom: var(--space-1); }
.section-head p {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-1);
}

.text-center { text-align: center; }

/* -----------------------------------------------------------
   Buttons
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #3d2a05;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #3d2a05;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 8px 4px;
}
.btn-ghost:hover { color: var(--color-accent-dark); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: var(--text-lg); }

/* -----------------------------------------------------------
   Header / navigation
----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-2);
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand:hover { color: var(--color-primary); }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

/* Nav menu (mobile-first: hidden drawer) */
.nav-menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-2);
  gap: 2px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.nav-menu.is-open { transform: translateX(0); }

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

.nav-menu a,
.nav-menu .dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-menu a:hover,
.nav-menu .dropdown-trigger:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Active section highlight */
.nav-menu .is-active > a,
.nav-menu .is-active > .dropdown-trigger {
  color: var(--color-primary);
}
.nav-menu .is-active > a::after,
.nav-menu .is-active > .dropdown-trigger::after {
  content: "";
}

.dropdown-trigger .caret {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-left: 6px;
}
.has-dropdown.is-open > .dropdown-trigger .caret { transform: rotate(-135deg); }

/* Submenu */
.dropdown {
  list-style: none;
  display: none;
  padding: 2px 0 6px 12px;
}
.has-dropdown.is-open > .dropdown { display: block; }
.dropdown a {
  padding: 10px 12px;
  font-weight: 500;
  color: var(--color-text-light);
}

/* Phone CTA in nav */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #3d2a05 !important;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-phone:hover { background: var(--color-accent-dark); color: #3d2a05 !important; }
.nav-actions { display: flex; align-items: center; gap: var(--space-1); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    inset: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 4px;
    overflow: visible;
    border-top: 0;
    background: transparent;
    width: auto;
  }
  .nav-menu a,
  .nav-menu .dropdown-trigger { padding: 10px 14px; }
  .nav-menu .dropdown-trigger { justify-content: flex-start; }

  .has-dropdown > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown,
  .has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown a { border-radius: 6px; }
  .dropdown a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

  .nav-menu .is-active > a,
  .nav-menu .is-active > .dropdown-trigger {
    color: var(--color-primary);
    position: relative;
  }
  .nav-menu .is-active > a::after,
  .nav-menu .is-active > .dropdown-trigger::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
  }
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0 3px, transparent 3px),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px),
    linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: 220px 220px, 260px 260px, 180px 180px, 300px 300px, 100% 100%;
  color: #fff;
  padding: var(--space-12) 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(245, 166, 35, 0.16), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: var(--text-4xl);
  max-width: 14ch;
}
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin-bottom: var(--space-4);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-sm);
  font-weight: 600;
}
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .check { color: #7ee29a; font-weight: 800; }

/* Compact hero for interior pages */
.hero--compact { padding: var(--space-8) 0 var(--space-6); }
.hero--compact h1 { font-size: var(--text-3xl); max-width: none; }
.hero--compact .hero-sub { margin-bottom: var(--space-3); }

/* -----------------------------------------------------------
   Breadcrumbs
----------------------------------------------------------- */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.75);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li::after { content: "›"; margin-left: 6px; opacity: 0.6; }
.breadcrumb li:last-child::after { content: ""; }

/* -----------------------------------------------------------
   Trust bar
----------------------------------------------------------- */
.trust-bar { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.trust-stat { text-align: center; }
.trust-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary);
}
.trust-stat span {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}
@media (min-width: 768px) {
  .trust-bar .container { grid-template-columns: repeat(5, 1fr); }
}

/* -----------------------------------------------------------
   Cards / service grid
----------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #d6dbe3;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(26, 60, 110, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 6px; font-size: var(--text-lg); }
.card p { color: var(--color-text-light); flex-grow: 1; }
.card .btn-ghost {
  align-self: flex-start;
  font-weight: 700;
  margin-top: var(--space-1);
}

/* -----------------------------------------------------------
   About strip
----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; }
}
.about-media {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: var(--shadow-md);
}
.diff-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-2);
}
@media (min-width: 560px) { .diff-list { grid-template-columns: 1fr 1fr; } }
.diff-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}
.diff-list .check {
  color: var(--color-success);
  font-weight: 800;
  flex-shrink: 0;
}

/* -----------------------------------------------------------
   Reviews
----------------------------------------------------------- */
.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--color-star); letter-spacing: 2px; margin-bottom: var(--space-1); }
.review-card blockquote {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}
.google-g { width: 18px; height: 18px; flex-shrink: 0; }

/* -----------------------------------------------------------
   Pills / badges (service areas, neighborhoods)
----------------------------------------------------------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
a.pill:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}
.pill--static { background: var(--color-bg-alt); }

/* -----------------------------------------------------------
   Map placeholder
----------------------------------------------------------- */
.map-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(26,60,110,0.05) 0 12px, transparent 12px 24px),
    var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--color-text-light);
  padding: var(--space-3);
}
.map-placeholder .pin { font-size: 2.5rem; }
.map-placeholder strong { color: var(--color-primary); font-family: var(--font-heading); font-size: var(--text-lg); }

/* -----------------------------------------------------------
   Process steps
----------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-2);
  max-width: 760px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) 68px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* -----------------------------------------------------------
   Included / checklist
----------------------------------------------------------- */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-3);
}
@media (min-width: 640px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-weight: 500;
}
.check-list .check {
  color: var(--color-success);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* -----------------------------------------------------------
   Prose / content blocks
----------------------------------------------------------- */
.prose { max-width: 720px; }
.prose p { color: var(--color-text); }
.prose.muted p { color: var(--color-text-light); }

.info-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.info-box h3 { margin-top: 0; }
.info-box p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------
   FAQ accordion
----------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-1);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-accent-dark);
  border-radius: 2px;
  top: 50%; left: 50%;
  transition: transform var(--transition);
}
.faq-question .faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-question .faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 var(--space-3) var(--space-2);
  color: var(--color-text-light);
}

/* -----------------------------------------------------------
   CTA strip
----------------------------------------------------------- */
.cta-strip {
  background: var(--color-accent);
  color: #3d2a05;
}
.cta-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.cta-strip h2 { color: #3d2a05; margin: 0; }
.cta-strip p { margin: 0; font-weight: 600; }
.cta-strip .btn {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cta-strip .btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
@media (min-width: 768px) {
  .cta-strip .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* -----------------------------------------------------------
   Forms
----------------------------------------------------------- */
.form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}
.quote-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .quote-form { grid-template-columns: 1fr 1fr; }
  .quote-form .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field label .req { color: #dc2626; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(36, 80, 143, 0.15);
}

/* Radio group */
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; display: block; }
fieldset.field legend { font-weight: 600; font-size: var(--text-sm); padding: 0; margin: 0 0 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.radio-chip:hover { border-color: var(--color-primary-light); }
.radio-chip input { accent-color: var(--color-primary); }

/* Honeypot (hidden from users) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-success {
  background: #ecfdf3;
  border: 1px solid #a7f3c9;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.form-success h3 { color: var(--color-success); }
.form-error {
  color: #b91c1c;
  font-weight: 600;
  margin-top: var(--space-1);
  grid-column: 1 / -1;
}

/* -----------------------------------------------------------
   Contact layout
----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}
.contact-info { display: grid; gap: var(--space-3); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .ico {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(26,60,110,0.08);
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-line .ico svg { width: 22px; height: 22px; }
.contact-line strong { display: block; color: var(--color-primary); }
.contact-line a.big-phone { font-size: var(--text-xl); font-weight: 700; }

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-8) 0 var(--space-6);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-1);
}
.footer-brand svg { width: 26px; height: 26px; }
.site-footer p { color: rgba(255,255,255,0.8); }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { color: rgba(255,255,255,0.9); }
.footer-contact a:hover { color: #fff; }
.footer-license {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.footer-bar .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
@media (min-width: 768px) {
  .footer-bar { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* -----------------------------------------------------------
   Portfolio / project gallery
----------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.filter-tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.filter-tab:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}
.filter-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.is-hidden { display: none; }

/* Placeholder "photo" tile — swap for a real <img> later */
.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
}
.project-media::after {
  content: "Project photo";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.28);
  padding: 3px 8px;
  border-radius: 4px;
}
.project-media--navy  { background: linear-gradient(150deg, var(--color-primary), var(--color-primary-dark)); }
.project-media--amber { background: linear-gradient(150deg, #f5a623, #d97b0f); }
.project-media--teal  { background: linear-gradient(150deg, #16a34a, #0f7a37); }
.project-media--slate { background: linear-gradient(150deg, #475569, #1e293b); }

.project-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.project-card h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.project-loc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.project-desc { color: var(--color-text-light); flex-grow: 1; margin: 0; }

.project-empty {
  display: none;
  text-align: center;
  color: var(--color-text-light);
  padding: var(--space-4);
}

/* Before / after showcase */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) { .beforeafter { grid-template-columns: 1fr 1fr; } }
.ba-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* -----------------------------------------------------------
   Value / pitch page (your-website.html)
----------------------------------------------------------- */
.pillar-list { display: grid; gap: 10px; margin-top: var(--space-1); }
.pillar-list li {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 500;
}
.pillar-list .check { color: var(--color-success); font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.pillar-note {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-dark);
}

.pricing-card {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  box-shadow: var(--shadow-lg);
}
.price-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-sm);
}
.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  margin: var(--space-1) 0;
  color: #fff;
}
.pricing-card .price small { font-size: 1rem; color: rgba(255, 255, 255, 0.7); font-family: var(--font-body); }
.pricing-card .price-sub { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--space-3); }
.pricing-card .care {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
}
.pricing-card .care strong { color: #fff; }

.table-scroll { overflow-x: auto; max-width: 700px; margin: 0 auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.compare-table thead th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  color: var(--color-primary);
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .row-you { background: rgba(245, 166, 35, 0.10); }
.compare-table .row-you td { font-weight: 700; color: var(--color-primary); }
/* Proposal-style pricing tables: let descriptions wrap, right-align amounts */
.compare-table--wrap { max-width: 760px; margin: 0 auto; }
.compare-table--wrap th, .compare-table--wrap td { white-space: normal; }
.compare-table--wrap .amt { text-align: right; white-space: nowrap; font-weight: 700; }
.compare-table--wrap thead th:last-child { text-align: right; }
.price-options { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .price-options { grid-template-columns: 1fr 1fr; align-items: start; } }
.price-option h3 { text-align: center; margin-bottom: var(--space-2); }

/* Neutral top bar for the pitch page (not the plumbing brand) */
.studio-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--color-primary); }
.studio-brand .edit-hint { font-size: 0.6rem; color: var(--color-text-light); font-weight: 600; vertical-align: super; }

/* -----------------------------------------------------------
   Illustration blocks
----------------------------------------------------------- */
.illus {
  width: 100%;
  height: auto;
  display: block;
}
.illus-frame {
  background: linear-gradient(160deg, #eef2f8, #dde5f0);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
.service-illus {
  max-width: 380px;
  margin: 0 auto var(--space-4);
}

/* -----------------------------------------------------------
   Utility spacing
----------------------------------------------------------- */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
