:root {
  --navy: #10233b;
  --navy-2: #183354;
  --navy-3: #0b1a2c;
  --amber: #f5a623;
  --amber-dark: #de8f0c;
  --steel: #8a97a6;
  --steel-light: #d5dbe2;
  --sand: #f7f4ee;
  --white: #ffffff;
  --ink: #1b2430;
  --ink-soft: #4b5766;
  --line: #e4dfd5;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 35, 59, 0.06), 0 8px 24px rgba(16, 35, 59, 0.08);
  --wrap: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.3);
}

.btn--primary:hover {
  background: #ffb63d;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  background: var(--amber-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1.0625rem;
  box-shadow: none;
}

.btn--block {
  width: 100%;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.logo__mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}

.logo__name {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo__tag {
  margin-top: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.265em;
  color: var(--ink-soft);
}

.logo--light {
  color: var(--white);
}

.logo--light .logo__tag {
  color: var(--steel-light);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(16, 35, 59, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav__links a:hover {
  border-color: var(--amber);
}

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

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
  min-height: 44px;
}

.nav__phone svg {
  width: 18px;
  height: 18px;
  color: var(--amber-dark);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  margin: auto;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Shared section bits ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--white {
  background: var(--white);
}

.section--navy {
  position: relative;
  background: var(--navy);
  color: var(--white);
}

/* faint chain-link mesh on dark bands */
.mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.mesh > * {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 14px;
}

.section--navy .eyebrow,
.hero .eyebrow {
  color: var(--amber);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--navy);
}

.section--navy .section-head h2 {
  color: var(--white);
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.section--navy .section-head p:not(.eyebrow) {
  color: var(--steel-light);
}

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

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__inner {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}

.hero__content {
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  line-height: 0.98;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #dbe3ec;
  max-width: 500px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  margin: 36px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.trust svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex: none;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-top-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-top-color: var(--amber);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--sand);
  border-radius: 10px;
  color: var(--navy);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9875rem;
  color: var(--ink-soft);
}

/* ---------- Industries ---------- */

.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.industries li {
  background: var(--navy);
  padding: 28px 24px;
}

.industries h3 {
  font-size: 1.375rem;
  color: var(--amber);
  margin-bottom: 8px;
}

.industries p {
  font-size: 0.9375rem;
  color: var(--steel-light);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 26px;
  border-top: 3px solid var(--navy);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.625rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.steps p {
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery img[src*="hero-fence-line"] {
  object-position: 50% 62%;
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 18px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(11, 26, 44, 0.88));
}

/* ---------- Service area ---------- */

.area {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.area h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--navy);
}

.area p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.area__card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.area__card h3 {
  font-size: 1.625rem;
  margin-bottom: 8px;
}

.area .area__card p {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--steel-light);
}

.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.regions li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.regions svg {
  width: 16px;
  height: 16px;
  color: var(--amber-dark);
}

/* ---------- Quote ---------- */

.quote {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.quote__intro h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.quote__intro > p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--steel-light);
}

.quote__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.quote__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #e6ecf2;
}

.quote__list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--amber);
  flex: none;
}

.quote__call {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.quote__call span {
  display: block;
  font-size: 0.9375rem;
  color: var(--steel-light);
}

.quote__call a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--amber);
  text-decoration: none;
}

.quote__call a:hover {
  text-decoration: underline;
}

.quote__call a.quote__email {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  overflow-wrap: anywhere;
}

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(22px, 3.4vw, 36px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.field .req {
  color: #b4530a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fbfaf7;
  border: 1.5px solid #cfd5dc;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.45);
}

.form .btn {
  margin-top: 22px;
}

.form__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
}

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

.site-footer {
  background: var(--navy-3);
  color: var(--steel-light);
  padding-block: 52px 32px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__about {
  max-width: 340px;
}

.site-footer__about p {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.site-footer h3 {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.site-footer li a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--amber);
}

.site-footer__phone {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
}

.site-footer__email {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__email:hover {
  color: var(--amber);
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: var(--steel);
}

/* ---------- Mobile action bar ---------- */

.action-bar {
  display: none;
}

/* ---------- Simple pages (thank you / 404) ---------- */

.simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.simple__box {
  max-width: 560px;
}

.simple .logo {
  margin-bottom: 40px;
}

.simple h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
}

.simple p {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--steel-light);
}

.simple .hero__cta {
  justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__links {
    gap: 18px;
  }

  .nav {
    gap: 18px;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 35, 59, 0.14);
    padding: 8px 20px 22px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 0;
  }

  .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
  }

  .nav__phone {
    justify-content: center;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__media {
    position: relative;
    order: 2;
    width: 100%;
    height: clamp(230px, 62vw, 460px);
    clip-path: none;
  }

  .hero__inner {
    padding-block: 48px 44px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .area,
  .quote {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  body {
    padding-bottom: 68px;
  }

  body:has(.simple) {
    padding-bottom: 0;
  }

  .logo__mark {
    width: 38px;
    height: 38px;
  }

  .logo__name {
    font-size: 1.375rem;
  }

  .logo__tag {
    font-size: 0.6875rem;
  }

  .eyebrow {
    font-size: 0.9375rem;
    letter-spacing: 0.12em;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .trust {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 35, 59, 0.12);
  }

  .action-bar .btn {
    min-height: 48px;
    padding: 8px 10px;
    font-size: 1.125rem;
    box-shadow: none;
  }

  .action-bar .btn--call {
    background: var(--navy);
    color: var(--white);
  }
}

@media (max-width: 560px) {
  .cards,
  .industries {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
