/* Section pattern library styles. Token variables ONLY — no raw colors, no
 * raw px font sizes (layout dimensions like max-width/breakpoints are fine).
 * Mobile-first; focus states come from tokens.css :focus-visible. */

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--space-4); }
.sec { padding-block: var(--space-8); }

.eyebrow {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.sec-intro {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}
.brand-logo {
  height: var(--space-7);
  width: auto;
  max-width: 10rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
  margin-bottom: var(--space-4);
}

/* ---- Buttons --------------------------------------------------------------- */
.btn-primary, .btn-secondary, .btn-inverse {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-soft),
    box-shadow var(--duration-fast) var(--ease-out-soft),
    background var(--duration-fast) var(--ease-out-soft);
}
.btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover { box-shadow: var(--shadow-sm); }
.btn-inverse { background: var(--color-primary-contrast); color: var(--color-primary); }
.btn-inverse:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---- Heroes ---------------------------------------------------------------- */
.hero-headline { padding-block: var(--space-9) var(--space-8); text-align: center; }
.hero-headline h1, .hero-split h1, .hero-gradient h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-4xl);
  margin-bottom: var(--space-4);
}
.subhead {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto var(--space-6);
}

.hero-split { padding-block: var(--space-8); }
.hero-split-grid { display: grid; gap: var(--space-6); align-items: center; }
.hero-split .subhead { margin-inline: 0; }
.hero-split-visual svg { width: 100%; height: auto; display: block; }

.hero-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-primary-contrast);
  text-align: center;
  padding-block: var(--space-9);
}
.hero-gradient h1 { color: var(--color-primary-contrast); }
.eyebrow-on-primary, .subhead-on-primary { color: var(--color-primary-contrast); opacity: 0.92; }
.brand-logo-on-primary { background: var(--color-primary-contrast); padding: var(--space-1); }

/* ---- Photography (image addendum) -------------------------------------------- */
/* Per-photo dominant-color placeholders live in the generated assets/photos.css
 * (class ph-<slot>); these rules guarantee layout holds with images blocked. */
.photo-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-photo { position: relative; overflow: hidden; padding-block: var(--space-10) var(--space-9); }
.hero-photo-media { position: absolute; inset: 0; background: linear-gradient(160deg, var(--color-primary), var(--color-accent)); }
.hero-photo-media .photo-img { position: absolute; inset: 0; height: 100%; }
.hero-photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Scrim: the page background at alpha, so text keeps near-page contrast. */
  background: color-mix(in srgb, var(--color-bg) 76%, transparent);
}
.hero-photo-copy { position: relative; max-width: 44rem; }
.hero-photo-copy .subhead { margin-inline: 0; }

.hero-photo-split { padding-block: var(--space-8); }

.photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-border), var(--color-surface));
}
.photo-frame-hero { border-radius: var(--radius-lg); }

.features-photo .alt-row { align-items: center; }

.cta-photo-banner { position: relative; overflow: hidden; padding-block: var(--space-9); }
.cta-banner-media { position: absolute; inset: 0; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); }
.cta-banner-media .photo-img { position: absolute; inset: 0; height: 100%; }
.cta-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-bg) 76%, transparent);
}
.cta-banner-copy { position: relative; text-align: center; }

.photo-credits {
  font-size: var(--text-xs);
  line-height: var(--leading-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.photo-credits a { color: var(--color-text-muted); }

/* ---- Cards / grids ---------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.card-grid-3 { display: grid; gap: var(--space-5); }
.card h2, .card h3, .card h4 { font-size: var(--text-xl); line-height: var(--leading-xl); }
.card p { color: var(--color-text-muted); margin-bottom: 0; }

/* ---- Alternating rows -------------------------------------------------------- */
.features-alt .alt-row {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-block: var(--space-7);
}
.alt-visual svg { width: 100%; height: auto; display: block; }

/* ---- Testimonials ------------------------------------------------------------ */
.quote-card blockquote { margin: 0 0 var(--space-3); }
.quote-card blockquote p { color: var(--color-text); font-size: var(--text-lg); }
.quote-card figcaption { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---- Pricing ------------------------------------------------------------------ */
.tier { text-align: center; display: flex; flex-direction: column; gap: var(--space-3); }
.tier-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-3xl);
  color: var(--color-primary);
  margin: 0;
}
.tier .btn-primary, .tier .btn-secondary { margin-top: auto; }
.tier-featured { border-color: var(--color-primary); box-shadow: var(--shadow-lg); }

/* ---- Products ------------------------------------------------------------------ */
.product-grid { display: grid; gap: var(--space-5); }
.product { display: flex; flex-direction: column; gap: var(--space-3); }
.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.product-swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-border), var(--color-surface));
}
.product-price { color: var(--color-primary); font-weight: 700; margin: 0; }

.cart-shell { min-height: var(--space-10); }
.cart-empty-note { margin-bottom: 0; }

/* ---- Contact -------------------------------------------------------------------- */
.contact-cta { background: var(--color-surface); }
.contact-inner { text-align: center; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-6);
  max-width: 32rem;
  display: grid;
  gap: var(--space-2);
}
.contact-label {
  display: inline-block;
  min-width: var(--space-9);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- FAQ -------------------------------------------------------------------------- */
.faq-inner { max-width: 46rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--color-surface);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
}
.faq-item[open] summary { margin-bottom: var(--space-3); }
.faq-item p { color: var(--color-text-muted); margin-bottom: 0; }

/* ---- Footers ------------------------------------------------------------------------ */
.footer-simple, .footer-columns {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-6);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}
.footer-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.footer-muted { color: var(--color-text-muted); }
.footer-grid { display: grid; gap: var(--space-6); margin-bottom: var(--space-5); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.footer-head {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-links a { color: var(--color-text); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }

/* ---- Breakpoints ------------------------------------------------------------------------ */
@media (min-width: 720px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-split-grid { grid-template-columns: 1.1fr 0.9fr; }
  .features-alt .alt-row { grid-template-columns: 1fr 1fr; }
  .features-alt .alt-row-flip .alt-copy { order: 2; }
  .features-alt .alt-row-flip .alt-visual { order: 1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-headline h1, .hero-gradient h1 { font-size: var(--text-5xl); line-height: var(--leading-5xl); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.preview-banner { background: var(--color-text); color: var(--color-bg); text-align: center; padding: var(--space-2); font-size: var(--text-xs); letter-spacing: 0.12em; }
