@charset "UTF-8";
/* ==========================================================================
   Jewell Windmills — site stylesheet
   Modern, responsive, offline-friendly. No external font or asset requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #faf8f3;
  --cream: #efede1;
  --cream-deep: #e6e2d2;
  --surface: #ffffff;
  --ink: #1f2b2a;
  --ink-soft: #46524f;
  --muted: #6d7a78;
  --brand: #3b5152;
  --brand-deep: #243536;
  --brand-tint: #eef2f1;
  --accent: #b8531a;
  --accent-hover: #d2601f;
  --accent-tint: #f8ece2;
  --line: #e3ded2;
  --line-strong: #cfc8b8;
  --ok: #2f6b47;

  --shadow-sm: 0 1px 2px rgba(31, 43, 42, 0.06), 0 2px 8px rgba(31, 43, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(31, 43, 42, 0.08), 0 14px 34px rgba(31, 43, 42, 0.07);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", "Noto Serif", serif;

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("../images/texture-sage-tile.jpg");
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--accent-hover); }

address { font-style: normal; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8fb3b0;
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--brand-deep);
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

strong { color: var(--brand-deep); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: 62px 0; }
.section--tight { padding: 40px 0; }
.section--cream { background: var(--cream); }
.section--brand {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #eef3f2;
}
.section--brand h2,
.section--brand h3 { color: #ffffff; }
.section--brand a { color: #ffd9bd; }

.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section--brand .eyebrow { color: #ffbf94; }

.lede { font-size: 1.12rem; color: var(--ink-soft); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.grid--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 42px; }

/* --------------------------------------------------------------------------
   4. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: auto;
  padding: 8px 0;
}
.brand img {
  width: 186px;
  height: auto;
  border-radius: 3px;
}
.brand-text { display: none; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(59, 81, 82, 0.09); color: var(--brand-deep); }
.site-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
}
.nav-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--brand-deep);
}
.btn--ghost:hover { background: rgba(59, 81, 82, 0.08); color: var(--brand-deep); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: #fff; color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 62%, #16211f 100%);
  color: #e9efee;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 58px 0 64px;
}
.hero h1 { color: #fff; margin-bottom: 0.55em; }
.hero p { color: #cfdbd9; font-size: 1.08rem; }
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #1b2726;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.hero-facts li {
  margin: 0;
  font-size: 0.93rem;
  color: #dbe5e3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hover);
  flex: none;
}

/* Page banner for interior pages */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 38px;
}
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero p { max-width: 760px; color: var(--ink-soft); margin-bottom: 0; }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Cards & features
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card--accent { border-top: 4px solid var(--accent); }

.card-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* The photographs on this site date from 2001-2008 and the source files are
   small. Each one is capped so it is never blown up far beyond its real size,
   which keeps it crisp instead of turning it into a soft banner. */
.card-media.media-xs,
.card-media.media-sm,
.card-media.media-md,
.card-media.media-lg { margin-left: auto; margin-right: auto; }
.card-media.media-xs { max-width: 200px; }
.card-media.media-sm { max-width: 250px; }
.card-media.media-md { max-width: 330px; }
.card-media.media-lg { max-width: 550px; }

.tower-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.tower-figure img {
  width: auto;
  max-height: 250px;
  object-fit: contain;
}

.package-figure { max-width: 300px; margin-top: 22px; }
.package-figure img { aspect-ratio: 3 / 4; object-fit: cover; }

.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  flex: none;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.85em;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.section--brand .feature-list li::before { background: #ffbf94; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stat-row li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-row b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1.1;
}
.stat-row span { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
table.spec caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 0;
  font-weight: 700;
  color: var(--brand-deep);
}
table.spec th,
table.spec td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec thead th {
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:nth-child(even) { background: #fbfaf6; }
table.spec td.num, table.spec th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   10. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--brand-deep);
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 18px 22px 4px; }
.faq-answer > *:last-child { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   11. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-grid li { margin: 0; }
.gallery-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 26, 25, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox-figure {
  margin: 0;
  max-width: min(1000px, 100%);
  text-align: center;
}
.lightbox-figure img {
  margin: 0 auto;
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  color: #e7eeec;
  font-size: 0.92rem;
  margin-top: 14px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--zip { max-width: 280px; }
.field label { font-weight: 700; font-size: 0.93rem; color: var(--brand-deep); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }

.calc-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.calc-table th,
.calc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}
.calc-table thead th {
  background: var(--brand-tint);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.calc-table tbody tr:last-child td { border-bottom: 0; }
.calc-table .calc-thumb { width: 58px; }
.calc-table .calc-thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
}
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty-control button:hover { background: var(--brand-tint); }
.qty-control input {
  width: 52px;
  text-align: center;
  font: inherit;
  font-size: 0.95rem;
  padding: 6px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.calc-table .money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.total-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.total-box span { display: block; font-size: 0.84rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.total-box output { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.total-box--grand { border-color: var(--accent); background: var(--accent-tint); }
.total-box--grand output { color: var(--accent); }

.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 0 0 22px;
  font-size: 0.97rem;
}
.notice > *:last-child { margin-bottom: 0; }
.notice--info { border-left-color: var(--brand); background: var(--brand-tint); }

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
blockquote.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
blockquote.quote p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
}
blockquote.quote footer {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--radius-lg);
  color: #eaf1f0;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin-bottom: 0; color: #ccd8d6; }
.cta-band a { color: #ffd9bd; }
.cta-band a:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-deep);
  color: #c3d0ce;
  margin-top: 72px;
  padding: 54px 0 26px;
  font-size: 0.95rem;
}
.site-footer a { color: #d8e4e2; text-decoration: none; }
.site-footer a:hover { color: #ffbf94; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-brand img {
  width: 190px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 38px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #9fb0ae;
}

/* --------------------------------------------------------------------------
   16. Prose (long-form article pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose > *:first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.callout > *:last-child { margin-bottom: 0; }

.prose--wide { max-width: none; }

.diagram {
  margin: 0;
  background: #16211f;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.diagram img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.diagram figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--surface);
  margin: 0;
}

.build-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.build-grid li { margin: 0; }
.build-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.build-grid a:hover { border-color: var(--accent); }
.build-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.doc-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.doc-list li { margin: 0; }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.doc-list a:hover { border-color: var(--accent); color: var(--accent); }
.doc-list .doc-meta { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.h-sm { font-size: 1.2rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 34px; }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .build-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    padding-bottom: 14px;
  }
  .site-header[data-nav-open="true"] .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .brand { margin-right: 0; }
  .header-inner { justify-content: space-between; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 44px 0 50px; }
  .hero-media { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--media { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .wrap { padding-inline: 18px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .brand img { width: 150px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .gallery-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .card { padding: 22px; }
  blockquote.quote { padding: 22px; }

  /* Let the order table shrink to the screen instead of scrolling sideways:
     the product thumbnail is dropped and the quantity stepper is tightened. */
  .calc-table { min-width: 0; font-size: 0.88rem; }
  .calc-table th,
  .calc-table td { padding: 9px 5px; }
  .calc-table .calc-thumb { display: none; }
  .calc-table thead th { font-size: 0.72rem; letter-spacing: 0.03em; }
  .calc-table .qty-control { gap: 3px; }
  .calc-table .qty-control button { width: 27px; height: 32px; }
  .calc-table .qty-control input { width: 34px; padding: 6px 2px; font-size: 0.9rem; }
  .calc-table th:nth-child(4),
  .calc-table td:nth-child(4),
  .calc-table th:nth-child(5),
  .calc-table td:nth-child(5) { text-align: right; }

  /* The shipping column is the least important one and the shipping total is
     repeated in the summary below, so it goes first on the narrowest screens. */
  .qty-control button { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  .calc-table th:nth-child(5),
  .calc-table td:nth-child(5) { display: none; }
}

@media (max-width: 420px) {
  .stat-row { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .lightbox { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .card, .table-wrap, .faq-item { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
