/* New Berlin Fence (New Berlin, Wisconsin): independent static rebuild of the live Duda site, captured 22 Nov 2026.
   Visual identity measured on the live site (computed styles + screenshots, 1366 and 375):
   - deep teal header band (#0d7c66, semi-transparent over the home hero) with white Rubik nav and the navy
     "New Berlin Fence / Beauty. Privacy. Protection." logo tile at the left;
   - full-width owner photos as heroes: on the home page a large white name and phone straight on the photo,
     on inner pages a centred light-teal box (#41b3a2) with name, phone and a mint pill button;
   - a framed FREE QUOTE form (teal frame) beside a deep-teal Rubik H1 and red H4 sub-heads (#d82907);
   - alternating light-teal photo/text split panels, a darkened "Get To Know" photo band, the Goals/Mission
     photo mosaic with tabs, three testimonials, and a deep-teal footer with map, LET'S WORK TOGETHER!,
     QUICK LINKS and COMPANY INFO;
   - blog index on a light-teal field with wide image-left cards; posts on a mint-to-white wash.
   Fonts as live: Rubik (UI/H1), Questrial (display), Noto Serif (body).
   Accessibility adjustments (WCAG 2.1 AA-oriented, not certified):
   - live mint pills (#bde8ca) carried white text (~1.4:1): same mint, dark teal text (~8:1);
   - live white text on #41b3a2 panels is ~2.6:1: panels keep the hue but use a deeper teal (#1c8272, 4.68:1 with white, AA for body text);
   - live light-teal headings on white (~2.6:1) use the brand deep teal (#0d7c66, ~5.3:1);
   - live teal H1 directly on post photos is set white over a dark scrim. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/rubik-latin.woff2) format("woff2"); }
@font-face { font-family: "Questrial"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/questrial-latin.woff2) format("woff2"); }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/noto-serif-latin.woff2) format("woff2"); }

:root {
  --teal: #0d7c66;
  --teal-dark: #08594a;
  --aqua: #41b3a2;
  --aqua-deep: #1c8272;
  --tint: #e3f4f0;
  --mint: #bde8ca;
  --mint-hover: #d3f1dc;
  --navy: #051c2a;
  --red: #c42506;
  --ink: #1a1a1a;
  --muted: #555;
  --paper: #fff;
  --f-head: "Rubik", "Arial", sans-serif;
  --f-disp: "Questrial", "Arial", sans-serif;
  --f-body: "Noto Serif", Georgia, serif;
  --wrap: 1160px;
  --hdr: 92px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--teal); padding: 10px 16px; font: 700 15px var(--f-head); border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 900px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font: 700 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1.15 var(--f-head); color: var(--teal); }
h2 { font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem)/1.2 var(--f-disp); color: var(--teal); }
h3 { font: 700 1.3rem/1.3 var(--f-head); color: var(--red); }
p { margin: 0 0 1em; }

/* buttons: mint pills as live */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 34px; border-radius: 999px;
  background: var(--mint); color: var(--teal-dark); font: 700 15px var(--f-head); text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.22); border: 0; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--mint-hover); color: var(--teal-dark); }
.btn-light { background: var(--mint); color: var(--teal-dark); }
.btn-dark { background: var(--teal); color: #fff; border-radius: 999px; }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--teal-dark); color: #fff; }
.btn-black { background: var(--mint); color: var(--teal-dark); }
.btn-row { margin: 1.4em 0 0; }

/* header: deep-teal band, white nav */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--teal); box-shadow: 0 1px 8px rgba(0,0,0,.18); }
.hdr { display: flex; align-items: center; gap: 24px; min-height: var(--hdr); }
.brand { flex: none; }
.brand img { width: 104px; height: auto; border-radius: 2px; }
.site-nav { margin-left: auto; margin-right: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { display: block; padding: 10px 14px; font: 400 18px var(--f-head); color: #fff; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; color: #fff; }
.menu a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.sub-toggle { width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; margin-left: -10px; }
.sub-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); display: none; }
.sub a { font-size: 16px; padding: 12px 18px; color: #444; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--teal); color: #fff; text-decoration: none; }
.has-sub:hover .sub, .has-sub.open .sub { display: block; }
.hdr-call { font: 700 16px var(--f-head); color: var(--teal-dark); background: var(--mint); padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.hdr-call:hover { background: var(--mint-hover); color: var(--teal-dark); }
.nav-toggle { display: none; }

/* heroes */
.hero { position: relative; display: grid; place-items: center; min-height: 560px; text-align: center; overflow: hidden; background: #3d5a4c; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 1; padding: 60px 0; display: flex; justify-content: center; }
.hero-box { background: var(--aqua-deep); color: #fff; padding: 28px 48px 26px; width: min(100%, 560px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.hero-title { font: 700 clamp(2rem, 1.6rem + 1.4vw, 3rem)/1.1 var(--f-head); margin: 0; }
.hero-phone { font: 700 clamp(1.8rem, 1.4rem + 1.4vw, 3rem)/1.15 var(--f-head); margin: .05em 0 0; }
.hero-phone a { color: #fff; text-decoration: none; }
.hero-phone a:hover { text-decoration: underline; }
.hero-cta { margin: 16px 0 0; }
.hero-home { min-height: 660px; margin-top: calc(var(--hdr) * -1); padding-top: var(--hdr); }
.hero-home::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.38)); }
.hero-home .hero-inner { z-index: 2; }
.hero-open { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-home .hero-title { font: 400 clamp(2.6rem, 1.6rem + 4vw, 4.4rem)/1.1 var(--f-disp); }
.hero-home .hero-phone { font: 400 clamp(1.9rem, 1.3rem + 2.4vw, 3rem)/1.2 var(--f-disp); margin-top: .4em; }
.hero-blog { min-height: 420px; }
.hero-blog::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.hero-blog .hero-inner { z-index: 2; }
.hero-blog h1 { color: #fff; margin: 0; font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-plain { min-height: 220px; background: var(--teal); }
.hero-plain h1 { color: #fff; margin: 0; }

/* quote form row */
.quote-row { padding: 56px 0 56px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.quote-card { border: 6px solid var(--teal); border-radius: 14px; background: #fff; padding: 22px 26px 28px; box-shadow: 0 2px 12px rgba(0,0,0,.14); }
.quote-banner { width: 100%; height: auto; margin: 0 auto 14px; }
.quote-form .field { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.quote-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { font: 700 14px var(--f-head); margin-bottom: 4px; }
.quote-form input, .quote-form select, .quote-form textarea { font: 16px var(--f-head); padding: 9px 10px; border: 2px solid #111; border-radius: 0; background: #fff; width: 100%; min-height: 44px; }
.quote-form textarea { resize: vertical; }
.quote-form [aria-invalid="true"] { border-color: #b00020; }
.form-actions { display: flex; justify-content: flex-end; }
.form-status { min-height: 1.4em; font: 600 14px var(--f-head); margin: 4px 0 10px; }
.form-status.err { color: #b00020; }
.form-note, .form-noscript { font: 14px/1.5 var(--f-head); margin: 4px 0 8px; padding: 8px 10px; background: #eef7f5; border-left: 4px solid #1c8272; }
.form-noscript { background: #fff4f1; border-left-color: #b00020; font-weight: 600; }
.form-note a, .form-noscript a { font-weight: 700; white-space: nowrap; color: #0f5c50; }
.quote-form button[disabled] { opacity: .55; cursor: not-allowed; }
.form-status.ok { color: #1d5e2e; }
.quote-copy { padding-top: 10px; }
.quote-copy > h3 { font: 700 1.3rem/1.3 var(--f-head); margin-top: 1.2em; }
.quote-copy ul { margin: 0 0 1em 1.2em; padding: 0; }
.quote-copy li a { color: var(--teal); }

/* plain + columns */
.plain { padding: 48px 0; }
.center, .center-head h2, .center-head h1 { text-align: center; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 64px; }
.cols .col > h3:first-child a { color: inherit; }
.cta-row { padding: 6px 0 44px; text-align: center; }
.cta-row .btn-row { margin: 0; }

/* image band (Get To Know) */
.band { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--teal-dark); }
.band .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.band-inner { position: relative; z-index: 1; padding: 64px 0; max-width: 940px; }
.band h2 { color: #fff; }
.band a:not(.btn) { color: #fff; }

/* light-teal split panels */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--aqua-deep); color: #fff; min-height: 460px; }
.split-copy { display: flex; align-items: center; padding: 56px 5%; }
.split-inner { max-width: 590px; margin-left: auto; }
.split-flip .split-copy { order: 2; }
.split-flip .split-inner { margin-left: 0; margin-right: auto; }
.split h2, .split h3 { color: #fff; font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-head); }
.split p { font-size: 1.05rem; }
.split p:first-child:not(:only-child) { text-transform: uppercase; font: 400 15px var(--f-body); letter-spacing: .04em; margin-bottom: .4em; }
.split a:not(.btn) { color: #fff; }
.split-pic { position: relative; min-height: 320px; }
.split-pic .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* goals: photo mosaic + tabs */
.goals-wrap { max-width: 900px; }
.gallery { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; grid-template-rows: 190px 190px; gap: 8px; margin: 8px 0 0; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g0 { grid-row: 1 / 3; }
.gallery .g3 { grid-column: 2 / 4; }
.tablist { display: grid; grid-template-columns: 1fr 1fr; }
.tablist [role=tab] { min-height: 48px; border: 0; font: 700 18px var(--f-head); cursor: pointer; background: #2c2c2c; color: #fff; }
.tablist [role=tab][aria-selected=true] { background: var(--teal); }
.tab-panel { background: #f1f1f1; padding: 22px 26px; font: 15px/1.6 var(--f-head); }
.tab-panel p:last-child { margin: 0; }

/* testimonials */
.quotes-row { padding: 48px 0 64px; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; max-width: 980px; margin-inline: auto; }
.quote { margin: 0; text-align: left; }
.qmark { display: block; text-align: center; font: 700 64px/0.8 Georgia, serif; color: var(--teal); height: 40px; }
.quote blockquote { margin: 0; font-style: italic; font-size: .95rem; }
.quote blockquote p { margin: 0 0 .4em; }
.quote figcaption { font: 700 italic 15px var(--f-body); }
.quote figcaption::before { content: "\2014\00a0"; }

/* blog index: light-teal field, wide image-left cards */
.pg-blog .plain { background: var(--aqua-deep); }
.blog-search { max-width: 380px; margin: 0 auto 28px; }
.blog-search input { width: 100%; min-height: 44px; border: 1px solid #ddd; border-radius: 999px; padding: 8px 18px; font: 15px var(--f-head); }
.blog-count { text-align: center; font: 14px var(--f-head); color: #fff; min-height: 1.2em; margin: 6px 0 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin-inline: auto; }
.card { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-title { font: 700 1.1rem/1.35 var(--f-disp); margin: 0 0 6px; }
.card-title a { color: var(--teal); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-meta { font: 13px var(--f-head); color: var(--muted); margin: 0 0 8px; }
.card-desc { font: 14px/1.55 var(--f-head); color: #333; margin: 0; }
#blog-cards { grid-template-columns: 1fr; gap: 20px; max-width: 900px; }
#blog-cards .card { flex-direction: row; background: transparent; box-shadow: none; gap: 28px; align-items: center; }
#blog-cards .card-img { width: 50%; flex: none; aspect-ratio: 4 / 3; }
#blog-cards .card-body { padding: 0; }
#blog-cards .card-title { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); }
#blog-cards .card-title a, #blog-cards .card-meta, #blog-cards .card-desc { color: #fff; }
#blog-cards .card-title a { text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.post-hero { position: relative; min-height: 560px; display: grid; place-items: center; text-align: center; overflow: hidden; background: #6c7a72; }
.post-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.post-hero-plain { min-height: 320px; background: var(--teal); }
.post-hero-plain::after { background: transparent; }
.post-hero-inner { position: relative; z-index: 1; padding: 64px 0; }
.post-hero h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.post-by { color: #fff; font: 15px var(--f-head); margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.post-wash { background: linear-gradient(90deg, #c4ecd6 0%, #eaf8f0 50%, #fff 100%); }
.post { padding: 44px 0 16px; }
.post-body { font-size: .98rem; }
.post-body h2 { margin-top: 1.1em; margin-bottom: .25em; color: var(--red); font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.post-body h3 { margin-top: 1.1em; font-family: var(--f-disp); font-size: 1.45rem; }
.post-body ul { padding-left: 1.3em; }
.post-body img { margin: 1.5em 0; border-radius: 4px; }
.lede { font: 700 clamp(1.25rem, 1rem + .8vw, 1.6rem)/1.3 var(--f-disp); color: var(--ink); text-align: center; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font: 15px/1.4 var(--f-head); }
th, td { border: 1px solid #c4ddd6; padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--teal); color: #fff; }
tbody th { background: var(--tint); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0 32px; font: 600 15px var(--f-head); }
.post-nav a { color: var(--teal-dark); }
.post-nav .newer { margin-left: auto; }
.related { padding: 16px 0 64px; }
.related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* footer */
.site-footer { background: var(--teal); color: #f7f7f7; padding: 48px 0 44px; font-size: 15px; }
.site-footer a { color: #fff; }
.map { max-width: 900px; margin: 0 auto; }
.map iframe { width: 100%; height: 200px; border: 0; display: block; }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin: 28px auto 0; max-width: 900px; }
.foot-h { font: 700 1.1rem var(--f-head); color: #fff; text-decoration: underline; text-underline-offset: 4px; text-align: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; text-decoration: none; font-family: var(--f-head); }
.site-footer li.sub-link a { padding-left: 12px; font-size: 14px; }
.site-footer li a:hover { text-decoration: underline; }
.foot-cols nav { justify-self: center; }

/* responsive */
@media (max-width: 1060px) {
  .menu a { padding: 10px 9px; font-size: 16px; }
  .hdr-call { padding: 10px 12px; font-size: 15px; }
}
@media (max-width: 900px) {
  :root { --hdr: 72px; }
  .brand img { width: 78px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; order: 3; margin-left: 4px; }
  .bars, .bars::before, .bars::after { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -8px; } .bars::after { top: 8px; }
  .hdr { gap: 10px; }
  .hdr-call { margin-left: auto; order: 2; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.15); display: none; max-height: calc(100vh - var(--hdr)); overflow-y: auto; margin: 0; }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid #eee; }
  .menu > li > a { flex: 1; padding: 13px 4px; color: #333; }
  .menu a:hover, .menu a[aria-current="page"] { color: var(--teal); }
  .sub-toggle { width: 48px; margin: 0; }
  .sub-toggle::before { border-color: #333; }
  .sub { position: static; box-shadow: none; width: 100%; padding: 0 0 8px 14px; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .quote-grid, .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .quote-copy { padding-top: 0; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-flip .split-copy { order: 0; }
  .split-copy { padding: 40px 20px; }
  .split-inner { margin: 0; max-width: none; }
  .split-pic { min-height: 260px; }
  .quotes, .cards, .related .cards { grid-template-columns: 1fr; }
  #blog-cards .card { flex-direction: column; align-items: stretch; gap: 14px; }
  #blog-cards .card-img { width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .gallery .g0 { grid-row: auto; grid-column: 1 / 3; }
  .gallery .g3 { grid-column: 1 / 3; }
  .hero { min-height: 400px; }
  .hero-home { min-height: 520px; }
  .hero-box { padding: 22px 20px; }
  .post-hero { min-height: 380px; }
  .post-wash { background: linear-gradient(180deg, #d4f1e1 0%, #fff 40%); }
  .foot-h { text-align: left; }
  .foot-cols nav { justify-self: start; }
}
@media (max-width: 420px) {
  .brand img { width: 66px; }
  .hdr-call { font-size: 14px; padding: 8px 10px; }
  .quote-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-card { padding: 16px 14px 22px; border-width: 5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
