/* Shared design system for the /demos one-page sample sites.
   Light, editorial, accent-driven — each site sets --accent inline. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #14161b;
  --muted: #5b6170;
  --line: #e6e7eb;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --radius: 14px;
  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

/* Ribbon */
.site-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 9px 22px;
  background: #101114;
  color: #d3d5db;
  font-size: 13px;
}

.site-ribbon strong { color: #fff; }
.site-ribbon a { color: #fff; font-weight: 600; white-space: nowrap; }
.site-ribbon a:hover { text-decoration: underline; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

.site-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.site-nav nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.site-nav nav a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav nav a:hover { background: var(--wash); color: var(--ink); }

/* Buttons */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: filter 0.2s, transform 0.2s;
}

.site-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.site-btn.small { padding: 9px 18px; font-size: 14px; }
.site-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.site-btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.site-btn.inverse { background: #fff; color: var(--accent); }

/* Hero (split) */
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px);
}

.site-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.site-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.site-hero > div > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 26px;
}

.site-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero art panel — pure CSS scene */
.site-hero-art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 80% 10%, color-mix(in srgb, var(--accent) 34%, white), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 82%, black), var(--accent) 55%, color-mix(in srgb, var(--accent) 45%, white));
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, black);
}

.site-hero-art .art-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 16px 38px -18px rgba(16, 17, 20, 0.45);
  font-size: 13px;
}

.site-hero-art .art-card strong { display: block; font-size: 15px; }
.site-hero-art .art-card span { color: var(--muted); }
.art-card.a { top: 12%; left: 8%; }
.art-card.b { bottom: 14%; right: 9%; }
.art-card.c { bottom: 12%; left: 10%; }

/* Sections */
.site-section {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) 0;
}

.site-section.alt {
  width: 100%;
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.site-section.alt > .wrap {
  padding: clamp(44px, 6vw, 72px) 0;
}

.site-section-head {
  max-width: 560px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.site-section-head h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.site-section-head p { color: var(--muted); }

.site-section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Stat strip */
.site-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.site-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
}

.site-stats div + div { border-left: 1px solid var(--line); }
.site-stats dd { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--accent); }
.site-stats dt { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Feature grid */
.site-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -22px rgba(16, 17, 20, 0.35);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 11%, white);
  color: var(--accent);
  font-size: 19px;
  margin-bottom: 14px;
}

.feature-card h3 { font-family: var(--display); font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* Gallery cards (listings, menu, classes, screens) */
.site-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(16, 17, 20, 0.35);
}

.gallery-art {
  height: 160px;
  display: grid;
  place-items: end start;
  padding: 12px;
}

.gallery-art span {
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.gallery-body { padding: 18px; }

.gallery-body h3 {
  font-family: var(--display);
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.gallery-body h3 em {
  font-style: normal;
  color: var(--accent);
  font-size: 15.5px;
  white-space: nowrap;
}

.gallery-body p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* Quote */
.site-quote {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.site-quote blockquote {
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.site-quote blockquote::before { content: "\201C"; color: var(--accent); }
.site-quote blockquote::after { content: "\201D"; color: var(--accent); }

.site-quote figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.site-quote figcaption strong { color: var(--ink); }

/* Pricing (Pulse, Summit) */
.site-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 44px -26px color-mix(in srgb, var(--accent) 60%, black);
}

.price-card h3 { font-family: var(--display); font-size: 17px; margin-bottom: 8px; }
.price-card .price { font-family: var(--display); font-size: 32px; font-weight: 700; }
.price-card .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-card li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Schedule table (Summit) / hours (Sabor) */
.site-rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.site-rows > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 15px 22px;
}

.site-rows > div + div { border-top: 1px solid var(--line); }
.site-rows strong { font-size: 15px; }
.site-rows span { font-size: 14px; color: var(--muted); }
.site-rows .pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

/* CTA band */
.site-cta {
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 88%, black), var(--accent));
  color: #fff;
  text-align: center;
  padding: clamp(52px, 7vw, 80px) 24px;
}

.site-cta h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.site-cta p {
  opacity: 0.85;
  max-width: 52ch;
  margin: 0 auto 26px;
}

/* Footer */
.site-footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 32px;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: 42px 0 30px;
}

.site-footer-grid p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }

.site-footer nav h3 {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.site-footer nav a { font-size: 14px; color: var(--muted); width: fit-content; }
.site-footer nav a:hover { color: var(--accent); }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.site-footer-bottom a { font-weight: 600; color: var(--accent); }
.site-footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================
   Per-site identities — themes, fonts, hero variants, photos
   ========================================================== */

/* Dark theme (Sabor, Pulse) — components read the same vars */
.theme-dark {
  --ink: #f3efe9;
  --muted: #a8a29a;
  --line: rgba(243, 239, 233, 0.14);
  --paper: #17120f;
  --wash: #1f1915;
  background: var(--paper);
}

.theme-dark .site-nav {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.theme-dark .site-hero-art { box-shadow: none; }

.site-pulse.theme-dark {
  --paper: #0b0b12;
  --wash: #131320;
  --line: rgba(235, 235, 250, 0.12);
  --ink: #f1f0f7;
  --muted: #9d9cb0;
}

/* Per-site display fonts */
.site-sabor, .site-aurelia { --display: "Fraunces", Georgia, serif; }
.site-summit { --display: "Archivo", "Segoe UI", sans-serif; }
.site-summit h1, .site-summit h2 { text-transform: uppercase; letter-spacing: 0.01em; }
.site-aurelia { --wash: #faf6f1; }
.site-aurelia .site-eyebrow { letter-spacing: 0.22em; }

/* Photos */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
}

.arch-frame {
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-card .gallery-photo {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Centered corporate hero (NovaWorks) */
.hero-center {
  text-align: center;
  padding: clamp(52px, 7vw, 84px) 24px 0;
}

.hero-center .site-hero-inner {
  max-width: 720px;
  margin-inline: auto;
}

.hero-center h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-center p {
  color: var(--muted);
  font-size: 17px;
  max-width: 54ch;
  margin: 0 auto 26px;
}

.hero-center .site-hero-actions { justify-content: center; }

.hero-center-media {
  position: relative;
  width: min(100% - 48px, 1080px);
  margin: clamp(36px, 5vw, 56px) auto 0;
}

.hero-center-media .photo-frame {
  aspect-ratio: 21 / 9;
}

.hero-center-media .float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 13px;
  box-shadow: 0 16px 38px -18px rgba(16, 17, 20, 0.35);
}

.float-card strong { display: block; font-size: 16px; color: var(--accent); }
.float-card span { color: var(--muted); }
.float-card.fa { top: -20px; right: 6%; }
.float-card.fb { bottom: -20px; left: 6%; }

/* Logo strip */
.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  padding: 8px 0;
}

.logo-strip span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.75;
}

.logo-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* Full-bleed banner hero (Alta Verde, Summit) */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vh, 560px);
  overflow: hidden;
}

.hero-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 12, 14, 0.78) 20%, rgba(10, 12, 14, 0.25) 70%, rgba(10, 12, 14, 0.4));
}

.hero-banner .wrap {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 56px 0;
}

.hero-banner .site-eyebrow { color: #fff; opacity: 0.85; }

.hero-banner h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-bottom: 14px;
}

.hero-banner p {
  max-width: 44ch;
  opacity: 0.88;
  margin-bottom: 24px;
}

/* Search card (Alta Verde) */
.search-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  width: min(100% - 48px, 1080px);
  margin: -44px auto 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(16, 17, 20, 0.35);
}

.search-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.search-card select {
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--wash);
}

/* Menu list with dotted leaders (Sabor, Aurelia) */
.menu-list {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.menu-row h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-row .leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}

.menu-row .price {
  font-family: var(--display);
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}

.menu-row p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.menu-item { display: flex; flex-direction: column; }

/* SaaS product hero + dashboard mock (Pulse) */
.hero-product {
  position: relative;
  text-align: center;
  padding: clamp(56px, 8vw, 92px) 24px 0;
  overflow: hidden;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 75%);
  pointer-events: none;
}

.hero-product .site-hero-inner {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}

.hero-product h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-product p { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.hero-product .site-hero-actions { justify-content: center; }

.dash-mock {
  position: relative;
  width: min(100% - 48px, 920px);
  margin: clamp(40px, 6vw, 60px) auto 0;
  background: #101018;
  border: 1px solid rgba(235, 235, 250, 0.14);
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 -10px 80px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(235, 235, 250, 0.1);
}

.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(235, 235, 250, 0.18); }

.dash-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 300px;
  text-align: left;
}

.dash-side {
  border-right: 1px solid rgba(235, 235, 250, 0.1);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-side span {
  height: 10px;
  border-radius: 5px;
  background: rgba(235, 235, 250, 0.12);
}

.dash-side span:first-child { background: var(--accent); width: 70%; }
.dash-side span:nth-child(2) { width: 85%; }
.dash-side span:nth-child(3) { width: 60%; }
.dash-side span:nth-child(4) { width: 75%; }

.dash-main { padding: 20px; }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dash-kpi {
  border: 1px solid rgba(235, 235, 250, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
}

.dash-kpi small { display: block; font-size: 11px; color: #9d9cb0; margin-bottom: 4px; }
.dash-kpi strong { font-family: var(--display); font-size: 19px; color: #f1f0f7; }
.dash-kpi em { font-style: normal; font-size: 11.5px; color: #4ade80; margin-left: 6px; }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  border: 1px solid rgba(235, 235, 250, 0.12);
  border-radius: 10px;
  padding: 16px;
}

.dash-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
}

/* Agent / contact strip (Alta Verde) */
.agent-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-strip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-strip strong { display: block; font-family: var(--display); font-size: 17px; }
.agent-strip span { font-size: 14px; color: var(--muted); }
.agent-strip .site-btn { margin-left: auto; }

/* Split hero with photo (Sabor, Aurelia) */
.site-hero .hero-photo {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .site-hero { grid-template-columns: minmax(0, 1fr); }
  .site-hero-art { order: -1; aspect-ratio: 16 / 9; }
  .site-features, .site-gallery, .site-pricing { grid-template-columns: repeat(2, 1fr); }
  .site-stats { grid-template-columns: repeat(2, 1fr); }
  .site-stats div + div { border-left: 0; }
  .site-stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .site-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-nav nav { display: none; }
}

@media (max-width: 900px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .photo-row img { height: 160px; }
  .float-card.fa { top: -16px; right: 4%; }
  .float-card.fb { bottom: -16px; left: 4%; }
}

@media (max-width: 560px) {
  .site-features, .site-gallery, .site-pricing { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-rows > div { grid-template-columns: 1fr auto; }
  .site-rows > div span:first-of-type { display: none; }
  .search-card { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .arch-frame { aspect-ratio: 4 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================
   Production component library — shared by every sample site
   ========================================================== */

/* ---- Announcement bar ---- */
.site-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

.site-announce a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.site-section-head.center p { margin-inline: auto; }

/* ---- Split rows (media beside copy, alternating) ---- */
.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-row + .split-row { margin-top: clamp(40px, 6vw, 72px); }
.split-row.reverse .split-media { order: 2; }

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 26px 56px -30px rgba(16, 17, 20, 0.5);
}

.split-body h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.split-body > p { color: var(--muted); margin-bottom: 18px; }

.check-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.check-list li strong { color: var(--ink); font-weight: 600; }

/* ---- Numbered process steps ---- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card h3 { font-family: var(--display); font-size: 16.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); }

/* ---- Testimonials ---- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-stars { display: flex; gap: 3px; color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.quote-card blockquote { font-size: 14.5px; line-height: 1.7; color: var(--muted); }

.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quote-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote-person strong { display: block; font-size: 14.5px; }
.quote-person span { font-size: 12.5px; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq-row { border-bottom: 1px solid var(--line); }

.faq-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}

.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq-row[open] summary::after { content: "\2013"; }
.faq-row summary:hover { color: var(--accent); }
.faq-row p { padding: 0 2px 20px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }

/* ---- News / article cards ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(16, 17, 20, 0.35); }
.news-card img { width: 100%; height: 168px; object-fit: cover; }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-meta .tag { color: var(--accent); font-weight: 700; }
.news-body h3 { font-family: var(--display); font-size: 17px; line-height: 1.35; }
.news-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.news-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.news-link:hover { text-decoration: underline; }

/* ---- Spec / comparison table ---- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  min-width: 520px;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}

.spec-table thead th {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--wash);
}

.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 600; }
.spec-table .yes { color: var(--accent); font-weight: 700; }
.spec-table .no { color: var(--muted); opacity: 0.6; }

/* ---- Newsletter ---- */
.newsletter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
}

.newsletter input {
  flex: 1;
  min-width: 200px;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---- Trust badges ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
}

.badge b { color: var(--accent); }

/* ---- Tab / filter chips ---- */
.tab-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }

.tab-chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-chip:hover { border-color: var(--accent); color: var(--accent); }
.tab-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- Contact / info cards ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-card strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.info-card p { font-size: 13.5px; color: var(--muted); }

/* ---- Responsive for the component library ---- */
@media (max-width: 900px) {
  .split-row { grid-template-columns: minmax(0, 1fr); }
  .split-row.reverse .split-media { order: 0; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid, .news-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .step-grid, .quote-grid, .news-grid, .info-grid { grid-template-columns: minmax(0, 1fr); }
  .split-media { aspect-ratio: 16 / 10; }
}
