/* New Braunfels Fence Pros — site styles */
@font-face{font-family:"Bitter";src:url("/assets/fonts/bitter-latin-wght-normal.woff2") format("woff2");font-weight:300 900;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");font-weight:300 900;font-style:normal;font-display:swap}

:root{
  --forest:#1E3A2B;
  --forest-2:#2B5440;
  --gold:#F0B429;
  --gold-dark:#C88A0A;
  --cedar:#8E4F24;
  --cedar-light:#C88A55;
  --stone:#ECEDE6;
  --ink:#18201C;
  --muted:#4A5550;
  --line:#D3D7CD;
  --white:#FFFFFF;
  --on-forest-muted:#C9D6CC;
  --radius:10px;
  --wrap:1160px;
  --head:"Bitter",Georgia,"Times New Roman",serif;
  --body:"Public Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:90px}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.65;text-rendering:optimizeLegibility}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--forest-2);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--cedar)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:3px}
h1,h2,h3,h4{font-family:var(--head);line-height:1.15;color:inherit;margin:0 0 .5em;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(2rem,1.2rem + 3.2vw,3.2rem)}
h2{font-size:clamp(1.55rem,1.2rem + 1.4vw,2.1rem)}
h3{font-size:1.22rem}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.25em}
li{margin-bottom:.35em}
strong{font-weight:650}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--ink);padding:10px 16px;z-index:100}
.skip:focus{left:10px;top:10px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:48px;padding:.7em 1.25em;border-radius:8px;font-family:var(--body);font-weight:700;font-size:1rem;line-height:1.2;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.btn svg{width:1.15em;height:1.15em;flex:none}
.btn-gold{background:var(--gold);color:var(--ink)}
.btn-gold:hover{background:#FFC845;color:var(--ink)}
.btn-forest{background:var(--forest);color:var(--white)}
.btn-forest:hover{background:var(--forest-2);color:var(--white)}
.btn-ghost{border-color:currentColor;color:var(--white);background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.1);color:var(--white)}
.btn-block{width:100%}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--line)}
.head-row{display:flex;align-items:center;gap:16px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--forest);margin-right:auto}
.brand svg{width:38px;height:38px}
.brand-name{font-family:var(--head);font-weight:800;font-size:1.12rem;line-height:1.05}
.brand-name small{display:block;font-family:var(--body);font-weight:500;font-size:.72rem;color:var(--muted);letter-spacing:0}
.nav{display:none}
.nav a,.nav summary{color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem;padding:.5em .7em;border-radius:6px;cursor:pointer}
.nav a:hover,.nav summary:hover{background:var(--stone);color:var(--ink)}
.nav details{position:relative}
.nav summary{list-style:none;display:flex;align-items:center;gap:4px}
.nav summary::-webkit-details-marker{display:none}
.nav summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);margin-left:4px}
.nav .menu{position:absolute;top:calc(100% + 6px);left:0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:8px;min-width:240px;box-shadow:0 12px 30px rgba(24,32,28,.12);display:grid}
.nav .menu a{padding:.55em .75em}
.head-call{display:none}
.icon-call{display:inline-flex;width:46px;height:46px;border-radius:8px;background:var(--gold);color:var(--ink);align-items:center;justify-content:center}
.icon-call svg{width:22px;height:22px}
.menu-btn{display:inline-flex;width:46px;height:46px;border-radius:8px;border:1px solid var(--line);background:var(--white);align-items:center;justify-content:center;cursor:pointer;color:var(--ink)}
.menu-btn svg{width:22px;height:22px}
.mobile-nav{display:none;border-top:1px solid var(--line);padding:10px 0 18px}
.mobile-nav.open{display:block}
.mobile-nav ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 12px}
.mobile-nav a{display:block;padding:.6em .25em;color:var(--ink);text-decoration:none;font-weight:600;border-bottom:1px solid var(--stone)}
.mobile-nav .group{grid-column:1/-1;font-family:var(--head);font-weight:700;color:var(--muted);font-size:.9rem;margin-top:10px}
@media (min-width:1000px){
  .nav{display:flex;align-items:center;gap:2px}
  .menu-btn,.icon-call,.mobile-nav,.mobile-nav.open{display:none}
  .head-call{display:inline-flex}
}

/* Hero (forest band with picket edge) */
.band-forest{position:relative;background:var(--forest);color:var(--white);padding:44px 0 74px}
.band-forest a:not(.btn){color:var(--white)}
.band-forest::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24' viewBox='0 0 36 24'%3E%3Cpath d='M5 24V7.5L10.5 2h15L31 7.5V24z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x left bottom/36px 24px;pointer-events:none}
.band-forest.to-stone::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24' viewBox='0 0 36 24'%3E%3Cpath d='M5 24V7.5L10.5 2h15L31 7.5V24z' fill='%23ECEDE6'/%3E%3C/svg%3E")}
.hero-grid{display:grid;gap:32px;align-items:start}
.hero-copy .lede{font-size:1.15rem;color:var(--on-forest-muted);max-width:36em}
.ticks{list-style:none;padding:0;margin:0 0 1.5em}
.ticks li{position:relative;padding-left:30px;margin-bottom:.5em}
.ticks li::before{content:"";position:absolute;left:2px;top:.42em;width:16px;height:9px;border-left:3px solid var(--gold);border-bottom:3px solid var(--gold);transform:rotate(-45deg)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hero-actions .note{color:var(--on-forest-muted);font-size:.95rem}
@media (min-width:900px){
  .band-forest{padding:64px 0 96px}
  .hero-grid{grid-template-columns:1.15fr .85fr;gap:56px}
}
.crumbs{font-size:.9rem;color:var(--on-forest-muted);margin-bottom:14px}
.crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}
.crumbs li{margin:0}
.crumbs li+li::before{content:"/";margin-right:6px;opacity:.7}
.crumbs a{color:var(--on-forest-muted)!important}
.page-hero h1{max-width:20em}
.page-hero .lede{font-size:1.12rem;color:var(--on-forest-muted);max-width:42em;margin-bottom:1.4em}

/* Quote card / forms */
.quote-card{background:var(--white);color:var(--ink);border-radius:var(--radius);padding:24px;box-shadow:0 18px 40px rgba(10,20,14,.28)}
.quote-card h2,.quote-card h3{font-size:1.4rem;margin-bottom:.25em}
.quote-card .sub{color:var(--muted);font-size:.95rem;margin-bottom:1em}
.field{margin-bottom:14px}
.field label{display:block;font-weight:650;font-size:.92rem;margin-bottom:5px}
.field .opt{font-weight:400;color:var(--muted)}
.field input,.field select,.field textarea{width:100%;min-height:48px;padding:.65em .8em;font:inherit;font-size:1rem;color:var(--ink);background:var(--white);border:1px solid #AEB4A8;border-radius:7px}
.field textarea{min-height:96px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--gold);outline-offset:0;border-color:var(--forest)}
.row-2{display:grid;gap:0 12px}
@media (min-width:520px){.row-2{grid-template-columns:1fr 1fr}}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
.consent{font-size:.82rem;color:var(--muted);margin:10px 0 0;line-height:1.5}
.form-status{margin-top:12px;font-weight:600;font-size:.95rem}
.form-status.error{color:#9B1C1C}
.or-call{text-align:center;font-size:.92rem;color:var(--muted);margin-top:12px}
.or-call a{font-weight:700;color:var(--forest-2)}

/* Sections */
.section{padding:64px 0}
.section.stone{background:var(--stone)}
.section-head{max-width:46em;margin-bottom:28px}
.section-head p{color:var(--muted);font-size:1.08rem}

/* Fence-type tiles */
.tiles{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.tile{display:flex;flex-direction:column;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--white)}
.tile:hover{border-color:var(--forest-2);color:var(--ink)}
.tile:hover h3{text-decoration:underline;text-underline-offset:3px}
.tile figure{margin:0;background:var(--stone);padding:18px 22px 0;color:var(--forest)}
.tile .txt{padding:16px 20px 20px}
.tile h3{margin-bottom:.3em;color:var(--forest)}
.tile p{margin:0;color:var(--muted);font-size:.98rem}

/* Steps (a real sequence) */
.steps{list-style:none;padding:0;margin:0;display:grid;gap:28px;counter-reset:step}
@media (min-width:860px){.steps{grid-template-columns:repeat(3,1fr)}}
.steps li{counter-increment:step;margin:0}
.steps li::before{content:counter(step);display:block;font-family:var(--head);font-weight:800;font-size:2.6rem;line-height:1;color:var(--gold-dark);margin-bottom:10px}
.steps h3{margin-bottom:.35em}
.steps p{color:var(--muted);margin:0}

/* Local notes */
.local-grid{display:grid;gap:28px 48px}
@media (min-width:860px){.local-grid{grid-template-columns:1fr 1fr}}
.local-grid h3{color:var(--forest);margin-bottom:.35em}
.local-grid p{margin:0;color:var(--ink)}

/* Tables */
.table-wrap{overflow-x:auto;margin:0 0 1.2em;border:1px solid var(--line);border-radius:var(--radius)}
table{border-collapse:collapse;width:100%;min-width:520px;background:var(--white);font-size:.98rem}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:var(--forest);color:var(--white);font-family:var(--head);font-weight:700}
tbody tr:last-child td{border-bottom:0}
td.num{white-space:nowrap;font-weight:650}
.fine{font-size:.88rem;color:var(--muted)}

/* Area chips */
.areas{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:0}
.areas li{margin:0}
.areas a{display:inline-block;padding:.5em .95em;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--forest);font-weight:600;background:var(--white)}
.areas a:hover{border-color:var(--forest);background:var(--stone);color:var(--forest)}

/* FAQ */
.faq{max-width:52em}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:18px 40px 18px 0;position:relative;font-family:var(--head);font-weight:700;font-size:1.12rem;color:var(--forest)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:8px;top:24px;width:10px;height:10px;border-right:2.5px solid var(--forest);border-bottom:2.5px solid var(--forest);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(-135deg);top:28px}
.faq .a{padding:0 0 18px}
.faq .a p:last-child{margin:0}

/* CTA band */
.cta-band{background:var(--forest);color:var(--white);padding:52px 0}
.cta-band .inner{display:flex;flex-wrap:wrap;gap:20px 40px;align-items:center;justify-content:space-between}
.cta-band h2{margin:0 0 .2em}
.cta-band p{margin:0;color:var(--on-forest-muted)}
.cta-band .acts{display:flex;flex-wrap:wrap;gap:12px}

/* Article pages */
.page-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;padding:48px 0 64px}
@media (min-width:1000px){.page-grid{grid-template-columns:minmax(0,1fr) 350px;gap:56px}}
.prose{max-width:44em}
.prose h2{margin-top:1.6em;color:var(--forest)}
.prose h2:first-child{margin-top:0}
.prose h3{margin-top:1.3em}
.prose figure{margin:1.4em 0;background:var(--stone);border-radius:var(--radius);padding:22px 26px 6px;color:var(--forest)}
.prose figcaption{font-size:.88rem;color:var(--muted);padding:6px 0 12px}
.callout{border-left:4px solid var(--gold);background:var(--stone);padding:16px 20px;border-radius:0 8px 8px 0;margin:1.4em 0}
.callout p:last-child{margin:0}
.checklist{list-style:none;padding:0}
.checklist li{position:relative;padding-left:28px}
.checklist li::before{content:"";position:absolute;left:2px;top:.45em;width:14px;height:8px;border-left:3px solid var(--forest-2);border-bottom:3px solid var(--forest-2);transform:rotate(-45deg)}
.aside-stick{position:sticky;top:92px;display:grid;gap:18px}
.aside-stick .quote-card{box-shadow:none;border:1px solid var(--line)}
.related{border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}
.related h2{font-size:1.1rem;margin-bottom:.6em;color:var(--forest)}
.related ul{list-style:none;padding:0;margin:0}
.related li{margin:0;border-top:1px solid var(--stone)}
.related li:first-child{border-top:0}
.related a{display:block;padding:.5em 0;text-decoration:none;font-weight:600}
.sources{font-size:.92rem;color:var(--muted)}
.sources li{margin-bottom:.4em}
.updated{font-size:.9rem;color:var(--on-forest-muted)}

/* Footer */
.site-footer{background:#15291F;color:var(--on-forest-muted);padding:52px 0 28px;font-size:.95rem}
.site-footer a{color:var(--white);text-decoration:none}
.site-footer a:hover{text-decoration:underline;color:var(--white)}
.foot-grid{display:grid;gap:32px}
@media (min-width:860px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.site-footer h2{font-size:1rem;color:var(--white);margin-bottom:.8em}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.45em}
.foot-brand .brand{color:var(--white);margin-bottom:12px}
.foot-brand .brand-name small{color:var(--on-forest-muted)}
.disclosure{border-top:1px solid rgba(255,255,255,.15);margin-top:36px;padding-top:20px;font-size:.86rem;line-height:1.55}
.disclosure p{margin:0 0 .6em}

/* Sticky mobile call bar */
.callbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:1.25fr 1fr;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(24,32,28,.08)}
.callbar .btn{min-height:50px;font-size:1rem}
body{padding-bottom:76px}
@media (min-width:1000px){.callbar{display:none}body{padding-bottom:0}}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.site-header,.callbar,.cta-band,.aside-stick,.site-footer{display:none}body{padding:0}}
.hero-copy .note{color:var(--on-forest-muted);font-size:.95rem}
.mobile-nav.open{max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);overflow-y:auto}
.band-forest .quote-card a{color:var(--forest-2)}
.band-forest .quote-card a:hover{color:var(--cedar)}
.tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.aside-stick{align-self:start;align-content:start}
.aside-stick .row-2{grid-template-columns:1fr}

/* Photos */
figure.photo{margin:0 0 1.6em}
figure.photo img{display:block;width:100%;height:auto;border-radius:var(--radius);background:var(--stone)}
figure.photo figcaption{font-size:.9rem;color:var(--muted,#55605A);margin-top:.5em}
.photo-band{padding:36px 0 0}
figure.photo.wide{margin:0}
figure.photo.wide img{aspect-ratio:3/1;object-fit:cover}
@media (max-width:640px){.photo-band{padding-top:24px} figure.photo.wide img{aspect-ratio:2/1}}
