/* =========================================================
   EATTA – Heritage Marketplace theme
   base.css — shared by ALL pages. Load AFTER Bootstrap 5,
   then load the page stylesheet (home.css, about.css, etc.).
   Change the tokens in :root to restyle the whole site.
   ========================================================= */

:root {
  --green-900: #058d3b;   /* deepest – footer, hero */
  --green-800: #058d3b;   /* primary brand green */
  --green-700: #058d3b;
  --green-100: #e6efe9;
  --gold-600:  #b08a3e;   /* accents, rules */
  --gold-500:  #c9a24a;
  --gold-200:  #efe1bd;
  --cream:     #faf6ec;   /* page background */
  --paper:     #ffffff;
  --ink:       #1d2622;   /* body text */
  --muted:     #5d6a63;
  --line:      #e3dccb;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 10px 30px -18px rgba(11, 46, 34, .45);
  --max: 1200px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.15;
}
a { color: var(--green-700); }
a:hover { color: var(--gold-600); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Small caps label above section titles */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }

.section-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.lead-text { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

/* Clearfix for float layouts */
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--green-900); color: var(--gold-200);
  font-size: .85rem; padding: .45rem 0;
}
.topbar a { color: var(--gold-200); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .d-flex { gap: 1.5rem; }

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--gold-500);
  position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-800); color: var(--gold-500);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  border: 2px solid var(--gold-500);
}
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--green-900); line-height: 1; letter-spacing: .04em; }
.brand-text small { color: var(--muted); font-size: .78rem; letter-spacing: .02em; }

.navbar-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .5rem .85rem !important; position: relative;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
  height: 2px; background: var(--gold-500); transform: scaleX(0);
  transition: transform .25s ease; transform-origin: left;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active { color: var(--green-800); }
.navbar-toggler { border-color: var(--green-800); }

/* ---------- Buttons ---------- */
.btn-heritage {
  background: var(--green-800); color: #fff; border: 2px solid var(--green-800);
  border-radius: var(--radius); padding: .7rem 1.4rem; font-weight: 600;
}
.btn-heritage:hover { background: var(--green-900); color: var(--gold-200); border-color: var(--green-900); }
.btn-gold {
  background: var(--gold-500); color: var(--green-900); border: 2px solid var(--gold-500);
  border-radius: var(--radius); padding: .7rem 1.4rem; font-weight: 700;
}
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn-outline-heritage {
  background: transparent; color: var(--green-800); border: 2px solid var(--green-800);
  border-radius: var(--radius); padding: .65rem 1.3rem; font-weight: 600;
}
.btn-outline-heritage:hover { background: var(--green-800); color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11,46,34,.96) 0%, rgba(16,61,46,.88) 55%, rgba(16,61,46,.55) 100%),
    var(--hero-img, none) center/cover no-repeat,
    var(--green-900);
  padding: 5.5rem 0 4.5rem;
}
.page-hero::after {            /* thin gold rule along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 40px, var(--gold-600) 40px 80px);
}
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 40rem; }
.crumbs { font-size: .85rem; margin-bottom: 1.5rem; letter-spacing: .05em; }
.crumbs a { color: var(--gold-200); text-decoration: none; }
.crumbs span { color: rgba(255,255,255,.6); margin: 0 .4rem; }

/* ---------- Cards ---------- */
.h-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; height: 100%; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.h-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(11,46,34,.5); }
.h-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.h-card p { color: var(--muted); margin-bottom: 0; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--green-100); color: var(--green-800);
  border: 1px solid var(--gold-200);
}
.icon-badge svg { width: 26px; height: 26px; }

/* Category tag (used on most pages) */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-800); background: var(--gold-200); padding: .2rem .6rem; border-radius: 3px;
}
.tag.dark { background: var(--green-800); color: var(--gold-200); }

/* ---------- Stat strip (grid) ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat-grid .stat { background: var(--paper); padding: 1.6rem 1rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--green-800); line-height: 1; }
.stat .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: .4rem; }
.stat-grid.dark { background: rgba(201,162,74,.35); border-color: rgba(201,162,74,.35); }
.stat-grid.dark .stat { background: var(--green-800); }
.stat-grid.dark .num { color: var(--gold-500); }
.stat-grid.dark .lbl { color: rgba(255,255,255,.75); }

/* ---------- Float media (about, auction) ---------- */
.float-media {
  float: right; width: 42%; margin: .3rem 0 1.25rem 2rem;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--paper); outline: 1px solid var(--line);
}
.float-media.left { float: left; margin: .3rem 2rem 1.25rem 0; }
.float-media figcaption { font-size: .85rem; color: var(--muted); background: var(--paper); padding: .5rem .75rem; }

/* ---------- Video (about, auction) ---------- */
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--paper); outline: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- News cards (home, news) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.news-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-card .thumb { aspect-ratio: 16/10; background: var(--green-100); overflow: hidden; }
.news-card .thumb img, .news-card .thumb iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.news-card .body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.4rem; margin: .5rem 0; }
.news-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.news-card .more { font-weight: 700; text-decoration: none; font-size: .9rem; }
.news-card[hidden] { display: none; }

/* ---------- Document links (membership, news) ---------- */
.doc-link {
  display: inline-flex; align-items: center; gap: .5rem; margin: .25rem .5rem .25rem 0;
  padding: .45rem .9rem; border: 1px solid var(--gold-500); border-radius: 4px;
  font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--green-800); background: #fffaf0;
}
.doc-link:hover { background: var(--gold-500); color: var(--green-900); }
.doc-link svg { width: 16px; height: 16px; }

/* ---------- CTA band (home, membership) ---------- */
.cta-band {
  background: var(--green-800); color: #fff; border-radius: var(--radius);
  padding: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background-image: radial-gradient(circle at 90% 10%, rgba(201,162,74,.25), transparent 45%);
}
.cta-band h2 { color: #fff; margin: 0 0 .4rem; font-size: 2.2rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 4.5rem 0 0; margin-top: 0; border-top: 4px solid var(--gold-500); }
.site-footer h5 { font-family: var(--font-display); color: var(--gold-500); font-size: 1.35rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold-200); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand strong { color: #fff; }
.footer-brand small { color: rgba(255,255,255,.6); }
.subscribe { display: flex; gap: .5rem; }
.subscribe input { flex: 1; min-width: 0; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; padding: .6rem .8rem; }
.subscribe input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.25rem 0; font-size: .85rem; }
.award { color: var(--gold-200); }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(201,162,74,.5); display: grid; place-items: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Responsive (shared) ---------- */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link::after { display: none; }
  .navbar-collapse { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .5rem; }
}
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3.5rem 0 3rem; }
  .float-media, .float-media.left { float: none; width: 100%; margin: 0 0 1.5rem; }
  .cta-band { padding: 2rem; }
  .topbar .hide-sm { display: none !important; }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Desktop menu: keep each item on one line ---------- */
@media (min-width: 992px) {
  .navbar-nav .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav .nav-link { padding: .5rem .5rem !important; font-size: .9rem; }
  .navbar-nav .nav-link::after { left: .5rem; right: .5rem; }
  .brand-text small { display: none; }
}

/* ---------- Lightweight YouTube link (thumbnail that opens YouTube) ---------- */
.news-card .thumb { position: relative; }
.yt-lite { position: absolute; inset: 0; display: block; background: #0b2e22 center / cover no-repeat; }
.yt-lite::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); transition: background .2s; }
.yt-lite:hover::after { background: rgba(0,0,0,0); }
.yt-lite-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 48px; z-index: 1;
  background: #c4302b; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s;
}
.yt-lite-play::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%,-50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt-lite:hover .yt-lite-play { transform: translate(-50%,-50%) scale(1.08); }

/* Logo inside the header brand circle */
.brand-mark { overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* ---------- Scroll reveal (js/reveal.js) ---------- */
.rv-pending main { opacity: 0; }
.rv { opacity: 0; will-change: opacity, transform; }
.rv-block { transform: translate3d(0, 32px, 0) scale(.985); }
.rv-text  { transform: translate3d(0, 18px, 0); }
.rv.rv-in {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--rv-delay, 0ms);
}
.rv-words .rv-w { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0); }
.rv-words.rv-in .rv-w {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1);
  transition-delay: calc(var(--rv-delay, 0ms) + var(--rv-w, 0ms));
}
@media print { .rv, .rv-w { opacity: 1 !important; transform: none !important; } .rv-pending main { opacity: 1; } }
