/* ==========================================================================
   Eagle Fence CT — brand: logo blue #044A99, logo orange #EA6807.
   Headings borrow the logo's slanted bold italic (Barlow Condensed);
   the skewed orange tag echoes the "FENCE INC." band.
   ========================================================================== */

:root {
  --blue: #044A99;
  --blue-2: #0a5cc0;
  --navy: #0a1f3f;
  --navy-2: #0f2a52;
  --orange: #EA6807;
  --orange-2: #ff7d1f;

  /* tokens shared with /crm */
  --accent: var(--orange);
  --accent-2: var(--orange-2);
  --accent-soft: #fdeee2;
  --ink: #0a1f3f;
  --ink-2: #3b4a63;
  --ink-3: #6b778c;
  --bg: #ffffff;
  --bg-soft: #f2f5fa;
  --surface: #ffffff;
  --line: #e1e7f0;
  --line-2: #cdd6e3;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh-md: 0 10px 30px rgba(10, 31, 63, .10);

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Open Sans', Arial, sans-serif;
  --wrap: 1400px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.h2 {
  font: italic 800 clamp(34px, 4.4vw, 52px)/1.02 var(--display);
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--ink);
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  font: italic 700 15px/1.2 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  transform: skewX(-14deg);
}
.eyebrow--light { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border: 0; border-radius: var(--r-sm);
  font: 700 15px/1 var(--body);
  letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(234, 104, 7, .3); }
.btn--accent:hover { background: var(--orange-2); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a:not(.btn) {
  padding: 8px 12px;
  font: 600 15px/1 var(--body);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__cta, .nav__phone { display: none; }
.header-phone { font: 700 16px/1 var(--body); color: var(--blue); text-decoration: none; white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 11px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 2.5px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

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

.hero {
  position: relative; isolation: isolate;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; z-index: -2; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 31, 63, .94) 0%, rgba(4, 74, 153, .8) 55%, rgba(4, 74, 153, .3) 92%);
}
.hero__in { padding: 90px 0 110px; }
.hero h1 {
  max-width: 1100px;
  font: italic 800 clamp(48px, 7.4vw, 96px)/.92 var(--display);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--orange-2); }
.hero__lead { max-width: 560px; font-size: 19px; color: rgba(255, 255, 255, .88); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 15px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 80px 0 72px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(10, 31, 63, .96), rgba(4, 74, 153, .85)),
    url('../img/projects/vinyl-privacy-04.webp') center 40% / cover;
}
.page-hero h1 { font: italic 800 clamp(42px, 6vw, 76px)/.95 var(--display); text-transform: uppercase; color: #fff; max-width: 820px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips a, .chips button {
  padding: 9px 16px;
  font: 600 14px/1 var(--body);
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.chips a:hover, .chips button:hover { background: rgba(255, 255, 255, .2); }
.chips .is-active { background: var(--orange); border-color: var(--orange); }

/* ---------- Intro ---------- */

.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.intro__media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intro__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); }
.intro__media img:nth-child(2) { margin-top: 56px; }
.intro__media--single { grid-template-columns: 1fr; }
.intro__media--single img { aspect-ratio: 4 / 4.4; margin-top: 0; box-shadow: 18px 18px 0 var(--orange); }
.intro__text .btn { margin-top: 10px; }

/* ---------- Service cards ---------- */

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head .h2 { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { display: grid; gap: 6px; padding: 20px 22px 24px; border-top: 4px solid var(--orange); }
.card__body strong { font: italic 800 24px/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.card__body span { font-size: 15px; color: var(--ink-3); }

/* ---------- Recent work ---------- */

.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 14px;
}
.work__item { border-radius: var(--r-md); overflow: hidden; }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work__item:hover img { transform: scale(1.05); }
.work__item--0 { grid-column: span 2; grid-row: span 2; }

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

.steps { background: var(--navy); color: rgba(255, 255, 255, .8); }
.steps .h2 { color: #fff; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps__list li { display: grid; gap: 8px; padding: 30px 26px; background: var(--navy-2); border-radius: var(--r-lg); border-top: 4px solid var(--orange); }
.steps__list b { font: italic 800 46px/1 var(--display); color: var(--orange-2); }
.steps__list strong { font: italic 800 24px/1.1 var(--display); text-transform: uppercase; color: #fff; }
.steps__list span { font-size: 15px; }

/* ---------- Contact split + estimate form ---------- */

.contact-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.contact-split__img { margin-top: 28px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
.ticks { margin: 6px 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 24px; font: 700 20px/1.6 var(--body); }
.mini-steps { margin: 24px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.mini-steps strong { color: var(--ink); }

.estimate {
  padding: 36px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  border-top: 6px solid var(--orange);
}
.estimate__head h2 { font: italic 800 38px/1 var(--display); text-transform: uppercase; }
.estimate__head h2 span { color: var(--orange); }
.estimate__head p { margin: 8px 0 22px; color: var(--ink-3); font-size: 15px; }
.estimate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font: 600 13px/1 var(--body); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font: 400 16px/1.4 var(--body);
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field.is-bad input, .field.is-bad select { border-color: #d33; background: #fff5f5; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange); }
.check.is-bad { color: #d33; }
.estimate .btn { width: 100%; }
.estimate__msg { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: #e9f6ee; color: #17633a; font-weight: 600; font-size: 15px; }
.estimate__msg.is-error { background: #fdeceb; color: #a12a20; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- About values ---------- */

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.values article { padding: 30px 26px; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.values svg { width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--blue); border-radius: 12px; }
.values h3 { font: italic 800 24px/1.1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.values p { font-size: 15px; margin: 0; }

.cta-band { padding: 64px 0; background: var(--orange); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font: italic 800 clamp(32px, 4vw, 46px)/1 var(--display); text-transform: uppercase; color: #fff; }
.cta-band .btn--accent { background: var(--navy); box-shadow: none; }
.cta-band .btn--accent:hover { background: var(--blue); }

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

.service__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service--flip .service__img { order: 2; }
.service__img { margin: 0; }
.service__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: -16px 16px 0 var(--blue); }
.service--flip .service__img img { box-shadow: 16px 16px 0 var(--orange); }

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

.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item { position: relative; display: block; margin-bottom: 16px; border-radius: var(--r-md); overflow: hidden; break-inside: avoid; }
.gallery__item img { width: 100%; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item span {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 12px;
  font: italic 700 14px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--orange); transform: skewX(-14deg);
}
.gallery__item[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(6, 16, 34, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--r-md); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.lightbox button:hover { background: var(--orange); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 18px; top: 50%; translate: 0 -50%; }

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

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.site-footer__brand img { width: 210px; margin-bottom: 18px; }
.site-footer h3 { font: italic 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--orange-2); }
.site-footer__social { display: flex; gap: 16px; margin-top: 16px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps__list, .values { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .burger { display: block; }
  .header-phone { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-110%); visibility: hidden;
    transition: transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav__cta { display: inline-flex; margin-top: 16px; }
  .nav__phone { display: inline-flex; margin-top: 10px; }
  .section { padding: 72px 0; }
  .intro__grid, .contact-split, .service__grid { grid-template-columns: 1fr; gap: 40px; }
  .service--flip .service__img { order: 0; }
  .work__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .work__item--0 { grid-column: 1 / -1; grid-row: span 1; }
  .work__grid .work__item:nth-child(n+4) { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .cards, .steps__list, .values, .site-footer__grid { grid-template-columns: 1fr; }
  .estimate { padding: 26px 20px; }
  .estimate__grid { grid-template-columns: 1fr; }
  .hero__in { padding: 64px 0 84px; }
  .hero__actions .btn { width: 100%; }
  .intro__media img:nth-child(2) { margin-top: 32px; }
  .service__img img, .service--flip .service__img img { box-shadow: none; }
  .work__item--0 { grid-row: span 1; }
}
