/* ═══════════════════════════════════════════════════════════════
   css/components.css — All section components
   ═══════════════════════════════════════════════════════════════ */

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--ink);
  padding: 48px var(--gutter);
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--paper);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: rgba(245, 242, 236, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 640px) {
  .stats-bar { gap: 32px 48px; }
}

/* ── Features grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
}

.feature-card {
  background: var(--paper);
  padding: 40px 36px;
  transition: background var(--duration) var(--ease);
  position: relative;
}
.feature-card:hover { background: var(--cream); }

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
  transition: transform var(--duration) var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.15); }

.feature-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.65;
}

.feature-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(42, 122, 111, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }
}

/* ── Steps ───────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-num {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

.step-desc {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .step-num { font-size: 56px; }
}

/* ── Tab showcase ────────────────────────────────────────────── */
.tab-showcase { margin-top: 60px; }

.tab-list {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
}

.tab-btn {
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--faint);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.tab-panel { display: none; }
.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  animation: fadeIn 0.3s var(--ease);
}

/* Mock UI inside tab panels */
.tab-visual {
  background: var(--warm);
  border-radius: 20px;
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-title {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--faint);
  margin-left: 6px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.mock-row.dashed {
  border-style: dashed;
  background: transparent;
  opacity: 0.5;
}

.mock-emoji { font-size: 17px; flex-shrink: 0; }

.mock-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mock-line {
  height: 7px;
  border-radius: 4px;
  background: var(--border);
}
.mock-line.w-70 { width: 70%; }
.mock-line.w-55 { width: 55%; }
.mock-line.w-45 { width: 45%; }
.mock-line.w-40 { width: 40%; }
.mock-line.w-60 { width: 60%; }
.mock-line.accent { background: rgba(42, 122, 111, 0.2); width: 40%; }

.mock-time {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--faint);
  flex-shrink: 0;
}

.mock-amount {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.mock-pill {
  font-family: var(--sans);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.mock-pill.green  { background: rgba(42,122,111,.12); color: #2A7A6F; }
.mock-pill.red    { background: rgba(200,75,49,.12);  color: #C84B31; }
.mock-pill.blue   { background: rgba(74,143,168,.12); color: #4A8FA8; }

/* Tab text content */
.tab-text h3 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 16px;
}

.tab-text p {
  font-size: 16px;
  color: var(--faint);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li::before {
  content: '→';
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tab-panel.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tab-list { overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { flex-shrink: 0; }
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.quote-mark {
  position: absolute;
  top: 12px; left: 22px;
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  margin: 40px 0 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--warm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.author-name  { font-weight: 600; font-size: 14px; }
.author-trip  { font-size: 12px; color: var(--faint); margin-top: 1px; }

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--ink);
  padding: 120px var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,242,236,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,236,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(40px, 7vw, 76px);
  color: var(--paper);
  margin-bottom: 20px;
}
.cta-title .highlight { color: #E8A87C; font-style: italic; }

.cta-body {
  font-size: 18px;
  color: rgba(245, 242, 236, 0.5);
  margin-bottom: 48px;
  line-height: 1.65;
}

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.3);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(245, 242, 236, 0.07);
  padding: 72px var(--gutter) 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(245, 242, 236, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.footer-logo-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(245, 242, 236, 0.35);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.25);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(245, 242, 236, 0.45);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 242, 236, 0.07);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(245, 242, 236, 0.2);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
