/* ==========================================================================
   Elevator Certification Solutions — site styles
   --------------------------------------------------------------------------
   Brand colours live in :root below. Change them there and they update
   everywhere. Sections are in the same order as the page.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google dependency) ---------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand (from the ECS logo) */
  --white: #ffffff;
  --gray: #565454;        /* primary text, headings */
  --green: #26cc44;       /* accent: buttons, check marks */
  --black: #000000;       /* secondary accent */

  /* Supporting neutrals and states */
  --green-hover: #20b83b;
  --green-tint: #e9f8ec;
  --surface: #f4f4f3;
  --line: #e2e1e1;
  --muted: #6f6d6d;       /* passes WCAG AA on white */
  --field-border: #858383;
  --error: #b3261e;

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --section-space: clamp(64px, 9vw, 120px);
  --radius-sm: 4px;
  --radius: 10px;

  /* Reusable check mark: green disc, black tick (same mark as the logo idea) */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Ccircle r='11' fill='%2326cc44'/%3E%3Cpath d='M-5 .5-1.5 4 5.5-4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px: comfortable for every reader */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gray);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.625rem); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.55rem + 1.5vw, 2.75rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  max-width: 38em;
}

a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
[hidden] { display: none !important; }  /* the hidden attribute always wins */
a[href^="tel:"] { white-space: nowrap; } /* keep phone numbers on one line */
a:hover { text-decoration-color: var(--black); }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--green); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 20px; height: 20px; }

/* Black text on green: white text on this green fails contrast checks */
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: var(--green-hover); color: var(--black); }

.btn-secondary { background: var(--white); color: var(--gray); border-color: var(--gray); }
.btn-secondary:hover { color: var(--black); border-color: var(--black); }

.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand { flex: none; display: block; }
.brand img { width: auto; height: 44px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--gray);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--black); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; text-decoration-color: var(--green); }
.header-phone .icon { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Collapse the menu before it gets crowded */
@media (max-width: 1119px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -20px rgba(0, 0, 0, .5);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: 14px 0; font-size: 1.1875rem; border-radius: 0; }
  .site-nav a:hover { background: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 719px) {
  :root { --header-h: 64px; }
  .brand img { height: 30px; }
  .header-actions { gap: 8px; }
  .header-cta { display: none; }
  .header-phone {
    justify-content: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
  }
  .header-phone-text { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--black); color: #d9d8d8; }
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark a { color: var(--white); }
.section--rule { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 + .lead,
.section-head h2 + p { margin-top: 16px; }

.section-foot { margin-top: 32px; }

/* ---------- Check-mark lists ---------- */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 22px; height: 22px;
  background: var(--check) center / contain no-repeat;
}
.check-list--compact li { padding-left: 28px; margin-bottom: 6px; font-size: 1.0625rem; }
.check-list--compact li::before { width: 18px; height: 18px; top: .25em; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 { max-width: 12.5em; }
.hero-copy .lead { margin-top: 24px; }
.hero-copy .button-row { margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 1rem; }

.hero-figure { margin: 0; }
.hero-figure > img { width: 100%; border-radius: var(--radius); }
.drawing-panel {
  padding: clamp(8px, 1.4vw, 18px);
  background-color: var(--white);
  background-image:
    linear-gradient(#efefee 1px, transparent 1px),
    linear-gradient(90deg, #efefee 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .9375rem;
}

/* Drawing parts (the SVG is inline, so these styles reach inside it) */
.hero-drawing { display: block; width: 100%; height: auto; }
.hd-leader { stroke: var(--gray); stroke-width: 1; }
.hd-label { font-family: var(--font-body); font-size: 16px; font-weight: 600; fill: var(--gray); }
.hd-mark circle { fill: var(--green); stroke: var(--white); stroke-width: 2; }
.hd-mark path { fill: none; stroke: var(--black); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* The page's one animation: inspection checks appear top to bottom, once */
.hd-check { animation: hd-fade .4s ease-out both; animation-delay: calc(.45s + var(--i) * .15s); }
.hd-mark circle,
.hd-mark path {
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-pop .45s cubic-bezier(.2, .8, .3, 1.2) both;
  animation-delay: calc(.45s + var(--i) * .15s);
}
@keyframes hd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hd-pop { from { transform: scale(.2); } to { transform: scale(1); } }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 620px; }
}
@media (max-width: 599px) {
  /* Phones: labels would be too small to read, so show the checks only */
  .hd-leader, .hd-label { display: none; }
  .hd-mark circle, .hd-mark path { scale: 1.7; }
  .hero-figure figcaption { font-size: .9375rem; }
  .hero-copy .button-row .btn { flex: 1 1 100%; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0;
  list-style: none;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  color: var(--gray);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.trust-list li:first-child { padding-left: 0; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list .icon { width: 32px; height: 32px; stroke-width: 1.5; color: var(--black); }

@media (max-width: 959px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { padding: 20px 16px; }
  .trust-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 479px) {
  .trust-list li { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 1rem; }
}

/* ---------- Services ---------- */
.service-list { border-bottom: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px;
  padding-block: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
.service h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); max-width: 16em; }
.service-body > p:first-child { max-width: 36em; }
.when-title {
  margin: 20px 0 8px;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 859px) {
  .service { grid-template-columns: 1fr; }
}

/* ---------- Why choose ECS (dark band) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 88px);
}
.why-intro .lead { margin-top: 20px; }
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  margin: 0; padding: 0;
  list-style: none;
}
.why-list li { padding-top: 44px; background: var(--check) left top / 28px 28px no-repeat; }
.why-list h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-list p { font-size: 1.0625rem; }

@media (max-width: 959px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .why-list { grid-template-columns: 1fr; gap: 28px; }
  .why-list li { padding: 2px 0 0 42px; background-position: left 2px; }
}

/* ---------- About / team ---------- */
.about-body { max-width: 46em; }
.about-body > p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--gray); }
/* Placeholder notice (used by the hidden testimonials section) */
.placeholder-flag,
.placeholder-note {
  display: inline-block;
  padding: 4px 10px;
  background: var(--white);
  color: var(--gray);
  border: 1.5px dashed var(--gray);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Credentials: cards under the about copy, matching the check-mark language used elsewhere */
.creds-block { margin-top: clamp(40px, 5vw, 56px); }
.creds-block h3 { margin-bottom: 24px; }
.creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.creds li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.creds .icon { grid-row: 1 / span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--green); }
.cred-name { color: var(--black); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.cred-note { color: var(--gray); font-size: 1rem; }
@media (max-width: 1023px) {
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  .creds { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.quote {
  margin: 0;
  padding-top: 24px;
  border-top: 2px solid var(--gray);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.35;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: 16px; color: var(--muted); font-weight: 600; }

@media (max-width: 859px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: center;
}
.area-copy .lead { margin-top: 16px; }
.county-list { margin: 28px 0; }
.county-list li { margin-bottom: 14px; font-size: 1.1875rem; }
.county-list strong { color: var(--black); font-weight: 600; }

.area-figure { justify-self: center; width: 100%; max-width: 560px; }
.area-map { display: block; width: 100%; height: auto; }
.am-context path { fill: var(--white); stroke: #d6d5d5; stroke-width: 1; }
.am-served path { fill: var(--green-tint); stroke: var(--gray); stroke-width: 1.25; stroke-linejoin: round; }
.am-label text { font-family: var(--font-display); font-weight: 600; font-size: 16px; fill: var(--black);
  paint-order: stroke; stroke: var(--green-tint); stroke-width: 4px; stroke-linejoin: round; }
.am-note { font-family: var(--font-body); font-weight: 600; font-size: 13px; fill: var(--gray);
  paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.am-mark circle { fill: var(--green); stroke: var(--white); stroke-width: 2; }
.am-mark path { fill: none; stroke: var(--black); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) {
  .am-label text { font-size: 19px; }
  .am-note { font-size: 16px; }
}

@media (max-width: 859px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-figure { justify-self: start; max-width: 420px; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq-intro p { margin-top: 16px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 16px; height: 2px;
  background: var(--gray);
  transition: transform .2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--gray); }
.faq-answer { padding: 0 48px 24px 0; max-width: 42em; }

@media (max-width: 859px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info .lead { margin-top: 16px; }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  text-decoration: none;
}
.contact-phone .icon { width: 30px; height: 30px; }
.contact-phone:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }

.contact-details { margin: 28px 0 0; }
.contact-details > div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.contact-details dt {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  color: var(--black);
  font-weight: 600;
}
.contact-details dt .icon { width: 18px; height: 18px; }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 519px) {
  .contact-details > div { grid-template-columns: 1fr; gap: 2px; }  /* label above value on phones */
}

.form-card {
  padding: clamp(22px, 3.2vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { color: var(--black); font-weight: 600; font-size: 1rem; }
.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 1.0625rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23565454' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a8888; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(38, 204, 68, .5);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: .9375rem; font-weight: 600; }

.honeypot { position: absolute; left: -9999px; }

.form-status:empty { display: none; }
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.is-error { background: #fbeceb; color: var(--error); }
.form-alt { color: var(--muted); font-size: 1rem; }

.form-success { padding: 24px 0; outline: none; }
.form-success h3 { margin: 16px 0 8px; font-size: 1.625rem; }
.success-mark { width: 52px; height: 52px; }
.success-mark circle { fill: var(--green); }
.success-mark path { fill: none; stroke: var(--black); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 959px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--gray); color: #e9e8e8; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: 40px;
  padding-block: 64px 48px;
}
.footer-brand img { width: 250px; margin-bottom: 18px; }
.footer-brand p { max-width: 24em; }
.footer-title {
  margin: 0 0 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}
.footer-title:not(:first-child) { margin-top: 28px; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-bottom { padding-bottom: 20px; font-size: .9375rem; }
.footer-bottom p { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); }

@media (max-width: 959px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 519px) {
  .footer-grid { grid-template-columns: 1fr; padding-block: 48px 32px; }
}

/* ---------- Phone action bar ---------- */
.action-bar { display: none; }

@media (max-width: 719px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px -16px rgba(0, 0, 0, .5);
    transition: transform .25s ease;
  }
  .action-bar .btn { min-height: 52px; padding-inline: 12px; }
  .action-bar.is-hidden { transform: translateY(110%); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .hd-check, .hd-mark circle, .hd-mark path { animation: none; }
}
