/* ------------------------------------------------------------------
   Mates Rates Lamb — site styles
   Palette taken from the logo: warm gold, charcoal, off-white.
   ------------------------------------------------------------------ */

:root {
  --gold: #b8892e;
  --gold-dark: #9a7021;
  --gold-soft: #f3ead6;
  --charcoal: #2a2a2a;
  --ink: #3a3a3a;
  --muted: #6d6a63;
  --paper: #fbf9f4;
  --paper-2: #f4efe4;
  --line: #e4dccb;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1120px;
  --gutter: 20px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--gold-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; margin-bottom: .35em; }

p { margin: 0 0 1em; }

strong { color: var(--charcoal); font-weight: 600; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(251, 249, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand-top {
  font-family: var(--serif);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.brand-main {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .92rem;
  font-weight: 500;
}

.nav a { color: var(--charcoal); text-decoration: none; }
.nav a:hover { color: var(--gold-dark); }

.nav-cta {
  padding: 8px 14px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-dark) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--white) !important; }

@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}

.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }

.btn-light { background: var(--white); color: var(--charcoal); border-color: var(--white); white-space: nowrap; }
.btn-light:hover { background: var(--gold-soft); }

.btn.full { width: 100%; }

/* strong buy-now call to action */
.btn-buy {
  padding: 17px 32px;
  font-size: 1.08rem;
  letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(184,137,46,.28);
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(184,137,46,.34); }
.btn-light.btn-buy { box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.price-box .btn-buy { margin: 4px 0 24px; }

.nav-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* ---------- hero ---------- */

.hero {
  padding: 48px var(--gutter) 72px;
  background:
    radial-gradient(ellipse at top left, rgba(184,137,46,.10), transparent 55%),
    var(--paper);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero-logo {
  width: min(300px, 70%);
  margin: 0 0 28px;
  border-radius: 4px;
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(42,42,42,.18);
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--white);
  background: rgba(42,42,42,.55);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

@media (max-width: 860px) {
  .hero { padding: 36px var(--gutter) 56px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .hero-logo { margin: 0 auto 24px; }
  .hero-actions { justify-content: center; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 0 30px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- facts strip ---------- */

.facts {
  background: var(--charcoal);
  color: var(--paper);
  padding: 28px var(--gutter);
}

.facts ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px 32px;
}

.facts li { display: flex; flex-direction: column; gap: 4px; }

.fact-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.fact-value {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

/* ---------- sections ---------- */

.section { padding: 80px var(--gutter); }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section-kicker {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-kicker.light { color: var(--gold-soft); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px 72px;
  align-items: start;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px var(--gutter); }
}

.prose { font-size: 1.05rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

/* story */
.story { background: var(--paper); }

/* lamb cards */
.lamb { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
}

.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* what's inside */
.inside { background: var(--paper); }

.inside-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px 64px;
  align-items: center;
}

.inside-figure { margin: 0; }
.inside-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(42,42,42,.12);
}

.cut-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.cut-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.cut-pack {
  flex: 0 0 auto;
  width: 34px;
  height: 24px;
  border-radius: 4px;
  background: #f6f1e8;
  border: 1px solid #d8cdb6;
  position: relative;
}
.cut-pack::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, #a63a3a 0%, #7c2626 70%);
}

.cut-name { flex: 1 1 auto; font-weight: 600; color: var(--charcoal); font-size: .98rem; line-height: 1.2; }

.cut-qty { white-space: nowrap; font-size: .9rem; color: var(--muted); font-weight: 500; }
.cut-qty b {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.cut-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--ink);
}
.cut-total-n {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

@media (max-width: 980px) {
  .inside-grid { grid-template-columns: 1fr; gap: 28px; }
  .inside-figure { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .cut-list { grid-template-columns: 1fr; }
}

/* pricing */
.pricing { background: var(--paper); }

.price-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: 0 10px 30px rgba(42,42,42,.05);
}

.price-main { display: flex; align-items: baseline; gap: 10px; }

.price-amount {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-unit { font-size: 1.1rem; color: var(--muted); font-weight: 500; }

.price-example { margin: 10px 0 24px; font-size: 1.05rem; }

.steps {
  margin: 0 0 20px;
  padding: 0 0 0 1.3em;
  color: var(--ink);
}
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li::marker { color: var(--gold); font-weight: 700; }

.price-fine {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}

/* availability banner */
.availability { padding-top: 0; }

.avail-banner {
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.avail-banner h2 { color: var(--white); margin-bottom: .4em; }
.avail-banner p { margin: 0; max-width: 560px; color: rgba(255,255,255,.92); }

@media (max-width: 760px) {
  .avail-banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

/* register form */
.register { background: var(--paper-2); border-top: 1px solid var(--line); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--charcoal); }
.form .full { grid-column: 1 / -1; }

.form input, .form select, .form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid #d6cfbf;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form textarea { resize: vertical; }

.form-fine { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.order-note { grid-column: 1 / -1; margin: -6px 0 0; font-size: .86rem; color: var(--muted); }

/* buy section */
.buy-points { margin: 18px 0 0; padding: 0; list-style: none; }
.buy-points li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); }
.buy-points li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.order-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.order-item { display: flex; flex-direction: column; }
.order-name { font-weight: 600; color: var(--charcoal); }
.order-sub { font-size: .85rem; color: var(--muted); }
.order-price { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; }

.order-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--line);
  font-weight: 600; color: var(--charcoal);
}
.order-total #order-total { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--charcoal); line-height: 1; }

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 22px 18px; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--paper);
  padding: 44px var(--gutter);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand .brand-top { color: var(--paper); }
.footer-brand .brand-main { font-size: 1.5rem; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-soft);
  margin-top: 6px;
}

.footer-meta { text-align: right; font-size: .92rem; }
.footer-meta p { margin: 0 0 6px; }
.footer-small { color: #a9a49a; font-size: .8rem; }
.footer-link { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(243,234,214,.4); }
.footer-link:hover { border-bottom-color: var(--gold-soft); }
.form-fine a { color: var(--gold-dark); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ---------- small-screen refinements ---------- */

.brand-main, .brand-top, .brand-tag { white-space: nowrap; }

@media (max-width: 480px) {
  .brand-top { font-size: .68rem; }
  .brand-main { font-size: 1.05rem; }
  .brand-tag { font-size: .7rem; }
  .nav-cta { padding: 7px 11px; font-size: .85rem; white-space: nowrap; }
  .hero-photo figcaption { font-size: .7rem; left: 12px; bottom: 12px; padding: 5px 10px; white-space: nowrap; }
  .eyebrow { font-size: .72rem; letter-spacing: .16em; }
}

/* ---------- thank-you page ---------- */
.thanks-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 60vh; }
.thanks-inner .hero-copy { max-width: 620px; }
.thanks-inner .hero-logo { margin: 0 auto 24px; }
.thanks-inner .hero-actions { justify-content: center; }

/* ---------- gallery ---------- */
.gallery { background: var(--paper-2); border-top: 1px solid var(--line); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  grid-template-areas: "a b c d";
  gap: 14px;
  margin-top: 28px;
}
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--line); aspect-ratio: 3 / 4; }
.gallery-item.wide { aspect-ratio: 4 / 3; }
.gallery-item.tall { aspect-ratio: auto; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--paper);
  background: linear-gradient(to top, rgba(42,42,42,.65), rgba(42,42,42,0));
}
.gallery-grid .gallery-item:nth-child(1) { grid-area: a; }
.gallery-grid .gallery-item:nth-child(2) { grid-area: b; }
.gallery-grid .gallery-item:nth-child(3) { grid-area: c; }
.gallery-grid .gallery-item:nth-child(4) { grid-area: d; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d"; }
  .gallery-item.tall { aspect-ratio: 3 / 4; }
}
@media (max-width: 480px) {
  .gallery-grid { gap: 10px; }
}

/* ---------- founders note ---------- */
.founders { background: var(--paper); border-top: 1px solid var(--line); }

.founders-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px 56px;
  align-items: center;
}

.founders-logo { width: 100%; border-radius: 4px; border: 1px solid var(--line); }

.founders-text p { color: var(--ink); font-size: 1.05rem; }

.founders-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin: 6px 0 10px !important;
}

.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }
.text-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

@media (max-width: 760px) {
  .founders-inner { grid-template-columns: 1fr; gap: 24px; }
  .founders-logo { max-width: 220px; }
}
