/* CornerWood LLC — shared styles
   Seed 3-4-7-1-2-1-6: bright, vivid country-store colours (barn red, hay gold, pasture green) ·
   saturated barn-red hero and section bands with white text over white content areas ·
   narrow document-like column · classic serif headings + sans body · logo left, nav right, thin rule ·
   menu rows with dotted leaders to the price · soft shadows, no borders · motif: barn-board siding */

@font-face { font-family: "Pyles Schoolbook"; src: url("fonts/pyles-schoolbook-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --red: #c0262d;
  --red-deep: #7a1c1f;
  --burgundy: #340e11;
  --hay: #f2b134;
  --green: #23742d;
  --ink: #241c18;
  --muted: #5f5650;
  --white: #ffffff;
  --cream: #fff8ec;
  --leader: #cbbfb2;
  --shadow: 0 8px 24px rgba(52, 14, 17, 0.12), 0 1px 3px rgba(52, 14, 17, 0.08);
  --radius: 8px;
  --serif: "Pyles Schoolbook", "Century Schoolbook", Georgia, serif;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --boards: url("assets/motif-barnboard.svg") 0 0 / 48px 120px repeat;
  --col: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 0.45em; color: var(--red-deep); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.col { width: 100%; max-width: var(--col); margin: 0 auto; padding-inline: clamp(1.1rem, 5vw, 1.5rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; border-radius: var(--radius); background: var(--hay); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- header: logo left, nav right, thin rule ---------- */
.site-header { background: var(--white); border-bottom: 1px solid #eadfd3; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--red-deep); text-decoration: none; }
.brand img { width: 64px; height: auto; flex: none; border-radius: 6px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.brand:hover .brand-name { color: var(--red); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.3rem 0; color: var(--ink); font-weight: 600; font-size: 0.98rem; text-decoration: none; }
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--hay); }

/* ---------- barn-red bands with white text ---------- */
.band { background: var(--red) var(--boards); color: var(--white); }
.band h1, .band h2, .band h3 { color: var(--white); }
.band a:not(.btn) { color: var(--white); }
.hero { padding-block: clamp(2.5rem, 6vw, 3.75rem) 0; }
.page-band { padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.page-band h1 { margin-bottom: 0.3em; }
.page-band .lede { margin-bottom: 0; }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.9rem; line-height: 1.45; }
.lede { font-size: clamp(1.12rem, 2vw, 1.28rem); color: #fde9e5; }
.hero-figure { margin: 2rem 0 0; transform: translateY(2.5rem); border-radius: var(--radius); background: var(--cream); box-shadow: 0 18px 40px rgba(52, 14, 17, 0.28); overflow: hidden; }
.hero-art { display: block; width: 100%; }
.after-hero { padding-top: 4.5rem; }

.strip { margin-top: clamp(2.5rem, 5vw, 3.25rem); padding-block: 0.85rem; }
.strip .col { display: flex; align-items: center; gap: 0.9rem; }
.strip h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.strip .count { margin-left: auto; font-weight: 600; font-size: 0.92rem; white-space: nowrap; color: #fde9e5; }
.strip .icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--white); box-shadow: 0 4px 12px rgba(52, 14, 17, 0.25); }
.strip .icon img { width: 36px; height: 36px; }
.section-body { padding-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.35rem; border: 0; border-radius: var(--radius);
  background: var(--red); color: var(--white); box-shadow: var(--shadow);
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: var(--red-deep); color: var(--white); }
.btn-soft { background: var(--white); color: var(--red-deep); }
.btn-soft:hover { background: var(--cream); color: var(--red); }
.band .btn { background: var(--hay); color: var(--ink); }
.band .btn:hover { background: #ffc54d; color: var(--ink); }
.band .btn-soft { background: var(--white); color: var(--red-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ---------- soft panels, no borders ---------- */
.panel { padding: 1.2rem 1.35rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1.25rem; }
.cat-list { list-style: none; margin: 0; padding: 0.4rem 0; }
.cat-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.65rem 1.1rem; color: var(--ink); text-decoration: none; }
.cat-list a:hover { background: var(--cream); }
.cat-list li + li a { box-shadow: inset 0 1px 0 #f1e8de; }
.cat-list img { width: 48px; height: 48px; }
.cl-name { font-weight: 600; letter-spacing: 0.03em; }
.cl-count { color: var(--muted); font-size: 0.92rem; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { position: relative; padding: 0.6rem 0 0.6rem 1.6rem; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 10px; border-radius: 50%; background: var(--hay); box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.25); }
.notes strong { color: var(--ink); }

/* ---------- catalog: menu rows with dotted leaders ---------- */
.menu { list-style: none; margin: 0; padding: 0; }
.row { padding: 0.85rem 0; scroll-margin-top: 1rem; }
.row + .row { box-shadow: inset 0 1px 0 #f1e8de; }
.line { display: flex; align-items: baseline; gap: 0.5rem; }
.line h3 { flex: 0 1 auto; margin: 0; font-family: var(--sans); font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.dots { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--leader); transform: translateY(-0.28em); }
.price { flex: none; margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--red); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.price.quote { flex: 0 0 auto; font-family: var(--sans); font-weight: 600; font-size: 0.98rem; line-height: 1.35; text-align: right; white-space: nowrap; color: var(--green); }
.row .desc { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.row .call { display: inline-block; margin-top: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.offers .panel h3 { margin-bottom: 0.25rem; font-size: 1.2rem; }
.offers .panel p { margin: 0; color: var(--muted); }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li + li { margin-top: 1rem; }

/* ---------- about ---------- */
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.55rem 0; }
.facts div + div { box-shadow: inset 0 1px 0 #f1e8de; }
.facts dt { color: var(--red); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 0.2rem; }
.facts dd { margin: 0; font-weight: 600; }
.story p { color: var(--muted); }
.story .first { color: var(--ink); font-size: 1.15rem; }

/* ---------- contact ---------- */
.details { margin: 0; }
.details div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.55rem 0; }
.details div + div { box-shadow: inset 0 1px 0 #f1e8de; }
.details dt { color: var(--red); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 0.2rem; }
.details dd { margin: 0; font-weight: 600; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--red-deep); }
.hours th, .hours td { padding: 0.5rem 0.25rem; text-align: left; }
.hours tbody tr + tr > * { box-shadow: inset 0 1px 0 #f1e8de; }
.hours thead th { color: var(--red); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours tbody th { font-weight: 600; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--red); font-weight: 600; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--cream); }
.map-link { margin-top: 0.9rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--burgundy); color: #e9d6d2; font-size: 0.98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--hay); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem; padding-block: 2.4rem 1.5rem; }
.footer-name { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: var(--hay); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--hay); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 1rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .brand img { width: 54px; }
  .brand-name { font-size: 1.35rem; }
  .main-nav ul { gap: 0.15rem 1.15rem; }
  .hero-figure { transform: translateY(1.75rem); }
  .after-hero { padding-top: 3.5rem; }
  .strip .with-icon { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 0.85rem; }
  .strip .with-icon .icon { grid-row: span 2; width: 48px; height: 48px; }
  .strip .with-icon .count { grid-column: 2; margin-left: 0; }
  .cat-list a { grid-template-columns: 40px minmax(0, 1fr); padding-inline: 0.85rem; }
  .cat-list img { width: 40px; height: 40px; }
  .cl-count { grid-column: 2; margin-top: -0.45rem; }
  .row.q .line { flex-wrap: wrap; }
  .price.quote { flex-basis: 100%; text-align: left; white-space: normal; }
  .facts div, .details div { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.after-band { padding-top: 2rem; }
