/* ============================================================
   TTP — COMPONENTS
   The Travel Place | components.css
   ============================================================ */

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-normal);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base) var(--ease-out-expo),
              color var(--duration-base),
              transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--duration-base) var(--ease-spring);
}

.btn:hover .material-symbols-outlined.icon-arrow {
  transform: translate(3px, -3px);
}

/* Primary */
.btn--primary {
  background: var(--ttp-red);
  color: #fff;
  border-color: var(--ttp-red);
  box-shadow: 0 2px 12px rgba(208,2,27,0.2);
}

.btn--primary:hover {
  background: var(--ttp-red-deep);
  border-color: var(--ttp-red-deep);
  box-shadow: var(--shadow-red);
}

/* Secondary */
.btn--secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-card-hover);
  border-color: var(--color-border-2);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-2);
}

.btn--ghost:hover {
  background: var(--color-surface-2);
}

/* Ghost on dark (hero) */
.btn--ghost-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn--ghost-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

/* Outline red */
.btn--outline-red {
  background: transparent;
  color: var(--ttp-red);
  border-color: var(--ttp-red);
}

.btn--outline-red:hover {
  background: var(--ttp-red);
  color: #fff;
}

/* Sizes */
.btn--sm {
  font-size: var(--text-xs);
  padding: 9px 18px;
}

.btn--lg {
  font-size: var(--text-md);
  padding: 16px 36px;
  border-radius: var(--radius-lg);
}

.btn--xl {
  font-size: var(--text-lg);
  padding: 18px 44px;
  border-radius: var(--radius-lg);
}

.btn--icon {
  padding: 10px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base);
  will-change: transform;
}

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

/* ── Offer Card ──────────────────────────────────────────── */
.offer-card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow var(--duration-base) var(--ease-out-expo);
  will-change: transform;
  position: relative;
}

.offer-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--color-surface-2);
}

.offer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out-expo);
}

.offer-card:hover .offer-card-img img {
  transform: scale(1.06);
}

.offer-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
}

.offer-card-body {
  padding: var(--space-6);
}

.offer-card-route {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  font-weight: var(--weight-medium);
}

.offer-card-route .material-symbols-outlined {
  font-size: 14px;
  color: var(--ttp-red);
}

.offer-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
}

.offer-card-benefit {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
}

.offer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.offer-card-price {
  font-size: var(--text-xs);
  color: var(--color-subtle);
}

.offer-card-price strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: var(--tracking-snug);
}

.offer-card-cta {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
  transition: background var(--duration-fast),
              color var(--duration-fast),
              border-color var(--duration-fast),
              transform var(--duration-base) var(--ease-spring);
}

.offer-card:hover .offer-card-cta {
  background: var(--ttp-red);
  border-color: var(--ttp-red);
  color: #fff;
  transform: rotate(-45deg);
}

/* ── Destination Card ───────────────────────────────────── */
.dest-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  aspect-ratio: 3/4;   /* uniform for all cards — no span-2 override */
  background: var(--color-surface-2);
}

.dest-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out-expo);
}

.dest-card:hover .dest-card-img {
  transform: scale(1.06);
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.dest-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  transform: translateY(0);
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.dest-card-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #fff;
  letter-spacing: var(--tracking-snug);
}

.dest-card-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-1);
}

.dest-card-cta {
  margin-top: var(--space-4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-base) var(--ease-out-expo),
              transform var(--duration-base) var(--ease-out-expo);
}

.dest-card:hover .dest-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Service Card ─────────────────────────────────────────── */
.service-card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  padding: var(--space-10);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ttp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: background var(--duration-base),
              transform var(--duration-base) var(--ease-spring);
}

.service-card-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--ttp-red);
  transition: transform var(--duration-base) var(--ease-spring);
}

.service-card:hover .service-card-icon {
  background: var(--ttp-red);
  transform: scale(1.05);
}

.service-card:hover .service-card-icon .material-symbols-outlined {
  color: #fff;
}

.service-card-number {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  color: var(--color-subtle);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.service-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-snug);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--ttp-red);
  transition: gap var(--duration-base) var(--ease-spring);
}

.service-card:hover .service-card-link {
  gap: var(--space-3);
}

/* ── Testimonial Card ─────────────────────────────────────── */
.testimonial-card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-10);
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--space-5);
}

.testimonial-stars .material-symbols-outlined {
  font-size: 18px;
  color: #F59E0B;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.testimonial-quote {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-2);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-surface-2);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.testimonial-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 2px;
}

/* ── Blog Card ────────────────────────────────────────────── */
.blog-card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface-2);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out-expo);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: var(--space-6);
}

.blog-card-cat {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ttp-red);
  margin-bottom: var(--space-3);
}

.blog-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  transition: color var(--duration-fast);
}

.blog-card:hover .blog-card-title {
  color: var(--ttp-red);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-subtle);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  flex-wrap: wrap;
}

.stat-item {}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extra);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
  display: block;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.faq-item.is-open {
  border-color: var(--ttp-red);
  box-shadow: 0 0 0 1px var(--ttp-red);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-md);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--duration-fast);
}

.faq-question:hover { color: var(--ttp-red); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-fast), transform var(--duration-base) var(--ease-spring);
}

.faq-icon .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--duration-base) var(--ease-spring);
}

.faq-item.is-open .faq-icon {
  background: var(--ttp-red);
}

.faq-item.is-open .faq-icon .material-symbols-outlined {
  transform: rotate(45deg);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out-expo);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* ── Search Box ──────────────────────────────────────────── */
.search-panel {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2xl);
  position: relative;
  z-index: var(--z-overlay);
  margin-top: -70px;
}

/* Tab bar wrapper — only as wide as the tabs inside it */
.search-tabs-wrap {
  width: fit-content;        /* shrinks to content width */
  max-width: 100%;
  padding-left: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  /* The full-width divider line sits on the panel via ::after */
}

/* Full-width bottom border on the panel (replaces the wrap's border) */
.search-panel::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--color-divider);
  margin: 0;
  position: relative;
  top: -1px;                /* overlap the wrap's own border */
}

.search-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.search-tabs::-webkit-scrollbar { display: none; }

.search-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--duration-fast), border-color var(--duration-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.search-tab .material-symbols-outlined { font-size: 20px; }

.search-tab.is-active {
  color: var(--ttp-red);
  border-bottom-color: var(--ttp-red);
}

.search-tab:hover:not(.is-active) {
  color: var(--color-text);
}

.search-forms {
  padding: var(--space-8);
}

.search-form {
  display: none;
}

.search-form.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.search-field label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
}

.search-field-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.search-field-input:focus-within {
  border-color: var(--ttp-red);
  box-shadow: 0 0 0 3px rgba(208,2,27,0.1);
}

.search-field-input .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.search-field-input input,
.search-field-input select {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: none;
  min-width: 0;
}

.search-field-input input::placeholder {
  color: var(--color-subtle);
}

.search-field-input select {
  cursor: pointer;
}

.search-submit {
  grid-column: span 1;
}

.btn--search {
  width: 100%;
  padding: 15px 24px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
}

/* ── How It Works Steps ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary-faint);
  border: 2px solid var(--ttp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-extra);
  color: var(--ttp-red);
  margin: 0 auto var(--space-5);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* ── Image Placeholder ──────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-subtle);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  width: 100%;
  height: 100%;
}

/* ── Carousel Controls ───────────────────────────────────── */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  background: var(--color-surface);
  transition: background var(--duration-fast),
              border-color var(--duration-fast),
              color var(--duration-fast),
              transform var(--duration-base) var(--ease-spring);
}

.carousel-btn:hover {
  background: var(--ttp-red);
  border-color: var(--ttp-red);
  color: #fff;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border-2);
  cursor: pointer;
  transition: width var(--duration-base) var(--ease-spring),
              background var(--duration-base);
}

.carousel-dot.is-active {
  background: var(--ttp-red);
  width: 24px;
}

/* ── Progress Bar (hero) ─────────────────────────────────── */
.hero-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.hero-progress-item {
  width: 32px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
}

.hero-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.1s linear;
}

.hero-progress-item.is-active .hero-progress-fill {
  animation: progressFill 6s linear forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Trust / Value Proposition ─────────────────────────────── */
.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
}

.value-prop-item {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.value-prop-item:first-child {
  grid-row: span 2;
  background: var(--color-text);
  border-color: transparent;
}

[data-theme="dark"] .value-prop-item:first-child {
  background: var(--ttp-red);
}

.value-prop-item:first-child .value-prop-title,
.value-prop-item:first-child .value-prop-text {
  color: rgba(255,255,255,0.9);
}

.value-prop-icon {
  margin-bottom: var(--space-5);
}

.value-prop-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--ttp-red);
}

.value-prop-item:first-child .value-prop-icon .material-symbols-outlined {
  color: rgba(255,255,255,0.8);
}

.value-prop-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-snug);
}

.value-prop-text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--color-text);
  color: #fff;
  text-align: center;
  padding: clamp(80px, 10vw, 140px) var(--container-pad);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1A0006 0%, #0B0B0C 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta-section-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-section .section-label {
  color: rgba(255,255,255,0.5);
}

.cta-section .section-label::before {
  background: rgba(255,255,255,0.3);
}

.cta-section h2 {
  font-size: var(--text-4xl);
  color: #fff;
  margin-bottom: var(--space-5);
}

.cta-section p {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Form Elements ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-control:focus {
  border-color: var(--ttp-red);
  box-shadow: 0 0 0 3px rgba(208,2,27,0.1);
  background: var(--color-surface);
}

.form-control.is-error { border-color: var(--ttp-red); }
.form-control.is-success { border-color: var(--color-success); }

.form-error {
  font-size: var(--text-xs);
  color: var(--ttp-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Horizontal Scroll Section ───────────────────────────── */
.h-scroll-section {
  position: relative;
}

.h-scroll-track {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-3);
}

.section-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: clamp(40px, 5vw, 64px);
}

/* ── Why TTP editorial section ────────────────────────────── */
.why-ttp-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.why-ttp-large-text {
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: var(--weight-extra);
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
  color: var(--color-text);
}

.why-ttp-large-text em {
  font-style: normal;
  color: var(--ttp-red);
}

.why-ttp-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.why-ttp-item {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.why-ttp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-ttp-item-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-faint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-ttp-item-icon .material-symbols-outlined {
  font-size: 22px;
  color: var(--ttp-red);
}

.why-ttp-item-title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.why-ttp-item-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* ── Story Section ───────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.story-image-composition {
  position: relative;
  aspect-ratio: 1;
}

.story-img-main {
  width: 75%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.story-img-accent {
  width: 55%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 4px solid var(--color-bg);
}

.story-img-main img,
.story-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-stats-pill {
  position: absolute;
  top: 24px;
  right: 0;
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  border: 1px solid var(--color-border);
  min-width: 160px;
  text-align: center;
}

.story-stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extra);
  color: var(--ttp-red);
  letter-spacing: var(--tracking-tight);
  display: block;
}

.story-stat-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 4px;
}

.story-content {
  padding: var(--space-10) 0;
}

.story-body {
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
}

/* ── Service Hero (service pages) ─────────────────────────── */
.service-hero {
  background: linear-gradient(135deg, var(--color-text) 0%, #1a1a1f 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) var(--container-pad) clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(208,2,27,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.service-hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ttp-red-soft);
  margin-bottom: var(--space-4);
}

.service-hero h1 {
  font-size: var(--text-4xl);
  color: #fff;
  margin-bottom: var(--space-5);
  max-width: 700px;
}

.service-hero p {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.service-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}


/* ============================================================
   TTP — CUSTOM PICKER / FORM INPUT STYLES
   Overrides OS default styling for date, select, and inputs
   ============================================================ */

/* ── Base input/select reset ──────────────────────────────── */
.search-field-input input[type="date"],
.search-field-input input[type="time"],
.search-field-input input[type="text"],
.search-field-input input[type="email"],
.search-field-input input[type="number"],
.search-field-input select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  width: 100%;
  min-width: 0;
  cursor: pointer;
  line-height: 1.4;
}

/* Date picker — hide default calendar icon in Chrome */
.search-field-input input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  padding: 0;
  margin: 0;
}

/* Date picker — hide clear button in IE */
.search-field-input input[type="date"]::-ms-clear { display: none; }

/* Select — remove default arrow */
.search-field-input select {
  background-image: none;
}

/* Placeholder color */
.search-field-input input::placeholder {
  color: var(--color-subtle);
  font-weight: var(--weight-regular);
}

/* ── Select dropdown custom arrow ─────────────────────────── */
.search-field-input {
  position: relative;
}

/* Wrapper for selects only — adds custom chevron */
.search-field-input.has-select::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  color: var(--color-muted);
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Date input — show custom calendar icon */
.search-field-input.has-date::after {
  content: 'calendar_month';
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  color: var(--color-muted);
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Focus state */
.search-field-input:focus-within {
  border-color: var(--ttp-red);
  box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.1);
}

/* ── Global form-control overrides ────────────────────────── */
.form-control,
input[type="date"].form-control,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-control:focus,
input[type="date"].form-control:focus,
select.form-control:focus {
  border-color: var(--ttp-red);
  box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.1);
  outline: none;
  background: var(--color-surface);
}

/* Date field — suppress OS calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  cursor: pointer;
  opacity: 0;
  position: absolute;
  right: 0;
  width: 36px;
  height: 36px;
}

input[type="date"] {
  position: relative;
}

/* ── Dark mode overrides ──────────────────────────────────── */
[data-theme="dark"] .search-field-input input[type="date"],
[data-theme="dark"] .search-field-input input[type="text"],
[data-theme="dark"] .search-field-input select {
  color: var(--color-text);
}

[data-theme="dark"] .search-field-input input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0;
}

/* Select option background in dark mode */
[data-theme="dark"] select option {
  background: var(--color-surface);
  color: var(--color-text);
}
