/* ============================================================
   STUDIO KIT — components.css
   Chrome + section components. All theming flows through the
   tokens in tokens.css; never hard-code colours here.

   Contents
     1.  Topbar
     2.  Alert banner
     3.  Site header / nav (+ mega dropdown, mobile overlay)
     4.  Hero (home)
     5.  Page hero (inner pages) + breadcrumb
     6.  Trust bar
     7.  Logo / coverage strip
     8.  Card grid (feature cards)
     9.  Split feature (image + copy)
     10. Testimonials
     11. Info block (hours + location)
     12. CTA banner
     13. Footer
     14. Detail layout (prose + sidebar) + FAQ
     15. Contact form
     16. Mobile quick-action bar
     17. Responsive
     18. Blog (index grid + article body)
     19. Photo grid + lightbox
   ============================================================ */

/* 1. TOPBAR ------------------------------------------------- */
.topbar {
  background: var(--topbar-bg);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.topbar a { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.topbar a:hover { color: var(--accent); }
.topbar-center {
  font-size: 0.75rem; color: rgba(255,255,255,0.5); text-align: center;
  overflow: hidden; text-overflow: ellipsis;
}

/* 2. ALERT BANNER ---------------------------------------- */
.alert-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 1.25rem;
  font-size: 0.82rem; font-family: var(--font-sans); line-height: 1.5;
  overflow: hidden; max-height: 200px;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
}
.alert-banner--dismissed { max-height: 0 !important; padding-top: 0; padding-bottom: 0; opacity: 0; }
.alert-banner--info    { background: var(--accent);  color: #fff; }
.alert-banner--success { background: #1a6e3c;        color: #fff; }
.alert-banner--urgent  { background: #c8102e;        color: #fff; }
.alert-banner-inner {
  display: flex; align-items: center; gap: 0.6rem;
  flex: 1; min-width: 0; max-width: var(--max-width); margin: 0 auto;
}
.alert-banner-icon { font-size: 1rem; flex-shrink: 0; }
.alert-banner-msg  { margin: 0; flex: 1; }
.alert-banner-msg strong { font-weight: 700; }
.alert-banner-link {
  white-space: nowrap; font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px; color: inherit; margin-left: 0.5rem; opacity: 0.92;
}
.alert-banner-link:hover { opacity: 1; }
.alert-banner-close {
  flex-shrink: 0; background: none; border: none; cursor: pointer; color: inherit;
  opacity: 0.75; padding: 0.25rem; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.15s;
}
.alert-banner-close:hover { opacity: 1; }

/* 3. SITE HEADER / NAV ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); gap: 2rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 44px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--brand); letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  color: var(--text-mid); padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--brand-pale); }
.nav-links .nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; margin-left: 0.5rem;
}
.nav-links .nav-cta:hover { background: var(--accent-dark) !important; }
.mobile-nav-bar { display: none; }

/* Mega dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; }
.nav-dropdown-link { flex: 1; }
.nav-chevron-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0.5rem 0.4rem;
  color: var(--text-mid); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s;
}
.nav-chevron-btn:hover { background: var(--brand-pale); color: var(--brand); }
.nav-chevron { transition: transform 0.2s; flex-shrink: 0; display: block; }
.nav-has-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 640px; background: var(--white);
  border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius);
  box-shadow: var(--shadow-md); z-index: 200; overflow: hidden;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.08); border-top: 1px solid rgba(0,0,0,0.08); rotate: 45deg;
}
.nav-dropdown::after { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; background: transparent; }
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 1.25rem 1.25rem 1rem; }
.nav-dropdown-col { display: flex; flex-direction: column; gap: 0.1rem; padding: 0 1rem; border-right: 1px solid var(--border); }
.nav-dropdown-col:first-child { padding-left: 0; }
.nav-dropdown-col:last-child { padding-right: 0; border-right: none; }
.nav-dropdown-heading {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
  margin-bottom: 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
}
.nav-dropdown-col a {
  font-size: 0.8125rem; font-weight: 500; color: var(--text-mid);
  padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
}
.nav-dropdown-col a:hover { color: var(--brand); background: var(--brand-pale); }
.nav-dropdown-footer { border-top: 1px solid var(--border); padding: 0.6rem 1.25rem; background: var(--cream); }
.nav-dropdown-footer a { font-size: 0.8rem; font-weight: 600; color: var(--brand); }
.nav-dropdown-footer a:hover { color: var(--accent); }

/* compact single-column dropdown (nav item with `menu: [...]`).
   Sits flush under the item (no hover-gap to lose the mouse in) and
   drops the mega-dropdown's arrow + overflow clip. */
.nav-dropdown--compact {
  min-width: 190px; padding: 0.4rem; top: 100%; overflow: visible;
  border-top: 6px solid var(--white);   /* white "porch": hoverable, bridges to the item */
}
.nav-dropdown--compact::before { display: none; }
.nav-dropdown--compact a {
  display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text-mid);
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
}
.nav-dropdown--compact a:hover { color: var(--brand); background: var(--brand-pale); }
/* keep the item's hover box connected to the panel */
.nav-has-dropdown:has(.nav-dropdown--compact)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 4. HERO (home) ---------------------------------------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; background: var(--white); overflow: hidden; }
.hero-bg {
  position: absolute; top: 0; bottom: 0; right: 0; left: 38%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
/* Optional cross-fade slideshow: stack .hero-slide layers inside .hero-bg[data-slideshow].
   kit.js toggles .is-active; the mask on .hero-bg still clips them all. */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide:first-child { opacity: 1; }
}
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 5rem 1.5rem; width: 100%; }
.hero-content > * { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-pale); border: 1px solid var(--accent);
  color: var(--accent-dark); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
  color: var(--brand); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--text-mid); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 0.5rem; color: var(--text-light); font-size: 0.82rem; }
.hero-stars { color: var(--accent); letter-spacing: 1px; }
.hero .btn-ghost { color: var(--text); border-color: var(--border); }
.hero .btn-ghost:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* 5. PAGE HERO + BREADCRUMB ------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  padding: 4rem 1.5rem; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 70%); }
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--white); letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 0.75rem;
}
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 540px; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* 6. TRUST BAR ------------------------------------------ */
.trust-bar { background: var(--brand); padding: 1.5rem; }
.trust-bar-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-around; gap: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--white); }
.trust-item-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item-icon svg { color: var(--accent); }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.trust-item span { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.trust-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* 7. LOGO / COVERAGE STRIP ------------------------------ */
.logo-strip { padding: 3.5rem 1.5rem; background: var(--brand-pale); border-block: 1px solid var(--border); }
.logo-strip-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.logo-strip-label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); flex-shrink: 0; }
.logo-strip-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.logo-strip-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.logo-strip-tag { background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.82rem; font-weight: 500; color: var(--brand); }

/* 8. CARD GRID ----------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.75rem;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card-icon { width: 52px; height: 52px; background: var(--brand-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.feature-card-icon svg { color: var(--brand); }
.feature-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--brand); margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }
.feature-card .card-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.25rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: gap 0.2s;
}
.feature-card .card-link:hover { gap: 0.6rem; }

/* 9. SPLIT FEATURE ------------------------------------- */
.split-feature { padding: var(--section-pad); background: var(--white); }
.split-feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-feature-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); background: var(--cream-dark); }
.checklist { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.75rem 0 2rem; }
.checklist-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-mid); }
.checklist-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 0.5rem; flex-shrink: 0; }

/* 9b. TEAM GRID --------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.team-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.team-card-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream-dark); display: block; }
.team-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.team-card-name { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--brand); }
.team-card-role { font-size: 0.8rem; color: var(--text-light); margin-top: 0.15rem; }
.team-card-bio { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; margin-top: 0.7rem; }

/* 10. TESTIMONIALS ------------------------------------ */
.testimonials-section { padding: var(--section-pad); background: var(--cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.testimonial-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-pale); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--brand); flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.testimonial-source { font-size: 0.75rem; color: var(--text-light); }
.reviews-badge { display: flex; align-items: center; gap: 0.5rem; margin-top: 2rem; justify-content: center; font-size: 0.85rem; color: var(--text-mid); }
.reviews-badge strong { color: var(--text); }

/* 11. INFO BLOCK (hours + location) ------------------- */
.info-section { padding: var(--section-pad); background: var(--white); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.7rem 0; font-size: 0.9rem; color: var(--text-mid); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }
.hours-table tr.today td { color: var(--brand); font-weight: 600; }
.hours-table tr.today td:first-child::before { content: '▸ '; color: var(--accent); }
.location-block { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.location-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.location-icon { width: 36px; height: 36px; background: var(--brand-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem; }
.location-icon svg { color: var(--brand); }
.location-item-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.location-item-text strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.2rem; font-weight: 600; }
.location-item-text a { color: var(--brand); font-weight: 500; transition: color 0.2s; }
.location-item-text a:hover { color: var(--accent); }

/* 12. CTA BANNER ------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  padding: 4.5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.10) 0%, transparent 70%); }
.cta-banner-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--white); letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 0.85rem; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 13. FOOTER ---------------------------------------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.7); padding: 4rem 1.5rem 0; }
.footer-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo-img { height: 40px; width: auto; display: block; opacity: 0.85; margin-bottom: 1rem; }
.footer-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; max-width: 260px; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-col h4 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col p { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; line-height: 1.5; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { margin-bottom: 0.5rem; }
.footer-hours-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.55); padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-hours-row:last-child { border-bottom: none; }
.footer-hours-row span:last-child { font-weight: 500; color: rgba(255,255,255,0.75); }
.footer-hours-row.closed span:last-child { color: rgba(255,255,255,0.35); }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.35); gap: 1rem; flex-wrap: wrap; }

/* 14. DETAIL LAYOUT (prose + sidebar) + FAQ ---------- */
.detail-body { padding: 4rem 1.5rem; }
.detail-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 5rem; align-items: start; }
.detail-prose h2 { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.detail-prose h2:first-child { margin-top: 0; }
.detail-prose h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--brand); margin: 1.75rem 0 0.5rem; }
.detail-prose p { font-size: 0.975rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1.1rem; }
.detail-prose ul { margin: 0.5rem 0 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; }
.detail-prose ul li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; }
.detail-prose ul li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 0.5rem; }
.info-box { background: var(--brand-pale); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.info-box p { font-size: 0.9rem; color: var(--brand); line-height: 1.65; margin: 0; }
.faq-list { margin: 0.5rem 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question { font-family: var(--font-head); font-size: 0.975rem; font-weight: 700; color: var(--brand); margin-bottom: 0.5rem; }
.faq-answer { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }
.detail-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--cream); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border); }
.sidebar-card h4 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.sidebar-card .btn:last-of-type { margin-bottom: 0; }

/* 15. CONTACT FORM ---------------------------------- */
.contact-layout { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--text);
  padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* 16. MOBILE QUICK-ACTION BAR ----------------------- */
.mobile-action-bar { display: none; }
.mab-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1;
}
.mab-call { background: var(--white); color: var(--brand); border: 1.5px solid var(--brand); }
.mab-book { background: var(--accent); color: var(--white); border: 1.5px solid var(--accent); }

/* 17. RESPONSIVE ----------------------------------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .team-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-inner { grid-template-columns: 1fr; gap: 3rem; }
  .detail-sidebar { position: static; }
}

@media (max-width: 768px) {
  .topbar-center, .topbar-right { display: none; }
  .topbar-left a:not([href^="tel"]) { display: none; }

  .nav-links {
    display: none; position: fixed; inset: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow-y: auto; z-index: 200;
  }
  .nav-links.open { display: flex; }
  .mobile-nav-bar {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 0 1rem 0 1.25rem; height: var(--nav-height); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--white); z-index: 1; flex-shrink: 0;
  }
  .mobile-nav-bar .nav-toggle { display: flex; flex-shrink: 0; position: static; padding: 0.6rem; }
  .nav-links > li:not(.mobile-nav-bar) { padding: 0 1rem; border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: none; margin-top: 1rem; }
  .nav-links a { display: flex; width: 100%; padding: 1rem 0.5rem; font-size: 1rem; border-radius: 0; background: none; }
  .nav-links a:hover, .nav-links a.active { background: none; color: var(--brand); }
  .nav-links .nav-cta { justify-content: center; width: 100%; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 1rem; }

  .nav-has-dropdown { width: 100%; }
  .nav-has-dropdown .nav-dropdown-toggle { width: 100%; align-items: stretch; }
  .nav-has-dropdown .nav-dropdown-link { flex: 1; padding: 1rem 0.5rem; }
  .nav-has-dropdown .nav-chevron-btn { padding: 1rem 0.75rem; border-left: 1px solid var(--border); border-radius: 0; }
  .nav-dropdown { display: none; position: static; transform: none; min-width: 0; width: 100%; box-shadow: none; border: none; border-top: 1px solid var(--border); border-radius: 0; background: var(--cream); margin: 0; }
  .nav-dropdown::before, .nav-dropdown::after { display: none; }
  .nav-has-dropdown.open .nav-dropdown { display: block; }
  .nav-has-dropdown.open .nav-chevron { transform: rotate(180deg); }
  .nav-dropdown-inner { grid-template-columns: 1fr; padding: 0.5rem 0.75rem 0.75rem; }
  .nav-dropdown-col { padding: 0.75rem 0 0.25rem; border-right: none; border-bottom: 1px solid var(--border); }
  .nav-dropdown-col:last-child { border-bottom: none; padding-bottom: 0; }
  .nav-dropdown--compact { padding: 0.25rem 0.5rem 0.5rem; }
  .nav-dropdown--compact a { font-size: 0.95rem; padding: 0.85rem 0.5rem; }
  .nav-toggle { display: flex; }

  .hero { min-height: 460px; }
  .hero-content { padding: 3.5rem 1.25rem; }
  .hero-bg { left: 0; opacity: 0.18; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 60%); mask-image: linear-gradient(to bottom, transparent 0%, #000 60%); }

  .trust-bar-inner { flex-wrap: nowrap; justify-content: flex-start; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .trust-item { flex: 0 0 auto; scroll-snap-align: start; }
  .trust-divider { display: none; }

  .split-feature-inner { grid-template-columns: 1fr; gap: 3rem; }

  .card-grid { display: flex; flex-wrap: nowrap; gap: 1rem; overflow-x: auto; touch-action: pan-x; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 2rem -1.25rem 0; padding: 0.25rem 1.25rem; }
  .card-grid::-webkit-scrollbar { display: none; }
  .feature-card { flex: 0 0 80%; scroll-snap-align: center; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid, .team-grid.cols-2, .team-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  .logo-strip-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .logo-strip-divider { display: none; }
  .logo-strip-tags { flex-wrap: nowrap; width: 100%; overflow-x: auto; touch-action: pan-x; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 1.5rem 6px 0; }
  .logo-strip-tags::-webkit-scrollbar { display: none; }
  .logo-strip-tag { flex: 0 0 auto; scroll-snap-align: start; }

  .mobile-action-bar {
    display: flex; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  body:has(.mobile-action-bar) { padding-bottom: 4.75rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 18. BLOG ------------------------------------------------- */
/* 18a. index */
.blog-filters {
  max-width: var(--max-width); margin: 2.5rem auto 0; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.blog-filter-btn {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid); cursor: pointer; transition: all 0.15s;
}
.blog-filter-btn:hover, .blog-filter-btn.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.blog-grid-section { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s; color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-pale) 0%, var(--cream-dark) 100%); position: relative; overflow: hidden; flex-shrink: 0; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--brand-light); opacity: 0.6; }
.blog-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.6rem; display: inline-block; align-self: flex-start;
  padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--brand-pale); color: var(--brand);
}
.blog-card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--brand); line-height: 1.35; margin-bottom: 0.5rem; flex: 1; }
.blog-card-excerpt {
  font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-light); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.blog-card-author-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-pale); color: var(--brand); font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.blog-card-meta-dot { color: var(--border); }
#blog-empty { text-align: center; padding: 4rem 0; color: var(--text-light); }
.blog-empty-note { color: var(--text-light); font-size: 0.95rem; grid-column: 1 / -1; }

/* 18b. article body */
.article-body {
  max-width: var(--max-width); margin: 0 auto; padding: 3.5rem 1.5rem 5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start;
  overflow-x: clip;   /* safety net for figure-wide / figure-full; keeps sticky sidebar */
}
.article-body.no-sidebar { grid-template-columns: minmax(0, 720px); justify-content: center; }
.article-prose { min-width: 0; }
.article-prose > *:first-child { margin-top: 0; }
.article-prose h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; line-height: 1.25; }
.article-prose h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--brand); margin: 1.75rem 0 0.5rem; }
.article-prose p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.15rem; }
.article-prose ul, .article-prose ol { margin: 0.5rem 0 1.35rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.article-prose ol { list-style: decimal; }
.article-prose li { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }
.article-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-prose a:hover { color: var(--accent); }
.article-prose strong { color: var(--text); }
.article-prose blockquote {
  border-left: 3px solid var(--accent); padding: 0.75rem 1.25rem; background: var(--accent-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.75rem 0; font-style: italic;
  color: var(--text-mid); font-size: 1.02rem; line-height: 1.75;
}
.article-prose figure { margin: 1.75rem 0; }
.article-prose figure img { width: 100%; border-radius: var(--radius); display: block; }
.article-prose figure a { display: block; }
.article-prose figcaption { font-size: 0.8rem; color: var(--text-light); margin-top: 0.5rem; text-align: center; }
.article-prose [data-lightbox] img { cursor: zoom-in; }
.article-prose .info-box { margin: 1.75rem 0; }

/* 18b-media. richer in-article media --------------------------------------
   figure.figure-wide  — image steps outside the prose column (desktop only)
   figure.figure-full  — near full-bleed
   .post-media          — a 2- or 3-up image row (.cols-3); each child a
                          <figure> or <a data-lightbox>
   .post-embed          — responsive 16:9 wrapper for an <iframe> (video, map) */
/* figure-wide runs flush to the page gutter on the left; figure-full also
   reaches into the column gap on the right. Both are clipped by
   `.article-body { overflow-x: clip }` so they never cause h-scroll. */
.article-prose figure.figure-wide { width: calc(100% + 1.5rem); margin-left: -1.5rem; }
.article-prose figure.figure-full { width: calc(100% + 1.5rem + 4rem); margin-left: -1.5rem; }
.post-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.75rem 0; }
.post-media.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-media > figure, .post-media > a { margin: 0; }
.post-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); display: block; }
.post-media a { cursor: zoom-in; }
.post-media figcaption { font-size: 0.75rem; color: var(--text-light); margin-top: 0.35rem; }
.post-embed { position: relative; margin: 1.75rem 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--cream-dark); }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-author-block { display: flex; align-items: flex-start; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.article-author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; object-fit: cover; }
.article-author-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--brand); margin-bottom: 0.2rem; }
.article-author-role { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
.article-author-bio { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }
.article-share { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; font-size: 0.82rem; color: var(--text-light); }
.article-share a { color: var(--brand); font-weight: 600; }
.article-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); display: flex; flex-direction: column; gap: 1.25rem; }
.related-articles { background: var(--cream); padding: 4rem 1.5rem; border-top: 1px solid var(--border); }
.related-articles-inner { max-width: var(--max-width); margin: 0 auto; }
.related-articles h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--brand); margin-bottom: 1.75rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* 18c. post meta row (in .page-hero) */
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.post-meta .post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-meta .post-tags a {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: 4px; background: rgba(255,255,255,0.14); color: #fff;
}
.post-meta .post-tags a:hover { background: rgba(255,255,255,0.26); }

/* 18d. share row */
.post-share { display: flex; align-items: center; gap: 0.75rem; margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-light); }
.post-share button, .post-share a {
  font: inherit; font-weight: 600; color: var(--brand); background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 0.85rem; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.post-share button:hover, .post-share a:hover { border-color: var(--brand); color: var(--accent); }

/* 18e. prev / next pager */
.blog-pager { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.blog-pager-link {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--brand);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1.3;
  transition: border-color 0.15s;
}
.blog-pager-link:hover { border-color: var(--brand); }
.blog-pager-link span { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); }
.blog-pager-next { text-align: right; align-items: flex-end; }

/* 18f. newsletter capture */
.newsletter { background: var(--brand); color: #fff; padding: var(--section-pad); }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.newsletter p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 1.75rem; }
.newsletter form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.newsletter input[type="email"] {
  flex: 1; min-width: 220px; font: inherit; font-size: 0.95rem; padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); color: #fff;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input[type="email"]:focus { outline: none; border-color: #fff; }
.newsletter .form-hp { position: absolute; left: -9999px; }
.newsletter button { flex-shrink: 0; }
.newsletter-note { margin-top: 0.9rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* 19. PHOTO GRID + LIGHTBOX ------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-grid a, .photo-grid figure { margin: 0; display: block; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream-dark); cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; display: block; }
.photo-grid.natural img { aspect-ratio: auto; }
.photo-grid a:hover img, .photo-grid figure:hover img { transform: scale(1.04); }

/* 19b. GALLERY — photo-forward, full-bleed. `.gallery-lead` (one big
   opening image with an overlaid title) + `.photo-masonry` (natural
   aspect ratios, CSS-columns masonry, edge to edge). Use OUTSIDE
   `.container` so it spans the viewport. Images get [data-lightbox]. */
.gallery-lead { position: relative; }
.gallery-lead > a, .gallery-lead > img { display: block; }
.gallery-lead img { width: 100%; height: clamp(58vh, 76vh, 860px); object-fit: cover; display: block; }
.gallery-lead-caption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 5rem clamp(1.25rem, 5vw, 3.5rem) 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  color: #fff;
}
.gallery-lead-caption .breadcrumb { color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }
.gallery-lead-caption .breadcrumb a { color: rgba(255,255,255,0.8); }
.gallery-lead-caption h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800;
  color: #fff; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance;
}
.gallery-lead-caption p { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 0.6rem 0 0; }

.photo-masonry { column-count: 2; column-gap: 6px; padding: 6px; }
.photo-masonry > a, .photo-masonry > figure { position: relative; display: block; margin: 0 0 6px; break-inside: avoid; overflow: hidden; cursor: zoom-in; background: var(--cream-dark); }
.photo-masonry img { width: 100%; height: auto; display: block; transition: opacity 0.35s ease, transform 0.6s ease; }
.photo-masonry > a:hover img, .photo-masonry > figure:hover img,
.photo-masonry > a:focus-visible img { opacity: 0.88; transform: scale(1.02); }
.photo-masonry figcaption { display: none; }
/* hover reveals the title (from data-title) over a gradient */
.photo-masonry > a[data-title]::after {
  content: attr(data-title);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.75rem 0.9rem 0.85rem;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.01em; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.photo-masonry > a[data-title]:hover::after,
.photo-masonry > a[data-title]:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .photo-masonry > a[data-title]::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .photo-masonry > a[data-title]::after { transition: none; transform: none; }
  .photo-masonry img { transition: none; }
}
@media (min-width: 1500px) { .photo-masonry { column-count: 3; } }
@media (max-width: 620px)  { .photo-masonry { column-count: 1; } }
.kit-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; gap: 0.5rem; padding: 3rem 1rem;
  background: rgba(10, 14, 20, 0.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.kit-lightbox.open { display: flex; }
.kit-lightbox-figure { margin: 0; max-width: min(1100px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.kit-lightbox-figure img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--brand-dark); }
.kit-lightbox-figure figcaption {
  display: flex; flex-direction: column; gap: 0.12rem; align-items: center;
  text-align: center; max-width: 62ch;
}
.kit-lightbox-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: #fff; letter-spacing: 0.01em; }
.kit-lightbox-sub   { color: rgba(255,255,255,0.68); font-size: 0.85rem; }
.kit-lightbox-meta  { color: rgba(255,255,255,0.42); font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.03em; margin-top: 0.25rem; }
.kit-lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.12); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kit-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.kit-lightbox-nav { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 2.5rem; line-height: 1; cursor: pointer; padding: 0 0.5rem; flex-shrink: 0; }
.kit-lightbox-nav:hover { color: #fff; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { grid-template-columns: 1fr; gap: 3rem; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-sidebar > * { flex: 1; min-width: 240px; }
}
@media (max-width: 1024px) {
  .article-prose figure.figure-wide, .article-prose figure.figure-full {
    margin-left: 0; width: 100%;
  }
}
@media (max-width: 640px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .post-media, .post-media.cols-3 { grid-template-columns: 1fr; }
  .blog-pager { grid-template-columns: 1fr; }
  .blog-pager-next { text-align: left; align-items: flex-start; }
  .photo-grid, .photo-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .newsletter form { flex-direction: column; }
  .newsletter button { width: 100%; justify-content: center; }
  .kit-lightbox-nav { position: absolute; bottom: 1rem; }
  .kit-lightbox-prev { left: 1rem; } .kit-lightbox-next { right: 1rem; }
}
