/* ================================================================
   TARACHAND.ORG v5 — REDESIGN DESIGN SYSTEM
   Palette: Deep Forest · Warm Parchment · Amber · Ink
   Typography: DM Serif Display · Inter · Space Mono
   Signature: Full-bleed portrait headers with text overlaid
================================================================ */

/* ── TOKENS ── */
:root {
  --forest:  #0B3D2E;    /* deep forest green — primary */
  --forest2: #1A5C42;    /* mid green */
  --forest3: #2D7A5A;    /* accent green */
  --mint:    #E8F5EE;    /* very light green bg */
  --parch:   #FAF7F2;    /* warm parchment */
  --amber:   #C8860A;    /* amber accent */
  --amber-l: #FEF3DC;    /* amber tint */
  --ink:     #0F0F0F;    /* near black */
  --ink2:    #2D2D2D;
  --ink3:    #555555;
  --ink4:    #888888;
  --white:   #FFFFFF;
  --border:  #E2E2DC;
  --border2: #D0D0C8;
  --shadow:  0 2px 16px rgba(11,61,46,.10);
  --shadow2: 0 8px 40px rgba(11,61,46,.16);

  --ff-d: 'DM Serif Display', 'Libre Baskerville', Georgia, serif;
  --ff-b: 'Inter', 'Nunito Sans', system-ui, sans-serif;
  --ff-m: 'Space Mono', 'Courier New', monospace;

  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--ff-b); font-size: 16px; color: var(--ink2); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── SKIP LINK ── */
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--forest); color: #fff; padding: .7rem 1.4rem; font-family: var(--ff-b); font-size: .88rem; font-weight: 600; border-radius: 0 0 8px 8px; z-index: 9999; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; }

/* ── ACCENT BAR ── */
.accent-bar { height: 3px; background: linear-gradient(90deg, var(--forest) 0%, var(--forest3) 50%, var(--amber) 100%); }

/* ── NAV ── */
.pill-nav { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 1.5rem; }
.pill-nav-inner { display: flex; gap: 0; justify-content: center; align-items: center; height: 52px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pill-nav-inner::-webkit-scrollbar { display: none; }
.pn-item { font-family: var(--ff-b); font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink3); text-decoration: none; padding: .45rem 1.1rem; border-radius: 100px; transition: all .2s; white-space: nowrap; }
.pn-item:hover { color: var(--forest); background: var(--mint); }
.pn-item.active { color: var(--white); background: var(--forest); }

/* ── MOBILE NAV ── */
.mob-nav-btn { display: none; position: fixed; top: 10px; right: 16px; z-index: 600; width: 40px; height: 40px; border-radius: 8px; background: var(--white); border: 1.5px solid var(--border); box-shadow: var(--shadow); flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 8px; }
.mob-nav-btn span { display: block; width: 18px; height: 2px; background: var(--ink2); border-radius: 2px; transition: all .25s; }
.mob-overlay-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 580; }
.mob-overlay-bg.show { display: block; }
.mob-drawer { display: none; position: fixed; top: 0; right: 0; width: 72vw; max-width: 300px; height: 100%; background: var(--white); z-index: 590; padding: 5rem 2rem 2rem; box-shadow: -4px 0 30px rgba(0,0,0,.15); overflow-y: auto; }
.mob-drawer.show { display: flex; flex-direction: column; gap: .25rem; }
.mob-drawer a { font-family: var(--ff-b); font-size: 1rem; font-weight: 600; color: var(--ink2); text-decoration: none; padding: .85rem 1rem; border-radius: 8px; transition: all .2s; }
.mob-drawer a:hover, .mob-drawer a.active { background: var(--mint); color: var(--forest); }

/* ── WRAP ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.wrap-sm { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

/* ── BANDS ── */
.band { padding: 80px 0; }
.band-sm { padding: 48px 0; }
.band-lg { padding: 112px 0; }
.bg-white { background: var(--white); }
.bg-parch { background: var(--parch); }
.bg-mint { background: var(--mint); }
.bg-forest { background: var(--forest); }
.bg-ink { background: var(--ink); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

/* ── PAGE HERO (new design) ── */
.page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,61,46,.94) 0%, rgba(11,61,46,.55) 50%, rgba(11,61,46,.15) 100%); }
.page-hero-body { position: relative; z-index: 2; padding: 3.5rem 2rem 3.5rem; max-width: 1180px; margin: 0 auto; width: 100%; }
.page-hero-kicker { font-family: var(--ff-m); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .9rem; display: flex; align-items: center; gap: .75rem; }
.page-hero-kicker::before { content: ''; display: block; width: 28px; height: 2px; background: var(--amber); border-radius: 2px; flex-shrink: 0; }
.page-hero-h1 { font-family: var(--ff-d); font-size: clamp(2.2rem,5vw,4rem); font-weight: 400; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.page-hero-h1 em { font-style: italic; color: #8FCEAE; }
.page-hero-sub { font-family: var(--ff-b); font-size: clamp(.9rem,1.8vw,1.1rem); color: rgba(255,255,255,.72); max-width: 580px; line-height: 1.75; font-weight: 300; }
.page-hero-plain { background: var(--forest); padding: 3rem 0 3.5rem; }
.page-hero-plain .page-hero-h1 { color: var(--white); }

/* ── SECTION LABELS ── */
.label { font-family: var(--ff-m); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.label::before { content: ''; width: 20px; height: 2px; background: var(--amber); border-radius: 2px; flex-shrink: 0; }
.label.white { color: rgba(255,255,255,.55); }
.label.white::before { background: rgba(255,255,255,.4); }

.section-title { font-family: var(--ff-d); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 1.2rem; }
.section-title em { font-style: italic; color: var(--forest); }
.section-title.white { color: var(--white); }
.section-title.white em { color: #8FCEAE; }
.divider { width: 40px; height: 3px; background: var(--amber); border-radius: 2px; margin-bottom: 2rem; }

/* ── BODY TEXT ── */
.body-lg { font-size: 1.1rem; color: var(--ink3); line-height: 1.85; font-weight: 300; }
.body-md { font-size: .97rem; color: var(--ink3); line-height: 1.85; font-weight: 300; }
.body-sm { font-size: .88rem; color: var(--ink4); line-height: 1.75; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ff-b); font-weight: 600; font-size: .88rem; text-decoration: none; border-radius: 100px; padding: .75rem 1.75rem; transition: all .22s; cursor: pointer; border: none; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest2); transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: #a66e08; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,134,10,.3); }
.btn-outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: .55rem 1.25rem; font-size: .82rem; }
.btn-lg { padding: .95rem 2.2rem; font-size: .95rem; }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow2); transform: translateY(-2px); }
.card-pad { padding: 2rem; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── STAT STRIP ── */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.stat-cell { padding: 2rem 1.5rem; text-align: center; background: var(--white); border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: var(--ff-d); font-size: clamp(2rem,4vw,3rem); color: var(--forest); line-height: 1; margin-bottom: .4rem; display: block; }
.stat-num.amber { color: var(--amber); }
.stat-lbl { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink4); }

/* ── GRID UTILITIES ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.g2-lg { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.g2-xl { display: grid; grid-template-columns: 1fr 1.8fr; gap: 4rem; align-items: start; }

/* ── TAG / PILL ── */
.tag { display: inline-flex; align-items: center; font-family: var(--ff-m); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px; font-weight: 400; }
.tag-green { background: var(--mint); color: var(--forest2); }
.tag-amber { background: var(--amber-l); color: var(--amber); }
.tag-white { background: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }

/* ── PHOTO CAPTION ── */
.photo-cap { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); margin-top: .65rem; line-height: 1.5; }

/* ── PULL QUOTE ── */
.pull { background: var(--forest); padding: 80px 2rem; text-align: center; }
.pull-q { font-family: var(--ff-d); font-style: italic; font-size: clamp(1.3rem,3vw,2.1rem); color: var(--white); max-width: 720px; margin: 0 auto 1.5rem; line-height: 1.5; }
.pull-attr { font-family: var(--ff-m); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.pull-line { width: 36px; height: 2px; background: var(--amber); border-radius: 2px; margin: 0 auto 1.2rem; }

/* ── SCROLL REVEAL ── */
.rv, .rv-l, .rv-r { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.rv-l { transform: translateX(-24px); }
.rv-r { transform: translateX(24px); }
.rv.in, .rv-l.in, .rv-r.in { opacity: 1; transform: none; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); padding: 2.5rem; text-align: center; }
.sf-brand { font-family: var(--ff-d); font-size: 1.2rem; color: var(--white); display: block; margin-bottom: .4rem; }
.sf-copy { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); display: block; margin-bottom: .8rem; }
.sf-disc { font-family: var(--ff-b); font-size: .78rem; color: rgba(255,255,255,.3); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ── FOCUS ── */
:focus-visible { outline: 2.5px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .mob-nav-btn { display: flex; }
  .pill-nav-inner { justify-content: flex-start; }
  .g2, .g2-lg, .g2-xl { grid-template-columns: 1fr; gap: 2rem; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-bottom: none; }
  .band, .band-lg { padding: 56px 0; }
  .page-hero { min-height: 320px; }
  .page-hero-h1 { font-size: clamp(1.9rem,6vw,3rem); }
  .wrap, .wrap-sm { padding: 0 1.25rem; }
}
@media(max-width:600px) {
  .mob-nav-btn { display: flex; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; border-radius: 8px; }
  .band, .band-lg { padding: 44px 0; }
  .band-sm { padding: 32px 0; }
  .page-hero { min-height: 280px; }
  .page-hero-body { padding: 2.5rem 1.25rem; }
  .page-hero-h1 { font-size: clamp(1.7rem,7vw,2.4rem); }
  .btn { min-height: 44px; }
  .section-title { font-size: clamp(1.5rem,6vw,2.2rem); }
  .wrap, .wrap-sm { padding: 0 1rem; }
  .pull { padding: 56px 1.25rem; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rv, .rv-l, .rv-r { opacity: 1; transform: none; }
}
