/* Stonebred Reds website.
   Layout: full width sections on bone, one coloured block per product line (Reds terracotta, Stud granite, Meats greenstone), one dark band per page.
   Single look by design: the brand is printed on bone, so there is no dark theme. */
:root {
  --granite: #322A2B;
  --oxblood: #682621;
  --terracotta: #A83928;
  --bone: #F4EDE5;
  --cream: #E0CEC1;
  --ash: #5C5453;
  --green: #2F5B4C;
  --foil: #BC9D66;
  --panel: #E9DFD3;
  --paper: #FBF7F0;
  --rule: #C9B8A6;
  --field: #8C7B6E;
  --display: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --body: 'Barlow', 'Segoe UI', Helvetica, Arial, sans-serif;
  --label: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--granite);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: var(--terracotta); }
a:hover { color: var(--oxblood); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.sec--dark :focus-visible, .ftr :focus-visible, .phead--dark :focus-visible, .cta :focus-visible { outline-color: var(--foil); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--granite); color: var(--bone); padding: 12px 18px; border-radius: 3px; }
.skip:focus { left: 8px; color: var(--bone); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec--panel { background: var(--panel); }
.sec--dark { background: var(--granite); color: var(--bone); }
.sec--dark p { color: var(--cream); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 88px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.eyebrow { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); }
.sec--dark .eyebrow { color: var(--foil); }
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--ash); max-width: 60ch; }
.body-l { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.6; color: var(--ash); max-width: 62ch; }
.sec--dark .lead, .sec--dark .body-l { color: var(--cream); }
.bar { display: block; width: 64px; height: 3px; background: var(--foil); }
.sechead { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.caption { font-size: 15px; color: var(--ash); line-height: 1.45; }
.caption--cream { color: var(--cream); }
.more { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; color: var(--granite); }
.more:hover { color: var(--terracotta); }
.sec--dark .more { color: var(--bone); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 30px; border: 2px solid transparent; border-radius: 3px; font: 600 18px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn--primary { background: var(--terracotta); color: var(--bone); }
.btn--primary:hover { background: var(--oxblood); color: var(--bone); }
.btn--line { background: transparent; color: var(--granite); border-color: var(--granite); }
.btn--line:hover { background: var(--granite); color: var(--bone); }
.btn--foil { background: var(--foil); color: var(--granite); }
.btn--foil:hover { background: var(--cream); color: var(--granite); }
.btn--bone { background: var(--bone); color: var(--granite); }
.btn--bone:hover { background: var(--cream); color: var(--granite); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bone); border-bottom: 1px solid var(--cream); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--granite); min-width: 0; }
.brand:hover { color: var(--granite); }
.brand img { width: 52px; height: 52px; flex: none; }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; color: var(--granite); text-decoration: none; font-weight: 500; font-size: 18px; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--granite); border-bottom-color: var(--foil); }
.nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }
.hdr__cta { min-height: 48px; padding: 12px 24px; font-size: 17px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 1.5px solid var(--granite); border-radius: 3px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--granite); }

/* Home hero */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.hero__seal img { width: 100%; max-width: 520px; margin-inline: auto; }
.chip { display: inline-block; background: var(--foil); color: var(--granite); border-radius: 2px; padding: 7px 14px; font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }

/* Product lines */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.line { display: flex; flex-direction: column; background: var(--bone); border-radius: 3px; overflow: hidden; }
.line__head { background: var(--c); color: var(--bone); padding: 26px 34px 22px; display: flex; flex-direction: column; gap: 6px; }
.line__name { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; }
.line__kind { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); }
.line__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 34px 34px; flex: 1; }
.line__body p { font-size: 18px; line-height: 1.5; }
.line__body .more { margin-top: auto; }

/* Breed tiles and benefits */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--panel); border-radius: 3px; padding: 26px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sec--panel .tile { background: var(--bone); }
.tile p { font-size: 17px; line-height: 1.5; color: var(--ash); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trio__item { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--foil); min-width: 0; }
.trio__item p { color: var(--ash); }

/* Stud steps and certificate */
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); width: 100%; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps__n { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 36px); line-height: 1; color: var(--terracotta); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(22px, 2.2vw, 26px); }
.steps p { color: var(--ash); margin-top: 4px; }
.cert-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.cert { width: min(100%, 420px); background: var(--paper); border: 1px solid #D5C6B5; padding: 32px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 18px 40px -26px rgba(50, 42, 43, 0.4); }
.cert__head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cert__head img { width: 84px; height: 84px; }
.cert__sub { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.32em; padding-left: 0.32em; text-transform: uppercase; color: var(--ash); }
.cert__title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.cert__bar { width: 80px; height: 2px; background: var(--foil); }
.cert__rows { display: grid; grid-template-columns: max-content minmax(40px, 1fr); column-gap: 10px; }
.cert__row { display: contents; }
.cert__label { height: 30px; display: flex; align-items: flex-end; padding-bottom: 3px; white-space: nowrap; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.cert__line { height: 30px; border-bottom: 1px solid #B8A998; }
.cert__gold { display: flex; justify-content: center; }
.cert__gold img { width: 70px; height: 70px; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); width: 100%; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--body); font-weight: 400; font-size: 32px; line-height: 1; color: var(--terracotta); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; max-width: 62ch; color: var(--ash); }

/* Register table (Reds) */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; }
.reg { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.reg th { text-align: left; padding: 14px 16px; background: var(--panel); border-bottom: 1px solid var(--rule); font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.reg td { padding: 26px 16px; color: var(--ash); }
.reg__note { margin-top: 18px; }

/* Pack label (Meats) */
.pack { width: min(100%, 300px); background: var(--bone); color: var(--granite); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pack img { width: 96px; height: 96px; }
.pack__kind { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; }
.pack__cut { font-family: var(--label); font-weight: 600; font-size: 18px; letter-spacing: 0.2em; padding-left: 0.2em; text-transform: uppercase; color: var(--terracotta); }
.pack__rule { width: 100%; height: 1px; background: #BFAF9E; margin: 8px 0; }
.pack__rows { width: 100%; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ash); }
.pack__rows div { display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.pack__cut--blank { width: 70%; height: 24px; border-bottom: 1px solid #B8A998; }
.pack__rows span:first-child { flex: none; }
.pack__line { flex: 1; min-width: 40px; border-bottom: 1px solid #B8A998; margin-bottom: 4px; }
.pack__origin { margin-top: 10px; font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; }
.ph { font-style: italic; }
.checks { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid rgba(224, 206, 193, 0.28); }
.checks li { padding: 14px 0; border-bottom: 1px solid rgba(224, 206, 193, 0.28); color: var(--cream); font-size: 18px; }
.checks b { color: var(--bone); font-weight: 600; }

/* Quote */
.quote { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 112px); background: var(--bone); }
.quote__mark { position: absolute; left: 50%; top: 50%; width: min(560px, 90vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.07; pointer-events: none; }
.quote__in { position: relative; max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.quote__text { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.18; text-wrap: balance; }
.quote .body-l { max-width: 640px; }

/* Inner page header */
.phead { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); background: var(--panel); }
.phead--c { background: var(--c); color: var(--bone); }
.phead--c .eyebrow { color: var(--cream); }
.phead--c .lead { color: var(--cream); }
.phead__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
.phead__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.phead__seal { width: clamp(150px, 18vw, 240px); height: auto; }

/* Form */
.form { background: var(--bone); border-radius: 4px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sec--panel .form { background: var(--bone); }
.form--panel { background: var(--panel); }
.sec .form--panel { background: var(--panel); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 3px; background: var(--paper); font: 400 17px/1.4 var(--body); color: var(--granite); }
.field select { padding: 0 10px; }
.field textarea { min-height: 130px; padding: 12px 14px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 1px; border-color: var(--granite); }
.field [aria-invalid="true"] { border-color: var(--oxblood); border-width: 2px; }
.err { color: var(--oxblood); font-size: 15px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.form .btn { align-self: flex-start; }
.result { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.result[hidden] { display: none; }
.result h3 { font-size: 24px; }
.result textarea { width: 100%; min-height: 200px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 3px; background: var(--bone); font: 400 16px/1.5 var(--body); color: var(--granite); resize: vertical; }
.result__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status { font-size: 15px; color: var(--ash); }
.mail-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 1px solid var(--rule); width: 100%; }
.mail-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail-card__addr { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); overflow-wrap: anywhere; user-select: all; }
.list { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--rule); }
.list li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ash); }
.list b { color: var(--granite); font-weight: 600; }

/* Story figure */
.figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.figure img { width: 100%; border-radius: 3px; }

/* CTA band */
.cta { background: var(--terracotta); color: var(--bone); padding-block: clamp(48px, 6vw, 72px); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta p { color: var(--cream); margin-top: 8px; font-size: 20px; }

/* Footer */
.ftr { background: var(--granite); color: var(--bone); padding-block: clamp(40px, 5vw, 64px); }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.ftr .brand { color: var(--bone); gap: 18px; }
.ftr .brand:hover { color: var(--bone); }
.ftr .brand img { width: 84px; height: 84px; }
.ftr .brand__word { font-size: 30px; }
.ftr__name { display: flex; flex-direction: column; gap: 6px; }
.ftr__sub { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ftr a { color: var(--cream); text-decoration: none; font-size: 17px; }
.ftr a:hover { color: var(--bone); text-decoration: underline; text-decoration-color: var(--foil); text-underline-offset: 5px; }
.ftr__base { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(224, 206, 193, 0.28); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; color: var(--cream); }

/* Enquiry handling, WhatsApp and confirmations */
[hidden] { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__note { font-size: 15px; color: var(--ash); line-height: 1.45; margin: 0; }
.form .btn[disabled] { background: var(--cream); color: var(--ash); cursor: progress; }
.sent { background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--green); border-radius: 3px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.sent h3 { font-size: 24px; color: var(--green); }
.sent p { margin: 0; color: var(--ash); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--granite); }
.wa-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 0; border-top: 1px solid var(--rule); width: 100%; }
.wa-card .mail-card__addr { margin: 0; }
.cta .btn-row { align-items: center; }
.ftr__base a { font-size: inherit; }

/* Tablet and phone */
@media (max-width: 899px) {
  .split, .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__seal { order: -1; }
  .hero__seal img { max-width: 240px; }
  .lines, .trio { grid-template-columns: minmax(0, 1fr); }
  .line__head { padding: 22px 24px 18px; }
  .line__name { font-size: 44px; }
  .line__body { padding: 22px 24px 28px; }
  .hdr__in { min-height: 68px; }
  .brand img { width: 40px; height: 40px; }
  .brand__word { font-size: 18px; letter-spacing: 0.05em; }
  .hdr__cta { display: none; }
  .js .menu-btn { display: flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bone); border-bottom: 1px solid var(--cream); padding: 8px 0 20px; }
  .js .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: 14px var(--gutter); font-size: 20px; border-bottom: 0; border-left: 4px solid transparent; }
  .nav a[aria-current="page"] { border-left-color: var(--terracotta); }
  .nav a:hover { border-bottom: 0; }
  .phead__grid { grid-template-columns: minmax(0, 1fr); }
  .phead__seal { display: none; }
  .ftr .brand img { width: 64px; height: 64px; }
  .ftr .brand__word { font-size: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .tile { padding: 18px; }
  .tile p { font-size: 16px; }
  .cert { padding: 24px 20px; }
  .cert__head img { width: 72px; height: 72px; }
  .cert__title { font-size: 27px; }
  .cert__label { font-size: 12px; letter-spacing: 0.12em; }
  .btn-row .btn, .form .btn { width: 100%; }
  .pack { width: min(100%, 260px); padding: 20px; }
  .pack img { width: 84px; height: 84px; }
  .pack__kind { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
