:root {
  --ink: #17221d;
  --muted: #5a665f;
  --line: #dce4dd;
  --paper: #ffffff;
  --mist: #f4f8f5;
  --pine: #174c3a;
  --pine-deep: #0d3328;
  --copper: #b85d2b;
  --gold: #f2b84b;
  --sky: #dff0f4;
  --shadow: 0 20px 60px rgba(13, 51, 40, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body,
button,
input,
textarea {
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--paper);
  color: var(--pine-deep);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(23, 34, 29, 0.66);
  color: #fff;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(18, 35, 29, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: var(--copper);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.76;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a,
.header-cta,
.text-link {
  text-decoration: none;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--gold);
  color: #261b08;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(680px, 92vh, 860px);
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/rapid-fence-gate-repair-hero.jpg");
  background-position: center center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 24, 19, 0.9) 0%, rgba(10, 24, 19, 0.72) 34%, rgba(10, 24, 19, 0.24) 65%, rgba(10, 24, 19, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 24, 19, 0.24), rgba(10, 24, 19, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, 720px);
  padding: 148px clamp(20px, 5vw, 72px) 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.split-band .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.06;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 900;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.3vw, 4rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #271a04;
  box-shadow: 0 16px 34px rgba(242, 184, 75, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button-dark {
  background: var(--pine-deep);
  color: #fff;
}

.full-width {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 660px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-facts div {
  min-width: 0;
  padding: 16px;
  background: rgba(9, 27, 21, 0.44);
}

.hero-facts dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.band {
  background: var(--mist);
}

.section,
.band,
.split-band {
  padding: clamp(68px, 9vw, 116px) 0;
}

.compact {
  padding-top: clamp(44px, 7vw, 88px);
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-grid,
.area-grid,
.contact-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.intro-grid p:last-child,
.area-grid p,
.contact-grid p,
.split-grid p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.contact-card,
.emergency-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(23, 34, 29, 0.08);
}

.service-card {
  display: grid;
  align-content: start;
  min-height: 280px;
  padding: 24px;
}

.service-card p,
.contact-card dd,
.process-list span {
  color: var(--muted);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--sky);
  color: var(--pine-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.split-band {
  background: var(--pine);
  color: #fff;
}

.split-band p {
  color: rgba(255, 255, 255, 0.76);
}

.emergency-panel {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  color: var(--ink);
}

.emergency-panel p {
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 999px;
  background: #2fa86d;
  box-shadow: 0 0 0 7px rgba(47, 168, 109, 0.12);
  vertical-align: -1px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.process-list li {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 10px;
  padding: 26px;
  background: #fff;
}

.process-list strong {
  font-size: 1.08rem;
}

.area-section {
  background: linear-gradient(180deg, #fff 0%, var(--mist) 100%);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--pine);
  font-weight: 900;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  font-weight: 900;
}

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

.contact-card {
  padding: clamp(22px, 4vw, 34px);
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
}

.contact-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-card dt {
  color: var(--pine);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--pine-deep);
  color: rgba(255, 255, 255, 0.84);
  padding: 28px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .area-grid,
  .contact-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
    background: var(--pine-deep);
  }

  .site-header.is-scrolled {
    background: var(--pine-deep);
    color: #fff;
  }

  .header-cta {
    width: 100%;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav a {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
  }

  .hero {
    min-height: 700px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(10, 24, 19, 0.94) 0%, rgba(10, 24, 19, 0.76) 52%, rgba(10, 24, 19, 0.36) 100%);
  }

  .hero-content {
    align-self: end;
    padding-top: 88px;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .service-grid,
  .process-list,
  .area-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
