/* ==========================================================================
   Horse Peak Gelatin — shared stylesheet
   ========================================================================== */

:root {
  --color-primary: #8F3F16;
  --color-secondary: #A94A1B;
  --color-dark: #3A180B;
  --color-cream: #FFF8F2;
  --color-white: #FFFFFF;
  --color-text: #252525;
  --color-muted: #666666;
  --color-border: #E7D9CD;
  --color-focus: #C8631F;

  --font-body: Inter, system-ui, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 12px 30px rgba(58, 24, 11, 0.10);
  --shadow-card: 0 6px 18px rgba(58, 24, 11, 0.08);

  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

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

.section { padding: 72px 0; }
.section--cream { background: var(--color-cream); }
.section--dark {
  background: var(--color-dark);
  color: #F4E9E0;
}
.section--dark .muted { color: #D8BFAF; }

.eyebrow-free h2 { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 18px; }
h3 { font-size: 1.25rem; margin: 0 0 10px; }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-cream); }

p { margin: 0 0 16px; max-width: 74ch; }
.section p.lede { font-size: 1.1rem; color: var(--color-muted); }
.muted { color: var(--color-muted); }

.measure { max-width: 74ch; }

ul.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-secondary); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: rgba(143, 63, 22, 0.08); }
.btn-onDark { background: var(--color-cream); color: var(--color-dark); }
.btn-onDark:hover { background: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 242, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
  gap: 18px;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--color-primary); }

nav.primary-nav { display: none; }
nav.primary-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}
nav.primary-nav a:hover { color: var(--color-primary); }

.header-cta { display: none; }

.menu-toggle {
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 10px 24px 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}
.mobile-nav .btn { margin-top: 14px; }

@media (min-width: 900px) {
  nav.primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
  padding: 56px 0 64px;
}
.hero .grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-copy .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
.hero-copy p.lede { margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-trust {
  font-size: 0.92rem;
  color: var(--color-muted);
  border-left: 3px solid var(--color-secondary);
  padding-left: 12px;
}
.hero-media {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  text-align: center;
}
.hero-media img { margin: 0 auto; max-height: 420px; width: auto; }

@media (min-width: 880px) {
  .hero .grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- At a glance / summary box ---------- */
.glance {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}
.glance dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}
.glance .row { border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.glance .row:last-child { border-bottom: none; padding-bottom: 0; }
.glance dt {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.glance dd { margin: 0; color: var(--color-muted); }

@media (min-width: 700px) {
  .glance dl { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-cream);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- Split content with image ---------- */
.split {
  display: grid;
  gap: 36px;
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}
.step .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  min-width: 560px;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.92rem;
}
tbody tr:nth-child(even) { background: var(--color-cream); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Callout ---------- */
.callout {
  background: var(--color-cream);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}
.price-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.price-card img { max-height: 220px; margin: 0 auto 18px; }
.price-card h3 { margin-bottom: 6px; }
.price-card p { color: var(--color-muted); }
.price-card .btn { margin-top: auto; }

/* ---------- Pros / considerations ---------- */
.pc-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-card { border-radius: var(--radius-md); padding: 26px; }
.pc-card.pros { background: #F3F8ED; border: 1px solid #D9E9C7; }
.pc-card.considerations { background: #FBEFE7; border: 1px solid var(--color-border); }
.pc-card ul { margin: 0; padding-left: 20px; }
.pc-card li { margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-dark);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary .chev { transform: rotate(45deg); }
details.faq-item .faq-answer { padding: 0 0 18px; color: var(--color-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-dark);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.cta-band h2 { color: var(--color-cream); }
.cta-band .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }

/* ---------- Footer ---------- */
.rotulo-band { background: var(--color-cream); padding: 48px 0 8px; text-align: center; }
.rotulo-band img { max-width: 320px; margin: 0 auto; }

footer.site-footer { background: var(--color-dark); color: #E7D5C6; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: none;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #E7D5C6; text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #C9AF9C; font-size: 0.95rem; max-width: 42ch; }
.footer-bottom {
  border-top: 1px solid rgba(231, 213, 198, 0.2);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #C9AF9C;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-disclaimer { max-width: 74ch; font-size: 0.85rem; color: #C9AF9C; margin-bottom: 18px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.stack-sm > * + * { margin-top: 8px; }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.anchor-offset { scroll-margin-top: 88px; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.policy-body { padding: 64px 0; }
.policy-body h2 { margin-top: 36px; }
.policy-body ul { padding-left: 20px; }
