/* ==========================================================================
   Meridian Electric Co. — single shared stylesheet, mobile-first
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #3d3a35;
  --paper: #f5f1ea;
  --paper-deep: #ece6db;
  --white: #fdfcf9;
  --accent: #d98e32;
  --accent-deep: #9a5f15;
  --hairline: rgba(20, 20, 20, 0.14);
  --hairline-light: rgba(245, 241, 234, 0.18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --size-hero: clamp(2.5rem, 6.5vw + 0.5rem, 4.75rem);
  --size-h2: clamp(1.75rem, 3.2vw + 0.5rem, 2.75rem);
  --size-h3: clamp(1.2rem, 1.2vw + 0.8rem, 1.5rem);

  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --container: 72rem;
  --header-h: 4.5rem;
}

/* Reset & base ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--size-hero); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

a { color: inherit; }

ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

::selection { background: var(--accent); color: var(--ink); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Type helpers ------------------------------------------------------------ */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-dark .eyebrow,
.hero .eyebrow,
.cta-band .eyebrow { color: var(--accent); }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn { cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Icons — consistent 24x24 stroke set (Feather/Lucide style) */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(217, 142, 50, 0.14);
  color: var(--accent-deep);
}
.section-dark .card-icon {
  background: rgba(217, 142, 50, 0.12);
  color: var(--accent);
}

/* Grain overlay for dark sections — atmosphere without images */
.hero, .page-hero, .section-dark, .cta-band, .site-footer {
  position: relative;
}
.hero::before, .page-hero::before, .section-dark::before,
.cta-band::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.hero .container, .page-hero .container, .section-dark .container,
.cta-band .container, .site-footer .container,
.hero .trust-strip {
  position: relative;
  z-index: 1;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover { background: #e39c45; }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  border: 1px solid var(--hairline-light);
  color: var(--paper);
  background: transparent;
}
.btn-ghost-light:hover { border-color: var(--paper); }

.hero .btn-ghost {
  border-color: var(--hairline-light);
  color: var(--paper);
}
.hero .btn-ghost:hover { border-color: var(--paper); }

.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-light);
  color: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 400;
  color: var(--accent);
}

/* Mobile nav (default) */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-light);
  padding: 1.5rem 1.25rem 2rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}
.site-nav.is-open { display: flex; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--hairline-light);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); }

.nav-cta { align-self: flex-start; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Desktop nav */
@media (min-width: 52rem) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: none;
    border: 0;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-link {
    padding: 0.25rem 0;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
  }
  .nav-link[aria-current="page"] { border-bottom-color: var(--accent); }

  .nav-cta { align-self: auto; }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(217, 142, 50, 0.16), transparent 60%),
    linear-gradient(180deg, #181818 0%, var(--ink) 100%);
  color: var(--paper);
  overflow: hidden;
}

/* Two-column hero: text left, floating UI cluster right */
.hero-grid {
  display: grid;
  gap: 4.5rem;
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}

/* Floating UI card cluster */
.hero-ui {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin: 1.5rem auto 3.5rem;
}
@media (min-width: 64rem) {
  .hero-ui { margin: 0 0 0 auto; }
}
.hero-ui.reveal { transition-delay: 0.5s; }

.ui-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.75);
}

.ui-quote {
  position: relative;
  padding: 1.6rem;
  transform: rotate(-2deg);
  animation: float-a 7s ease-in-out infinite alternate;
}
.ui-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.ui-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
}
.ui-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ui-input {
  font-size: 0.9rem;
  font-weight: 500;
}
.ui-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ui-review {
  position: absolute;
  left: -0.75rem;
  bottom: -2.9rem;
  width: 14.5rem;
  padding: 1rem 1.2rem;
  transform: rotate(2deg);
  animation: float-b 8s ease-in-out infinite alternate;
}
@media (min-width: 64rem) {
  .ui-review { left: -3rem; }
}
.ui-stars {
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}
.ui-star {
  width: 0.85rem;
  height: 0.85rem;
  fill: var(--accent);
}
.ui-review-quote {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.ui-review-name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ui-status {
  position: absolute;
  top: -1.4rem;
  right: -0.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  animation: float-c 6s ease-in-out infinite alternate;
}
@media (min-width: 64rem) {
  .ui-status { right: -1.75rem; }
}
.ui-status-text {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.ui-status-text strong {
  font-size: 0.78rem;
  color: var(--ink);
}
.ui-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes float-a {
  to { transform: rotate(-2deg) translateY(-9px); }
}
@keyframes float-b {
  to { transform: rotate(2deg) translateY(7px); }
}
@keyframes float-c {
  to { transform: translateY(-6px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 142, 50, 0.55); }
  100% { box-shadow: 0 0 0 11px rgba(217, 142, 50, 0); }
}

/* Staggered load reveal inside heroes */
.hero-inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.17s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.29s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.41s; }
.page-hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.page-hero .reveal:nth-child(2) { transition-delay: 0.17s; }
.page-hero .reveal:nth-child(3) { transition-delay: 0.29s; }

.hero-inner {
  max-width: 54rem;
}

.hero-title { margin: 1.25rem 0 1.5rem; }

.hero-sub {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  color: rgba(245, 241, 234, 0.78);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.trust-strip {
  border-top: 1px solid var(--hairline-light);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding: 1.1rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.65);
}

/* Page hero (inner pages) ---------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(50rem 24rem at 90% -20%, rgba(217, 142, 50, 0.14), transparent 60%),
    linear-gradient(180deg, #181818 0%, var(--ink) 100%);
  color: var(--paper);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.page-hero h1 { margin: 1.1rem 0 1.25rem; max-width: 46rem; }

.page-hero-sub {
  font-size: clamp(1rem, 0.8vw + 0.85rem, 1.15rem);
  color: rgba(245, 241, 234, 0.75);
  max-width: 38rem;
}

/* Sections ------------------------------------------------------------------- */

.section { padding: var(--space-section) 0; }

.section-light { background: var(--paper); }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-top: 1rem; }

.section-head-split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-head-split > div { max-width: 40rem; }

/* Card grids ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}
.section-dark .card-index { color: var(--accent); }

.value-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card .card-index {
  position: absolute;
  top: 0.4rem;
  right: 1.1rem;
  font-size: 4.5rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 0.07;
  line-height: 1;
}
.value-card .card-icon { margin-bottom: 0.4rem; }
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(20, 20, 20, 0.35);
}
.value-card h3 { margin: 0.9rem 0 0.75rem; }
.value-card p { color: var(--ink-soft); font-size: 0.95rem; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  padding: 1.9rem 1.6rem;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(217, 142, 50, 0.06);
}
.service-card p {
  color: rgba(245, 241, 234, 0.7);
  font-size: 0.92rem;
  flex-grow: 1;
}
.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-link::after {
  content: " \2192";
}

/* Testimonial & stats ----------------------------------------------------------- */

.testimonial {
  max-width: 46rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw + 0.8rem, 2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.testimonial figcaption {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.stats-row {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
@media (min-width: 40rem) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw + 0.8rem, 2.9rem);
  font-weight: 500;
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* CTA band ------------------------------------------------------------------------ */

.cta-band {
  background:
    radial-gradient(46rem 22rem at 15% 120%, rgba(217, 142, 50, 0.18), transparent 60%),
    var(--ink);
  color: var(--paper);
  padding: var(--space-section) 0;
  text-align: center;
}
.cta-inner { max-width: 40rem; }
.cta-inner p {
  margin: 1.25rem 0 2.25rem;
  color: rgba(245, 241, 234, 0.75);
}

/* Services page --------------------------------------------------------------------- */

.service-list {
  display: grid;
  gap: 1.5rem;
}

.service-block {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 3rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.service-block-head { margin-bottom: 1.25rem; }
.service-block-head .card-icon { display: grid; margin-bottom: 1rem; }
.service-block-head h2 {
  font-size: clamp(1.4rem, 1.6vw + 0.9rem, 1.9rem);
  margin-top: 0.5rem;
}

.service-block-body p {
  color: var(--ink-soft);
  max-width: 46rem;
  margin-bottom: 1.25rem;
}

.check-list {
  display: grid;
  gap: 0.6rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent-deep);
}

@media (min-width: 56rem) {
  .service-block {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
  }
  .service-block-head { margin-bottom: 0; }
}

/* Process steps */
.process-grid {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
}
@media (min-width: 40rem) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  padding: 1.9rem 1.6rem;
}
.process-step h3 { margin: 0.9rem 0 0.6rem; }
.process-step p {
  color: rgba(245, 241, 234, 0.7);
  font-size: 0.92rem;
}

/* Contact page ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 4.5rem;
    align-items: start;
  }
}

.contact-info h2 { margin-bottom: 2rem; }

.contact-item {
  border-top: 1px solid var(--hairline);
  padding: 1.4rem 0;
}
.contact-item h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}
.contact-item a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}
.contact-item a:hover { color: var(--accent-deep); }
.contact-item h4 .icon { width: 1.1rem; height: 1.1rem; }
.contact-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.contact-form h2 {
  font-size: clamp(1.4rem, 1.6vw + 0.9rem, 1.8rem);
  margin-bottom: 1.75rem;
}

.field { margin-bottom: 1.25rem; }

.field-row {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 34rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 142, 50, 0.22);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3401e;
  box-shadow: 0 0 0 3px rgba(179, 64, 30, 0.14);
}

.field-error {
  display: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: #a03516;
  margin-top: 0.4rem;
}
.field.has-error .field-error { display: block; }

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Success state */
.form-success {
  text-align: center;
  padding: 2rem 0.5rem;
}
.form-success-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
}
.form-success h2 { margin-bottom: 0.9rem; }
.form-success p {
  color: var(--ink-soft);
  max-width: 26rem;
  margin: 0 auto 1.75rem;
}
.form-success a { font-weight: 600; }

/* Footer ------------------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: rgba(245, 241, 234, 0.75);
  padding: clamp(3rem, 7vw, 5rem) 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 40rem) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .wordmark {
  display: block;
  color: var(--paper);
  margin-bottom: 0.9rem;
}
.footer-brand p:last-child {
  font-size: 0.92rem;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col li {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.footer-col a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--hairline-light);
  padding: 1.4rem 0;
  font-size: 0.8rem;
  color: rgba(245, 241, 234, 0.66);
}

/* Scroll reveal ------------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ui-quote, .ui-review, .ui-status, .ui-dot { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .value-card, .service-card { transition: none; }
}
