/* Care Electric — warm paper, ink, amber call. */
:root {
  --field: #faf5ec;
  --ink: #17130c;
  --muted: #5c5344;
  --call: #e39a00;
  --call-ink: #17130c;
  --ghost: #17130c;
  --accent: #b97a00;
  --slab: #2a2118;
  --slab-ink: #faf5ec;
  --line: #e4d9c4;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo-alt: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  background: var(--field);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out-circ), color var(--dur-fast) var(--ease-out-circ), transform var(--dur-fast) var(--ease-out-circ);
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-fill {
  background: var(--call);
  color: var(--call-ink);
}
.btn-fill:hover {
  background: #f0ab1a;
}
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--ghost);
}
.call-nowrap {
  white-space: nowrap;
}

.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out-expo-alt);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 4vw;
  background: var(--field);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand svg {
  color: var(--accent);
}
.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-out-expo);
}
.hero.is-in .hero-img,
.hero-img.is-in {
  opacity: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 19, 12, 0.72) 0%, rgba(23, 19, 12, 0.45) 42%, rgba(23, 19, 12, 0) 68%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 6vw;
  padding: 3rem 0;
  color: #fff8ea;
}
.hero-copy .kicker {
  color: var(--call);
}
.hero-copy p {
  max-width: 32rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-actions .btn-ghost {
  color: #fff8ea;
}

/* Licence band */
.band {
  background: var(--slab);
  color: var(--slab-ink);
  padding: 1.1rem 6vw;
}
.band p {
  margin: 0 auto;
  max-width: 64rem;
  font-size: 0.98rem;
}
.band strong {
  color: var(--call);
}

/* Sections */
section {
  scroll-margin-top: 5rem;
}
#services,
.steps,
.faq,
.area,
.contact {
  padding: 5rem 6vw;
}
.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* Services river */
.river {
  display: grid;
  gap: 3.5rem;
  max-width: 64rem;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem;
  align-items: center;
}
.row.flip img {
  order: 2;
}
.row img {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
}
.row h3 {
  margin-bottom: 0.35rem;
}
.row p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

/* About slab */
.about {
  background: var(--slab);
  color: var(--slab-ink);
  padding: 5rem 6vw;
}
.about-inner {
  max-width: 40rem;
}
.about .kicker {
  color: var(--call);
}
.about p {
  color: #e9dfcd;
}

/* Steps */
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 64rem;
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--call);
  padding-top: 1.25rem;
}
.steps li svg {
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.steps h3 {
  margin-bottom: 0.3rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* FAQ */
.reviews,
.faq {
  padding: 5rem 6vw;
}
.reviews .section-head,
.faq .section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}
.faq-list {
  max-width: 40rem;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 42ch;
  color: var(--muted);
}

/* Area */
.area {
  background: #f3ecdc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.area > div {
  max-width: 40rem;
}
.area p:last-child {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  max-width: 64rem;
  align-items: start;
}
.contact-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 1.1rem;
}
.contact-line svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--accent);
}
form {
  display: grid;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}
form input,
form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--field);
  color: var(--ink);
  width: 100%;
}
form input:focus-visible,
form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
form .btn {
  justify-self: start;
  cursor: pointer;
  font-family: var(--font-body);
}
.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--slab);
  color: var(--slab-ink);
  padding: 2.5rem 6vw 4rem;
  font-size: 0.95rem;
}
.site-footer p {
  margin: 0 0 0.4rem;
  color: #e9dfcd;
}
.site-footer a {
  color: var(--call);
}

/* Sticky call dock, narrow screens only */
.dock {
  display: none;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
[data-reveal="cascade"] {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal="cascade"].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 390: hero copy pins to the bottom third so the face stays open above */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .site-header {
    gap: 0.8rem;
    padding: 0.7rem 4vw;
  }
  .site-header nav {
    display: none;
  }
  .site-header .btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
    align-items: stretch;
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
  .hero-img {
    object-position: 72% 12%;
  }
  .hero::after {
    background: linear-gradient(0deg, rgba(23, 19, 12, 0.82) 0%, rgba(23, 19, 12, 0.55) 34%, rgba(23, 19, 12, 0) 62%);
  }
  .hero-copy {
    width: auto;
    max-width: none;
    margin: 0 1rem calc(2rem + env(safe-area-inset-bottom));
    padding: 1.15rem 1.1rem 1.05rem;
  }
  .hero-copy h1 {
    font-size: 1.65rem;
  }
  .hero-copy > p {
    font-size: 0.95rem;
  }
  .hero-actions .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.92rem;
  }
  .row,
  .row.flip {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .row.flip img {
    order: 0;
  }
  .row img {
    max-width: 22rem;
  }
  .steps ol {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  #services,
  .steps,
  .faq,
  .area,
  .contact {
    padding: 3.5rem 5vw;
  }
  .about {
    padding: 3.5rem 5vw;
  }
  .dock {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
    z-index: 20;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    background: var(--call);
    color: var(--call-ink);
    border-radius: 999px;
    padding: 0.85rem 1rem;
  }
  .site-footer {
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-img {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
