/* ============================================
   Robertson Dogs — Design System
   Black / Gold / Bone — Premium, no-nonsense
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Surfaces */
  --page: #FFFFFF;
  --card: #FFFFFF;
  --alt: #F0ECE1;
  --chip: #FAFAF8;
  --footer: #14110B;

  /* Borders */
  --hairline: #E2DCCC;
  --strong: #CFC8B6;

  /* Text */
  --ink: #14110B;
  --muted: #4A453B;
  --caption: #8A847A;

  /* Gold */
  --gold: #C9A961;
  --gold-bright: #E0BE71;
  --gold-deep: #A88B4A;
  --gold-text: #8B6F3A;

  /* Type */
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }

@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1.display { font-size: clamp(40px, 7vw, 76px); }
h2.display { font-size: clamp(30px, 5vw, 52px); }
h3.display { font-size: clamp(22px, 3vw, 30px); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caption);
}

.gold-grad {
  background: linear-gradient(180deg, #A88B4A 0%, #8B6F3A 50%, #5C4823 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s cubic-bezier(.2,.7,.2,1);
}

.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-gold-text { background: transparent; color: var(--gold-text); border-color: var(--strong); }
.btn-gold-text:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--gold);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--display); font-size: 17px; letter-spacing: -1px;
}
.logo-text {
  font-family: var(--display); font-size: 14px; letter-spacing: -0.4px;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.logo-text .gold { color: var(--gold-text); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--gold-text); }
.nav-links a.active { color: var(--gold-text); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 24px 32px; border-bottom: 1px solid var(--hairline);
  }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  min-height: 560px;
}
.hero h1 { margin: 18px 0; }
.hero .lede { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.trust-row {
  display: flex; gap: 0; border-top: 1px solid var(--hairline); padding-top: 22px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px; padding: 0 20px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.trust-item:first-child { padding-left: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--hairline); }
.check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold);
  color: #fff; display: grid; place-items: center; font-size: 12px; flex: none;
}

.hero-photo {
  position: relative; height: 100%; min-height: 460px;
  border-radius: 12px; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 45%);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { display: none; }
  .trust-row { flex-wrap: wrap; gap: 12px; }
  .trust-item { padding: 0; border: none !important; }
}

/* ---------- Pitch ---------- */
.pitch { background: var(--alt); text-align: center; }
.pitch .container { max-width: 720px; }
.pitch p { font-size: 19px; color: var(--muted); margin-top: 18px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--strong); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,17,11,.06); }

/* ---------- Phases ---------- */
.phase-card { padding: 32px; }
.phase-num { font-family: var(--display); font-size: 46px; color: var(--gold); line-height: 1; }
.phase-card h3 { font-size: 20px; margin: 14px 0 8px; }
.phase-card p { color: var(--muted); font-size: 15px; }

/* ---------- Curriculum ---------- */
.curriculum { background: var(--alt); }
.lesson-list { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.lesson {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 4px; border-bottom: 1px solid var(--hairline);
}
.lesson-num { font-family: var(--display); color: var(--gold-text); font-size: 15px; width: 36px; flex: none; }
.lesson-title { font-weight: 600; }
.lesson-meta { margin-left: auto; color: var(--caption); font-size: 14px; }

/* ---------- Dogs / Store cards ---------- */
.item-photo { position: relative; aspect-ratio: 4/3; background: var(--chip); overflow: hidden; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge.available { background: var(--gold); color: #fff; }
.badge.sold { background: var(--ink); color: #fff; }
.item-body { padding: 22px; }
.item-level { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-text); }
.item-body h3 { font-family: var(--display); font-size: 22px; margin: 8px 0 4px; }
.item-sub { color: var(--caption); font-size: 14px; }
.item-blurb { color: var(--muted); font-size: 14px; margin: 14px 0 18px; }
.item-foot { display: flex; align-items: center; justify-content: space-between; }
.item-price { font-family: var(--display); font-size: 22px; }

.product-photo { aspect-ratio: 1/1; }
.product-photo .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #F0ECE1, #FAFAF8);
  color: var(--caption); font-size: 13px;
}
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gold-text);
  border: 1px solid var(--hairline); padding: 3px 9px; border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.quote-card { padding: 30px; }
.quote-card p { font-size: 16px; color: var(--ink); }
.quote-author { margin-top: 18px; font-weight: 700; font-size: 14px; }
.quote-author span { color: var(--caption); font-weight: 500; }
.stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--footer); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.7); margin: 16px auto 30px; max-width: 52ch; }

/* ---------- Board & Train page ---------- */
.bt-hero { background: var(--alt); }
.bt-features { columns: 2; gap: 40px; max-width: 760px; margin: 0 auto; }
.bt-features li {
  break-inside: avoid; list-style: none; padding: 12px 0 12px 30px; position: relative;
  color: var(--muted);
}
.bt-features li::before {
  content: '✓'; position: absolute; left: 0; top: 12px;
  color: var(--gold); font-weight: 800;
}
.price-tag { font-family: var(--display); font-size: clamp(40px,6vw,64px); }
@media (max-width: 560px) { .bt-features { columns: 1; } }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: rgba(255,255,255,.7); padding: 64px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer .logo-text { color: #fff; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.2,.7,.2,1); z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Dog cards link ---------- */
.card-link { display: block; color: inherit; }
.card-link:hover .item-body h3 { color: var(--gold-text); }

/* ---------- Dog detail page ---------- */
.detail { padding-top: 56px; }
.breadcrumb { font-size: 14px; color: var(--caption); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--gold-text); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.detail-photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); position: relative; }
.detail-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-photo .ph { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg,#F0ECE1,#FAFAF8); color: var(--caption); }
.detail-info h1 { margin: 8px 0 6px; }
.detail-sub { color: var(--caption); font-size: 16px; margin-bottom: 22px; }
.detail-price { font-family: var(--display); font-size: 38px; margin: 22px 0; }
.spec-list { border-top: 1px solid var(--hairline); margin: 22px 0; }
.spec-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.spec-row .k { color: var(--caption); }
.spec-row .v { font-weight: 700; }
.detail-blurb { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 22px 0 28px; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }
.loading { text-align: center; color: var(--caption); padding: 40px; }
