/* ═══════════════════════════════════════════════════════════════
   css/main.css — MyTripPlan Landing Site
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  /* Palette — warm editorial */
  --ink:       #0A0B0F;
  --paper:     #F5F2EC;
  --cream:     #EDE9DF;
  --warm:      #E8E2D5;
  --accent:    #C84B31;   /* terracotta */
  --gold:      #C49A3C;   /* antique gold */
  --teal:      #2A7A6F;   /* deep travel teal */
  --sky:       #4A8FA8;
  --faint:     #8A8378;
  --border:    #D4CCBC;

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max:   1100px;
  --gutter: 40px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(10,11,15,.06);
  --shadow-md: 0 8px 32px rgba(10,11,15,.10);
  --shadow-lg: 0 20px 60px rgba(10,11,15,.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-accent    { color: var(--accent); }
.text-teal      { color: var(--teal);   }
.text-gold      { color: var(--gold);   }
.text-faint     { color: var(--faint);  }
.italic         { font-style: italic;   }

/* ── Layout helpers ────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 100px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-full {
  padding: 100px var(--gutter);
  background: var(--cream);
}

.section-dark {
  padding: 100px var(--gutter);
  background: var(--ink);
}

/* ── Section labels / titles ───────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--ink);
  margin-bottom: 20px;
}

.section-title.light { color: var(--paper); }

.section-body {
  font-size: 17px;
  color: var(--faint);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-light:hover {
  background: #E8A87C;
  border-color: #E8A87C;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.btn-sm {
  padding: 9px 22px;
  font-size: 14px;
}

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── Responsive breakpoints ─────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section, .section-full, .section-dark { padding: 72px var(--gutter); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section, .section-full, .section-dark { padding: 56px var(--gutter); }
  .section-title { font-size: clamp(30px, 8vw, 48px); }
}
