/* Proactive Fence Solutions — draft site, orange + charcoal */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #dc6b2e;
  --orange-hover: #e8783a;
  --orange-deep: #c55a22;
  --bg: #111111;
  --bg-raised: #191919;
  --bg-card: #1c1c1c;
  --line: #2c2c2c;
  --text: #f3f3f3;
  --text-muted: #b8b8b8;
  --silver: #a3a3a3;
  --white: #ffffff;
  --header-h: 4.25rem;
  --wrap: 72rem;
  --radius: 0.4rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-hover);
}

h1, h2, h3 {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
h3 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--orange);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

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

.wrap.narrow {
  width: min(100% - 2rem, 42rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--orange);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 1.25rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.brand:hover { color: inherit; }

.brand-logo {
  width: 3rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 0.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: Montserrat, sans-serif;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-sub {
  font-family: Montserrat, sans-serif;
  font-weight: 650;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.4rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--orange);
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn-call {
  background: var(--orange);
  color: var(--white);
  flex-shrink: 0;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0.7rem;
  min-height: 2.75rem;
}

.btn-call:hover,
.btn-call:focus-visible {
  background: var(--orange-hover);
  color: var(--white);
}

.btn-call-label {
  display: none;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  opacity: 0.9;
}

.btn-call-number {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-large {
  min-height: 3.15rem;
  padding-inline: 1.25rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 32rem;
  height: min(88svh, 46rem);
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.25) 0%, rgba(17, 17, 17, 0.35) 40%, rgba(17, 17, 17, 0.88) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.45) 0%, rgba(17, 17, 17, 0.05) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  padding: 0 0 2.25rem;
}

.hero-eyebrow,
.section-eyebrow {
  font-family: Montserrat, sans-serif;
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.6rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  font-size: 1.05rem;
  color: #e8e8e8;
  max-width: 32rem;
  margin-bottom: 1.35rem;
}

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

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.services {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.service-grid li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem 1.2rem;
}

.service-grid h3 {
  margin-bottom: 0.35rem;
}

.service-grid p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Photos */
.photos {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo-grid li {
  min-width: 0;
}

.photo-btn {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-btn:hover img,
.photo-btn:focus-visible img {
  transform: scale(1.04);
}

.photo-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.photo-label {
  font-size: 0.78rem;
  color: var(--silver);
  margin: 0.4rem 0 0;
  line-height: 1.35;
}

/* Service area + estimate */
.service-area {
  background: var(--bg);
}

.service-area p {
  font-size: 1.125rem;
  color: var(--text);
}

.estimate {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.2rem 1.2rem 1.25rem 4.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  font-family: Montserrat, sans-serif;
  font-weight: 750;
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1;
  width: 2.25rem;
  text-align: center;
}

.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--text-muted); }

/* Contact */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-intro .section-header {
  margin-bottom: 0.9rem;
}

.contact-intro p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.estimate-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.form-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  background: #161616;
  border-left: 3px solid var(--orange);
  padding: 0.8rem 0.9rem;
  border-radius: 0 0.3rem 0.3rem 0;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-family: Inter, sans-serif;
  color: #8a8a8a;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #3a3a3a;
  background: #141414;
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

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

.estimate-form .btn { justify-self: start; }

.form-feedback {
  margin: 0;
  color: var(--orange);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #0c0c0c;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--silver);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 0.25rem;
}

.footer-name {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--orange);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
  width: min(96vw, 72rem);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #0d0d0d;
  padding: 2.5rem 1rem 1rem;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  color: var(--silver);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--orange);
}

/* Mobile open nav */
@media (max-width: 879px) {
  .nav-open .site-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #141414;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
}

/* Desktop */
@media (min-width: 640px) {
  .brand-logo { width: 3.4rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.72rem; }

  .btn-call {
    flex-direction: column;
    padding: 0.3rem 0.95rem;
  }
  .btn-call-label { display: block; }
  .btn-call-number { font-size: 0.88rem; }

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

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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

  .hero-content { padding-bottom: 3rem; }
  .section { padding: 4.25rem 0; }
}

@media (min-width: 880px) {
  :root { --header-h: 4.6rem; }

  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    flex: 1;
  }

  .site-nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.15rem;
  }

  .brand { flex: 0 0 auto; }

  .header-inner { gap: 1.25rem; }

  .service-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.9rem;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.1rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }

  .hero {
    min-height: 36rem;
    height: min(86svh, 50rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-btn img { transition: none; }
}

/* ---- Quote CTAs + booking ---- */
.cta-pair {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.25rem;
  max-width: 40rem;
}

.center .cta-pair,
.center .cta-help {
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  flex: 1 1 0;
  min-height: 3.4rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}

.btn-instant {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-instant:hover,
.btn-instant:focus-visible {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
}

.btn-onsite {
  background: var(--white);
  color: #1a1a1a;
  border-color: var(--white);
}

.btn-onsite:hover,
.btn-onsite:focus-visible {
  background: #f3f3f3;
  color: #1a1a1a;
  border-color: var(--white);
}

.quote-band .btn-onsite {
  border-color: #1a1a1a;
}

.cta-help {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  max-width: 40rem;
  color: #e8e8e8;
}

.quote-band .cta-help { color: var(--text-muted); }

.hero-call {
  margin-top: 0.85rem;
  color: #e8e8e8;
}

.hero-call a { color: var(--white); font-weight: 700; }

.header-ctas {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-hdr {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.65rem;
  min-height: 2.5rem;
  white-space: nowrap;
}

.site-header .btn-onsite {
  background: transparent;
  color: var(--white);
  border-color: var(--orange);
}

.site-header .btn-onsite:hover,
.site-header .btn-onsite:focus-visible {
  background: rgba(220, 107, 46, 0.15);
  color: var(--white);
  border-color: var(--orange-hover);
}

.quote-band {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  text-align: center;
}

.quote-band h2 { margin-bottom: 1.1rem; }

.center { text-align: center; }

.booking {
  background: #0c0c0c;
  border-top: 1px solid var(--line);
}

.booking .section-intro { color: var(--text-muted); }

.booking-form {
  background: var(--white);
  color: #1a1a1a;
  padding: 1.4rem;
  border-radius: 0.5rem;
  display: grid;
  gap: 0.9rem;
  color-scheme: light;
}

.booking-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.booking-form label { font-weight: 650; }

.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c8c8c8;
  border-radius: var(--radius);
  width: 100%;
  background: var(--white);
  color: #1a1a1a;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.field-row { display: grid; gap: 0.9rem; }

.req { color: var(--orange-deep); }

.field-hint { font-size: 0.85rem; color: #555; margin: 0; }

.optional { color: #666; font-weight: 500; }

.invalid {
  border-color: #c0392b !important;
  outline: 2px solid rgba(192, 57, 43, 0.25);
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 650;
  margin: 0;
}

.form-msg.ok { background: #e6f4ea; color: #1e6b34; }
.form-msg.err { background: #fdecea; color: #a12a1f; }

@media (max-width: 879px) {
  .header-inner { flex-wrap: wrap; }
  .header-ctas {
    order: 5;
    width: 100%;
    justify-content: stretch;
    padding-bottom: 0.55rem;
  }
  .btn-hdr { flex: 1; text-align: center; }
}

@media (min-width: 640px) {
  .cta-pair { flex-direction: row; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero { height: min(92svh, 52rem); }
}

@media (min-width: 880px) and (max-width: 1199px) {
  .header-inner { flex-wrap: wrap; }
  .header-ctas { order: 5; width: 100%; justify-content: flex-end; padding-bottom: 0.45rem; }
}

.site-nav a{white-space:nowrap}
.booking-form .field label{color:#3a3a3a}
.booking-form .optional{color:#666}
@media (min-width:880px) and (max-width:1319px){.header-inner{flex-wrap:wrap}.header-ctas{order:5;width:100%;justify-content:flex-end;padding-bottom:.45rem}}
