/* Bart's Garage Doors LLC — site styles
   Brand colors: orange #E1590C, iron gray #6B6F73, charcoal #2B2B2E
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --orange: #E1590C;
  --orange-dark: #B8450A;
  --iron: #6B6F73;
  --charcoal: #2B2B2E;
  --bg: #FFFDFB;
  --bg-alt: #F5F1EA;
  --border: #E7E1D6;
  --max-width: 1150px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Editable placeholder styling ---------- */
.tbd {
  display: inline-block;
  padding: 2px 8px;
  border: 1.5px dashed var(--orange);
  border-radius: 6px;
  background: #FFF3EA;
  color: var(--orange-dark);
  font-weight: 700;
}
.edit-note {
  background: #FFF3EA;
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--orange-dark);
  margin: 0 0 28px 0;
}
.edit-note strong { color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 251, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 900;
  font-size: clamp(0.82rem, 1.5vw, 1.15rem);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.1;
  white-space: nowrap;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #FFF6EE 0%, var(--bg) 100%);
  padding: 64px 0 56px 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--orange);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art {
  background: var(--orange);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px auto; }
.section-head p { color: var(--iron); font-weight: 600; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #FFF1E6;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card ul {
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: var(--iron);
}
.card ul li { margin-bottom: 6px; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 10px 30px -12px rgba(225, 89, 12, 0.35);
}
.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
  margin: 10px 0;
}
.price-amount span { font-size: 1.1rem; color: var(--iron); font-weight: 700; }
.discount-banner {
  margin-top: 40px;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.discount-banner .pct {
  color: var(--orange);
  font-weight: 900;
  font-size: 1.4rem;
}

/* ---------- Service area ---------- */
.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.town-pill {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.92rem;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 28px;
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--iron);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
/* Tiles holding a real photo: drop the dashed placeholder frame.
   The :has() selector means photos added later style themselves. */
.gallery-item.has-photo,
.gallery-item:has(img) {
  border: 1px solid var(--border);
  padding: 0;
}

/* ---------- About / values ---------- */
.values-grid { margin-top: 20px; }
.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 900; color: var(--orange); }
.stat .label { color: var(--iron); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card .stars {
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-quote {
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.testimonial-author { font-weight: 800; }
.testimonial-author span { font-weight: 600; color: var(--iron); }
.testimonial-date {
  color: var(--iron);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
/* One card on its own: centre it instead of leaving half the row empty. */
.contact-grid:has(> .contact-card:only-child) {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin: 14px 0;
  font-size: 1.05rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--orange); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: #E9E7E3;
  padding: 48px 0 24px 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: #C7C4BE; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #44464A;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9A9792;
}
.footer-bottom a { color: #9A9792; }
.footer-bottom a:hover { color: var(--orange); }
.footer-logo { height: 34px; margin-bottom: 12px; filter: brightness(0) invert(1); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #C7C4BE; max-width: 620px; margin: 0 auto; }

/* ---------- Legal page ---------- */
.legal-block { margin-bottom: 36px; }
.legal-block h2 { color: var(--orange); }
.legal-block h3 { margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; padding: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 4px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; width: 100%; border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-small-hide { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 10px 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-icon { height: 26px; }
  .brand-text { font-size: 0.68rem; }
  .header-cta { gap: 6px; }
  .header-cta .btn-primary.btn-small { padding: 8px 10px; font-size: 0.72rem; }
}

.promo-banner {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.promo-banner-link {
  display: inline-block;
  transition: transform 0.15s ease;
}
.promo-banner-link:hover { transform: scale(1.02); }
.promo-banner-img {
  display: block;
  margin: 0 auto;
  width: 440px;
  max-width: 85vw;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(0,0,0,0.22);
}
.promo-banner-note {
  margin: 14px 0 0 0;
  font-weight: 700;
  color: var(--iron);
  font-size: 1rem;
}
@media (max-width: 480px) {
  .promo-banner { padding: 22px 0; }
  .promo-banner-img { width: 300px; max-width: 88vw; }
  .promo-banner-note { font-size: 0.85rem; padding: 0 12px; }
}

/* ---------- Products page ---------- */
.product-grid .product-card { display: flex; flex-direction: column; }
.product-img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--bg-alt);
}
.product-img svg { width: 100%; height: auto; display: block; }
.product-card ul { flex-grow: 1; }
.product-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--orange);
}
.product-link:hover { color: var(--orange-dark); text-decoration: underline; }
.product-more { text-align: center; margin-top: 32px; }
.product-disclaimer { font-size: 0.8rem; color: var(--iron); text-align: center; max-width: 760px; margin: 0 auto; }
.cta-band p { color: #fff; }

/* Header fit for 8 nav links */
nav.main-nav { gap: 18px; }
@media (min-width: 721px) and (max-width: 1320px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 4px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; width: 100%; border-bottom: none; }
  .nav-toggle { display: flex; }
}

/* Featured product */
.product-img img { width: 100%; height: auto; aspect-ratio: 240 / 160; object-fit: cover; display: block; }
.featured-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.featured-photos img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.featured-photos .featured-small { max-width: 320px; margin-top: 18px; }
.featured-caption { font-size: 0.82rem; color: var(--iron); font-weight: 700; margin: 8px 0 0 0; }
.featured-info h3 { margin-top: 24px; }
.featured-info h3:first-child { margin-top: 0; }
.featured-list { padding-left: 18px; margin: 0; }
.featured-list li { margin-bottom: 8px; }
.featured-pills { justify-content: flex-start; }
.featured-windows { display: flex; gap: 18px; align-items: flex-start; }
.featured-windows img { width: 170px; height: auto; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.featured-windows ol { margin: 0; padding-left: 20px; line-height: 36px; font-weight: 700; font-size: 0.9rem; }
.featured-note { font-size: 0.85rem; color: var(--iron); margin-top: 18px; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr; } }

/* Model cards */
.model-num { display: inline-block; font-weight: 900; color: var(--orange); font-size: 0.95rem; letter-spacing: 0.5px; margin-bottom: 4px; }
.color-label { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--iron); margin: 6px 0 6px 0; }
.color-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.color-pill { font-size: 0.75rem; font-weight: 700; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: var(--bg-alt); }
.product-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.product-actions .product-link { margin-top: 0; }
.more-styles { text-align: center; margin: 56px 0 4px 0; font-size: 1.5rem; }
.more-styles-sub { text-align: center; color: var(--iron); font-weight: 600; margin-bottom: 28px; }

/* Opener tiers */
.product-img { position: relative; }
.tier-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.8px; padding: 4px 10px; border-radius: 4px; }
.tier-basic { background: #fff; color: var(--charcoal); border: 1px solid var(--border); }
.tier-plus { background: var(--charcoal); color: #fff; }
.tier-premium { background: #F2C230; color: var(--charcoal); }
.warranty-line { font-size: 0.85rem; color: var(--iron); margin: 4px 0 14px 0; }

/* Products page: doors / openers chooser */
.product-chooser-wrap { padding: 36px 0 8px 0; }
.chooser-prompt { text-align: center; font-weight: 800; color: var(--iron); text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 14px; }
.product-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.chooser-tile { display: block; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.chooser-tile img { width: 100%; height: 150px; object-fit: cover; display: block; opacity: 0.85; }
.chooser-text { display: block; padding: 14px 18px; }
.chooser-text strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--charcoal); }
.chooser-text span { font-size: 0.85rem; color: var(--iron); font-weight: 600; }
.chooser-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.chooser-tile.active { border-color: var(--orange); box-shadow: 0 6px 18px rgba(225,89,12,.18); }
.chooser-tile.active img { opacity: 1; }
.chooser-tile.active .chooser-text { background: var(--orange); }
.chooser-tile.active .chooser-text strong, .chooser-tile.active .chooser-text span { color: #fff; }
.panel-switch { text-align: center; padding: 8px 0 48px 0; }
.js-tabs .tab-panel { display: none; }
.js-tabs .tab-panel.active { display: block; }
.tab-panel { scroll-margin-top: 80px; }
@media (max-width: 560px) {
  .product-chooser { gap: 10px; }
  .chooser-tile img { height: 90px; }
  .chooser-text { padding: 10px 12px; }
  .chooser-text strong { font-size: 0.95rem; }
  .chooser-text span { display: none; }
}
.product-chooser-wrap { scroll-margin-top: 70px; }
.chooser-tile { display: flex; flex-direction: column; } .chooser-text { flex: 1; }
.panel-switch .btn { white-space: normal; max-width: 100%; text-align: center; }

/* Springs tab */
.product-chooser { grid-template-columns: repeat(3, 1fr); max-width: 1000px; }
.springs-intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.springs-photo img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.spring-facts .card h3 { font-size: 1.05rem; }
.spring-facts .card p { font-size: 0.92rem; margin-bottom: 0; }
.spring-cta-card { border: 2px solid var(--orange); display: flex; flex-direction: column; }
.switch-label { font-weight: 800; color: var(--iron); margin-right: 4px; }
.panel-switch .container { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .springs-intro { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .product-chooser { gap: 8px; }
  .chooser-tile img { height: 80px; }
  .chooser-text { padding: 8px 10px; }
  .chooser-text strong { font-size: 0.85rem; }
}

/* On our truck */
.truck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.truck-grid figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.truck-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.truck-grid figcaption { padding: 10px 14px; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 900px) { .truck-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .truck-grid { gap: 10px; } .truck-grid figcaption { font-size: 0.8rem; padding: 8px 10px; } }

/* Spring cycle chart */
.cycle-chart-wrap { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.cycle-chart-title { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--iron); margin-bottom: 18px; }
.cycle-row { display: grid; grid-template-columns: 190px 1fr 70px; align-items: center; gap: 14px; margin-bottom: 12px; }
.cycle-name { font-weight: 700; font-size: 0.92rem; color: var(--charcoal); }
.cycle-track { display: block; height: 22px; border-left: 1px solid var(--border); }
.cycle-bar { display: block; height: 100%; background: var(--orange); border-radius: 0 4px 4px 0; }
.is-std .cycle-bar { background: #B9B6B0; }
.is-std .cycle-name { color: var(--iron); }
.cycle-val { font-weight: 800; font-size: 0.92rem; text-align: right; color: var(--charcoal); }
.cycle-row:hover .cycle-bar { filter: brightness(1.08); }
.cycle-notes { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 14px; }
.cycle-notes p { font-size: 0.88rem; color: var(--iron); margin-bottom: 6px; }
@media (max-width: 560px) {
  .cycle-chart-wrap { padding: 18px; }
  .cycle-row { grid-template-columns: 1fr 58px; gap: 4px 10px; }
  .cycle-name { grid-column: 1 / -1; font-size: 0.85rem; }
  .cycle-val { font-size: 0.85rem; }
}

/* Gallery captions */
.gallery-item { position: relative; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px 14px; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); color: #fff; font-weight: 700; font-size: 0.9rem; text-align: left; }
@media (max-width: 720px) {
  .gallery-item:has(.gallery-caption) { aspect-ratio: auto; flex-direction: column; align-items: stretch; background: var(--charcoal); }
  .gallery-item:has(.gallery-caption) img { aspect-ratio: 4 / 3; height: auto; }
  .gallery-caption { position: static; background: var(--charcoal); padding: 8px 10px; font-size: 0.78rem; line-height: 1.3; flex: 1; }
}
