/* 76 Fence MontCo territory sites — shared stylesheet
   Brand tokens match 76fence.com (navy #20396c, red #e22c37, blue #3261a3, Wix Madefor). */
:root{
  --navy:#20396c; --navy-900:#0f1f3d; --navy-800:#152546; --navy-50:#eef2f8;
  --red:#e22c37; --red-700:#b81f29; --blue:#3261a3; --blue-10:#ebeff6;
  --ink:#172033; --body:#39445a; --muted:#5f6b80; --line:#dbe1ea; --paper:#ffffff; --wash:#f6f8fb;
  --radius:14px; --radius-sm:8px; --shadow:0 10px 30px -12px rgba(15,31,61,.28);
  --font-display:"Wix Madefor Display","Wix Madefor Text",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-text:"Wix Madefor Text",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --wrap:1180px; --gutter:clamp(16px,4vw,32px);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font-text);font-size:17px;line-height:1.65;color:var(--body);background:var(--paper)}
img,svg{max-width:100%;display:block}
a{color:var(--blue);text-underline-offset:3px}
a:hover{color:var(--navy)}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--ink);line-height:1.18;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(2rem,4.6vw,3.25rem);font-weight:800}
h2{font-size:clamp(1.55rem,3vw,2.2rem);font-weight:750}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1em}
ul,ol{padding-left:1.2em;margin:0 0 1em}
li{margin:.25em 0}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;padding:8px 14px;z-index:99}
.skip:focus{left:8px;top:8px}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--red)}
.lede{font-size:1.15rem;color:var(--body);max-width:62ch}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.tbd{background:#fff3c4;color:#6b4e00;border-radius:4px;padding:0 .3em;font-weight:700;white-space:nowrap}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font-family:var(--font-display);font-weight:700;font-size:1rem;border-radius:999px;padding:.8em 1.35em;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,background .15s ease,color .15s ease;line-height:1.1}
.btn:hover{transform:translateY(-1px)}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-700);color:#fff}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-800);color:#fff}
.btn-ghost{border-color:currentColor;color:var(--navy);background:transparent}
.btn-ghost-light{border-color:rgba(255,255,255,.7);color:#fff}
.btn-ghost-light:hover{background:#fff;color:var(--navy)}
.btn svg{width:18px;height:18px}

/* Utility bar + header */
.utility{background:var(--navy-900);color:#cdd6e6;font-size:.85rem}
.utility .wrap{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding-block:.45rem;flex-wrap:wrap}
.utility a{color:#fff;text-decoration:none;font-weight:700}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:1.25rem;padding-block:.7rem}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink);margin-right:auto}
.brand img{width:40px;height:auto}
.brand-name{font-family:var(--font-display);font-weight:800;font-size:1.12rem;line-height:1.05;display:block}
.brand-sub{font-size:.74rem;color:var(--muted);font-weight:600;letter-spacing:.02em}
.nav{display:flex;align-items:center;gap:.2rem}
.nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem;padding:.5em .7em;border-radius:8px}
.nav a:hover,.nav a[aria-current="page"]{background:var(--blue-10);color:var(--navy)}
.header-cta{display:flex;gap:.5rem}
.header-cta .btn{padding:.65em 1.05em;font-size:.95rem}
.menu-toggle{display:none;background:none;border:0;padding:.4rem;color:var(--ink);cursor:pointer}
.menu-toggle svg{width:28px;height:28px}
@media (max-width:1060px){
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:.5rem var(--gutter) 1rem;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .nav a{padding:.8em .6em;font-size:1.02rem}
  .menu-toggle{display:block}
  .header-cta .btn-navy{display:none}
}
@media (max-width:520px){ .brand-sub{display:none} .header-cta .btn{padding:.6em .9em} .utility .franchise{display:none} }

/* Hero */
.hero{position:relative;background:linear-gradient(160deg,var(--navy-900) 0%,var(--navy) 62%,var(--blue) 130%);color:#e7ecf5;overflow:hidden}
.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:120px;background:url("../img/fence-line.svg") repeat-x bottom left/auto 120px;opacity:.14;pointer-events:none}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,5vw,56px);padding-block:clamp(40px,7vw,84px)}
.hero h1{color:#fff}
.hero .lede{color:#d6deec}
.hero .eyebrow{color:#ff8a91}
.hero-points{list-style:none;padding:0;margin:1.4rem 0;display:grid;gap:.55rem}
.hero-points li{display:flex;gap:.6rem;align-items:flex-start;margin:0}
.hero-points svg{flex:0 0 22px;width:22px;height:22px;color:#ff8a91;margin-top:.15rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}
@media (max-width:900px){ .hero .wrap{grid-template-columns:1fr} }

/* Form card */
.form-card{background:#fff;color:var(--body);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(20px,3vw,30px);align-self:start}
.form-card h2{font-size:1.4rem;margin-bottom:.2em}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:1rem}
.form-grid .full{grid-column:1/-1}
@media (max-width:480px){ .form-grid{grid-template-columns:1fr} }
label{display:block;font-size:.84rem;font-weight:700;color:var(--ink);margin-bottom:.25rem}
input,select,textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--wash);border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:.65em .75em}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(50,97,163,.18)}
textarea{min-height:92px;resize:vertical}
.check{display:flex;gap:.55rem;align-items:flex-start;font-weight:400;font-size:.78rem;line-height:1.45;color:var(--muted)}
.check input{width:auto;margin-top:.2rem}
.hp{position:absolute;left:-5000px}
.form-note{font-size:.82rem;color:var(--muted);margin-top:.6rem}
.zip-msg{font-size:.82rem;margin-top:.3rem;min-height:1.2em}
.zip-msg.ok{color:#1d7a46}.zip-msg.out{color:var(--red-700)}
.form-status{margin-top:.7rem;font-weight:700}

/* Sections */
section{padding-block:clamp(48px,7vw,88px)}
.section-wash{background:var(--wash)}
.section-navy{background:var(--navy);color:#dfe6f2}
.section-navy h2,.section-navy h3{color:#fff}
.section-head{max-width:760px;margin-bottom:2rem}
.grid{display:grid;gap:1.1rem}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.grid-services{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){ .grid-services{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){ .grid-services{grid-template-columns:1fr} }
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;display:flex;flex-direction:column}
.card h3{margin-bottom:.35em}
.card p{margin-bottom:.8em}
.card .more{margin-top:auto;font-weight:700;text-decoration:none}
.card-icon{width:46px;height:46px;border-radius:12px;background:var(--blue-10);color:var(--navy);display:grid;place-items:center;margin-bottom:.9rem}
.card-icon svg{width:26px;height:26px}
a.card{text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s,transform .15s}
a.card:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-2px)}
.price-tag{font-family:var(--font-display);font-weight:800;color:var(--navy);font-size:1.05rem}

/* Trust strip */
.trust{background:#fff;border-bottom:1px solid var(--line)}
.trust .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;padding-block:1.2rem}
.trust-item{display:flex;gap:.7rem;align-items:center;font-weight:700;color:var(--ink);font-size:.95rem;line-height:1.3}
.trust-item svg{flex:0 0 30px;width:30px;height:30px;color:var(--red)}
.trust-item .sub{display:block;font-weight:500;color:var(--muted);font-size:.82rem}

/* Steps */
.steps{counter-reset:step;list-style:none;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.steps li{counter-increment:step;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;margin:0;position:relative}
.steps li::before{content:counter(step);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--red);color:#fff;font-family:var(--font-display);font-weight:800;margin-bottom:.7rem}
.steps h3{font-size:1.05rem}

/* Page header + prose */
.page-hero{background:linear-gradient(160deg,var(--navy-900),var(--navy));color:#dfe6f2;padding-block:clamp(36px,6vw,64px)}
.page-hero h1{color:#fff;max-width:22ch}
.page-hero .lede{color:#d6deec}
.crumbs{font-size:.85rem;margin-bottom:.8rem;color:#b8c3d8}
.crumbs a{color:#fff;text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(24px,4vw,48px);align-items:start}
@media (max-width:980px){ .layout{grid-template-columns:minmax(0,1fr)} }
.prose h2{margin-top:1.6em;font-size:clamp(1.4rem,2.4vw,1.8rem)}
.prose h2:first-child{margin-top:0}
.prose h3{margin-top:1.3em}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem;margin:0 0 1.2em}
.table-scroll{overflow-x:auto;margin:0 0 1.2em;border:1px solid var(--line);border-radius:var(--radius-sm)}
.table-scroll table{margin:0}
.table-scroll.wide table{min-width:520px}
.prose th,.prose td{text-align:left;padding:.65em .8em;border-bottom:1px solid var(--line);vertical-align:top}
.prose th{background:var(--navy-50);color:var(--ink);font-family:var(--font-display);font-size:.88rem}
.prose tr:last-child td{border-bottom:0}
.callout{border-left:4px solid var(--red);background:var(--wash);padding:1rem 1.2rem;border-radius:0 var(--radius-sm) var(--radius-sm) 0;margin:1.2em 0}
.callout p:last-child{margin:0}
.aside{position:sticky;top:96px;display:grid;gap:1rem}
.aside .card{padding:1.2rem}
.aside .form-card{box-shadow:none;border:1px solid var(--line)}
.checklist{list-style:none;padding:0}
.checklist li{padding-left:1.7em;position:relative}
.checklist li::before{content:"";position:absolute;left:0;top:.45em;width:1em;height:1em;border-radius:50%;background:var(--blue-10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320396c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat}
.rule-card{border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.2rem;margin:0 0 1rem;background:#fff}
.rule-card h3{margin:0 0 .4em;font-size:1.08rem}
.rule-card dl{display:grid;grid-template-columns:max-content 1fr;gap:.3rem 1rem;margin:0 0 .6rem;font-size:.95rem}
.rule-card dt{font-weight:700;color:var(--ink)}
.rule-card dd{margin:0}
@media (max-width:520px){ .rule-card dl{grid-template-columns:1fr} .rule-card dd{margin-bottom:.4rem} }
.source{font-size:.82rem;color:var(--muted)}
.pill-list{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.pill-list li{margin:0}
.pill-list a,.pill-list span{display:inline-block;padding:.4em .85em;border-radius:999px;background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:600;font-size:.92rem}
.pill-list a:hover{border-color:var(--blue);color:var(--navy)}

/* FAQ */
.faq details{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;margin-bottom:.6rem}
.faq summary{cursor:pointer;list-style:none;padding:1rem 3rem 1rem 1.1rem;font-family:var(--font-display);font-weight:700;color:var(--ink);position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:1.1rem;top:50%;transform:translateY(-50%);font-size:1.4rem;color:var(--red)}
.faq details[open] summary::after{content:"–"}
.faq .answer{padding:0 1.1rem 1rem}
.faq .answer p:last-child{margin:0}

/* CTA band */
.cta-band{background:linear-gradient(120deg,var(--red-700),var(--red));color:#fff}
.cta-band .wrap{display:flex;flex-wrap:wrap;gap:1.2rem;align-items:center;justify-content:space-between}
.cta-band h2{color:#fff;margin:0}
.cta-band p{margin:.3rem 0 0;color:#ffe3e5}
.cta-band .btn-navy{background:#fff;color:var(--red-700)}

/* Footer */
.site-footer{background:var(--navy-900);color:#b8c3d8;font-size:.92rem}
.site-footer .wrap{padding-block:3rem 2rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
@media (max-width:860px){ .footer-grid{grid-template-columns:1fr 1fr} }
@media (max-width:520px){ .footer-grid{grid-template-columns:1fr} }
.site-footer h3{color:#fff;font-size:1rem;margin-bottom:.7rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer a{color:#dfe6f2;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.legal{border-top:1px solid rgba(255,255,255,.12);margin-top:2rem;padding-top:1.3rem;font-size:.8rem;color:#8f9bb3}
.legal p{margin:.3rem 0}

/* Mobile call bar */
.callbar{display:none}
@media (max-width:720px){
  .callbar{display:grid;grid-template-columns:1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:60;padding-bottom:env(safe-area-inset-bottom,0px);background:var(--navy-900)}
  .callbar a{display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.9rem;color:#fff;font-weight:700;text-decoration:none}
  .callbar a+a{background:var(--red)}
  .callbar svg{width:20px;height:20px}
  body{padding-bottom:58px}
}
:focus-visible{outline:3px solid #ffb4b9;outline-offset:2px}
@media (prefers-reduced-motion:reduce){ *{scroll-behavior:auto!important;transition:none!important} }

/* Photos */
.hero-has-photo{background:var(--navy-900)}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-media img{width:100%;height:100%;object-fit:cover;opacity:.42}
.hero-has-photo::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(100deg,rgba(15,31,61,.94) 0%,rgba(15,31,61,.78) 48%,rgba(32,57,108,.45) 100%)}
.photo{margin:0 0 1.6em}
.photo img{width:100%;height:auto;border-radius:var(--radius);background:var(--wash)}
.photo figcaption{font-size:.86rem;color:var(--muted);margin-top:.5rem;line-height:1.45}
.photo .credit{color:#8a94a6;white-space:nowrap}
.photo-lead img{aspect-ratio:3/2;object-fit:cover}
.gallery{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));margin:0 0 .6em}
.gallery-home{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:980px){ .gallery-home{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:520px){ .gallery-home{grid-template-columns:1fr} }
.photo-tile{margin:0}
.photo-tile img{aspect-ratio:4/3;object-fit:cover}
.card-photo{padding:0;overflow:hidden}
.card-photo .card-img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-bottom:1px solid var(--line)}
.card-photo h3{margin:1.1rem 1.3rem .35em}
.card-photo p,.card-photo .more,.card-photo .price-tag{margin-left:1.3rem;margin-right:1.3rem}
.card-photo .more{margin-bottom:1.2rem}
.updated{font-size:.82rem;color:#b8c3d8;margin:.6rem 0 0}
.glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:0 0 1.8em;padding:0}
.glance div{background:var(--wash);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.7rem .9rem}
.glance dt{font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.glance dd{margin:.15rem 0 0;font-weight:700;color:var(--ink);line-height:1.35}

/* Fence facts */
.facts{list-style:none;padding:0;margin:0 0 1.5em;counter-reset:fact}
.fact{counter-increment:fact;position:relative;padding:0 0 1.4rem 3.4rem;margin:0 0 1.4rem;border-bottom:1px solid var(--line)}
.fact::before{content:counter(fact);position:absolute;left:0;top:.1rem;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-family:var(--font-display);font-weight:800}
.prose .fact h2{margin-top:0;font-size:1.3rem}
.fact-card h3{font-size:1.1rem}
.photo.is-composite img{object-fit:contain;background:var(--wash)}
.photo-lead.is-composite img{aspect-ratio:auto}

/* Content pages (questions / guides / municipality rules) */
.answer-box{background:var(--navy-50);border:1px solid #cfd9ea;border-left:5px solid var(--navy);border-radius:var(--radius-sm);padding:1.1rem 1.3rem;margin:0 0 1.8em;color:var(--ink);font-size:1.05rem;scroll-margin-top:110px}
.answer-box p:last-child,.answer-box ul:last-child{margin-bottom:0}
.answer-box .answer-label{font-family:var(--font-display);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin:0 0 .35rem}
.ai-image .credit{font-style:italic}
.article-foot{margin-top:2.4em;padding-top:1.4em;border-top:1px solid var(--line)}
.prose .article-foot .h-small{font-size:1.1rem;margin:1.4em 0 .6em}
.prose .article-foot .h-small:first-child{margin-top:0}
.sources{font-size:.9rem;padding-left:1.3em}
.sources a{word-break:break-word}
.related-grid{display:grid;gap:.7rem;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}
.related-card{padding:.9rem 1rem;gap:.2rem}
.related-label{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.related-title{font-family:var(--font-display);font-weight:700;color:var(--ink);line-height:1.3}
.link-list{padding-left:1.2em}
.prose ol{padding-left:1.4em}

/* Hero video: the poster <img> stays underneath as the fallback and the LCP; clips crossfade over it. */
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;pointer-events:none}
.hero-video.is-playing{opacity:.55}
.hero-has-video .hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(15,31,61,.92) 0%,rgba(15,31,61,.74) 45%,rgba(15,31,61,.38) 100%)}
.hero-has-video h1,.hero-has-video .lede,.hero-has-video .hero-points{text-shadow:0 1px 14px rgba(8,16,33,.55)}
@media (max-width:900px){ .hero-has-video .hero-media::after{background:linear-gradient(180deg,rgba(15,31,61,.86) 0%,rgba(15,31,61,.78) 60%,rgba(15,31,61,.9) 100%)} }
@media (prefers-reduced-motion:reduce){ .hero-video{display:none} }
