/* ═══════════════════════════════════════════════════════════════
   ITD 2026 — International Tea Day Theme
   Tea Board India × Royal Global University
═══════════════════════════════════════════════════════════════ */

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

:root {
  --itd-green-deep:   #1a4a2e;
  --itd-green-mid:    #2e7d32;
  --itd-green-light:  #4caf50;
  --itd-green-pale:   #e8f5e9;
  --itd-green-mist:   #f0f7f0;
  --itd-gold:         #c8a84b;
  --itd-gold-light:   #fdf6e3;
  --itd-cream:        #faf8f3;
  --itd-text:         #1c1c1c;
  --itd-muted:        #5a5a5a;
  --itd-border:       #dce8dc;
  --itd-header-h:     72px;
  --itd-topstrip-h:   36px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--itd-text);
  background: var(--itd-cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--itd-green-mid); text-decoration: none; }
a:hover { color: var(--itd-green-deep); }
img { max-width: 100%; height: auto; }

/* ── TOP STRIP ───────────────────────────────────────────────── */
.itd-topstrip {
  background: var(--itd-green-deep);
  height: var(--itd-topstrip-h);
  display: flex;
  align-items: center;
}
.itd-topstrip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #a5d6a7;
  letter-spacing: 0.02em;
}
.itd-topstrip__inner em { color: var(--itd-gold); font-style: normal; }
.itd-topstrip__right { color: #81c784; }
@media (max-width: 640px) { .itd-topstrip__right { display: none; } }

/* ── HEADER ──────────────────────────────────────────────────── */
.itd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--itd-border);
  box-shadow: 0 2px 16px rgba(26,74,46,0.06);
  transition: box-shadow 0.3s;
}
.itd-header.is-scrolled { box-shadow: 0 4px 24px rgba(26,74,46,0.12); }
.itd-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--itd-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ── LOGO ────────────────────────────────────────────────────── */
.itd-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.itd-logo__emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.itd-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.itd-logo__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--itd-green-deep);
  white-space: nowrap;
}
.itd-logo__year {
  font-size: 0.68rem;
  color: var(--itd-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ── NAV ─────────────────────────────────────────────────────── */
.itd-nav { display: flex; align-items: center; }
.itd-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.itd-nav__link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--itd-muted);
  border-radius: 7px;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.itd-nav__link:hover,
.itd-nav__link.is-active {
  color: var(--itd-green-deep);
  background: var(--itd-green-mist);
}
.itd-nav__link--cta {
  background: var(--itd-green-deep) !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  margin-left: 0.25rem;
}
.itd-nav__link--cta:hover {
  background: var(--itd-green-mid) !important;
  color: #ffffff !important;
}
.itd-nav__link--submit {
  background: var(--itd-gold-light) !important;
  color: var(--itd-green-deep) !important;
  border: 1px solid #e8d5a0 !important;
}
.itd-nav__link--submit:hover {
  background: #f5ecca !important;
}

/* ── HAMBURGER ───────────────────────────────────────────────── */
.itd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.itd-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--itd-green-deep);
  border-radius: 2px;
  transition: all 0.25s;
}
.itd-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.itd-hamburger.is-open span:nth-child(2) { opacity: 0; }
.itd-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.itd-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--itd-border);
  padding: 1rem 1.5rem 1.5rem;
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.itd-mobile-menu.is-open { display: block; }
.itd-mobile-menu ul { list-style: none; }
.itd-mobile-menu li { border-bottom: 1px solid var(--itd-border); }
.itd-mobile-menu li:last-child { border-bottom: none; }
.itd-mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--itd-green-deep);
  text-decoration: none;
}

/* ── MAIN CONTENT AREA ───────────────────────────────────────── */
.itd-main {
  min-height: calc(100vh - var(--itd-header-h) - var(--itd-topstrip-h) - 360px);
}
.itd-page-content {
  /* TDC plugin styles handle their own padding/width */
}

/* ── GLOBAL PAGE TITLES (for non-plugin pages) ───────────────── */
.itd-main h1:not(.tdc-hero__title):not(.tdc-page-header__title):not(.tdc-section-title):not(.tdc-g-title):not(.tdc-cta-title):not(.tdc-success-title) {
  font-family: 'Playfair Display', serif;
  color: var(--itd-green-deep);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.itd-footer { background: var(--itd-green-deep); position: relative; margin-top: 4rem; }
.itd-footer__wave {
  position: absolute;
  top: -59px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.itd-footer__wave svg { display: block; width: 100%; height: 60px; }
.itd-footer__body { padding: 3.5rem 1.5rem 0; }
.itd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.itd-footer__logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.itd-footer__logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #f1f8e9;
  font-weight: 600;
}
.itd-footer__logo-sub {
  font-size: 0.72rem;
  color: #81c784;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.itd-footer__tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--itd-gold);
  margin-bottom: 1rem;
}
.itd-footer__orgs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.itd-footer__org-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #c8e6c9;
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.itd-footer__org-sep { color: rgba(255,255,255,0.25); font-size: 0.8rem; }
.itd-footer__col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #81c784;
  margin-bottom: 1rem;
}
.itd-footer__links ul { list-style: none; }
.itd-footer__links li { margin-bottom: 0.5rem; }
.itd-footer__links a {
  font-size: 0.875rem;
  color: #a5d6a7;
  text-decoration: none;
  transition: color 0.2s;
}
.itd-footer__links a:hover { color: #f1f8e9; }
.itd-footer__date-list { list-style: none; }
.itd-footer__date-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: #a5d6a7;
  line-height: 1.5;
}
.itd-footer__date-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--itd-green-light);
  flex-shrink: 0;
  margin-top: 6px;
}
.itd-footer__date-dot--gold { background: var(--itd-gold); }
.itd-footer__date-list strong { color: #f1f8e9; }
.itd-footer__ht-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.itd-footer__ht-list span {
  font-size: 0.78rem;
  color: #81c784;
  font-family: monospace;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  display: block;
}
.itd-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.itd-footer__url { font-family: monospace; color: rgba(255,255,255,0.2); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .itd-nav { display: none; }
  .itd-hamburger { display: flex; }
  .itd-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .itd-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .itd-logo__title { font-size: 0.9rem; }
  .itd-topstrip { display: none; }
  :root { --itd-header-h: 62px; }
}

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.itd-breadcrumb {
  background: var(--itd-green-mist);
  border-bottom: 1px solid var(--itd-border);
  padding: 0.6rem 1.5rem;
  font-size: 0.78rem;
  color: var(--itd-muted);
}
.itd-breadcrumb a { color: var(--itd-green-mid); }
.itd-breadcrumb__sep { margin: 0 0.4rem; color: var(--itd-border); }

/* ── WORDPRESS BODY CLASS OVERRIDES ──────────────────────────── */
body.home { background: var(--itd-cream); }
body { padding: 0 !important; }

/* Ensure WP default styles don't override our spacing */
.wp-site-blocks, .wp-block-group, .entry-content { all: unset; }

/* ── TEA BOARD LOGO BAR ──────────────────────────────────────── */
.itd-logobar {
  background: #0d2e1a;
  border-bottom: 3px solid #c8a84b;
  padding: 0.55rem 1.5rem;
}
.itd-logobar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.itd-logobar__teaboard {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
.itd-logobar__tb-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(200,168,75,0.4);
  display: block;
  object-fit: contain;
}
.itd-logobar__teaboard-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.itd-logobar__tb-main {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f8e9;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.itd-logobar__tb-sub {
  font-size: 0.65rem;
  color: #81c784;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.itd-logobar__divider {
  width: 1px;
  height: 40px;
  background: rgba(200,168,75,0.3);
  flex-shrink: 0;
  margin: 0 0.25rem;
}
.itd-logobar__event {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.itd-logobar__event-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c8a84b;
  white-space: nowrap;
  font-family: 'Playfair Display', serif;
}
.itd-logobar__event-sub {
  font-size: 0.68rem;
  color: rgba(200,230,200,0.75);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .itd-logobar__event { display: none; }
  .itd-logobar__divider { display: none; }
}
@media (max-width: 480px) {
  .itd-logobar__tb-sub { display: none; }
  .itd-logobar__tb-img { width: 40px; height: 40px; }
  .itd-logobar { padding: 0.4rem 1rem; }
}
