/* ============================================
   TRUFFLE SHELL — Header + Footer
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --tfs-surface: #fcf9f8;
  --tfs-ink: #1c1b1b;
  --tfs-ink-soft: #404751;
  --tfs-muted: #717882;
  --tfs-border: #e5e2e1;
  --tfs-border-strong: #c0c7d3;
  --tfs-primary: #005994;
  --tfs-primary-dark: #00497c;
  --tfs-secondary: #fd9923;
  --tfs-secondary-dark: #e98815;
  --tfs-white: #ffffff;
  --tfs-dark: #0f1419;
  --tfs-dark-2: #1a2027;

  --tfs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tfs-shadow: 0 4px 24px rgba(28, 27, 27, 0.06);
  --tfs-shadow-strong: 0 12px 40px rgba(28, 27, 27, 0.12);
}

/* Reset legacy padding from #wrapper */
body.tf-shell #wrapper { padding-top: 0 !important; }
body.tf-shell { padding-top: 132px; }
@media (max-width: 980px) { body.tf-shell { padding-top: 76px; } }

/* ============================================
   HEADER
   ============================================ */
.tfh {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--tfs-white);
  transition: box-shadow 0.3s var(--tfs-ease);
}

.tfh.is-scrolled { box-shadow: var(--tfs-shadow); }
.tfh.is-scrolled .tfh-marquee { display: none; }

/* Marquee promo bar — Blue bg, white text */
.tfh-marquee {
  background: linear-gradient(90deg, #00497c, #005994, #0072bc, #005994, #00497c);
  background-size: 300% 100%;
  animation: tfh-bg-shift 10s ease-in-out infinite;
  color: white;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
}

.tfh-marquee::before,
.tfh-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.tfh-marquee::before { left: 0; background: linear-gradient(90deg, #005994, transparent); }
.tfh-marquee::after { right: 0; background: linear-gradient(-90deg, #005994, transparent); }

.tfh-mq-item strong { color: #fcd34d; }
.tfh-mq-sep { color: rgba(255,255,255,0.35); }

.tfh-marquee-track {
  display: flex;
  width: max-content;
  animation: tfh-scroll 32s linear infinite;
  gap: 32px;
}

.tfh-marquee:hover .tfh-marquee-track { animation-play-state: paused; }

.tfh-marquee-group {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
  padding-right: 32px;
}

.tfh-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tfh-mq-item strong {
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.tfh-mq-sep {
  opacity: 0.5;
  font-size: 8px;
  flex-shrink: 0;
}

@keyframes tfh-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes tfh-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .tfh-marquee-track { animation: none; }
  .tfh-marquee { animation: none; }
}

@media (max-width: 600px) {
  .tfh-marquee { font-size: 12px; padding: 8px 0; }
  .tfh-marquee-track { animation-duration: 24s; gap: 20px; }
  .tfh-marquee-group { gap: 20px; padding-right: 20px; }
}

/* Main header */
.tfh-main {
  background: var(--tfs-white);
  border-bottom: 1px solid var(--tfs-border);
}

.tfh-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.tfh-logo {
  flex-shrink: 0;
  line-height: 0;
}
.tfh-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav */
.tfh-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tfh-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tfh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--tfs-ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s var(--tfs-ease);
  font-family: 'Inter', sans-serif;
}

.tfh-link:hover { color: var(--tfs-primary); background: rgba(0,89,148,0.06); }
.tfh-link.active { color: var(--tfs-primary); font-weight: 600; }

.tfh-caret {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s var(--tfs-ease);
}

.tfh-has-mega, .tfh-has-dropdown { position: relative; }

.tfh-has-mega:hover .tfh-link .tfh-caret,
.tfh-has-dropdown:hover .tfh-link .tfh-caret {
  transform: rotate(180deg);
}

/* Mega menu (Program) */
.tfh-mega {
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--tfs-border);
  border-bottom: 1px solid var(--tfs-border);
  box-shadow: var(--tfs-shadow);
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--tfs-ease);
  pointer-events: none;
}

.tfh.is-scrolled .tfh-mega { top: 76px; }

.tfh-has-mega:hover .tfh-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.tfh-mega-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tfh-mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--tfs-ink);
  transition: all 0.2s var(--tfs-ease);
  border: 1px solid transparent;
}

.tfh-mega-item:hover {
  background: #f6f3f2;
  border-color: var(--tfs-border);
  color: var(--tfs-ink);
  transform: translateY(-2px);
}

.tfh-mega-item .flag {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.tfh-mega-item strong {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--tfs-ink);
  margin-bottom: 2px;
}

.tfh-mega-item em {
  font-style: normal;
  font-size: 12px;
  color: var(--tfs-muted);
}

@media (max-width: 1100px) {
  .tfh-mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dropdown (Our Class) */
.tfh-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border: 1px solid var(--tfs-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--tfs-shadow-strong);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--tfs-ease);
  pointer-events: none;
}

.tfh-has-dropdown:hover .tfh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tfh-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--tfs-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.tfh-dropdown a:hover {
  background: #f6f3f2;
  color: var(--tfs-primary);
}

/* CTA */
.tfh-cta { flex-shrink: 0; }

.tfh-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--tfs-secondary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.25s var(--tfs-ease);
}

.tfh-btn:hover {
  background: var(--tfs-secondary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(253, 153, 35, 0.32);
}

/* Burger */
.tfh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--tfs-border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.tfh-burger span {
  width: 18px; height: 2px;
  background: var(--tfs-ink);
  border-radius: 2px;
  transition: all 0.3s var(--tfs-ease);
  display: block;
  margin: 0 auto;
}

.tfh-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tfh-burger.is-open span:nth-child(2) { opacity: 0; }
.tfh-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.tfh-mobile {
  background: white;
  border-top: 1px solid var(--tfs-border);
  padding: 16px 24px 24px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  display: none;
}

.tfh-mobile a {
  display: block;
  padding: 14px 8px;
  color: var(--tfs-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid var(--tfs-border);
}

.tfh-mobile details summary {
  padding: 14px 8px;
  border-bottom: 1px solid var(--tfs-border);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.tfh-mobile details summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  color: var(--tfs-secondary);
  font-size: 20px;
  transition: transform 0.3s;
}

.tfh-mobile details[open] summary::after { transform: rotate(45deg); }

.tfh-mobile details a {
  padding-left: 24px;
  font-size: 14px;
  color: var(--tfs-ink-soft);
}

.tfh-mobile-cta {
  margin-top: 16px;
  background: var(--tfs-secondary);
  color: white !important;
  text-align: center;
  border-radius: 8px;
  border-bottom: 0 !important;
  font-weight: 600 !important;
}

@media (max-width: 980px) {
  .tfh-nav, .tfh-cta { display: none; }
  .tfh-burger { display: flex; }
  .tfh-mobile { display: block; }
  .tfh-mobile[hidden] { display: none; }
  .tfh-inner { height: 76px; gap: 16px; }
  .tfh-logo img { height: 40px; }
}

/* ============================================
   FOOTER SIMPLE — Clean Professional
   ============================================ */
.tff-simple {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--tfs-ink);
  border-top: 1px solid var(--tfs-border);
}

.tff-simple * { box-sizing: border-box; }

.tff-s-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}

.tff-s-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--tfs-border);
}

@media (max-width: 968px) {
  .tff-s-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tff-s-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .tff-s-grid { grid-template-columns: 1fr; gap: 32px; }
  .tff-s-container { padding: 56px 24px 24px; }
}

/* Brand */
.tff-s-logo { display: inline-block; line-height: 0; }
.tff-s-logo img { height: 40px; width: auto; }

.tff-s-brief {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tfs-ink-soft);
  margin: 20px 0 24px;
  max-width: 320px;
}

.tff-s-social {
  display: flex;
  gap: 8px;
}

.tff-s-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #f6f3f2;
  border: 1px solid var(--tfs-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tfs-ink-soft);
  transition: all 0.2s var(--tfs-ease);
}

.tff-s-social a:hover {
  background: var(--tfs-ink);
  border-color: var(--tfs-ink);
  color: white;
}

/* Columns */
.tff-simple h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tfs-ink);
  margin: 0 0 18px;
}

.tff-simple ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tff-simple ul a {
  color: var(--tfs-ink-soft);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s;
}

.tff-simple ul a:hover { color: var(--tfs-primary); }

.tff-s-contact a { line-height: 1.5; }

/* Bottom bar */
.tff-s-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--tfs-muted);
}

.tff-s-bottom p { margin: 0; }

.tff-s-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tff-s-legal a {
  color: var(--tfs-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.tff-s-legal a:hover { color: var(--tfs-ink); }
.tff-s-legal span { color: var(--tfs-border-strong); }

/* Hide old/unused */
.tff-light, .tff-newsletter, .tff-wordmark, .tff-bottom, .tff-main, .tff-grid, .tff-col-info, .tff-col-links { display: none !important; }

/* ============ OLD LIGHT FOOTER (unused) ============ */
.tff-light-OLD {
  font-family: 'Inter', sans-serif;
  background: var(--tfs-surface);
  color: var(--tfs-ink);
  border-top: 1px solid var(--tfs-border);
}

.tff-light * { box-sizing: border-box; }

/* Newsletter strip */
.tff-newsletter {
  border-bottom: 1px solid var(--tfs-border);
  padding: 64px 24px;
}

.tff-newsletter-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .tff-newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .tff-newsletter { padding: 48px 24px; }
}

.tff-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tfs-secondary);
  margin-bottom: 12px;
}

.tff-newsletter-text h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--tfs-ink);
  margin: 0 0 10px;
}

.tff-newsletter-text p {
  color: var(--tfs-ink-soft);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.tff-newsletter-form {
  display: flex;
  background: white;
  border: 1px solid var(--tfs-border);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.2s;
}

.tff-newsletter-form:focus-within {
  border-color: var(--tfs-primary);
  box-shadow: 0 0 0 4px rgba(0,89,148,0.08);
}

.tff-newsletter-form input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--tfs-ink);
  background: transparent;
  min-width: 0;
}

.tff-newsletter-form input::placeholder { color: var(--tfs-muted); }

.tff-newsletter-form button {
  background: var(--tfs-ink);
  color: white;
  border: 0;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.tff-newsletter-form button:hover { background: var(--tfs-secondary); }

/* Main footer */
.tff-main {
  padding: 80px 24px 0;
  position: relative;
}

.tff-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 80px;
}

@media (max-width: 968px) {
  .tff-grid { grid-template-columns: 1fr; gap: 48px; }
  .tff-main { padding: 56px 24px 0; }
}

/* Contact column */
.tff-col-info h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tfs-ink);
  margin: 0 0 20px;
}

.tff-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tff-contact li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tfs-ink-soft);
}

.tff-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--tfs-border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.tff-contact a {
  color: var(--tfs-ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.tff-contact a:hover { color: var(--tfs-primary); }

/* Links columns */
.tff-col-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 540px) {
  .tff-col-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.tff-col-links h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tfs-ink);
  margin: 0 0 20px;
}

.tff-col-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tff-col-links a {
  color: var(--tfs-ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.tff-col-links a:hover { color: var(--tfs-secondary); }

/* Big wordmark */
.tff-wordmark {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 24px;
  border-top: 1px solid var(--tfs-border);
  position: relative;
  overflow: hidden;
}

.tff-wordmark a {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(6rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--tfs-ink);
  text-decoration: none;
  margin-top: 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--tfs-ink) 0%, var(--tfs-ink) 60%, rgba(28,27,27,0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.3s;
}

.tff-wordmark a:hover {
  background: linear-gradient(180deg, var(--tfs-primary) 0%, var(--tfs-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bottom bar */
.tff-bottom {
  border-top: 1px solid var(--tfs-border);
  padding: 24px;
}

.tff-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--tfs-muted);
}

@media (max-width: 768px) {
  .tff-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .tff-bottom-right { display: flex; justify-content: center; }
}

.tff-bottom-inner p { margin: 0; }

.tff-bottom-left { justify-self: start; }
.tff-bottom-right { justify-self: end; }
@media (max-width: 768px) {
  .tff-bottom-left, .tff-bottom-right { justify-self: center; }
}

.tff-bottom-social {
  display: flex;
  gap: 8px;
  justify-self: center;
}

.tff-bottom-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--tfs-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tfs-ink-soft);
  transition: all 0.25s var(--tfs-ease);
}

.tff-bottom-social a:hover {
  background: var(--tfs-secondary);
  border-color: var(--tfs-secondary);
  color: white;
  transform: translateY(-2px);
}

/* Hide legacy header/footer aggressively */
body.tf-shell #header.header-size-sm,
body.tf-shell #footer-legacy { display: none !important; }
