/* =========================================================
   MARQUEZ FENCING — design system
   Trades-professional · Navy + Cedar + Warm White
   Reskin of O'Dell's HVAC template
   ========================================================= */

:root{
  --navy:#0E2845;
  --navy-deep:#091B2A;
  --navy-tint:#1A3858;
  --cedar:#C47B3A;
  --cedar-light:#D4894A;
  --cedar-deep:#A6621E;
  --white:#FFFFFF;
  --ivory:#FAF8F4;
  --ink:#1A1109;
  --mute:#6B7280;
  --mute-dark:#8FA0B2;
  --rule:#E8E2D8;
  --rule-dark:#1F3A5A;
  --success:#198754;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26,17,9,.06), 0 1px 3px rgba(26,17,9,.05);
  --shadow-md: 0 4px 10px rgba(26,17,9,.06), 0 10px 30px rgba(26,17,9,.08);
  --shadow-lg: 0 10px 30px rgba(26,17,9,.10), 0 30px 80px rgba(26,17,9,.12);
}

*{box-sizing:border-box}
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.55;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; height:auto;}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ max-width: var(--maxw); margin:0 auto; padding: 0 var(--pad); }

/* ---------- TYPE ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--cedar); font-weight:700;
}
.eyebrow::before{ content:""; width:24px; height:2px; background:var(--cedar); }
.h-display{
  font-weight:800;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height:1.05;
  letter-spacing:-.02em;
  color:var(--white);
  margin:0;
}
.h-display--ink{ color:var(--ink); }
h1,h2,h3{ font-weight:800; letter-spacing:-.02em; margin:0;}
.h-section{
  font-size: clamp(28px, 3.8vw, 48px);
  line-height:1.1;
  margin:0 0 14px;
}
.h-section--white{ color:var(--white); }
.lead{ font-size:18px; color:var(--mute); max-width:62ch; }
.lead--white{ color:rgba(255,255,255,.78); }
.kicker{
  font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--mute); font-weight:700;
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:18px 26px;
  border-radius:12px;
  font-weight:700; font-size:16px;
  border:0; cursor:pointer;
  min-height:56px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{ background:var(--cedar); color:var(--white); box-shadow: 0 8px 20px rgba(196,123,58,.32);}
.btn--primary:hover{ background:var(--cedar-deep); }
.btn--ghost{ background:transparent; color:var(--white); border:2px solid rgba(255,255,255,.4); }
.btn--ghost:hover{ border-color:var(--white); background:rgba(255,255,255,.06); }
.btn--ink{ background:var(--navy); color:var(--white); }
.btn--ink:hover{ background:var(--navy-deep); }
.btn--block{ width:100%; justify-content:center; }
.btn--xl{ padding:22px 34px; font-size:18px; min-height:64px; }

.btn-call{
  display:inline-flex; align-items:center; gap:14px;
  background:var(--cedar); color:var(--white);
  padding:18px 28px; border-radius:14px;
  font-weight:800; font-size:18px;
  box-shadow: 0 8px 24px rgba(196,123,58,.36);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height:60px;
}
.btn-call:hover{ background:var(--cedar-deep); transform:translateY(-1px); }
.btn-call__icon{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.22);
  display:grid;place-items:center;
  flex:0 0 36px;
}
.btn-call__icon svg{ width:18px; height:18px; fill:var(--white); }
.btn-call__num{ font-size:20px; letter-spacing:-.01em; }
.btn-call__lab{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; opacity:.85; font-weight:700; }

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:80;
  background:var(--white);
  border-bottom:1px solid var(--rule);
}
.hdr{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; height:78px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand__mark{
  width:46px;height:46px; border-radius:11px;
  background:var(--navy); display:grid;place-items:center;
  position:relative; overflow:hidden;
}
.brand__mark svg{ width:32px; height:32px; }
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{ font-weight:800; font-size:17px; letter-spacing:-.01em; color:var(--navy); }
.brand__sub{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--mute); font-weight:600; margin-top:2px;}

.hdr-nav{ display:none; gap:30px; }
.hdr-nav a{
  font-size:14px; font-weight:600; color:var(--ink);
  letter-spacing:.01em; transition:color .15s ease;
}
.hdr-nav a:hover, .hdr-nav a.active{ color:var(--cedar); }

.hdr-cta{ display:flex; align-items:center; gap:14px; }
.hdr-phone{
  display:flex; flex-direction:column; line-height:1.05;
  text-align:right;
}
.hdr-phone__lab{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute); font-weight:700; }
.hdr-phone__num{ font-size:18px; font-weight:800; color:var(--navy); letter-spacing:-.01em; margin-top:3px; white-space:nowrap;}
.hdr-phone__num:hover{ color:var(--cedar); }

@media(max-width:899px){
  .hdr-phone{ text-align:right; }
  .hdr-phone__lab{ display:none; }
  .hdr-phone__num{ font-size:15px; padding: 13px 16px; background:var(--cedar); color:var(--white); border-radius:10px; box-shadow: 0 4px 10px rgba(196,123,58,.28); margin-top:0; min-height:44px; display:inline-flex; align-items:center;}
  .hdr-phone__num:hover{ color:var(--white); background:var(--cedar-deep);}
  .brand__text{ display:none; }
  .brand__mark{ width:42px; height:42px; }
}

.hdr-burger{
  width:46px;height:46px; border:1px solid var(--rule); background:var(--white);
  border-radius:11px; display:grid; place-items:center; cursor:pointer;
}
.hdr-burger span{ display:block; width:18px; height:2px; background:var(--ink); position:relative;}
.hdr-burger span::before,
.hdr-burger span::after{ content:""; position:absolute; left:0; width:18px; height:2px; background:var(--ink);}
.hdr-burger span::before{ top:-6px; }
.hdr-burger span::after{ top:6px; }

@media(min-width:900px){
  .hdr-nav{ display:flex; }
  .hdr-phone{ display:flex; }
  .hdr-burger{ display:none; }
}

.mob-menu{
  display:none;
  position:fixed; inset:78px 0 auto 0; background:var(--white);
  border-bottom:1px solid var(--rule);
  padding:18px var(--pad) 26px;
  z-index:79;
  box-shadow:var(--shadow-md);
}
.mob-menu.is-open{ display:block; }
.mob-menu a{
  display:block; padding:14px 0; border-bottom:1px solid var(--rule);
  font-weight:600; color:var(--ink);
}
.mob-menu a:last-of-type{ border-bottom:0; }

/* ---------- HERO ---------- */
.hero{
  position:relative; overflow:hidden;
  background:var(--navy-deep);
  color:var(--white);
  isolation:isolate;
}
.hero__bg{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(9,27,42,.5) 0%, rgba(9,27,42,.82) 60%, rgba(9,27,42,.95) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=2000&q=70') center/cover no-repeat,
    var(--navy-deep);
}
.hero__bg::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(900px 600px at 78% 25%, rgba(196,123,58,.18), transparent 60%);
}
.hero__inner{
  padding: clamp(64px, 12vw, 130px) 0 clamp(72px, 11vw, 120px);
  display:grid; gap:36px;
  max-width: 1100px;
}
.hero__badge{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 14px; border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  font-weight:700; color:rgba(255,255,255,.92);
  width:fit-content;
}
.hero__badge::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:var(--cedar); box-shadow: 0 0 0 4px rgba(196,123,58,.25);
}
.hero__title{ max-width: 18ch; }
.hero__title em{ font-style:normal; color:var(--cedar); }
.hero__lead{ max-width: 56ch; }
.hero__cta{
  display:flex; flex-wrap:wrap; gap:14px; margin-top: 8px;
}
.hero__meta{
  display:flex; flex-wrap:wrap; gap: clamp(22px, 4vw, 42px);
  padding-top:26px; margin-top: 6px;
  border-top:1px solid rgba(255,255,255,.14);
}
.hero__meta-item{
  display:flex; flex-direction:column; gap:4px;
  font-size:13px; color:rgba(255,255,255,.7);
  letter-spacing:.04em;
}
.hero__meta-item strong{
  font-size: clamp(22px, 2.8vw, 30px); font-weight:800;
  color:var(--white); letter-spacing:-.01em;
}
.hero__meta-item small{ font-size:11px; text-transform:uppercase; letter-spacing:.16em; color:rgba(255,255,255,.55); font-weight:600;}

/* ---------- SERVICE STRIP (sticky) ---------- */
.svc-bar{
  background:var(--cedar);
  color:var(--white);
  position:sticky; top:78px; z-index:60;
  border-bottom: 3px solid var(--cedar-deep);
}
.svc-bar__inner{
  display:flex; gap:0;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.svc-bar__inner::-webkit-scrollbar{ display:none; }
.svc-bar__item{
  flex:1 0 auto;
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; min-height:56px;
  font-weight:700; font-size:14px;
  color:var(--white);
  white-space:nowrap;
  border-right:1px solid rgba(255,255,255,.18);
  transition:background .15s ease;
}
.svc-bar__item:last-child{ border-right:0; }
.svc-bar__item:hover{ background:var(--cedar-deep); }
.svc-bar__item .ico{ font-size:18px; line-height:1; }
.svc-bar__item--navy{ background: var(--navy); }
.svc-bar__item--navy:hover{ background:var(--navy-deep); }

@media(min-width:900px){
  .svc-bar__inner{ justify-content:center; gap:0; }
  .svc-bar__item{ flex:0 1 auto; padding:14px 28px; font-size:15px; }
}

/* ---------- SECTIONS ---------- */
.section{ padding: clamp(64px, 9vw, 110px) 0; }
.section--ivory{ background:var(--ivory); }
.section--navy{ background:var(--navy); color:var(--white); }
.section--navy-deep{ background:var(--navy-deep); color:var(--white); }
.section-head{
  display:grid; gap:14px;
  max-width:780px; margin: 0 auto clamp(40px, 6vw, 72px);
  text-align:center;
}
.section-head--left{ margin: 0 0 clamp(40px,6vw,72px); text-align:left; max-width: 720px;}
.section-head .lead{ margin-left:auto; margin-right:auto; }

/* ---------- SERVICES GRID ---------- */
.svc-grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.svc-card{
  background:var(--white);
  border:1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
  display:flex; flex-direction:column; gap:14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position:relative;
}
.svc-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color: var(--cedar);
}
.svc-card__icon{
  width:54px; height:54px; border-radius:13px;
  background: linear-gradient(135deg, var(--cedar) 0%, var(--cedar-light) 100%);
  display:grid; place-items:center;
  box-shadow: 0 6px 14px rgba(196,123,58,.28);
}
.svc-card__icon svg{ width:26px; height:26px; fill:var(--white); }
.svc-card__title{ font-size:20px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.svc-card__blurb{ font-size:15px; color:var(--mute); line-height:1.55;}
.svc-card__list{
  list-style:none; padding:0; margin:6px 0 0;
  display:grid; gap:6px;
}
.svc-card__list li{
  font-size:13px; color:var(--ink); display:flex; gap:8px; align-items:flex-start;
}
.svc-card__list li::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:var(--cedar); margin-top:8px; flex:0 0 6px;
}
.svc-card__cta{
  margin-top:10px;
  display:inline-flex; align-items:center; gap:6px;
  font-weight:700; color:var(--navy); font-size:14px;
}
.svc-card__cta::after{ content:"→"; transition:transform .15s ease;}
.svc-card:hover .svc-card__cta::after{ transform:translateX(4px); }

/* ---------- AREAS ---------- */
.areas{
  display:grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media(min-width:900px){
  .areas{ grid-template-columns: 1fr 1.4fr; gap: 64px; align-items:start;}
}
.areas-grid{
  display:grid; gap:10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.area-tile{
  background:var(--white);
  border:1px solid rgba(255,255,255,.14);
  border-radius:11px;
  padding:16px 18px;
  display:flex; flex-direction:column; gap:4px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.section--navy-deep .area-tile{ background:rgba(255,255,255,.04); }
.section--navy-deep .area-tile__name{ color:var(--white); }
.section--navy-deep .area-tile__note{ color:var(--mute-dark); }
.area-tile:hover{ border-color: var(--cedar); background:rgba(196,123,58,.08); transform:translateY(-2px);}
.area-tile__name{ font-weight:800; letter-spacing:-.01em; color:var(--navy); }
.area-tile__note{ font-size:12px; color:var(--mute); letter-spacing:.02em;}
.area-tile--home{ background: var(--cedar) !important; border-color:var(--cedar) !important; }
.area-tile--home .area-tile__name, .area-tile--home .area-tile__note{ color:var(--white) !important; }

/* ---------- FAMILY STORY ---------- */
.story{
  display:grid; gap:48px; align-items:center;
  grid-template-columns: 1fr;
}
@media(min-width:900px){ .story{ grid-template-columns: 1.05fr 1fr; gap: 72px;} }
.story__img{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  aspect-ratio: 4 / 5; background: var(--navy-tint);
}
.story__img img{ width:100%; height:100%; object-fit:cover; }
.story__img::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 50%, rgba(9,27,42,.55) 100%);
}
.story__img-badge{
  position:absolute; left:20px; bottom:20px;
  background:var(--cedar); color:var(--white);
  padding: 10px 16px; border-radius:10px;
  font-size:13px; font-weight:800; letter-spacing:.02em;
  display:flex; align-items:center; gap:8px;
}
.story__pillars{
  display:grid; gap:18px; margin-top:30px;
  grid-template-columns: 1fr;
}
@media(min-width:520px){ .story__pillars{ grid-template-columns: 1fr 1fr; } }
.pillar{
  background: rgba(14,40,69,.04);
  border-left: 3px solid var(--cedar);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
}
.pillar__lab{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute); font-weight:700; }
.pillar__val{ font-size:26px; font-weight:800; color:var(--navy); letter-spacing:-.01em; margin-top:4px;}

/* ---------- GUARANTEE / WHY US ---------- */
.why-grid{
  display:grid; gap:20px;
  grid-template-columns: 1fr;
}
@media(min-width:760px){ .why-grid{ grid-template-columns: repeat(3, 1fr);} }
.why-card{
  background:var(--white);
  border:1px solid var(--rule);
  border-radius:18px;
  padding: 32px 26px;
  display:flex; flex-direction:column; gap:14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md);}
.why-card--highlight{
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.why-card--highlight:hover{ transform: translateY(-10px); }
.why-card__icon{
  width:52px; height:52px; border-radius:14px;
  background:linear-gradient(135deg, var(--cedar) 0%, var(--cedar-light) 100%);
  display:grid; place-items:center;
}
.why-card--highlight .why-card__icon{ background:rgba(255,255,255,.12);}
.why-card__icon svg{ width:24px; height:24px; fill:var(--white);}
.why-card__title{ font-size:20px; font-weight:800; color:var(--navy);}
.why-card--highlight .why-card__title{ color:var(--white);}
.why-card__body{ font-size:15px; color:var(--mute); line-height:1.6; flex:1;}
.why-card--highlight .why-card__body{ color:rgba(255,255,255,.75);}

/* ---------- REVIEWS ---------- */
.reviews{
  display:grid; gap:18px;
  grid-template-columns: 1fr;
}
@media(min-width:760px){ .reviews{ grid-template-columns: repeat(3, 1fr); } }
.review{
  background:var(--white);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:26px 24px;
  display:flex; flex-direction:column; gap:14px;
}
.review__stars{
  display:inline-flex; gap:2px; color:var(--cedar);
  font-size:16px;
}
.review__quote{ font-size:16px; line-height:1.55; color:var(--ink); }
.review__author{
  display:flex; align-items:center; gap:12px; margin-top: 4px;
  padding-top:14px; border-top:1px solid var(--rule);
}
.review__avatar{
  width:40px; height:40px; border-radius:50%;
  background: var(--navy);
  color:var(--white);
  display:grid; place-items:center;
  font-weight:800; font-size:14px;
  flex:0 0 40px;
}
.review__name{ font-weight:700; font-size:14px; color:var(--navy);}
.review__src{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--mute); font-weight:700;}
.reviews-strip{
  display:flex; justify-content:center; gap:32px; flex-wrap:wrap;
  margin-top: 32px; padding-top:32px;
  border-top:1px solid var(--rule);
}
.reviews-strip__item{
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.reviews-strip__rating{
  font-size:32px; font-weight:800; color:var(--navy); letter-spacing:-.02em;
  display:flex; align-items:center; gap:6px;
}
.reviews-strip__rating{ font-family:var(--font-display); }
.reviews-strip__src{ font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--mute); font-weight:700;}

/* ---------- FINANCING ---------- */
.financing{
  background:var(--navy-deep);
  color:var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display:grid; gap:36px; align-items:center;
  grid-template-columns: 1fr;
}
@media(min-width:900px){ .financing{ grid-template-columns: 1.3fr 1fr;} }
.financing__title{ font-size:clamp(28px,3.4vw,40px); font-weight:800; line-height:1.1; letter-spacing:-.02em;}
.financing__title em{ font-style:normal; color:var(--cedar); }
.financing__lead{ color:rgba(255,255,255,.78); max-width: 50ch; margin-top:12px;}
.financing__points{ list-style:none; padding:0; margin:24px 0 0; display:grid; gap:10px;}
.financing__points li{ display:flex; gap:10px; align-items:flex-start; font-size:15px;}
.financing__points li::before{
  content:""; width:24px; height:24px; border-radius:50%;
  background: var(--cedar); color:var(--white);
  display:grid; place-items:center; font-size:13px; font-weight:800;
  flex:0 0 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  background-repeat:no-repeat; background-position:center; background-size:14px;
}
.financing__card{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding: 28px 24px;
  display:grid; gap:14px;
}
.financing__cardlab{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute-dark); font-weight:700;}
.financing__cardpct{ font-size:64px; font-weight:800; line-height:1; color:var(--cedar); letter-spacing:-.03em;}
.financing__cardpct sup{ font-size:32px; vertical-align: top; margin-top:8px;}
.financing__cardcopy{ color:rgba(255,255,255,.78); font-size:14px;}
.financing__cardsmall{ font-size:11px; color:rgba(255,255,255,.45); margin-top:8px; line-height:1.5;}

/* ---------- QUOTE FORM ---------- */
.quote{
  display:grid; gap:48px;
  grid-template-columns: 1fr;
}
/* Fix: grid items default to min-width:auto which can cause overflow */
.quote > * { min-width: 0; }
@media(min-width:900px){ .quote{ grid-template-columns: 1fr 1.1fr; gap:80px;} }
.quote__intro h2{ color:var(--ink); }
.quote__why{
  list-style:none; padding:0; margin: 26px 0 0;
  display:grid; gap:14px;
}
.quote__why li{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color:var(--ink);}
.quote__why li::before{
  content:""; width:22px; height:22px; flex:0 0 22px; margin-top:1px;
  border-radius:50%; background:var(--cedar);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  background-repeat:no-repeat; background-position:center; background-size:14px;
}
.form{
  background:var(--white);
  border:1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  display:grid; gap:18px;
}
.form__row{ display:grid; gap:18px; grid-template-columns: 1fr;}
@media(min-width:600px){ .form__row--2{ grid-template-columns: 1fr 1fr;} }
.field{ display:flex; flex-direction:column; gap:6px;}
.field label{
  font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--navy);
}
.field input, .field select, .field textarea{
  font-family:inherit; font-size:16px;
  padding:16px 18px; border-radius:10px;
  border:1px solid var(--rule); background:var(--white); color:var(--ink);
  min-height:56px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:0;
  border-color: var(--cedar);
  box-shadow: 0 0 0 4px rgba(196,123,58,.14);
}
.field textarea{ resize:vertical; min-height:110px; line-height:1.5;}
.form__note{ font-size:12px; color:var(--mute); }

/* ---------- MATERIALS STRIP ---------- */
.brands-strip{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap: clamp(28px, 6vw, 64px);
  padding: 18px 0;
}
.brand-chip{
  font-weight:800; letter-spacing:.02em;
  font-size: clamp(16px, 2.4vw, 24px);
  color:var(--navy); opacity:.55;
  font-family: var(--font);
}
.brand-chip:hover{ opacity:1; color:var(--cedar);}

/* ---------- CTA BAND ---------- */
.cta-band{
  background: var(--cedar);
  color:var(--white);
  text-align:center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.cta-band__title{ font-size: clamp(32px, 4.6vw, 56px); font-weight:800; letter-spacing:-.02em; line-height:1.1;}
.cta-band__lead{ font-size:18px; opacity:.92; max-width: 50ch; margin: 14px auto 30px;}
.cta-band .btn-call{ background:var(--white); color:var(--navy);}
.cta-band .btn-call .btn-call__icon{ background:rgba(14,40,69,.1);}
.cta-band .btn-call .btn-call__icon svg{ fill:var(--navy);}
.cta-band .btn-call:hover{ background:var(--ivory); }

/* ---------- FOOTER ---------- */
.foot{
  background:var(--navy-deep);
  color: rgba(255,255,255,.78);
  padding: clamp(56px, 7vw, 88px) 0 28px;
}
.foot__grid{
  display:grid; gap:36px;
  grid-template-columns: 1fr;
}
@media(min-width:760px){ .foot__grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;} }
.foot h4{
  font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--white); margin: 0 0 14px; font-weight:800;
}
.foot ul{ list-style:none; padding:0; margin:0; display:grid; gap:10px;}
.foot a{ font-size:14px; color: rgba(255,255,255,.7); transition: color .15s ease;}
.foot a:hover{ color: var(--cedar-light);}
.foot__brand{ display:flex; align-items:center; gap:12px; margin-bottom: 16px;}
.foot__brand .brand__mark{ width:50px; height:50px; }
.foot__about{ font-size:14px; color: rgba(255,255,255,.7); line-height:1.6; max-width: 38ch;}
.foot__phone{
  display:flex; flex-direction:column; gap:4px; margin-bottom:14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
}
.foot__phone .lab{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--mute-dark); font-weight:700;}
.foot__phone .num{ font-size:22px; font-weight:800; color:var(--white); letter-spacing:-.01em;}
.foot__phone .num:hover{ color: var(--cedar-light);}
.foot__bottom{
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px;
  font-size:12px; color: rgba(255,255,255,.5); letter-spacing:.02em;
}
.foot__credit{ color: rgba(255,255,255,.5);}
.foot__credit a{ color: var(--cedar-light);}

/* ---------- REVEAL (fallback-open) ---------- */
.reveal{ opacity:1; transform:none;}
.reveal--ready{ opacity:0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease;}
.reveal--in{ opacity:1; transform: translateY(0);}

/* ---------- PAGE HEADERS ---------- */
.page-hero{
  background: var(--navy);
  color:var(--white);
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 4px solid var(--cedar);
}
.page-hero__inner{ display:grid; gap:18px; max-width: 800px;}
.page-hero__crumbs{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.55); font-weight:700;}
.page-hero__crumbs a{ color: var(--cedar-light);}

/* ---------- UTILS ---------- */
.spacer-sm{ height:24px; } .spacer-md{ height:48px;} .spacer-lg{ height:72px;}
.muted{ color:var(--mute);}
.center{ text-align:center; }

/* ---------- MOBILE ---------- */
@media(max-width:600px){
  .hero__inner{ padding-top: 56px; padding-bottom: 64px; gap: 26px;}
  .hero__cta .btn-call{ width:100%; }
  .hero__cta .btn{ width:100%; justify-content:center; }
  .hero__meta{ gap:20px; }
  .svc-bar__item{ padding: 12px 14px; font-size:13px; }
  /* Make quote CTA full-width on mobile */
  .quote__intro .btn-call{ width:100%; box-sizing:border-box; }
  .section{ padding: 56px 0; }
}

/* ---------- OVERFLOW GUARD ---------- */
/* Belt-and-suspenders: prevent any stray element creating horizontal scroll */
body{ overflow-x: hidden; }
.svc-bar{ overflow: hidden; }

/* =========================================================
   PREMIUM LAYER v4 — craftsman editorial, real photography
   Display serif (Fraunces) + Inter body. Brand monogram motif.
   ========================================================= */

:root{
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --cedar-grad: linear-gradient(135deg, #C47B3A 0%, #D4894A 50%, #A6621E 100%);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Serif display headings — the single biggest anti-generic move */
.h-display, .h-section, .cta-band__title, .financing__title,
.story h2, .quote__intro h2, .svc-card__title{
  font-family: var(--font-display);
  font-optical-sizing:auto;
  font-weight:600;
  letter-spacing:-.015em;
}
.h-display{ font-weight:600; }
.svc-card__title{ font-weight:600; letter-spacing:-.01em; }
.hero__title em, .financing__title em{ font-style:italic; }

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:var(--cedar-grad); z-index:200;
  transition: width .1s linear;
}

/* ---------- HEADER: shrink + shadow on scroll ---------- */
.site-header{ transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled{ box-shadow: 0 4px 24px rgba(9,27,42,.10); }
.site-header.is-scrolled .hdr{ height:66px; transition:height .3s ease; }
.hdr{ transition:height .3s ease; }
/* Real circular MF monogram in brand mark */
.brand__mark{ background:var(--navy); }
.brand__mark img.brand__logo{ width:78%; height:78%; object-fit:contain; }
.brand__name{ font-family:var(--font-display); font-weight:600; font-size:18px; }

/* ---------- HERO: real photo, refined, parallax-ready ---------- */
.hero__bg{
  background:
    linear-gradient(180deg, rgba(9,27,42,.62) 0%, rgba(9,27,42,.74) 55%, rgba(9,27,42,.92) 100%),
    url('images/site/hero-cedar-fence.jpg') center 30%/cover no-repeat,
    var(--navy-deep);
  will-change: transform;
}
.hero__bg::after{
  background: radial-gradient(820px 540px at 80% 22%, rgba(196,123,58,.22), transparent 62%);
}
/* subtle film grain / vignette for depth */
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  box-shadow: inset 0 -120px 120px -60px rgba(9,27,42,.9);
}
.hero__title{ text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__rating{
  display:inline-flex; align-items:center; gap:10px; margin-top:-8px;
  font-size:14px; color:rgba(255,255,255,.9); font-weight:600;
}
.hero__rating .stars{ color:var(--cedar-light); letter-spacing:1px; font-size:15px;}
.hero__rating b{ color:#fff; }

/* count-up emphasis */
.hero__meta-item strong[data-count]{ font-variant-numeric: tabular-nums; }

/* ---------- SECTION INTRO ALIGNMENT VARIANT ---------- */
.section-head .eyebrow{ justify-content:center; }
.section-head--left .eyebrow{ justify-content:flex-start; }

/* ---------- DIVIDER: diagonal-slash motif from logo ---------- */
.slash-rule{
  display:flex; align-items:center; gap:14px; margin: 0 0 22px;
  color:var(--cedar); font-weight:800; letter-spacing:.18em; text-transform:uppercase; font-size:12px;
}
.slash-rule::before{ content:"/ /"; font-family:var(--font-display); font-style:italic; letter-spacing:-2px; font-size:18px; }

/* ---------- RECENT WORK GALLERY ---------- */
.gallery{
  display:grid; gap:14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gallery__item{
  position:relative; overflow:hidden; border-radius:14px;
  background:var(--navy-tint); cursor:pointer;
  border:1px solid var(--rule);
}
.gallery__item img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .7s var(--ease-out);
}
.gallery__item:hover img{ transform:scale(1.07); }
.gallery__item::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(9,27,42,.6) 100%);
  opacity:0; transition:opacity .3s ease;
}
.gallery__item:hover::after{ opacity:1; }
.gallery__cap{
  position:absolute; left:14px; bottom:12px; right:14px; z-index:2;
  color:#fff; font-size:13px; font-weight:700; letter-spacing:.01em;
  opacity:0; transform:translateY(8px); transition: opacity .3s ease, transform .3s ease;
  display:flex; align-items:center; gap:7px;
}
.gallery__cap::before{ content:""; width:7px;height:7px;border-radius:50%; background:var(--cedar); flex:0 0 7px;}
.gallery__item:hover .gallery__cap{ opacity:1; transform:translateY(0); }
.gallery__item--tall{ grid-row: span 2; }
.gallery__item--wide{ grid-column: span 2; }
.gallery__badge{
  position:absolute; top:12px; left:12px; z-index:2;
  background:rgba(255,255,255,.92); color:var(--navy);
  font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  padding:5px 9px; border-radius:6px;
}
@media(max-width:900px){
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px;}
  .gallery__item--wide{ grid-column: span 2; }
  .gallery__item--tall{ grid-row: span 1; }
}
@media(max-width:520px){
  .gallery{ grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery__cap{ opacity:1; transform:none; font-size:11px;}
  .gallery__item::after{ opacity:.5;}
}
.gallery-note{ text-align:center; margin-top:22px; font-size:13px; color:var(--mute); }
.gallery-note b{ color:var(--navy); }

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position:fixed; inset:0; z-index:300;
  background:rgba(7,18,28,.94);
  display:flex; align-items:center; justify-content:center;
  padding:30px; opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width:92vw; max-height:84vh; border-radius:10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform:scale(.96); transition:transform .25s var(--ease-out);
}
.lightbox.is-open img{ transform:scale(1); }
.lightbox__close, .lightbox__nav{
  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%;
  display:grid; place-items:center; font-size:24px; cursor:pointer;
  transition:background .15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover{ background:rgba(196,123,58,.5); }
.lightbox__close{ top:24px; right:24px; }
.lightbox__nav{ top:50%; transform:translateY(-50%); }
.lightbox__nav--prev{ left:24px; } .lightbox__nav--next{ right:24px; }
.lightbox__cap{ position:absolute; bottom:26px; left:0; right:0; text-align:center; color:rgba(255,255,255,.85); font-size:14px; font-weight:600;}
@media(max-width:600px){ .lightbox__nav{ width:44px;height:44px;} .lightbox__nav--prev{left:8px;} .lightbox__nav--next{right:8px;} }

/* ---------- STORY image real photo + float monogram ---------- */
.story__img{ aspect-ratio: 4/5; }
/* Seal floats at the image corner; keep overlay + photo corners rounded */
.story__img{ overflow:visible; }
.story__img > img{ border-radius: var(--radius-lg); }
.story__img::after{ border-radius: var(--radius-lg); }
.story__seal{
  position:absolute; top:-22px; right:-22px; z-index:3;
  width:104px; height:104px; border-radius:50%;
  background:var(--navy); border:3px solid var(--cedar);
  display:grid; place-items:center; text-align:center;
  box-shadow: var(--shadow-lg);
  animation: sealspin 26s linear infinite;
}
.story__seal img{ width:54%; height:54%; object-fit:contain; animation: sealspin 26s linear infinite reverse;}
@keyframes sealspin{ to{ transform:rotate(360deg);} }
@media(max-width:600px){ .story__seal{ width:76px;height:76px; top:-14px; right:6px;} }

/* ---------- SERVICE CARDS: optional photo top ---------- */
.svc-card--photo{ padding:0; overflow:hidden; }
.svc-card--photo .svc-card__photo{
  height:170px; overflow:hidden; position:relative;
}
.svc-card--photo .svc-card__photo img{
  width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease-out);
}
.svc-card--photo:hover .svc-card__photo img{ transform:scale(1.06); }
.svc-card--photo .svc-card__body{ padding:24px; display:flex; flex-direction:column; gap:12px;}

/* ---------- STAGGER reveal helper ---------- */
.reveal--ready.stagger-1{ transition-delay:.06s; }
.reveal--ready.stagger-2{ transition-delay:.12s; }
.reveal--ready.stagger-3{ transition-delay:.18s; }
.reveal--ready.stagger-4{ transition-delay:.24s; }

/* ---------- IMAGE CLIP REVEAL ---------- */
.clip-reveal{ clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out); }
.clip-reveal.reveal--in, .clip-reveal.is-in{ clip-path: inset(0 0 0 0); }

/* ---------- ANIMATED LINK UNDERLINE (nav) ---------- */
.hdr-nav a{ position:relative; }
.hdr-nav a::after{
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background:var(--cedar); transition:width .25s var(--ease-out);
}
.hdr-nav a:hover::after, .hdr-nav a.active::after{ width:100%; }

/* ---------- PROCESS STEPS (services/about) ---------- */
.steps{ display:grid; gap:18px; grid-template-columns: repeat(4,1fr); counter-reset: step;}
@media(max-width:860px){ .steps{ grid-template-columns:1fr 1fr;} }
@media(max-width:520px){ .steps{ grid-template-columns:1fr;} }
.step{
  position:relative; background:var(--white); border:1px solid var(--rule);
  border-radius:14px; padding:28px 22px 24px; counter-increment: step;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.step::before{
  content:"0" counter(step); font-family:var(--font-display); font-style:italic;
  font-size:40px; color:var(--cedar); opacity:.9; line-height:1; display:block; margin-bottom:12px;
}
.step h3{ font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--navy); margin-bottom:8px;}
.step p{ font-size:14px; color:var(--mute); line-height:1.55;}

/* prefers-reduced-motion: disable spins/parallax */
@media (prefers-reduced-motion: reduce){
  .story__seal, .story__seal img{ animation:none; }
  .reveal--ready{ transition:none; opacity:1; transform:none;}
  .clip-reveal{ clip-path:none; }
  html{ scroll-behavior:auto; }
}
