/* ================================================================
   TATAGARDEN — _base.css
   Global reset + shared utilities
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--tg-font-main, 'Google Sans', sans-serif);
  color: var(--ink, #2d3f3a);
  background: var(--white, #ffffff);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: inherit; }

ul { list-style: none; }

/* ── Shared containers ── */
.tg-container {
  max-width: var(--tg-max-w, 1280px);
  margin-inline: auto;
  padding-inline: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Alias for legacy/3rd-party `.container` usage to keep layout consistent */
.container {
  max-width: var(--tg-max-w, 1280px);
  margin-inline: auto;
  padding-inline: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Typography ── */
.t-display {
  font-family: 'Google Sans Display', sans-serif;
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
}
.t-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--g, #146653);
}
.t-label.on-dark { color: var(--g-muted, #b3d9d0); }

/* ── Buttons ── */
.btn, .tgf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap; line-height: 1;
  transition: var(--transition, all .22s cubic-bezier(.4,0,.2,1));
}
.btn-primary { background: var(--g, #146653); color: #fff; }
.btn-primary:hover { background: var(--g-dark, #0d4a3b); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,102,83,.3); }
.btn-ghost { background: transparent; color: var(--charcoal, #1c2621); border: 1.5px solid var(--stone, #e8e3da); }
.btn-ghost:hover { border-color: var(--g, #146653); color: var(--g, #146653); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: #b8923e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn svg, .tgf-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 40px; font-size: 15.5px; }

/* ── Fade-in animation ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }
.fade-in:nth-child(4) { transition-delay: .3s; }
.fade-in:nth-child(5) { transition-delay: .4s; }

/* Shared eyebrow */
.tg-eyebrow {
  font-family: var(--tg-font-main);
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--tg-gold);
  margin-bottom: 14px; display: block;
}
.tg-eyebrow--light { color: rgba(255,255,255,.65); }

/* Breadcrumb shared */
.tg-breadcrumb__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px; font-size: 12px;
  color: rgba(255,255,255,.6);
  margin: 0; padding: 0; list-style: none;
}
.tg-breadcrumb__list a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.tg-breadcrumb__list a:hover { color: var(--tg-white); }

/* Shared post cat badge */
.tg-post-cat-badge {
  display: inline-flex; align-items: center;
  padding: 5px 16px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  color: var(--tg-white);
  font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.tg-post-cat-badge:hover { background: rgba(255,255,255,.28); }

/* Shared hero meta */
.tg-meta-label {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); display: block;
}
.tg-meta-value { font-size: 14px; color: rgba(255,255,255,.9); display: block; }
.tg-post-hero__divider { width: 1px; height: 32px; background: rgba(255,255,255,.2); }

/* CTA section (shared) */
.tg-cta { padding: 48px 0 64px; }
.tg-cta__box {
  background: var(--tg-main);
  border-radius: 12px; padding: 60px 72px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 48px;
  position: relative; overflow: hidden;
}
.tg-cta__box::before, .tg-cta__box::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.tg-cta__box::before { left: -60px; bottom: -60px; width: 280px; height: 280px; }
.tg-cta__box::after  { right: 120px; top: -80px; width: 200px; height: 200px; }

.tg-cta__title {
  font-family: var(--tg-font-main);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; color: var(--tg-white);
  line-height: 1.25; margin: 0 0 12px;
}
.tg-cta__title em { font-style: italic; color: #e2c47a; }
.tg-cta__desc { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.7; margin: 0; }
.tg-cta__action {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 10px; position: relative; z-index: 1;
}
.tg-cta__note { font-size: 11px; color: rgba(255,255,255,.45); margin: 0; letter-spacing: .04em; }

.tg-btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px;
  background: var(--tg-white); color: var(--tg-main);
  border-radius: 100px;
  font-family: var(--tg-font-main); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.tg-btn-cta:hover { background: #eaf5e0; transform: scale(1.02); color: var(--tg-main); }
.tg-btn-cta--sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 11px 24px; border-radius: 100px;
  background: var(--tg-main); color: var(--tg-white);
  font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s;
}
.tg-btn-cta--sm:hover { background: var(--tg-accent); transform: translateY(-1px); color: var(--tg-white); }

/* Chips */
.tg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-chip {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 100px;
  border: 1px solid rgba(28,38,33,.12);
  background: rgba(255,255,255,.8);
  color: #3d524a; font-size: 13px;
  text-decoration: none; white-space: nowrap;
  transition: all .2s;
}
.tg-chip:hover { background: var(--tg-white); color: var(--tg-main); border-color: var(--tg-main); }
.tg-chip--active { background: var(--tg-main); color: var(--tg-white); border-color: var(--tg-main); }
.tg-chip--sm { padding: 5px 14px; font-size: 12px; }

/* Sidebar shared */
.tg-sidebar-widget {
  background: var(--tg-white);
  border-radius: 8px; padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(13,74,59,.07);
  border: 1px solid rgba(28,38,33,.08);
}
.tg-sidebar-widget__title {
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tg-gold); margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28,38,33,.08);
}
.tg-sidebar-cta { background: var(--tg-main); border: none; text-align: center; }
.tg-sidebar-cta__eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #e2c47a; margin: 0 0 10px; display: block; }
.tg-sidebar-cta__title { font-size: 20px; font-weight: 700; color: var(--tg-white); line-height: 1.3; margin: 0 0 10px; }
.tg-sidebar-cta__desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0 0 16px; }

/* Post content */
.tg-post-excerpt {
  font-size: 17px; font-style: italic;
  color: #3d524a;
  border-left: 3px solid var(--tg-main);
  background: rgba(20,102,83,.07);
  padding: 16px 20px 16px 24px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 40px;
}
.tg-post-excerpt p { margin: 0; }

.tg-post-body {
  font-family: var(--tg-font-main); font-size: 16px; font-weight: 300;
  color: #2a2a2a; line-height: 1.85;
}
.tg-post-body p       { margin: 0 0 1.5em; }
.tg-post-body h2      { font-size: 26px; font-weight: 700; color: var(--tg-charcoal); margin: 2em 0 .6em; line-height: 1.25; border-top: 2px solid rgba(28,38,33,.08); padding-top: 8px; }
.tg-post-body h3      { font-size: 20px; font-weight: 600; color: var(--tg-charcoal); margin: 1.75em 0 .5em; line-height: 1.3; }
.tg-post-body img     { border-radius: 8px; max-width: 100%; height: auto; margin: 1.5em 0; display: block; }
.tg-post-body a       { color: var(--tg-main); text-decoration: underline; text-underline-offset: 3px; }
.tg-post-body a:hover { color: var(--tg-accent); }
.tg-post-body blockquote { font-size: 19px; font-style: italic; color: var(--tg-main); border-left: 3px solid var(--tg-main); padding: 4px 0 4px 28px; margin: 2em 0; }
.tg-post-body ul, .tg-post-body ol { padding-left: 1.5em; margin: 0 0 1.5em; }
.tg-post-body li { margin-bottom: .5em; }

@media (max-width: 768px) {
  .tg-cta__box { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; text-align: center; }
  .tg-cta__action { align-items: center; }
  .tg-container { padding-inline: 20px; }
}
@media (max-width: 480px) {
  .tg-container { padding-inline: 16px; }
  .tg-cta__box { padding: 28px 20px; }
}
