/* ============================================
   TRUFFLE PROFESSIONAL — Design System
   Stitch redesign reference
   ============================================ */

@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 {
  /* Surfaces — warm cream tonal layering */
  --tf-surface: #fcf9f8;
  --tf-surface-alt: #F5F5F5;
  --tf-surface-container: #f0eded;
  --tf-surface-container-low: #f6f3f2;
  --tf-surface-white: #ffffff;

  /* Brand */
  --tf-primary: #005994;
  --tf-primary-container: #0072bc;
  --tf-primary-soft: #E6F1F8;
  --tf-primary-fixed: #d1e4ff;
  --tf-on-primary: #ffffff;

  --tf-secondary: #fd9923;
  --tf-secondary-soft: #FEF4E8;
  --tf-secondary-fixed: #ffdcbf;
  --tf-on-secondary: #ffffff;

  /* Text */
  --tf-ink: #1c1b1b;
  --tf-ink-variant: #404751;
  --tf-muted: #474747;
  --tf-outline: #717882;
  --tf-outline-variant: #c0c7d3;

  /* Star */
  --tf-star: #fd9923;

  /* Radius */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Shadows — diffused, subtle */
  --tf-shadow-soft: 0 1px 2px rgba(28, 27, 27, 0.04), 0 4px 16px rgba(28, 27, 27, 0.04);
  --tf-shadow-hover: 0 4px 12px rgba(28, 27, 27, 0.06), 0 12px 32px rgba(28, 27, 27, 0.08);
  --tf-shadow-cta: 0 8px 24px rgba(253, 153, 35, 0.32);

  /* Spacing */
  --section-pad-desktop: 120px;
  --section-pad-mobile: 64px;
  --container-max: 1280px;
  --gutter: 24px;

  --tf-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ Base ============ */
.tf-modern {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tf-ink);
  background: var(--tf-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tf-modern * { box-sizing: border-box; }

.tf-modern h1, .tf-modern h2, .tf-modern h3, .tf-modern h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--tf-ink);
  margin: 0;
}

.tf-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tf-section {
  padding: var(--section-pad-desktop) 0;
  position: relative;
}

@media (max-width: 768px) {
  .tf-section { padding: var(--section-pad-mobile) 0; }
}

/* ============ Typography ============ */
.tf-headline-xl {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}

.tf-headline-lg {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.tf-headline-md {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.tf-body-lg {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tf-ink-variant);
}

.tf-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tf-muted);
}

.tf-label-bold {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tf-primary);
}

.tf-accent-blue { color: var(--tf-primary); }
.tf-accent-orange { color: var(--tf-secondary); }

/* ============ Buttons ============ */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--tf-ease);
  white-space: nowrap;
}

.tf-btn-primary {
  background: var(--tf-secondary);
  color: white;
}
.tf-btn-primary:hover {
  background: #e98815;
  box-shadow: var(--tf-shadow-cta);
  transform: translateY(-1px);
  color: white;
}

.tf-btn-secondary {
  background: white;
  color: var(--tf-ink);
  border-color: var(--tf-outline-variant);
}
.tf-btn-secondary:hover {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
}

.tf-btn-blue {
  background: var(--tf-primary);
  color: white;
}
.tf-btn-blue:hover { background: var(--tf-primary-container); color: white; }

.tf-btn-ghost {
  background: transparent;
  color: var(--tf-primary);
  padding: 12px 0;
  font-weight: 600;
}
.tf-btn-ghost:hover { gap: 12px; color: var(--tf-secondary); }

.tf-btn .arrow { transition: transform 0.25s var(--tf-ease); }
.tf-btn:hover .arrow { transform: translateX(4px); }

/* ============ NAV (modify existing) ============ */
body.tf-home #header {
  background: var(--tf-surface) !important;
  border-bottom: 1px solid var(--tf-outline-variant);
  box-shadow: none !important;
}

/* ============ HERO ============ */
.tf-hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  background: var(--tf-surface);
  text-align: center;
  position: relative;
}

.tf-hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.tf-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.tf-hero h1 .accent {
  color: var(--tf-primary);
  display: inline;
}

.tf-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--tf-ink-variant);
  max-width: 720px;
  margin: 0 auto 36px;
}

.tf-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tf-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--tf-ink-variant);
}

.tf-stars-row {
  color: var(--tf-star);
  letter-spacing: 2px;
  font-size: 18px;
}

.tf-hero-visual {
  max-width: 1080px;
  margin: 64px auto 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tf-primary);
  box-shadow: var(--tf-shadow-hover);
}

.tf-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 89, 148, 0.65), rgba(0, 89, 148, 0.35));
}

.tf-hero-overlay-text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.tf-hero-play {
  position: absolute;
  width: 80px; height: 80px;
  background: var(--tf-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.3s var(--tf-ease);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.tf-hero-play:hover { transform: translate(-50%, -50%) scale(1.1); }
.tf-hero-play::before {
  content: '';
  width: 0; height: 0;
  border-left: 20px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 4px;
}

/* ============ STATS ============ */
.tf-stats {
  padding: 64px 0;
  background: var(--tf-surface);
  border-top: 1px solid var(--tf-outline-variant);
  border-bottom: 1px solid var(--tf-outline-variant);
}

.tf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .tf-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.tf-stat-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--tf-ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tf-stat-num .plus { color: var(--tf-secondary); }

.tf-stat-label {
  font-size: 14px;
  color: var(--tf-muted);
  font-weight: 500;
}

/* ============ Section Heading ============ */
.tf-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.tf-section-head .tf-label-bold {
  display: inline-block;
  margin-bottom: 12px;
}

.tf-section-head h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.tf-section-head h2 .accent { color: var(--tf-primary); }

.tf-section-head p {
  font-size: 18px;
  color: var(--tf-ink-variant);
  line-height: 1.6;
  margin: 0;
}

/* ============ PROGRAMS ============ */
.tf-programs { background: var(--tf-surface); }

.tf-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 968px) { .tf-programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tf-programs-grid { grid-template-columns: 1fr; } }

.tf-program-card {
  background: var(--tf-surface-white);
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--tf-outline-variant);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s var(--tf-ease);
}

.tf-program-card:hover {
  border-color: var(--tf-primary);
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-hover);
  color: inherit;
}

.tf-program-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tf-program-flag {
  font-size: 32px;
  line-height: 1;
}

.tf-program-name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.tf-program-desc {
  font-size: 15px;
  color: var(--tf-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.tf-program-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tf-primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

.tf-program-card:hover .tf-program-link { color: var(--tf-secondary); }

/* ============ WHY ============ */
.tf-why {
  background: var(--tf-surface-alt);
}

.tf-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

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

.tf-why-item { text-align: left; }

.tf-why-icon {
  width: 56px; height: 56px;
  background: var(--tf-primary-soft);
  color: var(--tf-primary);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.tf-why-item:nth-child(2n) .tf-why-icon {
  background: var(--tf-secondary-soft);
  color: var(--tf-secondary);
}

.tf-why-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.tf-why-desc {
  font-size: 16px;
  color: var(--tf-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============ COMPARISON TABLE ============ */
.tf-compare { background: var(--tf-surface); }

.tf-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--tf-outline-variant);
  background: white;
}

.tf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 720px;
}

.tf-table thead th {
  background: var(--tf-surface-container-low);
  color: var(--tf-ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  padding: 18px 20px;
  text-align: left;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--tf-outline-variant);
}

.tf-table thead th:first-child { background: var(--tf-primary); color: white; }

.tf-table tbody th {
  font-weight: 600;
  color: var(--tf-ink);
  padding: 18px 20px;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.tf-table tbody td {
  padding: 18px 20px;
  color: var(--tf-ink-variant);
}

.tf-table tbody tr {
  border-top: 1px solid var(--tf-outline-variant);
}

.tf-table tbody tr:hover { background: var(--tf-surface-container-low); }

/* ============ FAQ ============ */
.tf-faq-section { background: var(--tf-surface-alt); }

.tf-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.tf-faq {
  background: white;
  border: 1px solid var(--tf-outline-variant);
  border-radius: var(--r-lg);
  transition: all 0.25s var(--tf-ease);
}

.tf-faq[open] {
  border-color: var(--tf-primary);
  box-shadow: var(--tf-shadow-soft);
}

.tf-faq summary {
  cursor: pointer;
  padding: 24px 28px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--tf-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.01em;
}

.tf-faq summary::-webkit-details-marker { display: none; }

.tf-faq summary::after {
  content: '+';
  font-size: 26px;
  font-weight: 300;
  color: var(--tf-secondary);
  transition: transform 0.3s var(--tf-ease);
  flex-shrink: 0;
  line-height: 1;
}

.tf-faq[open] summary::after { transform: rotate(45deg); }

.tf-faq p {
  padding: 0 28px 24px;
  margin: 0;
  color: var(--tf-muted);
  line-height: 1.65;
  font-size: 16px;
}

.tf-faq p a { color: var(--tf-primary); font-weight: 600; text-decoration: none; }

/* ============ TESTIMONIALS ============ */
.tf-testi { background: var(--tf-surface); }

.tf-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 968px) { .tf-testi-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.tf-testi-card {
  background: white;
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--tf-outline-variant);
}

.tf-testi-stars {
  color: var(--tf-star);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.tf-testi-quote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--tf-ink);
  margin: 0 0 24px;
}

.tf-testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--tf-outline-variant);
}

.tf-testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tf-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.tf-testi-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--tf-ink);
}
.tf-testi-info span {
  font-size: 13px;
  color: var(--tf-muted);
}

/* ============ PARTNERS ============ */
.tf-partners {
  background: var(--tf-surface);
  padding: 80px 0;
  border-top: 1px solid var(--tf-outline-variant);
  border-bottom: 1px solid var(--tf-outline-variant);
}

.tf-partners-head {
  text-align: center;
  margin-bottom: 40px;
}

.tf-partners-head h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.tf-partners-head p {
  color: var(--tf-muted);
  font-size: 15px;
  margin: 0;
}

.tf-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) { .tf-partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tf-partners-grid { grid-template-columns: repeat(2, 1fr); } }

.tf-partner-logo {
  background: white;
  border: 1px solid var(--tf-outline-variant);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  color: var(--tf-outline);
  font-size: 16px;
  aspect-ratio: 16 / 9;
  transition: all 0.25s var(--tf-ease);
}

.tf-partner-logo:hover {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
}

/* ============ FINAL CTA ============ */
.tf-finalcta {
  background: var(--tf-primary);
  color: white;
  padding: 96px 0;
  text-align: center;
}

.tf-finalcta-content {
  max-width: 720px;
  margin: 0 auto;
}

.tf-finalcta h2 {
  color: white;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.tf-finalcta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  line-height: 1.55;
}

/* ============ Utilities ============ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ STATS V2 — varied cards ============ */
.tf-stats-v2 {
  padding: 80px 0;
  background: var(--tf-surface);
  position: relative;
  border-top: 1px solid var(--tf-outline-variant);
  border-bottom: 1px solid var(--tf-outline-variant);
}

.tf-stats-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 968px) { .tf-stats-v2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tf-stats-v2-grid { grid-template-columns: 1fr; } }

.tf-stat-card {
  position: relative;
  background: white;
  border: 1px solid var(--tf-outline-variant);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: all 0.3s var(--tf-ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.tf-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-hover);
  border-color: var(--tf-primary);
}

.tf-stat-card-1 { background: linear-gradient(135deg, #fff 0%, var(--tf-primary-soft) 100%); }
.tf-stat-card-2 { background: linear-gradient(135deg, #fff 0%, var(--tf-secondary-soft) 100%); }
.tf-stat-card-3 { background: white; }
.tf-stat-card-4 { background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-container) 100%); color: white; border-color: transparent; }

.tf-stat-card-4 .tf-stat-label,
.tf-stat-card-4 .tf-stat-sub { color: rgba(255,255,255,0.85); }
.tf-stat-card-4 .tf-stat-num { color: white; }
.tf-stat-card-4 .tf-stat-icon { background: rgba(255,255,255,0.15); color: #fcd34d; }
.tf-stat-card-4 .tf-stat-num .plus { color: #fcd34d; }

.tf-stat-icon {
  width: 48px; height: 48px;
  background: var(--tf-primary-soft);
  color: var(--tf-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-stat-icon svg { width: 24px; height: 24px; }

.tf-stat-card-2 .tf-stat-icon { background: var(--tf-secondary-soft); color: var(--tf-secondary); }
.tf-stat-card-3 .tf-stat-icon { background: var(--tf-surface-container-low); color: var(--tf-ink); }

.tf-stat-content { flex: 1; }

.tf-stat-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--tf-ink);
}
.tf-stat-num .plus { color: var(--tf-secondary); }

.tf-stat-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--tf-ink);
  margin-bottom: 4px;
}

.tf-stat-sub {
  font-size: 13px;
  color: var(--tf-muted);
}

.tf-stat-flags {
  margin-top: auto;
  font-size: 18px;
  letter-spacing: 4px;
  line-height: 1.4;
}

.tf-stat-avatars {
  margin-top: auto;
  display: flex;
  align-items: center;
}
.tf-stat-avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tf-primary);
  color: white;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid white;
  margin-left: -8px;
}
.tf-stat-avatars span:first-child { margin-left: 0; }
.tf-stat-avatars span:last-child {
  background: var(--tf-surface-container-low);
  color: var(--tf-ink);
  font-size: 10px;
}

.tf-stat-stars {
  margin-top: auto;
  color: #fcd34d;
  letter-spacing: 4px;
  font-size: 22px;
}

.tf-stat-deco {
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,89,148,0.08), transparent 70%);
  pointer-events: none;
}

/* ============ SLIDER (testimonials) ============ */
.tf-slider {
  position: relative;
}

.tf-slider-viewport {
  overflow: hidden;
  padding: 8px 0 24px;
}

.tf-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s var(--tf-ease);
}

.tf-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}

@media (max-width: 1024px) { .tf-slide { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 720px) { .tf-slide { flex: 0 0 100%; } }

.tf-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.tf-slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--tf-outline-variant);
  color: var(--tf-ink);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--tf-ease);
  font-family: 'Inter', sans-serif;
}

.tf-slider-btn:hover {
  background: var(--tf-primary);
  border-color: var(--tf-primary);
  color: white;
  transform: scale(1.05);
}

.tf-slider-dots {
  display: flex;
  gap: 8px;
}

.tf-slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tf-outline-variant);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s var(--tf-ease);
}

.tf-slider-dot.active {
  background: var(--tf-primary);
  width: 28px;
  border-radius: 4px;
}

/* Google Review card style */
.tf-gr-card {
  background: white;
  border: 1px solid var(--tf-outline-variant);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s var(--tf-ease);
  height: 100%;
}

.tf-gr-card:hover {
  border-color: var(--tf-primary);
  transform: translateY(-2px);
  box-shadow: var(--tf-shadow-soft);
}

.tf-gr-head {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 12px;
  align-items: center;
}

.tf-gr-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.tf-gr-head strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tf-ink);
  line-height: 1.2;
}

.tf-gr-meta {
  font-size: 12px;
  color: var(--tf-muted);
}

.tf-gr-google { display: flex; align-items: center; }

.tf-gr-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-gr-stars {
  color: #fcd34d;
  font-size: 16px;
  letter-spacing: 1px;
}

.tf-gr-date {
  font-size: 12px;
  color: var(--tf-muted);
}

.tf-gr-quote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tf-ink);
  margin: 0;
  flex: 1;
}

.tf-gr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tf-primary);
  background: var(--tf-primary-soft);
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}

.tf-testi-cta {
  text-align: center;
  margin-top: 32px;
}

/* ============ Reveal on Scroll ============ */
.tf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--tf-ease), transform 0.7s var(--tf-ease);
}
.tf-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tf-reveal-delay-1 { transition-delay: 0.08s; }
.tf-reveal-delay-2 { transition-delay: 0.16s; }
.tf-reveal-delay-3 { transition-delay: 0.24s; }
.tf-reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .tf-reveal { opacity: 1; transform: none; transition: none; }
  .tf-modern *, .tf-modern *::before, .tf-modern *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Hide old sections on new homepage */
body.tf-home #slider,
body.tf-home > #content { display: none !important; }
body.tf-home #wrapper > #content:not(.tf-modern) { display: none !important; }
