/* Effra Pumps — site styles */
:root {
  --color-background: #f3f1ec;
  --color-surface: #ffffff;
  --color-ink: #13202a;
  --color-muted: #4a5863;
  --color-line: #d6d2c8;
  --color-primary: #0d4f57;
  --color-primary-ink: #ffffff;
  --color-deep: #0b2a33;
  --color-alert: #c2410c;
  --color-alert-ink: #ffffff;
  --color-destructive: #b42318;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-control: var(--radius-md);
  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-alert);
  outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* Placeholder marker — delete this rule (and the .draft-note) once real copy is in */
.ph {
  color: #2b2400;
  background: #fff3a6;
  box-shadow: 0 0 0 2px #fff3a6;
  border-bottom: 2px dashed #b08900;
}
.draft-note {
  background: #fff3a6;
  color: #3d3200;
  font-size: 0.9rem;
  padding: 6px var(--gutter);
  text-align: center;
}

/* Emergency bar */
.emergency {
  background: var(--color-alert);
  color: var(--color-alert-ink);
  font-weight: 600;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.emergency a { color: inherit; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }

/* Header */
.site-header {
  background: var(--color-deep);
  color: #fff;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.nav a { color: #dfe9ea; text-decoration: none; font-weight: 600; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--color-alert); }
.nav a.nav-cta {
  background: #fff;
  color: var(--color-deep);
  padding: 8px 16px;
  border-radius: var(--radius-control);
  box-shadow: none;
}
.nav a.nav-cta:hover { background: #ffe2d3; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-control);
  padding: 13px 26px;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--color-primary); color: var(--color-primary-ink); }
.btn-primary:hover { background: #0a3d43; }
.btn-alert { background: var(--color-alert); color: var(--color-alert-ink); }
.btn-alert:hover { background: #a23509; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(11,42,51,0.97) 0%, rgba(13,79,87,0.92) 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.04) 46px 48px);
  color: #fff;
  padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.hero .kicker { color: #ffb38a; }
.hero p.lead { font-size: 1.25rem; max-width: 40ch; color: #e3ecee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel {
  border-left: 4px solid var(--color-alert);
  padding: 4px 0 4px 24px;
}
.hero-panel dl { margin: 0; display: grid; gap: 14px; }
.hero-panel dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a9c3c6; }
.hero-panel dd { margin: 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.hero-panel dd a { color: #fff; }

.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--color-alert);
}

/* Page head (inner pages) */
.page-head {
  background: var(--color-deep);
  color: #fff;
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(32px, 5vw, 56px);
}
.page-head .kicker { color: #ffb38a; }
.page-head p { font-size: 1.2rem; max-width: 60ch; color: #dbe7e9; margin: 0; }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) var(--gutter); }
.section.alt { background: var(--color-surface); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.section-intro { max-width: 62ch; margin-bottom: 36px; color: var(--color-muted); font-size: 1.1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 2px solid var(--color-ink);
}
.card {
  display: block;
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--color-line);
  color: inherit;
  text-decoration: none;
}
.grid .card { padding-right: 28px; }
a.card:hover h3 { color: var(--color-primary); text-decoration: underline; }
.card svg { width: 40px; height: 40px; color: var(--color-primary); margin-bottom: 18px; }
.card p { color: var(--color-muted); margin: 0; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--color-primary); }

/* Service detail blocks */
.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 20px;
}
.service:first-of-type { border-top: 2px solid var(--color-ink); }
.service svg { width: 48px; height: 48px; color: var(--color-primary); }
.service ul { margin: 0; padding-left: 1.2em; color: var(--color-muted); }
.service li { margin-bottom: 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; counter-reset: step; }
.steps li { list-style: none; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--color-alert);
  line-height: 1;
  margin-bottom: 10px;
}
.steps { padding: 0; margin: 0; }

/* Areas */
.areas {
  columns: 3 200px;
  column-gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 2px solid var(--color-ink);
}
.areas li { padding: 12px 0; border-bottom: 1px solid var(--color-line); break-inside: avoid; font-weight: 600; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--color-ink); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--color-line); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--color-muted); }

/* Call band */
.call-band {
  background: var(--color-alert);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.call-band h2 { margin: 0 0 6px; }
.call-band p { margin: 0; font-size: 1.15rem; }
.call-band .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; text-decoration: none; white-space: nowrap; }
.call-band .big:hover { text-decoration: underline; }

/* Quote page */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.aside-box { border-top: 4px solid var(--color-alert); background: var(--color-surface); padding: 24px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.aside-box h2 { font-size: 1.5rem; }
.aside-box .big { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--color-alert); text-decoration: none; }

.wix-form { display: grid; gap: 22px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field .req { color: var(--color-alert); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="number"], .field input[type="date"], .field input[type="time"], .field input[type="datetime-local"],
.field input[type="password"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 2px solid #b9b4a8;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-muted); }
.field [aria-invalid="true"] { border-color: var(--color-destructive); }
.field .choice { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 400; margin: 0; cursor: pointer; }
.field .choice input { width: 20px; height: 20px; accent-color: var(--color-primary); margin: 0; }
.field .help { color: var(--color-muted); font-size: 0.95rem; margin: 6px 0 0; }
.field .error, .form-error { color: var(--color-destructive); font-weight: 600; font-size: 0.95rem; margin: 6px 0 0; }
.form-error:empty, .field .error:empty { display: none; }
.form-status { color: var(--color-muted); }
.thanks { border-left: 4px solid var(--color-primary); background: var(--color-surface); padding: 24px; }
.thanks p:last-child { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.site-footer {
  background: var(--color-deep);
  color: #c9d8da;
  padding: 48px var(--gutter) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  font-size: 0.98rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }

/* Mobile call button */
.call-fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: none;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero, .split, .quote-layout { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .nav { gap: 2px 16px; }
  .call-fab { display: block; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .service { grid-template-columns: 1fr; }
  .grid .card { padding-right: 0; }
}