/* Cudahy Fence — static rebuild of the live SitePanda/Duda template (measured from rendered live DOM, 22 Nov 2026).
   Identity kept: Questrial headings, Rubik UI/nav/buttons, Noto Serif body copy; navy #333446 header/footer,
   deep teal #06384f split bands, slate #7f8caa panels, red-orange #d82907 headings, sage #b8cfce pills/accordions,
   dark photo heroes with a 59% black veil, two-column split rows with photo halves, white quote form.
   Accessibility deviations from the original (documented in the compare report): headings on slate panels and
   dark bands use AA-contrast tints; body copy on slate panels is near-black; button text is dark on light pills. */
@import url("fonts.css");

:root {
  --navy: #333446;
  --teal: #06384f;
  --slate: #7f8caa;
  --red: #d82907;
  --red-dark: #a81f05; /* AA on white for small text */
  --sage: #b8cfce;
  --ink: #111;
  --paper: #fff;
  --mist: #eeeeee;
  --head: "Questrial", "Rubik", Arial, sans-serif;
  --ui: "Rubik", Arial, sans-serif;
  --body: "Noto Serif", Georgia, serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ui); font-size: 16px; color: var(--ink); background: var(--paper); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { font-family: var(--body); margin: 0 0 1em; line-height: 1.6; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h4 { font-family: var(--ui); font-weight: 700; font-size: 22px; margin: 0 0 .5em; line-height: 1.25; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 10px 14px; z-index: 1000; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header (fixed, translucent navy like the original) */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(51, 52, 70, .88); color: #fff; }
.site-header .bar { display: flex; align-items: center; gap: 18px; min-height: 96px; max-width: 1400px; margin: 0 auto; padding: 8px 24px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { width: 83px; height: 80px; object-fit: contain; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 2px solid #fff; color: #fff; border-radius: 6px; padding: 8px 12px; font: 600 16px var(--ui); cursor: pointer; min-height: 44px; }
.main-nav { flex: 1 1 auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px; }
.main-nav a { display: block; color: #fff; text-decoration: none; font: 400 17px var(--ui); letter-spacing: .5px; padding: 10px 10px; border-radius: 4px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.main-nav .has-sub { position: relative; }
.main-nav .sub-toggle { background: none; border: 0; color: #fff; font: 400 17px var(--ui); padding: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.main-nav .sub-row { display: flex; align-items: center; }
.main-nav .sub-row > a { padding-right: 2px; }
.main-nav .sub-row .sub-toggle { padding-left: 2px; }
.main-nav .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--navy); list-style: none; margin: 0; padding: 6px 0; box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.main-nav .has-sub:hover .submenu, .main-nav .has-sub.open .submenu, .main-nav .has-sub:focus-within .submenu { display: block; }
.main-nav .submenu a { padding: 10px 16px; }
.header-cta { flex: 0 0 auto; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 30px; border-radius: 50px; font: 500 15px var(--ui); text-decoration: none; letter-spacing: .3px; border: 0; cursor: pointer; text-align: center; }
.pill--red { background: var(--red); color: #fff; }
.pill--sage { background: var(--sage); color: var(--navy); }
.pill--dark { background: #000; color: #fff; }
.pill:hover { filter: brightness(1.08); text-decoration: underline; }
.pill .star { font-size: 14px; }

main { display: block; }
.hero { position: relative; color: #fff; background-color: #222; background-size: cover; background-position: center 30%; padding: 200px 40px 120px; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .59); }
.hero > * { position: relative; }
.hero--short { padding: 170px 40px 70px; }
.hero .hero-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 30px; align-items: center; }
.hero .hero-box { grid-column: 2; background: var(--slate); padding: 40px 20px; text-align: center; }
.hero .hero-box p.hero-name, .hero .hero-box p.hero-phone { font: 700 48px/1.15 var(--head); color: #fff; margin: 0; }
.hero .hero-box p.hero-phone a { color: #fff; text-decoration: none; display: inline-block; min-height: 44px; padding: 2px 6px; }
.hero .hero-box p.hero-phone a:hover { text-decoration: underline; }
.hero .hero-box .pill { margin-top: 22px; }

/* Quote form + intro row */
.intro-row { background: #fff; padding: 60px 0 40px; }
.intro-row .grid { max-width: 1265px; margin: 0 auto; display: grid; grid-template-columns: 553fr 633fr; gap: 0 40px; align-items: start; padding: 0 30px; }
.quote-card { padding: 30px 30px 0; }
.quote-card .quote-banner { width: 100%; max-width: 473px; aspect-ratio: 854 / 303; object-fit: cover; margin: 0 auto 18px; }
.quote-form label { display: block; font: 700 16px var(--ui); margin: 12px 0 6px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; font: 400 16px var(--ui); color: #000; border: 1px solid #8a8a8a; background: #fff; padding: 10px; min-height: 44px; border-radius: 0; }
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form .req { color: var(--red-dark); }
.quote-form .actions { margin-top: 18px; }
.quote-form button { background: var(--red); color: #fff; font: 700 20px var(--ui); border: 0; border-radius: 5px; padding: 12px 22px; min-height: 48px; cursor: pointer; }
.quote-form .form-status { margin-top: 12px; font: 400 15px var(--ui); }
.quote-form .form-status.err { color: #8b1400; }
.quote-form .field-err { color: #8b1400; font-size: 14px; margin-top: 4px; }
.intro-copy { padding: 30px 30px 30px 20px; }
.intro-copy h1 { color: var(--slate-ink, #4f5b78); font-size: 48px; }
.intro-copy h3, .intro-copy h4 { color: var(--red-dark); }
.intro-copy ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.intro-copy ul.ticks li { position: relative; padding-left: 28px; margin: 6px 0; font-family: var(--ui); }
.intro-copy ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--red-dark); font-weight: 700; }

/* Plain content section */
.section { padding: 60px 40px; }
.section .inner { max-width: 960px; margin: 0 auto; }
.section h2 { color: var(--red-dark); font-size: 32px; }
.section h2.center, .section .center { text-align: center; }
.section h3 { color: var(--red-dark); font-size: 30px; }
.section h4 { color: var(--navy); }
.section--white { background: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 70px; }

/* Band with photo background + red veil (Get To Know) */
.band-photo { position: relative; background-size: cover; background-position: center; padding: 60px 40px; }
.band-photo::before { content: ""; position: absolute; inset: 0; background: rgba(255, 41, 0, .25); }
.band-photo .inner { position: relative; max-width: 960px; margin: 0 auto; background: rgba(255,255,255,.92); padding: 30px 34px; }
.band-photo h2 { color: var(--red-dark); text-align: center; font-size: 32px; }

/* Split rows: teal frame, slate panel + photo half */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--teal); }
.split .panel { background: var(--slate); padding: 100px 20px 70px 70px; color: #000; }
.split .panel p { font-size: 18px; }
.split .panel h2, .split .panel h3 { color: #fff; }
.split .panel h2 { font-size: 32px; }
.split .panel h3 { font-size: 30px; text-transform: capitalize; }
.split .panel .eyebrow { font: 400 16px var(--body); margin-bottom: .4em; letter-spacing: .5px; }
.split .photo { position: relative; min-height: 450px; overflow: hidden; background: #2b4a5a; }
.split .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .panel .pill { margin-top: 10px; }

/* Accordion (details/summary) — original used a JS accordion with sage titles */
.accordion { margin: 20px 0; }
.accordion details { margin: 0 0 8px; }
.accordion summary { list-style: none; cursor: pointer; background: var(--sage); color: var(--navy); padding: 18px 64px 18px 20px; position: relative; min-height: 56px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h4 { margin: 0; font-size: 22px; color: var(--navy); }
.accordion summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; font: 700 22px/36px var(--ui); text-align: center; }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding: 16px 20px 6px; }
.cta-line { text-align: center; margin-top: 18px; }

/* Gallery (home goals/mission) */
.gallery { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; grid-template-rows: 240px 240px; gap: 0; margin: 24px 0; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g1 { grid-row: 1 / span 2; }
.gallery .g4 { grid-column: 2 / span 2; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.goals h4 { background: var(--teal); color: #fff; text-align: center; padding: 12px; }

/* Testimonials (owner-published quotes; verification status noted in report) */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1225px; margin: 0 auto; padding: 15px 20px 80px; }
.quotes blockquote { margin: 0; font-family: var(--body); }
.quotes figcaption { font-family: var(--ui); font-weight: 700; margin-top: 8px; }

/* Map strip replacement */
.map-strip { background: var(--mist); text-align: center; padding: 34px 20px; }
.map-strip a { font-weight: 700; color: var(--teal); }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 50px 40px 30px; }
.site-footer .cols { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font: 700 22px var(--ui); color: #ff7a5c; margin: 0 0 12px; }
.site-footer p { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; font-size: 16px; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .foot-logo { width: 66px; height: 64px; margin-bottom: 12px; }
.site-footer address { font-style: normal; font-family: var(--body); line-height: 1.7; }
.site-footer address a { color: #fff; }
.site-footer .legal { max-width: var(--wrap); margin: 30px auto 0; border-top: 1px solid rgba(255,255,255,.25); padding-top: 16px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer .legal a { color: #fff; }

/* Blog */
.blog-hero { position: relative; color: #fff; text-align: center; background-size: cover; background-position: center; padding: 230px 40px 160px; }
.blog-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.blog-hero > * { position: relative; }
.blog-hero h1 { font-size: 65px; color: #fff; margin: 0; }
.blog-hero .eyebrow { font: 400 18px var(--ui); margin-bottom: 8px; letter-spacing: 1px; }
.blog-hero .meta { font: 400 17px var(--ui); margin-top: 10px; }
.post-list { list-style: none; margin: 0 auto; padding: 40px 40px 80px; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.post-card a.thumb { display: block; aspect-ratio: 307 / 190; overflow: hidden; background: #ddd; }
.post-card a.thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2, .post-card h3 { font-size: 21px; margin: 14px 0 6px; }
.post-card h2 a, .post-card h3 a { color: var(--red-dark); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.post-card .meta { font: 400 14px var(--ui); color: #444; margin: 0 0 8px; }
.post-card p { font-size: 15px; }
.article-wrap { background: linear-gradient(90deg, #b8cfce 0%, #fff 100%); padding: 40px 0 15px; }
.article { max-width: 860px; margin: 0 auto; padding: 0 30px; }
.article .lede { font: 700 26px/1.3 var(--head); color: var(--red-dark); text-align: center; margin-bottom: 26px; }
.article h2 { color: var(--red-dark); font-size: 32px; margin-top: 1.2em; }
.article h3 { color: var(--red-dark); font-size: 24px; margin-top: 1em; }
.article ul, .article ol { font-family: var(--body); line-height: 1.6; margin: 0 0 1em; padding-left: 1.4em; }
.article li { margin: 4px 0; }
.post-nav { max-width: 860px; margin: 0 auto; padding: 20px 30px 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-nav a { font: 700 16px var(--ui); color: var(--teal); }
.related { background: linear-gradient(90deg, #b8cfce 0%, #fff 100%); padding: 40px 0 50px; }
.related h2 { text-align: center; color: var(--red-dark); font-size: 30px; }

/* 404 */
.notfound { padding: 180px 40px 100px; text-align: center; }
.notfound h1 { color: var(--red-dark); font-size: 44px; }

/* QA 03a: comparison table in the wood/vinyl/aluminum article (was a flattened paragraph that overflowed at 375px) */
.table-scroll { max-width: 100%; overflow-x: auto; margin: 0 0 22px; background: #fff; border: 1px solid #c9d3d2; }
.table-scroll:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.35; }
.compare-table th, .compare-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dde4e3; }
.compare-table thead th { background: var(--teal); color: #fff; font-family: var(--head); }
.compare-table tbody th { color: var(--navy); font-weight: 700; }
.compare-table tbody tr:nth-child(even) { background: #f3f7f7; }
@media (max-width: 600px) { .compare-table { font-size: 15px; min-width: 520px; } .compare-table th, .compare-table td { padding: 8px 9px; } }

.main-nav .has-sub.dismissed:not(.open) .submenu { display: none !important; } /* QA 03a: Escape dismisses the hover/focus submenu */

/* Responsive */
@media (max-width: 1100px) {
  .main-nav a, .main-nav .sub-toggle { font-size: 15px; padding: 10px 7px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .site-header .bar { min-height: 76px; padding: 6px 14px; gap: 10px; flex-wrap: wrap; }
  .brand img { width: 62px; height: 60px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-cta { order: 2; }
  .header-cta .pill { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .nav-toggle { order: 3; margin-left: 0; }
  .main-nav { order: 4; flex-basis: 100%; display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 6px 0 14px; }
  .main-nav a, .main-nav .sub-toggle { font-size: 18px; padding: 12px 8px; }
  .main-nav .submenu { position: static; box-shadow: none; padding-left: 18px; background: transparent; }
  .main-nav .has-sub:hover .submenu { display: none; }
  .main-nav .has-sub.open .submenu { display: block; }
  .main-nav .has-sub:focus-within .submenu { display: none; }
  .main-nav .has-sub.open:focus-within .submenu { display: block; }
  .hero, .hero--short { padding: 120px 18px 50px; }
  .hero .hero-grid { grid-template-columns: 1fr; }
  .hero .hero-box { grid-column: 1; padding: 26px 16px; }
  .hero .hero-box p.hero-name, .hero .hero-box p.hero-phone { font-size: 34px; }
  .intro-row { padding: 30px 0 10px; }
  .intro-row .grid { grid-template-columns: 1fr; padding: 0 6px; }
  .intro-copy { order: -1; padding: 10px 14px; }
  .intro-copy h1 { font-size: 34px; }
  .quote-card { padding: 10px 14px 0; }
  .section, .band-photo { padding: 40px 18px; }
  .band-photo .inner { padding: 22px 18px; }
  .two-col, .goals { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .panel { padding: 40px 20px; }
  .split .photo { min-height: 260px; order: 2; }
  .split .panel h2 { font-size: 28px; }
  .split .panel h3 { font-size: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery .g1 { grid-row: auto; grid-column: 1 / span 2; }
  .gallery .g4 { grid-column: 1 / span 2; }
  .quotes { grid-template-columns: 1fr; padding: 10px 18px 50px; }
  .site-footer { padding: 40px 18px 24px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .blog-hero { padding: 140px 18px 70px; }
  .blog-hero h1 { font-size: 36px; }
  .post-list { grid-template-columns: 1fr; padding: 30px 18px 60px; }
  .article { padding: 0 18px; }
  .article .lede { font-size: 21px; }
  .article h2 { font-size: 26px; }
  h1 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
