/* Risdor Brand Site — Warm Editorial Nursery Design System */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-warm: #f3ece2;
  --surface-sage: #edf2ee;
  --text: #2a2420;
  --muted: #625850;
  --line: #e5ddd2;
  --accent: #8c5646;
  --accent-hover: #734335;
  --sage: #496356;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(42, 36, 32, 0.06);
  --maxw: 1120px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.6rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.35rem;
  max-width: 58ch;
}
.small-note { font-size: 0.88rem; color: var(--muted); }

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: #cfc3b4;
}
.button.secondary:hover {
  background: var(--surface-warm);
  color: var(--text);
}
.button.full { width: 100%; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.warm { background: var(--surface-warm); border-block: 1px solid var(--line); }
.section.sage { background: var(--surface-sage); border-block: 1px solid #dbe4dd; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4.5vw, 3.5rem);
}
.hero-figure {
  margin: 0;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
}
.hero-figure figcaption {
  padding-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.trust-pills li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Breadcrumbs */
.breadcrumb {
  padding-top: 1.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* Product Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(42, 36, 32, 0.04);
}
.card-media {
  display: block;
  overflow: hidden;
  background: #ffffff;
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
}
.card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.35rem;
}
.card-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}
.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.text-link:hover { text-decoration: underline; }

/* Steps */
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Specs & Tables */
.spec-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin: 0;
}
.spec-item dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
}
.spec-item dd {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: 0.96rem;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--surface-warm);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }

/* FAQ Accordion */
.faq-list { display: grid; gap: 0.75rem; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { margin: 0.75rem 0 0; color: var(--muted); }

/* Article / Prose */
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.callout {
  background: var(--surface-warm);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin-block: 1.35rem;
}
.callout p { margin: 0; }

/* Footer */
.site-footer {
  background: #241f1c;
  color: #dfd6cb;
  padding-block: 2.75rem 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .wordmark { color: #fff; }
.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer a {
  color: #dfd6cb;
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #b7aba0;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.4rem 2rem; }
  .hero-figure { order: -1; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .grid-4, .grid-3, .grid-2, .spec-list, .footer-grid { grid-template-columns: 1fr; }
  .header-bar { gap: 0.5rem; }
  .nav { gap: 0.2rem 0.9rem; width: 100%; }
  .nav a { font-size: 0.9rem; }
  .actions .button { width: 100%; }
}
