/* ============================================================
   Greaves Construction — Site stylesheet
   Tokens come from colors_and_type.css; this file adds the
   marketing-site components: header, footer, hero, cards, forms.
   ============================================================ */
@import url('colors_and_type.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Poppins:wght@400;500;600;700&family=Source+Serif+4:ital,wght@1,400;1,500;1,600;1,700&display=swap');

/* ---------- Brand typography override (site-wide) ---------- */
:root {
  --font-display: 'Montserrat', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-body:    'Poppins',    system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-accent:  'Source Serif 4', 'Source Serif Pro', Georgia, serif;
}
h1, h2, h3, h4 { letter-spacing: -0.015em; }
.page-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
/* Serif italic for the highlighted phrase in hero + section heads */
.page-hero h1 .accent,
h2 .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.005em;
}
/* Eyebrows: italic serif — feels editorial, breaks up the geometric-sans flow */
.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* Generic content container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 18px; }
}

/* Section rhythm */
section { padding: clamp(64px, 9vw, 112px) 0; }
section.tight { padding: clamp(40px, 6vw, 64px) 0; }
@media (max-width: 600px) {
  section { padding: 56px 0; }
  section.tight { padding: 36px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 16px var(--font-body);
  padding: 14px 22px; border-radius: var(--r-sm);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--greaves-blue); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--greaves-blue-1); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-accent { background: var(--greaves-blue); color: #fff; box-shadow: var(--shadow-brand); }
.btn-accent:hover { background: var(--greaves-blue-1); color: #fff; }
.btn-accent:active { transform: translateY(1px); }
/* On the dark-blue CTA band, swap the accent button to orange — last small dash of accent */
.cta-band .btn-accent { background: var(--greaves-orange); box-shadow: 0 10px 24px rgba(248,152,72,.35); }
.cta-band .btn-accent:hover { background: var(--greaves-orange-1); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--greaves-blue); color: var(--greaves-blue); }
.btn-on-dark { background: #fff; color: var(--greaves-blue); }
.btn-on-dark:hover { background: var(--surface-2); }
.btn-link {
  font: 800 14px var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--greaves-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { color: var(--greaves-blue-1); }
.btn-link::after { content: '→'; transition: transform var(--dur-fast) var(--ease-out); }
.btn-link:hover::after { transform: translateX(3px); }

/* ---------- Eyebrow ---------- */
.eyebrow { color: var(--greaves-blue); }
.eyebrow.on-dark { color: #7DB7E8; }   /* lighter logo-blue, visible on dark hero scrim */
.eyebrow.green { color: var(--greaves-green-1); }
.eyebrow.orange { color: var(--greaves-orange-1); }   /* opt-in, for small accents */

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header .logo img { height: 128px; display: block; transition: height var(--dur-fast) var(--ease-out); }
.site-header.is-scrolled .logo img { height: 96px; }
.site-header nav.primary {
  display: flex; align-items: center; gap: 8px;
  margin-left: 16px; flex: 1;
}
.site-header nav.primary a {
  font: 600 15px var(--font-body); color: var(--ink);
  text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm);
  letter-spacing: .005em;
}
.site-header nav.primary a:hover { color: var(--greaves-blue); background: var(--greaves-blue-3); }
.site-header nav.primary a[aria-current="page"] { color: var(--greaves-blue); }

.site-header .has-children { position: relative; }
.site-header .has-children > button {
  font: 600 15px var(--font-body); color: var(--ink); background: transparent; border: 0;
  padding: 8px 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px;
}
.site-header .has-children > button:hover { color: var(--greaves-blue); background: var(--greaves-blue-3); }
.site-header .has-children > button::after { content: '▾'; font-size: 11px; color: var(--ink-3); }
.site-header .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); padding: 8px; display: none;
  margin-top: 6px;
}
.site-header .has-children:hover .dropdown,
.site-header .has-children:focus-within .dropdown { display: block; }
.site-header .dropdown a {
  display: block; padding: 10px 12px; font: 600 15px var(--font-body);
  color: var(--ink); text-decoration: none; border-radius: var(--r-sm);
}
.site-header .dropdown a:hover { background: var(--surface-2); color: var(--greaves-blue); }

.site-header .right { display: flex; gap: 12px; align-items: center; }
.site-header .phone {
  font: 800 14px var(--font-display); letter-spacing: .04em;
  color: var(--greaves-blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.site-header .phone:hover { color: var(--greaves-blue-1); }
.site-header .phone svg { width: 18px; height: 18px; }

.site-header .hamburger {
  display: none; background: transparent; border: 0; padding: 8px;
  color: var(--ink);
}
.site-header .hamburger svg { width: 28px; height: 28px; }

/* Mobile menu */
.mobile-menu {
  display: none; background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 8px; font: 600 17px var(--font-body);
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2);
}
.mobile-menu a.sub { padding-left: 28px; font-size: 16px; color: var(--ink-2); }
.mobile-menu .mobile-cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* iPad landscape and below: tighter nav spacing */
@media (max-width: 1100px) {
  .site-header .inner { gap: 16px; padding: 10px 20px; }
  .site-header nav.primary { gap: 2px; margin-left: 8px; }
  .site-header nav.primary a,
  .site-header .has-children > button { padding: 8px 10px; font-size: 14px; }
  .site-header .logo img { height: 100px; }
  .site-header.is-scrolled .logo img { height: 80px; }
}

/* iPad portrait and below: hide full nav, show hamburger */
@media (max-width: 960px) {
  .site-header nav.primary { display: none; }
  .site-header .phone { display: none; }
  .site-header .right .btn { display: none; }
  .site-header .hamburger { display: inline-flex; }
  .site-header .inner { gap: 12px; padding: 10px 16px; }
  .site-header .logo img { height: 88px; }
  .site-header.is-scrolled .logo img { height: 72px; }
}

/* Phone: compact further */
@media (max-width: 520px) {
  .site-header .inner { padding: 8px 14px; }
  .site-header .logo img { height: 64px; }
  .site-header.is-scrolled .logo img { height: 56px; }
}

/* Hero with inline form variant */
.page-hero.hero-with-form { min-height: auto; padding-top: 0; padding-bottom: 0; }
.page-hero.hero-with-form .inner { padding: 80px 24px; }
.hero-split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
  width: 100%;
}
.hero-copy h1 { margin-top: 12px; }
.hero-form {
  background: #fff; border-radius: var(--r-lg);
  padding: 24px 28px; box-shadow: var(--shadow-3); color: var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
  max-width: 480px; justify-self: end; width: 100%;
}
.hero-form h3 { font: 800 22px var(--font-display); margin: 0; text-transform: none; }
.hero-form .field input,
.hero-form .field select,
.hero-form .field textarea { padding: 11px 13px; font-size: 16px; }
.hero-form .field textarea { min-height: 60px; }
.hero-form .form-submit { padding: 14px 18px; font-size: 15px; }
.hero-form .fine-print { font-size: 12px; }
.hero-form .field-check { font-size: 13px; }

@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-form { justify-self: stretch; max-width: none; }
}
@media (max-width: 600px) {
  .page-hero.hero-with-form .inner { padding: 56px 18px; }
  .hero-form { padding: 20px; border-radius: 12px; }
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 460px; display: flex; align-items: center;
}
.page-hero.large { min-height: 620px; }
@media (max-width: 960px) {
  .page-hero { min-height: 420px; }
  .page-hero.large { min-height: 520px; }
  .page-hero .inner { padding: 64px 20px; }
  .page-hero .scrim { background: linear-gradient(180deg, rgba(14,23,34,.55) 0%, rgba(14,23,34,.75) 100%); }
}
@media (max-width: 520px) {
  .page-hero { min-height: 380px; }
  .page-hero.large { min-height: 460px; }
  .page-hero .inner { padding: 48px 18px; }
  .page-hero h1 { font-size: clamp(34px, 8.5vw, 56px); margin: 10px 0 14px; }
  .page-hero .lead { font-size: 16px; margin-bottom: 22px; }
  .page-hero .ctas { flex-direction: column; align-items: stretch; }
  .page-hero .ctas .btn { justify-content: center; }
}
.page-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,23,34,.82) 0%, rgba(14,23,34,.6) 45%, rgba(14,23,34,.25) 100%);
}
.page-hero .inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 80px 24px; width: 100%;
}
.page-hero h1 {
  font: 900 clamp(40px, 6.5vw, 86px)/1.0 var(--font-display);
  letter-spacing: -.015em;
  margin: 12px 0 18px;
  color: #fff;
  max-width: 900px;
  text-transform: none;
}
.page-hero h1 .accent { color: #7DB7E8; }   /* lighter logo-blue */
.page-hero .lead {
  font: 500 clamp(18px, 1.6vw, 22px)/1.45 var(--font-body);
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 0 28px;
}
.page-hero .ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.page-hero .trust-row {
  margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font: 600 15px var(--font-body); color: rgba(255,255,255,.9);
}
.page-hero .trust-row .dot { width: 4px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.45); }

/* Breadcrumb above hero or section */
.breadcrumbs {
  font: 600 13px var(--font-body); letter-spacing: .02em;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--greaves-orange); }
.breadcrumbs .sep { margin: 0 8px; opacity: .55; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-bar .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.trust-bar .item { display: flex; gap: 14px; align-items: center; }
.trust-bar .item svg { width: 32px; height: 32px; color: var(--greaves-blue); flex: 0 0 32px; }
.trust-bar .big {
  font: 800 19px var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); line-height: 1;
}
.trust-bar .small { font: 500 14px var(--font-body); color: var(--ink-3); margin-top: 4px; }
@media (max-width: 760px) { .trust-bar .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 600px) {
  .trust-bar { padding: 20px 0; }
  .trust-bar .big { font-size: 16px; }
  .trust-bar .small { font-size: 13px; }
  .trust-bar .item svg { width: 26px; height: 26px; flex-basis: 26px; }
  .trust-bar .item { gap: 10px; }
}

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font: 900 clamp(28px, 4.6vw, 56px)/1.04 var(--font-display);
  letter-spacing: -.01em; color: var(--ink); margin: 8px 0 14px;
  text-transform: none;
}
.section-head .lead {
  font: 500 19px/1.5 var(--font-body); color: var(--ink-2); margin: 0;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 600px) {
  .section-head { margin-bottom: 32px; }
  .section-head .lead { font-size: 17px; }
}

/* ---------- Service / Feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid, .card-grid.five, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid.two, .card-grid.five, .card-grid.four { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
@media (max-width: 600px) { .card { padding: 22px; } }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--greaves-blue-3); color: var(--greaves-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.card .icon-wrap svg { width: 28px; height: 28px; }
.card.green .icon-wrap { background: var(--greaves-green-3); color: var(--greaves-green-1); }
.card.orange .icon-wrap { background: var(--greaves-orange-3); color: var(--greaves-orange-1); }
.card h3 {
  font: 800 22px var(--font-display); color: var(--ink);
  margin: 4px 0 0; letter-spacing: -.005em; text-transform: none;
}
.card p { font: 500 16px/1.55 var(--font-body); color: var(--ink-2); margin: 0; }
.card .tag {
  align-self: flex-start;
  font: 800 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 5px 11px; border-radius: 999px; background: var(--greaves-blue);
}
.card.green .tag { background: var(--greaves-green); }
.card.orange .tag { background: var(--greaves-orange); }
.card a.btn-link { margin-top: auto; padding-top: 4px; }

/* Photo card (service tile w/ image) */
.photo-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--ink); color: #fff; display: block;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.photo-card .img { aspect-ratio: 4/3; background-size: cover; background-position: center; transition: transform .5s var(--ease-out); }
.photo-card:hover .img { transform: scale(1.03); }
.photo-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(180deg, transparent, rgba(14,23,34,.85) 60%); }
.photo-card h3 { font: 800 24px var(--font-display); color: #fff; margin: 0 0 6px; text-transform: none; }
.photo-card .desc { font: 500 15px var(--font-body); color: rgba(255,255,255,.92); margin: 0; }

/* ---------- Lists ---------- */
ul.check-list, ul.bullet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.check-list li {
  display: flex; gap: 12px; font: 500 16px/1.5 var(--font-body); color: var(--ink);
}
ul.check-list li::before {
  content: ''; flex: 0 0 22px; height: 22px; margin-top: 1px;
  background-color: var(--greaves-green);
  -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='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/16px 16px no-repeat;
          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='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/16px 16px no-repeat;
  background-color: var(--greaves-green-3);
  border-radius: 999px;
  position: relative;
}
ul.check-list li::before {
  background-color: var(--greaves-green-3);
}
ul.check-list.tight li { gap: 10px; }

/* Inline check icon variant - simpler version */
ul.check-list { }
ul.check-list li { position: relative; padding-left: 32px; }
ul.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 999px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388A828' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px 14px no-repeat,
    var(--greaves-green-3);
  flex: none; margin-top: 0;
  -webkit-mask: none; mask: none;
}

ul.bullet-list li {
  font: 500 16px/1.55 var(--font-body); color: var(--ink-2);
  position: relative; padding-left: 22px;
}
ul.bullet-list li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--greaves-orange);
}

/* ---------- Process / Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 32px 28px; box-shadow: var(--shadow-1); position: relative;
}
.step .num {
  position: absolute; top: -18px; left: 28px;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--greaves-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 900 18px var(--font-display);
}
.step h3 { font: 800 22px var(--font-display); margin: 8px 0 8px; text-transform: none; }
.step p { font: 500 16px/1.5 var(--font-body); color: var(--ink-2); margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Two-column feature ---------- */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split .photo {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3);
  position: relative;
}
.split .photo img { width: 100%; display: block; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; } }

.split h2 {
  font: 900 clamp(30px, 4vw, 48px)/1.05 var(--font-display);
  letter-spacing: -.01em; margin: 8px 0 14px; text-transform: none;
}
.split p { font: 500 18px/1.6 var(--font-body); color: var(--ink-2); margin: 0 0 14px; }

/* ---------- Service Areas ---------- */
.area-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 24px;
  margin-top: 28px;
}
.area-grid a {
  font: 600 16px var(--font-body); color: var(--ink-2);
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.area-grid a:hover { color: var(--greaves-blue); border-bottom-color: var(--greaves-blue); }
.area-grid a.featured { color: var(--greaves-blue); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--greaves-blue);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(168,40,40,0) 0, transparent 50%),
    linear-gradient(135deg, var(--greaves-blue), var(--greaves-blue-1));
  color: #fff;
}
.cta-band .inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 600px) {
  .cta-band .inner { padding: 48px 18px; }
  .cta-band .meta { gap: 12px; }
}
.cta-band h2 {
  font: 900 clamp(32px, 4.6vw, 56px)/1.02 var(--font-display);
  color: #fff; text-transform: none; letter-spacing: -.01em; margin: 8px 0 14px;
}
.cta-band p { font: 500 19px/1.5 var(--font-body); color: rgba(255,255,255,.92); max-width: 540px; }
.cta-band .meta { display: flex; flex-direction: column; gap: 14px; font: 600 17px var(--font-body); }
.cta-band .meta a { color: #fff; text-decoration: none; }
.cta-band .meta a:hover { color: var(--greaves-orange-2); }
.cta-band .meta .label { font: 800 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--greaves-orange-2); display: block; margin-bottom: 4px; }

.cta-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 28px;
}
@media (max-width: 880px) { .cta-band .inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 24px; } }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-3); color: var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line);
}
@media (max-width: 600px) { .form-card { padding: 22px; border-radius: 12px; } }
.form-card h3 { font: 800 24px var(--font-display); margin: 0 0 4px; text-transform: none; }
.form-row { display: flex; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field label { font: 700 13px var(--font-body); color: var(--ink-2); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  font: 500 17px var(--font-body); padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; color: var(--ink); outline: none; background: #fff;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--greaves-blue); }
.field textarea { resize: vertical; min-height: 110px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font: 500 14px var(--font-body); color: var(--ink-2); line-height: 1.5; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }
.form-card .fine-print { font: 500 13px/1.5 var(--font-body); color: var(--ink-3); }
.form-submit {
  font: 800 16px var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 18px; background: var(--greaves-blue); color: #fff; border: 0;
  border-radius: 8px; cursor: pointer; margin-top: 4px;
}
.form-submit:hover { background: var(--greaves-blue-1); }
.form-submit:active { transform: translateY(1px); }
.form-success {
  display: none; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--greaves-green-3); border-radius: 12px; color: var(--ink);
  font: 600 16px var(--font-body); border: 1px solid var(--greaves-green-2);
}
.form-success.show { display: flex; }
@media (max-width: 600px) { .form-row { flex-direction: column; } }

/* ---------- Testimonial ---------- */
.quote-block {
  background: var(--surface-2); border-left: 4px solid var(--greaves-orange);
  padding: 24px 28px; border-radius: 0 12px 12px 0;
}
.quote-block .stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--greaves-orange); }
.quote-block .stars svg { width: 20px; height: 20px; fill: currentColor; }
.quote-block blockquote {
  margin: 0 0 14px; font: 600 19px/1.5 var(--font-body); color: var(--ink);
}
.quote-block .cite { font: 600 14px var(--font-body); color: var(--ink-3); }

.big-quote {
  text-align: center; max-width: 920px; margin: 0 auto;
}
.big-quote .stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 24px; color: var(--greaves-orange); }
.big-quote .stars svg { width: 28px; height: 28px; fill: currentColor; }
.big-quote blockquote {
  font: 700 clamp(24px, 3.2vw, 38px)/1.25 var(--font-display);
  color: var(--ink); margin: 0 0 28px; letter-spacing: -.005em;
}
.big-quote .who { font: 600 16px var(--font-body); color: var(--ink-3); }

/* ---------- Stats row ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 56px 24px; max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) { .stats { padding: 32px 18px; gap: 16px; } }
.stat .num {
  font: 900 clamp(38px, 5vw, 56px) var(--font-display);
  color: var(--greaves-blue); line-height: 1;
}
.stat .lbl {
  font: 600 14px var(--font-body); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 6px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
.faq details[open] summary { color: var(--greaves-blue); }
.faq summary {
  cursor: pointer; list-style: none;
  font: 700 19px var(--font-body); color: var(--ink);
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font: 400 28px var(--font-display); color: var(--greaves-blue);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding-top: 14px; font: 500 17px/1.6 var(--font-body); color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--greaves-blue); color: #fff; }
.site-footer .inner {
  max-width: 1200px; margin: 0 auto; padding: 64px 24px 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer .brand img { height: 96px; margin-bottom: 14px; }
.site-footer .brand p { font: 500 15px/1.55 var(--font-body); color: rgba(255,255,255,.85); margin: 0 0 14px; max-width: 320px; }
.site-footer .contact-line {
  display: flex; gap: 10px; align-items: center;
  font: 600 15px var(--font-body); color: #fff; padding: 4px 0;
  text-decoration: none;
}
.site-footer .contact-line:hover { color: var(--greaves-orange-2); }
.site-footer .contact-line svg { width: 18px; height: 18px; opacity: .85; }
.site-footer h4 {
  font: 800 13px var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--greaves-orange-2); margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { font: 500 15px var(--font-body); color: #fff; text-decoration: none; }
.site-footer ul a:hover { color: var(--greaves-orange-2); }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 16px; padding: 20px 24px; max-width: 1200px;
  margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 500 13px var(--font-body); color: rgba(255,255,255,.7);
}
.site-footer .bottom a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer .bottom a:hover { color: #fff; }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.site-footer .social a:hover { background: var(--greaves-orange); }
.site-footer .social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .site-footer .inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); color: var(--ink); }
.post-card .thumb {
  aspect-ratio: 16 / 9; background: var(--greaves-blue-3);
  background-size: cover; background-position: center;
}
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .topic {
  font: 800 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--greaves-orange-1);
}
.post-card h3 { font: 800 22px/1.2 var(--font-display); margin: 0; color: var(--ink); text-transform: none; }
.post-card p { font: 500 15px/1.5 var(--font-body); color: var(--ink-2); margin: 0; }
.post-card .more {
  font: 800 13px var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--greaves-blue); margin-top: auto; padding-top: 6px;
}

.blog-article {
  max-width: 760px; margin: 0 auto; padding: 24px 0 0;
}
.blog-article h2 { font: 900 32px var(--font-display); margin: 36px 0 14px; text-transform: none; }
.blog-article h3 { font: 800 24px var(--font-display); margin: 28px 0 10px; text-transform: none; }
.blog-article p { font: 500 19px/1.7 var(--font-body); color: var(--ink); margin: 0 0 18px; }
.blog-article ul { font: 500 18px/1.7 var(--font-body); color: var(--ink); padding-left: 24px; margin: 0 0 22px; }
.blog-article li { margin-bottom: 8px; }
.blog-article .meta { font: 600 14px var(--font-body); color: var(--ink-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Misc utilities ---------- */
.bg-soft { background: var(--surface-2); }
.bg-blue-soft { background: var(--greaves-blue-3); }
.bg-orange-soft { background: var(--greaves-orange-3); }
.bg-green-soft { background: var(--greaves-green-3); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 32px; }
.mb-6 { margin-bottom: 32px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }

/* Pill chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--greaves-blue-3); color: var(--greaves-blue);
  font: 700 13px var(--font-body); letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
}
.chip.green { background: var(--greaves-green-3); color: var(--greaves-green-1); }
.chip.orange { background: var(--greaves-orange-3); color: var(--greaves-orange-1); }

/* Accent rule */
.rule { height: 1px; background: var(--line); margin: 64px 0; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Inline svg icons inherit color */
.i { width: 24px; height: 24px; flex: 0 0 24px; }

/* Hero overlay variants */
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(248,152,72,.15) 0%, rgba(248,152,72,0) 60%),
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.04) 25%, transparent 25%);
  background-size: auto, 36px 36px, 36px 36px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
}
.gallery .tile {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: var(--greaves-blue-3);
  aspect-ratio: 1/1;
  cursor: zoom-in;
  transition: transform var(--dur-fast) var(--ease-out);
}
.gallery .tile.wide { grid-column: span 2; }
.gallery .tile.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery .tile.big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
.gallery .tile img,
.gallery .tile .img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background-size: cover; background-position: center;
  transition: transform .5s var(--ease-out);
}
.gallery .tile:hover img,
.gallery .tile:hover .img { transform: scale(1.05); }
.gallery .tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font: 700 13px var(--font-body); color: #fff;
  background: linear-gradient(180deg, transparent, rgba(14,23,34,.85) 70%);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
}
.gallery .tile:hover .caption { opacity: 1; }
/* Placeholder tiles before user uploads real photos */
.gallery .tile.placeholder {
  background:
    repeating-linear-gradient(45deg, var(--greaves-blue-3) 0 12px, #fff 12px 24px);
  cursor: default;
}
.gallery .tile.placeholder::after {
  content: 'Project photo'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 13px var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--greaves-blue);
  background: rgba(255,255,255,.85);
}
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .tile.big, .gallery .tile.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery .tile.big, .gallery .tile.wide, .gallery .tile.tall { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
}

/* Lightbox */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(14,23,34,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 32px;
}
.lb-overlay.show { display: flex; }
.lb-overlay img { max-width: 100%; max-height: 90vh; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.lb-overlay .lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.lb-overlay .lb-close:hover { background: rgba(255,255,255,.28); }
.lb-overlay .lb-prev, .lb-overlay .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.lb-overlay .lb-prev { left: 24px; }
.lb-overlay .lb-next { right: 24px; }
.lb-overlay .lb-prev:hover, .lb-overlay .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-overlay .lb-caption {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  font: 600 15px var(--font-body); color: #fff; opacity: .9;
}

/* ---------- Before/After slider ---------- */
.ba {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  aspect-ratio: 16/10; touch-action: pan-y; user-select: none;
  background: var(--ink);
  max-width: 100%;
}
.ba.portrait { aspect-ratio: 4/5; max-width: 720px; margin: 0 auto; }
.ba .ba-img { position: absolute; inset: 0; }
.ba .ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .ba-after  { clip-path: inset(0 0 0 50%); }
.ba .ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
  background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.4);
  cursor: ew-resize;
}
.ba .ba-handle::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 24px rgba(0,0,0,.4);
}
.ba .ba-handle::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 12px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12' fill='none' stroke='%23185898' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 2 1 6 5 10'/><polyline points='17 2 21 6 17 10'/></svg>") center/contain no-repeat;
}
.ba .ba-label {
  position: absolute; top: 14px;
  font: 800 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; padding: 6px 10px; border-radius: 999px;
  background: rgba(14,23,34,.6); backdrop-filter: blur(8px);
}
.ba .ba-label.before { left: 14px; }
.ba .ba-label.after  { right: 14px; background: var(--greaves-blue); }

@media (max-width: 700px) {
  .ba { aspect-ratio: 4/5; }
}

/* ============================================================
   Form gamification — for forms with data-gamify="true"
   Designed for 55+ readability: large indicators, slow transitions,
   high-contrast colors, no flashing.
   ============================================================ */
.gamify-header {
  background: var(--greaves-blue-3);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 4px 0 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.gamify-progress {
  height: 10px; background: rgba(24,88,152,0.18);
  border-radius: 999px; overflow: hidden; position: relative;
}
.gamify-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--greaves-blue-2), var(--greaves-green));
  border-radius: 999px;
  transition: width 350ms cubic-bezier(.2,.7,.2,1);
}
.gamify-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 600 13px var(--font-body); color: var(--ink-2);
}
.gamify-count strong { color: var(--greaves-blue); font-size: 15px; }
.gamify-microcopy {
  font-family: var(--font-accent); font-style: italic; font-weight: 500;
  color: var(--greaves-blue-1); font-size: 15px;
  transition: opacity 200ms var(--ease-out);
}

.gamify-field { position: relative; transition: transform 200ms var(--ease-out); }
.gamify-field input,
.gamify-field select,
.gamify-field textarea {
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), padding-right 180ms var(--ease-out);
}

/* Active state — clear visual focus for 55+ readers */
.gamify-field.is-active input,
.gamify-field.is-active select,
.gamify-field.is-active textarea {
  border-color: var(--greaves-blue);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(24,88,152,0.18);
  outline: none;
}
.gamify-step-badge {
  position: absolute; top: -10px; right: 8px;
  font: 700 11px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--greaves-blue); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  pointer-events: none;
}
.gamify-field.is-active .gamify-step-badge {
  opacity: 1; transform: translateY(0);
}

/* Completed state — green check on the right of the input */
.gamify-check {
  position: absolute; right: 12px;
  top: 50%; transform: translateY(-50%) scale(0.6);
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--greaves-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 220ms var(--ease-out), transform 220ms cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.gamify-check svg { width: 16px; height: 16px; }
/* The badge sits at the top, the check sits over the input — adjust top offset
   to align with the input row, not the label row */
.gamify-field.is-complete .gamify-check {
  opacity: 1;
  transform: translateY(calc(-50% + 12px)) scale(1);
}
.gamify-field.is-complete input,
.gamify-field.is-complete select,
.gamify-field.is-complete textarea {
  border-color: var(--greaves-green);
  padding-right: 44px;
}

/* Submit button — dim until ready, then glow */
.gamify-submit.is-dim {
  opacity: 0.6; filter: saturate(0.7);
  cursor: not-allowed;
}
.gamify-submit.is-ready {
  animation: gamify-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(248, 152, 72, 0.45);
}
@keyframes gamify-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(248, 152, 72, 0.45); }
  50%      { box-shadow: 0 8px 28px rgba(248, 152, 72, 0.65), 0 0 0 6px rgba(248, 152, 72, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .gamify-submit.is-ready { animation: none; }
  .gamify-progress-fill { transition: none; }
}

/* ============================================================
   Custom chat widget — text-first, brand-styled.
   ============================================================ */
#gc-chat { font-family: var(--font-body); }

/* Teaser callout — pops up ABOVE the chat bubble */
#gc-chat-teaser {
  position: fixed; right: 20px; bottom: 78px; z-index: 89;
  background: #fff; color: var(--ink);
  padding: 12px 36px 12px 16px;
  border-radius: 16px 16px 4px 16px;
  font: 600 14px var(--font-body);
  box-shadow: 0 12px 28px rgba(14,23,34,0.22), 0 2px 6px rgba(14,23,34,0.08);
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  max-width: 240px;
}
#gc-chat-teaser.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
#gc-chat-teaser.is-dismissed { display: none; }
#gc-chat-teaser:hover { background: var(--surface-2); }
/* Speech-bubble tail pointing DOWN toward the chat button */
#gc-chat-teaser::after {
  content: ''; position: absolute; right: 22px; bottom: -7px;
  width: 14px; height: 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
#gc-teaser-close {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(14,23,34,0.08); color: var(--ink-2);
  border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms var(--ease-out);
}
#gc-teaser-close:hover { background: rgba(14,23,34,0.18); color: var(--ink); }
#gc-teaser-close svg { width: 12px; height: 12px; }
.gc-teaser-text { display: inline-block; line-height: 1.3; padding-right: 4px; }

@media (max-width: 520px) {
  #gc-chat-teaser { right: 14px; bottom: 68px; font-size: 13px; max-width: 200px; padding: 10px 32px 10px 14px; }
  #gc-chat-teaser::after { right: 18px; }
}

#gc-chat-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--greaves-blue); color: #fff;
  padding: 14px 20px 14px 18px; border: 0; border-radius: 999px;
  font: 700 15px var(--font-body);
  box-shadow: 0 10px 28px rgba(24,88,152,0.4);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 180ms var(--ease-out);
}
#gc-chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(24,88,152,0.5); background: var(--greaves-blue-1); }
#gc-chat-bubble .gc-icon-chat,
#gc-chat-bubble .gc-icon-close { width: 22px; height: 22px; transition: opacity 180ms var(--ease-out); }
#gc-chat-bubble .gc-icon-close { display: none; }
#gc-chat-bubble.is-open .gc-icon-chat { display: none; }
#gc-chat-bubble.is-open .gc-icon-close { display: block; }
#gc-chat-bubble.is-open .gc-bubble-text { display: none; }
#gc-chat-bubble.is-open { padding: 14px; }

#gc-chat-bubble.gc-pulse::before {
  content: ''; position: absolute; inset: -6px; border-radius: 999px;
  border: 3px solid var(--greaves-blue);
  animation: gc-pulse 2.2s ease-out infinite;
}
@keyframes gc-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  #gc-chat-bubble.gc-pulse::before { animation: none; }
}

#gc-chat-panel[hidden] { display: none !important; }

#gc-chat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 90;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(14,23,34,0.25), 0 8px 20px rgba(14,23,34,0.12);
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  animation: gc-slide-in 220ms cubic-bezier(.2,.7,.2,1);
}
@keyframes gc-slide-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.gc-panel-head {
  background: var(--greaves-blue);
  color: #fff;
  padding: 16px 18px;
  display: flex; gap: 12px; align-items: center;
}
.gc-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; color: var(--greaves-blue);
  display: flex; align-items: center; justify-content: center;
  font: 900 18px var(--font-display);
  flex: 0 0 44px;
  overflow: hidden;
}
.gc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-title { font: 800 16px var(--font-display); line-height: 1.1; }
.gc-status {
  font: 500 13px var(--font-body); color: rgba(255,255,255,0.85);
  margin-top: 3px; display: flex; align-items: center; gap: 6px;
}
.gc-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #6FE08B; box-shadow: 0 0 0 2px rgba(111,224,139,0.3);
}

.gc-panel-body {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-2);
}

.gc-msg-bot, .gc-msg-user {
  max-width: 88%; display: flex;
}
.gc-msg-bot { align-self: flex-start; }
.gc-msg-user { align-self: flex-end; }
.gc-msg-text {
  padding: 11px 14px; font: 500 15px/1.4 var(--font-body);
  border-radius: 16px;
}
.gc-msg-bot .gc-msg-text {
  background: #fff; color: var(--ink);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(14,23,34,0.06);
}
.gc-msg-user .gc-msg-text {
  background: var(--greaves-blue); color: #fff;
  border-bottom-right-radius: 4px;
}
.gc-msg-text em { font-style: italic; color: var(--greaves-orange-1); }

.gc-chips {
  display: flex; flex-direction: column; gap: 8px;
  margin: 4px 0 4px;
}
.gc-chip {
  text-align: left;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--greaves-blue);
  border-radius: 14px;
  padding: 11px 14px;
  font: 600 14px var(--font-body);
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.gc-chip:hover {
  background: var(--greaves-blue); color: #fff;
}
.gc-chip:active { transform: scale(0.98); }

.gc-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px 0;
}
.gc-btn {
  font: 700 14px var(--font-body);
  padding: 11px 16px; border-radius: 999px;
  border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.gc-btn-primary {
  background: var(--greaves-orange); color: #fff;
  box-shadow: 0 6px 16px rgba(248,152,72,0.4);
}
.gc-btn-primary:hover { background: var(--greaves-orange-1); }
.gc-btn-primary:active { transform: translateY(1px); }
.gc-btn-ghost {
  background: transparent; color: var(--greaves-blue);
  border: 1.5px solid var(--greaves-blue);
}
.gc-btn-ghost:hover { background: var(--greaves-blue-3); }
.gc-btn-big { font-size: 15px; padding: 13px 18px; width: 100%; }

.gc-freeform {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line);
}
.gc-freeform textarea {
  font: 500 15px var(--font-body); padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  resize: vertical; outline: none; color: var(--ink);
  font-family: var(--font-body);
}
.gc-freeform textarea:focus { border-color: var(--greaves-blue); }

.gc-leadform {
  background: #fff; padding: 14px; border-radius: 12px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.gc-leadform label {
  display: flex; flex-direction: column; gap: 4px;
  font: 700 12px var(--font-body); color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.gc-leadform .gc-req { color: var(--greaves-orange-1); font-weight: 800; }
.gc-leadform .gc-opt { color: var(--ink-4); font-weight: 600; text-transform: none; letter-spacing: 0; }
.gc-leadform input {
  font: 500 15px var(--font-body); padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  outline: none; color: var(--ink); text-transform: none;
}
.gc-leadform input:focus { border-color: var(--greaves-blue); }
.gc-fineprint { font: 500 12px var(--font-body); color: var(--ink-3); }

.gc-panel-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.gc-panel-foot a {
  font: 700 13px var(--font-body); color: var(--greaves-blue);
  text-decoration: none;
}
.gc-panel-foot a:hover { color: var(--greaves-blue-1); text-decoration: underline; }

@media (max-width: 520px) {
  #gc-chat-panel {
    right: 8px; left: 8px; bottom: 84px;
    width: auto; max-width: none;
    height: calc(100vh - 100px);
  }
  #gc-chat-bubble { right: 14px; bottom: 14px; padding: 12px 16px; }
  #gc-chat-bubble .gc-bubble-text { display: none; }
}

/* Skip-to-main for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--greaves-blue); color: #fff; padding: 8px 12px;
  border-radius: 4px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Neighborhood grid (city pages) ---------- */
.neighborhood-grid {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}
.neighborhood-grid li {
  position: relative;
  padding: 14px 18px 14px 42px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: 600 17px var(--font-body);
  color: var(--ink);
}
.neighborhood-grid li::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  background: var(--greaves-blue);
  -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.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
          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.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
}
@media (max-width: 900px) { .neighborhood-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .neighborhood-grid { grid-template-columns: 1fr; gap: 10px; } }

/* City service cards (no icon, just text) */
.card-grid a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.card-grid a.card .link-arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.card-grid a.card:hover .link-arrow { transform: translateX(4px); }


/* ============================================================
   Mobile fixes — 2026-05-21
   - Prevent horizontal page overflow
   - Stack .cta-band on mobile
   - Fix inline 2-col grids on contact/careers
   - Form polish: 16px inputs, larger tap targets
   - Back-to-top button
   ============================================================ */

html, body { overflow-x: hidden; max-width: 100%; }
img, video { max-width: 100%; height: auto; }

/* CTA band — stack on mobile so content doesn't overflow */
@media (max-width: 900px) {
  .cta-band .inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 20px;
  }
  .cta-band .cta-card { width: 100%; box-sizing: border-box; }
  .cta-band p { max-width: 100%; }
}
@media (max-width: 520px) {
  .cta-band .inner { padding: 44px 18px; gap: 28px; }
  .cta-band .meta { font-size: 16px; }
  .cta-band h2 { font-size: clamp(28px, 8vw, 40px); }
  .cta-band p { font-size: 17px; }
}

/* Reusable 2-col content+form layout that collapses cleanly on mobile */
.contact-grid,
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid, .apply-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Form polish — applies everywhere */
.form-card .field input,
.form-card .field select,
.form-card .field textarea {
  font-size: 16px;   /* prevents iOS zoom on focus */
  min-height: 48px;  /* tap target floor */
}
.form-card .field textarea { min-height: 96px; }
.form-card .form-submit {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}

@media (max-width: 520px) {
  .form-card { padding: 22px 18px; border-radius: 14px; }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .form-card h3 { font-size: 22px; }
  .form-card .field input,
  .form-card .field select,
  .form-card .field textarea {
    padding: 14px 14px;
    min-height: 52px;
  }
  .form-card .form-submit { min-height: 56px; }
  .form-card label { font-size: 15px; }
  .form-card .field-check { font-size: 14px; line-height: 1.5; }
  .form-card .fine-print { font-size: 13px; }
}

/* Hero with inline form (contact page) — make form clearly the primary action */
.page-hero.hero-with-form {
  min-height: auto;
  padding: 0;
  display: block;
}
.page-hero.hero-with-form .inner {
  padding: 64px 24px 72px;
}
@media (max-width: 880px) {
  .page-hero.hero-with-form .inner { padding: 44px 18px 56px; }
}
.hero-form {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 8px 18px rgba(0,0,0,.16);
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 520px) {
  .hero-form { padding: 22px 18px; border-radius: 14px; }
  .hero-form h3 { font-size: 22px; }
}

/* Hero-form heading should be bold but compact */
.hero-form h3 { font: 800 24px var(--font-display); margin: 0 0 4px; text-transform: none; color: var(--ink); }

/* On contact page, hero adapts to be tighter than service heroes */
.page-hero.contact-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .page-hero.contact-hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .page-hero.contact-hero .lead { font-size: 16px; margin-bottom: 18px; }
}

/* "Or reach us another way" strip — replaces big contact-info section */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 0;
}
.contact-strip .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-strip .item .icon-wrap {
  margin: 0;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}
.contact-strip .item .label {
  font: 800 12px var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.contact-strip .item .val {
  font: 700 18px var(--font-body);
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.contact-strip .item .sub {
  font: 500 13px var(--font-body);
  color: var(--ink-3);
  margin-top: 2px;
}
@media (max-width: 880px) {
  .contact-strip { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
}

/* Back-to-top floating button */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--greaves-blue);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(24,88,152,.40), 0 2px 6px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease-out, transform .18s ease-out, visibility .18s;
  z-index: 40;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--greaves-blue-1); }
.back-to-top:active { transform: translateY(1px); }
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 520px) {
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  /* Chat widget bubble likely sits bottom-right too — nudge back-to-top up so they don't stack on the same spot. */
  body.has-chat-widget .back-to-top { bottom: 80px; }
}

/* Hero CTA "scroll to form" anchor button styling */
.hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-scroll-cta .arrow {
  display: inline-block;
  transition: transform .15s ease-out;
}
.hero-scroll-cta:hover .arrow { transform: translateY(2px); }

/* "Proudly serving the Triangle" callout on contact page — keep it well inside */
.bg-blue-soft {
  background: var(--greaves-blue-3);
  border-left: 4px solid var(--greaves-blue);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0;
  box-sizing: border-box;
}
@media (max-width: 520px) {
  .bg-blue-soft { padding: 16px 18px; }
}


/* ============================================================
   Mobile fixes part 2 — long-string overflow + email wrapping
   ============================================================ */

.cta-band .meta a,
.cta-band .meta span,
.contact-strip .val,
.contact-strip .item a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .cta-band .meta { font-size: 16px; }
  .cta-band .meta a[href^="mailto:"] { font-size: 15px; }
  .cta-band .cta-card { padding: 20px 18px; }
}

.cta-card, .form-card { min-width: 0; }


/* ============================================================
   Mobile fixes part 3 — force CTA band content to fit
   ============================================================ */
.cta-band h2,
.cta-band p,
.cta-band .meta,
.cta-band .cta-card {
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}
.cta-band .inner > * { min-width: 0; max-width: 100%; }

@media (max-width: 600px) {
  .cta-band h2 {
    font-size: clamp(24px, 6.8vw, 30px) !important;
    line-height: 1.1;
    letter-spacing: -.005em;
  }
  .cta-band p { font-size: 16px; line-height: 1.5; }
  .cta-band .meta { font-size: 15px; }
  .cta-band .meta a { font-size: 15px; }
  .cta-band .meta a[href^="mailto:"] { font-size: 14px; }
  .cta-band .ctas .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .cta-band .flex { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Bathroom carousel (revised — robust sizing)
   ============================================================ */
.bathroom-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: #0a0f15;
  /* Old aspect-ratio approach fights global img rules. Use a
     classic padding-bottom % trick which has bulletproof browser
     behavior and forces a stable height regardless of contents. */
  padding-top: 75%; /* 4:3 */
  height: 0;
}
.bathroom-carousel .bc-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,.0,.2,1);
  will-change: transform;
}
.bathroom-carousel .bc-track img {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
  min-width: 0;
  min-height: 0;
}
.bathroom-carousel .bc-prev,
.bathroom-carousel .bc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: 700 22px var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: background .15s, transform .15s;
  z-index: 2;
}
.bathroom-carousel .bc-prev { left: 14px; }
.bathroom-carousel .bc-next { right: 14px; }
.bathroom-carousel .bc-prev:hover,
.bathroom-carousel .bc-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.bathroom-carousel .bc-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.bathroom-carousel .bc-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.bathroom-carousel .bc-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}
.bathroom-carousel .bc-dot:hover { background: rgba(255,255,255,.85); }

@media (max-width: 600px) {
  .bathroom-carousel .bc-prev,
  .bathroom-carousel .bc-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .bathroom-carousel .bc-prev { left: 10px; }
  .bathroom-carousel .bc-next { right: 10px; }
}
