:root {
  --cream: #fff6e5;
  --paper: #fffbf1;
  --ink: #172c20;
  --green: #1f5e3b;
  --saffron: #f4a21e;
  --border: #dacdb4;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
p { margin: 0; font-size: 1.125rem; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: Georgia, serif; letter-spacing: -.045em; }
h1 { font-size: clamp(3.15rem, 7.5vw, 7rem); }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.3rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b6510c; outline-offset: 4px; }

.header { border-bottom: 1px solid var(--border); background: var(--paper); }
.nav, .foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.nav { min-height: 82px; padding-block: .5rem; }
.wordmark { display: grid; align-items: center; width: clamp(11.75rem, 31vw, 15rem); min-height: 48px; color: var(--green); }
.wordmark img { display: block; width: 100%; height: auto; }
@supports (mask-image: url('/electro-max-logo.webp')) {
  .wordmark img, .wordmark::after { grid-area: 1 / 1; }
  .wordmark img { opacity: 0; }
  .wordmark::after {
    content: '';
    align-self: stretch;
    background: currentColor;
    mask: url('/electro-max-logo.webp') center / 100% auto no-repeat;
  }
  @media (forced-colors: active) {
    .wordmark img { opacity: 1; }
    .wordmark::after { display: none; }
  }
}
.section-nav { background: #f3e5c7; border-bottom: 1px solid var(--border); }
.section-nav-links { display: flex; flex-wrap: wrap; column-gap: clamp(.35rem, 3vw, 2rem); }
.section-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .45rem .5rem;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: .22em;
}
.section-nav-links a:hover, .section-nav-links a:focus-visible { text-decoration: underline; }
main > section[id] { scroll-margin-top: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: 9px; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; }
.outline { border-color: var(--green); color: var(--green); }
.outline:hover { background: #e8eddd; }
.primary { color: var(--ink); background: var(--saffron); }
.primary:hover { background: #ffbb51; }

.hero {
  padding-block: clamp(2.25rem, 6vw, 6rem);
  color: #fff7e5;
  background:
    radial-gradient(ellipse at 88% 0%, #387255 0%, transparent 52%),
    linear-gradient(130deg, #132d26, #204c3b);
}
.hero-grid { display: grid; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { margin-bottom: .8rem; color: #ffd88b; font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lede { max-width: 34rem; margin: 1.1rem 0 1.5rem; }
.hero-visual {
  min-height: 230px;
  border: 1px solid #79a387;
  border-radius: 20px;
  background-color: #143525;
  background-image: url('/workbench.webp'), radial-gradient(ellipse at 65% 30%, #4c6b48, transparent 75%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px #0c261c80;
}

.services {
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
  background: linear-gradient(145deg, #ffe8b9, #fff6e5 72%);
}
.section-intro { margin: 1rem 0 1.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.service-grid article {
  --card: #edf7eb;
  --hover: #dcefdc;
  --accent: #39724f;
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid #172c2026;
  border-top: 4px solid var(--accent);
  border-radius: 13px;
  box-shadow: 0 4px 12px #302a1610;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.service-grid article:nth-child(2) { --card: #eaf4f5; --hover: #d7ecef; --accent: #397177; }
.service-grid article:nth-child(3) { --card: #fff2dc; --hover: #ffe5ba; --accent: #a65e1a; }
.service-grid article:nth-child(4) { --card: #f4eff9; --hover: #eae0f5; --accent: #77559a; }
@media (hover: hover) and (pointer: fine) {
  .service-grid article:hover {
    transform: translateY(-5px);
    background: var(--hover);
    border-color: var(--accent);
    box-shadow: 0 14px 28px #302a1629;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-grid article, .service-grid article:hover { transition: none; transform: none; }
}
.service-grid p { margin-top: .65rem; }
.about { padding-block: clamp(2.5rem, 5vw, 4.75rem); background: #e6eee2; }
.about-inner { display: grid; gap: 1rem; }
.about p { max-width: 46rem; }
.process { padding-block: clamp(2.5rem, 5vw, 4.75rem); background: #fffbf1; }
.process-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.process ol { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-left: 1.35rem; margin: 1rem 0 0; font-size: 1.125rem; }
.process li::marker { color: var(--green); font-weight: 800; }
footer { padding-block: 1.4rem; color: white; background: #173e2c; }
.foot { flex-wrap: wrap; gap: 1rem 2rem; }
.foot .wordmark { background: var(--paper); padding: .5rem .65rem; border-radius: 10px; }
.foot p { font-size: 1rem; }
.foot-contact { display: inline-flex; align-items: center; min-height: 48px; font-weight: 750; }

.enquiry { padding-block: clamp(2.5rem, 5vw, 4.75rem); background: linear-gradient(135deg, #d6ebdf, #eef5e9); scroll-margin-top: 1rem; }
.enquiry-grid { display: grid; gap: 1.5rem; align-items: start; }
.direct-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--green); font-weight: 750; }
.repair-form { padding: clamp(1rem, 4vw, 1.6rem); border: 1px solid #c0ceba; border-radius: 13px; background: var(--paper); }
.repair-form label { display: block; margin-bottom: 1rem; font-weight: 700; }
.repair-form label span { font-weight: 400; }
.repair-form input, .repair-form select, .repair-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: .35rem;
  padding: .65rem .75rem;
  border: 1px solid #877e6e;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: white;
}
.repair-form textarea { resize: vertical; }
.repair-form .button { cursor: pointer; font-family: inherit; font-size: 1rem; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 440px; }
  .enquiry-grid { grid-template-columns: 2fr 3fr; }
}
@media (min-width: 1040px) {
  .form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .desktop { display: none; }
  .nav .button { padding-inline: .6rem; }
  .nav .wordmark { width: min(12rem, 60%); }
  .primary { width: 100%; }
  .hero-copy { min-width: 0; }
  .process ol { flex-direction: column; }
}
