/* =========================================================
   Chula Homa Hounds — shared styles
   Traditional foxhunting aesthetic: hunt green, brass, cream
   ========================================================= */

:root {
  --green: #1b3a2b;
  --green-dark: #122619;
  --green-soft: #2c5440;
  --brass: #b8893a;
  --brass-light: #d2a85c;
  --cream: #f7f3ea;
  --cream-dark: #ece4d3;
  --ink: #25201a;
  --muted: #6b6253;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(18, 38, 25, 0.12);
  --radius: 6px;
  --maxw: 1140px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--green); }

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

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

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 14px;
}

.divider {
  width: 70px;
  height: 3px;
  background: var(--brass);
  border: none;
  margin: 18px auto 26px;
}
.divider.left { margin-left: 0; }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.lead.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--brass);
  background: var(--brass);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost-light:hover { background: #fff; color: var(--green); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.74rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  border-bottom: 3px solid var(--brass);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand .mark { width: 46px; height: 46px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand .brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  color: #ede7d8;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 13px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--green-soft); }
.nav-links a.is-cta {
  background: var(--brass); color: #fff; margin-left: 8px;
}
.nav-links a.is-cta:hover { background: var(--brass-light); }
.cart-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  font-size: 0.72rem;
  text-align: center;
  font-weight: 800;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 150px 0 140px;
  background:
    linear-gradient(rgba(18,38,25,0.62), rgba(18,38,25,0.72)),
    radial-gradient(circle at 20% 20%, #38624a 0%, transparent 55%),
    radial-gradient(circle at 80% 30%, #2c5440 0%, transparent 50%),
    linear-gradient(160deg, #1b3a2b 0%, #0f2418 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("hunt-pattern.svg");
  background-size: 240px;
  opacity: 0.06;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.25em;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--brass-light);
  margin-bottom: 8px;
}
.hero .hero-sub {
  max-width: 660px;
  margin: 18px auto 34px;
  font-size: 1.12rem;
  color: #e9e3d6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* page hero (smaller) */
.page-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 96px 0 86px;
  background:
    linear-gradient(rgba(18,38,25,0.66), rgba(18,38,25,0.78)),
    linear-gradient(160deg, #1b3a2b 0%, #0f2418 100%);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("hunt-pattern.svg");
  background-size: 220px; opacity: 0.06;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: #e9e3d6; max-width: 640px; margin: 10px auto 0; }

/* ---------- Generic blocks ---------- */
.bg-green { background: var(--green); color: #f1ece0; }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.media-frame {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.card-body { padding: 26px 26px 30px; }
.card .icon {
  width: 54px; height: 54px; margin-bottom: 14px; color: var(--brass);
}
.card h3 { font-size: 1.25rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--brass-light); font-weight: 700; }
.stat .label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: #d9d2c4; }

/* ---------- Education / content ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose h3 { margin-top: 1.6em; }
.term-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; margin: 24px 0; padding: 0; list-style: none; }
.term-list dt, .term-list .term { font-family: var(--serif); color: var(--green); font-weight: 700; font-size: 1.05rem; }
.term-list .def { color: var(--muted); margin-bottom: 8px; }

.callout {
  background: var(--cream-dark);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}

/* faq */
.faq details {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 6px 4px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
  padding: 14px 18px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 18px 18px; color: var(--muted); }

/* schedule table */
.schedule { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.schedule th, .schedule td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--cream-dark); }
.schedule thead th { background: var(--green); color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.schedule tbody tr:hover { background: var(--cream); }
.schedule .date { font-weight: 700; color: var(--green); white-space: nowrap; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-green { background: #e0ebe2; color: var(--green); }
.badge-brass { background: #f1e4cd; color: #8a6320; }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}
.product-img { aspect-ratio: 4/3; width: 100%; }
.product-info { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1.18rem; margin-bottom: 4px; }
.product .desc { color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: 14px; }
.product .price { font-family: var(--serif); font-size: 1.4rem; color: var(--brass); font-weight: 700; margin-bottom: 14px; }
.product .options { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.product select {
  flex: 1; min-width: 90px; padding: 9px 10px; border: 1px solid #cfc7b6;
  border-radius: 4px; font-family: var(--sans); font-size: 0.9rem; background: var(--cream);
}

/* cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(18,38,25,0.5);
  opacity: 0; visibility: hidden; transition: 0.25s; z-index: 90;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: var(--cream); z-index: 100; box-shadow: -10px 0 40px rgba(0,0,0,0.25);
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  background: var(--green); color: #fff; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h3 { color: #fff; margin: 0; }
.cart-close { background: none; border: none; color: #fff; font-size: 1.7rem; cursor: pointer; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-dark); }
.cart-line .thumb { width: 56px; height: 56px; border-radius: 4px; flex: none; }
.cart-line .cl-body { flex: 1; }
.cart-line .cl-title { font-weight: 700; color: var(--green); font-size: 0.95rem; }
.cart-line .cl-meta { font-size: 0.8rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border: 1px solid #cfc7b6; background: #fff; border-radius: 4px; cursor: pointer; font-weight: 700; color: var(--green); }
.cl-remove { background: none; border: none; color: #a23b2e; cursor: pointer; font-size: 0.8rem; padding: 0; }
.cart-foot { padding: 20px 24px; border-top: 2px solid var(--cream-dark); background: #fff; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; color: var(--green); margin-bottom: 14px; }
.cart-foot .btn { width: 100%; text-align: center; }
.cart-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.85rem; color: var(--green); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid #cfc7b6; border-radius: 4px;
  font-family: var(--sans); font-size: 1rem; background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #cdd5cd; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer a { color: #cdd5cd; }
.site-footer a:hover { color: var(--brass-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand .mark { width: 50px; height: 50px; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem; color: #9aa79d;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .shop-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .term-list, .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--green); padding: 10px 18px 18px;
    border-bottom: 3px solid var(--brass);
    max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.open { max-height: 560px; padding-top: 10px; padding-bottom: 18px; }
  .nav-links a { padding: 12px 10px; }
  .nav-links a.is-cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .shop-grid, .stats, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  body { font-size: 16px; }
}
