/* =========================================================================
   Fence Guy Pro | Navy / Orange / White theme
   Brand tokens live here only.
   ========================================================================= */
:root {
  --navy:      #1B2E5E;   /* brand navy */
  --navy-dk:   #142446;
  --navy-darker:#0f1c38;
  --orange:    #E8601A;   /* brand orange accent */
  --orange-dk: #cc4f12;
  --orange-lt: #f47a3a;
  --white:     #ffffff;
  --cream:     #f4f6f9;   /* light section background */
  --panel:     #ffffff;
  --text:      #1f2430;   /* body text on light */
  --muted:     #66707f;   /* secondary text */
  --line:      #e3e6ec;   /* hairlines */
  --star:      #E8601A;

  --sec-a:     #1B2E5E;   /* dark section */
  --sec-b:     #142446;
  --on-dark:   #d4dbe9;
  --on-dark-2: #9aa6bd;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20,36,70,.08);
  --shadow:    0 12px 32px rgba(20,36,70,.14);
  --shadow-lg: 0 22px 54px rgba(20,36,70,.22);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 88px;
  scrollbar-color: var(--orange) var(--navy-darker); scrollbar-width: thin; }
body { margin: 0; font-family: var(--font-body); color: var(--text);
  background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--orange-dk); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1;
  color: var(--navy); letter-spacing: .3px; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; }

::selection { background: var(--orange); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--navy-darker); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--orange), var(--orange-dk));
  border-radius: 10px; border: 3px solid var(--navy-darker); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------- Buttons ---------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase; letter-spacing: .6px; font-size: .95rem;
  padding: 14px 26px; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dk); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ----------------------------- Header ----------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: #fff;
  box-shadow: 0 2px 14px rgba(20,36,70,.08); transition: padding .3s var(--ease), box-shadow .3s var(--ease);
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.site-header.scrolled { padding: 4px 0; box-shadow: 0 6px 22px rgba(20,36,70,.16); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; display: block; }
.site-header.scrolled .brand img { height: 46px; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .96rem; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; line-height: 1; }
.nav-phone svg { flex: none; color: var(--orange); }
.nav-phone:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1100; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }

/* ----------------------------- Hero ------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff;
  padding-top: 130px; padding-bottom: 64px; overflow: hidden;
  background: linear-gradient(rgba(15,26,56,.74), rgba(15,26,56,.82)),
    url("../images/hero.jpg") center 35%/cover no-repeat, var(--navy-darker); }
/* Desktop gets the dedicated wide hero image; mobile keeps hero.jpg above. */
@media (min-width: 761px) {
  .hero {
    background: linear-gradient(rgba(15,26,56,.72), rgba(15,26,56,.8)),
      url("../images/hero-desktop.jpg") center center/cover no-repeat, var(--navy-darker);
  }
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(12,22,48,.92) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 3.5px; font-size: .82rem; color: var(--orange-lt); margin-bottom: 24px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; margin-bottom: .25em; max-width: 16ch; }
.hero h1 .accent { color: var(--orange); }
.hero-tag { font-family: var(--font-display); font-size: clamp(1.05rem,2.2vw,1.4rem); letter-spacing: 3px;
  color: rgba(255,255,255,.85); text-transform: uppercase; font-weight: 500; }
.hero-sub { font-size: 1.12rem; color: #dde3ef; max-width: 56ch; margin: 18px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: #dde3ef; font-size: .95rem; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--orange-lt); }
.hero-scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: none;
  flex-direction: column; align-items: center; gap: 9px; z-index: 3; color: rgba(255,255,255,.6);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 3px; font-size: .68rem; }
.hero-scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent);
  transform-origin: top; animation: heroScroll 1.8s ease-in-out infinite; }
@keyframes heroScroll { 0%,100% { opacity: .3; transform: scaleY(.55); } 50% { opacity: 1; transform: scaleY(1); } }

/* ----------------------------- Trust strip ------------------------------ */
.trust { background: var(--navy); color: #fff; border-top: 3px solid var(--orange); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px;
  padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; color: #eef1f7; }
.trust-item svg { width: 22px; height: 22px; color: var(--orange-lt); flex: none; }

/* ----------------------------- Section heads ---------------------------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.sec-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 3px;
  font-size: .82rem; color: var(--orange-dk); font-weight: 600; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px; }
.sec-kicker::before, .sec-kicker::after { content: ""; width: 26px; height: 2px; background: var(--orange); }
.sec-head p { color: var(--muted); font-size: 1.06rem; }

/* ----------------------------- About ------------------------------------ */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.about-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dk)); }
.about-card h3 { color: #fff; font-size: 1.5rem; }
.about-card .stat-row { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.about-card .stat strong { font-family: var(--font-display); font-size: 2.1rem; color: var(--orange-lt);
  display: block; line-height: 1; }
.about-card .stat span { font-size: .86rem; color: #c3ccdc; letter-spacing: .5px; }
.about h2 .accent { color: var(--orange-dk); }
.about ul.checks { list-style: none; padding: 0; margin: 22px 0 28px; }
.about ul.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--text); }
.about ul.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ----------------------------- Fences (materials) ----------------------- */
.fences { background: var(--sec-a); color: var(--on-dark); }
.fences h2, .process h2 { color: #fff; }
.fences .sec-head p, .process .sec-head p { color: var(--on-dark-2); }
.fence-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fence-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-dk);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); min-height: 320px; display: flex;
  flex-direction: column; justify-content: flex-end; isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.fence-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s var(--ease); }
.fence-card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,26,56,.1) 0%, rgba(15,26,56,.5) 55%, rgba(12,22,48,.95) 100%); }
.fence-card:hover { transform: translateY(-6px); border-color: var(--orange); box-shadow: var(--shadow-lg); }
.fence-card:hover img { transform: scale(1.07); }
.fence-card-body { padding: 22px 20px; position: relative; }
.fence-card-no { font-family: var(--font-display); font-size: .9rem; color: var(--orange-lt); letter-spacing: 1px; }
.fence-card h3 { color: #fff; font-size: 1.2rem; margin: 4px 0 8px; }
.fence-card p { color: #d3dae8; font-size: .9rem; margin: 0; line-height: 1.5; }

/* ----------------------------- Process steps ---------------------------- */
.process { background: var(--sec-b); color: var(--on-dark); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--navy); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 28px 22px; position: relative; }
.step .snum { font-family: var(--font-display); font-size: 2.4rem; color: var(--orange-lt); line-height: 1; }
.step h3 { color: #fff; font-size: 1.1rem; margin: 10px 0 8px; }
.step p { color: var(--on-dark-2); font-size: .9rem; margin: 0; }

/* ----------------------------- Gallery ---------------------------------- */
.gallery { background: var(--cream); }
.slideshow { position: relative; max-width: 980px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--navy); isolation: isolate; }
.slides { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--navy-darker); }
.slide { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; line-height: 0; background: var(--navy-darker);
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.slide:hover img, .slide:focus-visible img { transform: scale(1.03); }
.slide .zoom { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(232,96,26,.95); color: #fff; opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 3; }
.slide:hover .zoom, .slide:focus-visible .zoom { opacity: 1; transform: none; }
.slide .zoom svg { width: 18px; height: 18px; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer; background: rgba(15,26,56,.6); border: 1px solid rgba(255,255,255,.25);
  color: #fff; display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.slide-arrow svg { width: 26px; height: 26px; }
.slide-arrow.prev { left: 16px; } .slide-arrow.next { right: 16px; }
.slide-arrow.prev:hover, .slide-arrow.next:hover { background: var(--orange); transform: translateY(-50%) scale(1.06); }
.slide-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 4; color: #fff;
  font-family: var(--font-display); letter-spacing: 1px; font-size: .92rem; background: rgba(15,26,56,.65);
  padding: 5px 16px; border-radius: 30px; }
.slide-hint { text-align: center; color: var(--muted); margin-top: 18px; font-size: .95rem; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(8,14,32,.95);
  align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.open { display: flex; }
body.lb-open { overflow: hidden; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease); }
.lb-btn:hover { background: var(--orange); transform: scale(1.06); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #ddd;
  font-family: var(--font-display); letter-spacing: 1px; font-size: .95rem; background: rgba(0,0,0,.45);
  padding: 6px 16px; border-radius: 30px; }
@media (max-width: 760px) { .slides { aspect-ratio: 4 / 3; } .slide-arrow { width: 44px; height: 44px; }
  .slide-arrow.prev { left: 10px; } .slide-arrow.next { right: 10px; } .lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-btn { width: 44px; height: 44px; } }

/* ----------------------------- Service area ----------------------------- */
.area { background: #fff; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.area .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.area .chips span { background: var(--cream); border: 1px solid var(--line); color: var(--navy);
  padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: .9rem; }
.area-map { position: relative; min-height: 380px; max-width: 460px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(232,96,26,.25); box-shadow: var(--shadow); isolation: isolate; display: grid;
  place-items: center; text-align: center;
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem);
  background: radial-gradient(ellipse 75% 60% at 50% 42%, #20305c 0%, var(--navy-darker) 72%); }
/* Faded American flag backdrop behind the Texas map (matches dragonforge). */
.area-map::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../images/flag-bg.jpg") center bottom / auto 112% no-repeat;
  opacity: 0.45; mix-blend-mode: screen; }
.av-ring { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(232,96,26,.14); pointer-events: none; z-index: 1; }
.av-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.av-badge { font-family: var(--font-display); font-size: .8rem; color: var(--orange-lt); letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 20px; }
.neon-texas { width: 230px; height: auto; margin-bottom: 22px;
  filter: drop-shadow(0 0 4px rgba(232,96,26,.6)) drop-shadow(0 0 12px rgba(232,96,26,.35)) drop-shadow(0 0 28px rgba(232,96,26,.18)); }
.neon-texas .tx-outline { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.neon-texas .tx-marker { fill: var(--orange); filter: drop-shadow(0 0 5px rgba(232,96,26,.9)); animation: txMarker 2s ease-in-out infinite; }
.neon-texas .tx-marker-pulse { fill: none; stroke: var(--orange); stroke-width: 6; opacity: 0; transform-origin: 720px 760px; animation: txPulseRing 2.4s ease-out infinite; }
@keyframes txMarker { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes txPulseRing { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
.area-map h3 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.area-map p { color: #cfd6e6; font-size: 1rem; max-width: 340px; margin: 0 auto 22px; }
@media (max-width: 600px) { .neon-texas { width: 170px; } .area-map { min-height: 320px; } }

/* ----------------------------- Contact ---------------------------------- */
.contact { background: var(--sec-b); color: var(--on-dark); }
.contact h2 { color: #fff; }
.contact .sec-head p { color: var(--on-dark-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid rgba(232,96,26,.2); }
.contact-info::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dk)); }
.contact-info h3 { color: #fff; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .row svg { width: 24px; height: 24px; color: var(--orange-lt); flex: none; margin-top: 2px; }
.contact-info .row a { color: #fff; font-weight: 600; }
.contact-info .row a:hover { color: var(--orange-lt); }
.contact-info .row span.label { display: block; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-lt); margin-bottom: 2px; }
.contact-cta { background: linear-gradient(135deg, #213560, #14213f); border: 1px solid rgba(232,96,26,.25);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 46px 34px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 16px; }
.contact-cta h3 { color: #fff; font-size: 1.7rem; margin: 0; }
.contact-cta p { color: var(--on-dark); margin: 0; max-width: 42ch; }
.contact-cta .btn { width: 100%; max-width: 340px; justify-content: center; }
.contact-cta-or { font-size: .9rem; color: var(--on-dark-2); margin-top: 6px; }
.contact-cta-or a { color: var(--orange-lt); font-weight: 600; }

/* ----------------------------- Footer ----------------------------------- */
.site-footer { background: var(--navy-darker); color: #c3ccdc; padding: 56px 0 26px; border-top: 3px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer a { color: #c3ccdc; }
.site-footer a:hover { color: var(--orange-lt); }
.footer-brand { display: inline-flex; margin-bottom: 16px; background: #fff; padding: 12px 16px; border-radius: 12px; }
.footer-brand img { height: 58px; width: auto; }
.footer-partner { margin-top: 14px; font-size: .9rem; color: #aeb8cc; }
.footer-partner a { color: var(--orange-lt); font-weight: 600; }
.footer-partner a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #8693ad; }
.footer-bottom .powered-by a { color: var(--orange-lt); font-weight: 600; }
.footer-bottom .powered-by a:hover { color: #fff; text-decoration: underline; }

/* ----------------------------- Reveal ----------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 1040px) { .fence-cards { grid-template-columns: repeat(2, 1fr); } .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } }
.drawer-head, .drawer-cta { display: none; }

@media (max-width: 860px) {
  section { padding: 60px 0; }
  .nav-phone, .nav-cta .js-quote { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 1300; }
  .brand img, .site-header.scrolled .brand img { height: 42px; }
  .nav-links { display: flex; position: fixed; inset: 0; width: 100%; height: 100svh; background: var(--navy);
    flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 92px 28px 40px;
    z-index: 1200; transform: translateX(100%); transition: transform .42s var(--ease); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { list-style: none; width: 100%; max-width: 360px; text-align: center; }
  .nav-links a { display: block; color: #f0f3f9; font-family: var(--font-display); text-transform: uppercase;
    letter-spacing: 1.5px; font-size: 1.5rem; padding: 15px 4px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a:active { color: var(--orange-lt); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; position: absolute;
    top: 20px; left: 24px; right: 22px; max-width: none; }
  .drawer-head span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; color: var(--orange-lt); }
  .drawer-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; line-height: 0; }
  .drawer-close svg { width: 30px; height: 30px; }
  .drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
  .drawer-cta .btn { width: 100%; justify-content: center; padding: 15px 20px; font-size: 1rem; min-height: 54px; }
  body.menu-open .nav-toggle { opacity: 0; pointer-events: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .contact-info { padding: 26px 20px; }
  .fence-cards { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; padding-bottom: 76px; text-align: center; }
  .hero .container { display: flex; flex-direction: column; align-items: center; }
  .hero-eyebrow { font-size: .64rem; letter-spacing: 2.5px; }
  .hero h1 { max-width: none; }
  .hero-sub { font-size: 1rem; margin: 16px auto 30px; max-width: 40ch; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { display: none; }
  .hero-scroll { display: flex; }
}

/* ----------------------------- Loading intro ---------------------------- */
.intro-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: var(--navy-darker); overflow: hidden; }
.intro-overlay::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(232,96,26,.2) 0%, transparent 62%); }
.intro-overlay.is-fading { animation: introFade .6s ease-in forwards; }
.intro-overlay.is-done { display: none; }
.intro-stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro-logo { width: 320px; max-width: 76vw; height: auto; background: #fff; padding: 22px 26px; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: 0; transform: scale(.7) translateY(-14px);
  animation: introLogo .8s cubic-bezier(.34,1.56,.64,1) forwards; }
.intro-tag { margin-top: 18px; font-family: var(--font-body); font-size: .9rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange-lt); opacity: 0; animation: introTag .6s ease forwards .8s; }
@keyframes introLogo { 0% { opacity: 0; transform: scale(.7) translateY(-14px); }
  60% { opacity: 1; transform: scale(1.04) translateY(2px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes introTag { to { opacity: 1; } }
@keyframes introFade { to { opacity: 0; visibility: hidden; } }

/* ----------------------------- Quote modal ------------------------------ */
.qmodal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
  padding: 5vh 20px; background: rgba(8,14,32,.7); backdrop-filter: blur(3px); }
.qmodal.open { display: flex; animation: qmFade .25s ease; }
body.qm-open { overflow: hidden; }
@keyframes qmFade { from { opacity: 0; } to { opacity: 1; } }
.qmodal-card { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px 30px; animation: qmRise .35s var(--ease); }
@keyframes qmRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.qmodal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease); }
.qmodal-close:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.qmodal-close svg { width: 20px; height: 20px; }
.qmodal-head { text-align: center; margin-bottom: 22px; }
.qmodal-head .sec-kicker { justify-content: center; display: inline-flex; }
.qmodal-head h3 { font-size: 1.7rem; margin: 8px 0; }
.qmodal-head p { color: var(--muted); font-size: .95rem; margin: 0; }
.qmodal-actions { display: grid; gap: 10px; }
.qmodal-actions .btn { width: 100%; }
.qmodal-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; margin: 20px 0; }
.qmodal-or::before, .qmodal-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.qmodal-form { display: grid; gap: 12px; }
.qmodal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qmodal-form input, .qmodal-form select, .qmodal-form textarea { width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fbfcfd; }
.qmodal-form input:focus, .qmodal-form select:focus, .qmodal-form textarea:focus { outline: none;
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,96,26,.18); }
.qmodal-status { display: none; margin: 4px 0 0; font-weight: 600; color: #1c7c43; font-size: .92rem; text-align: center; }
.qmodal-status.ok { display: block; }
@media (max-width: 560px) { .qmodal { padding: 3vh 14px; align-items: flex-start; } .qmodal-card { padding: 22px 18px; }
  .qmodal-form .form-row { grid-template-columns: 1fr; } }

/* ----------------------------- Reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
