/*
Theme Name: Plan Punta Cana
Theme URI: https://example.com/
Author: Plan Punta Cana
Description: Editorial travel-meets-tool theme matching the Plan Punta Cana design system. Mobile-first. Deep ocean teal, warm coral, pale sand, Fraunces + Plus Jakarta Sans.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
Text Domain: plan-punta-cana
*/

/* =========================================================
   DESIGN TOKENS (from the app spec — exact values)
   ========================================================= */
:root {
  --background: #FAF8F4;
  --foreground: #183539;
  --card: #FFFFFF;
  --card-foreground: #183539;
  --popover: #FFFFFF;
  --popover-foreground: #183539;
  --primary: #0B5456;
  --primary-foreground: #FAF8F4;
  --accent: #E8755B;
  --accent-foreground: #FFFFFF;
  --secondary: #EDE5D7;
  --secondary-foreground: #052C2E;
  --muted: #EDE5D7;
  --muted-foreground: #546C6D;
  --destructive: #C52020;
  --destructive-foreground: #FFFFFF;
  --border: #DCD2C1;
  --input: #DCD2C1;
  --ring: #0B5456;
  --chart-1: #0B5456;
  --chart-2: #E8755B;
  --chart-3: #C4A66E;
  --chart-4: #36737D;
  --chart-5: #E8C468;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --container: 1152px;
  --header-h: 56px;         /* compact on phones, taller from 768px */
  --radius: 16px;           /* rounded-2xl */
  --radius-sm: 12px;        /* rounded-xl */
  --radius-full: 9999px;
  --shadow-teal: 0 12px 32px -8px rgba(11, 85, 88, 0.08);
  --shadow-coral: 0 12px 32px -8px rgba(232, 117, 91, 0.4);
  --hero-gradient: linear-gradient(135deg, #0B5558 0%, #083E40 100%);
  --scrim: linear-gradient(to top, rgba(0, 0, 0, 0.60), transparent);
  --tap-min: 44px;          /* minimum comfortable touch target */
}

/* =========================================================
   BASE (mobile-first)
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  /* faint dot-grid texture */
  background-image: radial-gradient(rgba(11, 85, 88, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
::selection { background: rgba(232, 117, 91, 0.25); }

/* Fractal noise overlay (~2.5%) over the dot grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header, .site-footer, .bottom-nav { z-index: 50; }

/* Lead magnet popup — bottom sheet on phones, centered card from 640px */
.ppc-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;          /* mobile: slides from bottom */
  justify-content: center;
  padding: 0;
  background: rgba(8, 62, 64, 0.55);
}
.ppc-popup.is-open { display: flex; }
.ppc-popup__card {
  background: var(--card);
  border-radius: 24px 24px 0 0;  /* bottom sheet */
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 -12px 48px -12px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.ppc-popup__head { background: var(--hero-gradient); color: #fff; padding: 20px; }
.ppc-popup__head h2 { color: #fff; font-size: 20px; margin: 8px 0 4px; }
.ppc-popup__head p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.85); }
.ppc-popup__body { padding: 20px; display: grid; gap: 10px; }
.ppc-popup__close { position: absolute; top: 12px; right: 16px; color: #fff; background: none; border: none; font-size: 22px; cursor: pointer; line-height: 1; min-width: var(--tap-min); min-height: var(--tap-min); }
.ppc-popup__cardwrap { position: relative; width: 100%; }
@media (min-width: 640px) {
  .ppc-popup { align-items: center; padding: 16px; }
  .ppc-popup__cardwrap { width: auto; }
  .ppc-popup__card { border-radius: var(--radius); box-shadow: 0 24px 64px -16px rgba(0,0,0,0.4); }
  .ppc-popup__head { padding: 24px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}

.container-app {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container-app { padding-inline: 24px; } }

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.h1-hero { font-size: clamp(32px, 8.5vw, 56px); line-height: 1.08; }
.home-hero .h1-hero { text-align: center; }
/* Centered hero intro: pill + title + subtitle */
.home-hero .container-app > div { text-align: center; }
.home-hero__sub { margin-inline: auto; }
.h1-page { font-size: clamp(28px, 5.5vw, 36px); }
.h1-longform { font-size: clamp(28px, 6vw, 48px); line-height: 1.1; }
.h2-section { font-size: clamp(20px, 4.5vw, 24px); }
.h2-aside { font-size: 19px; font-weight: 600; }
.h3-card { font-size: 17px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 16px; color: rgba(24, 53, 57, 0.9); }
@media (min-width: 640px) { .lead { font-size: 18px; } }
.text-small { font-size: 14px; color: var(--muted-foreground); }
.text-meta { font-size: 12px; color: var(--muted-foreground); }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.eyebrow--coral { color: var(--accent); }
.eyebrow--white { color: rgba(255, 255, 255, 0.7); }

.prose-plan { max-width: 672px; }
/* Services page: let the pricing grid span the full container */
.page-id-42 .prose-plan { max-width: none; }
.prose-plan p { color: rgba(24, 53, 57, 0.9); margin: 0 0 1em; }
.prose-plan h2 { font-size: 22px; margin-top: 1.6em; }

/* =========================================================
   HEADER (compact 56px on phones)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 210, 193, 0.7);
}
.site-header .container-app {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--primary);
  min-width: 0;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
@media (min-width: 768px) {
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .site-header .container-app { gap: 24px; }
}

.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li { list-style: none; margin: 0; }
.main-nav a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(24, 53, 57, 0.8);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current_page_item > a,
.main-nav .current-menu-item > a { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
/* On phones only the primary CTA fits — keep it a comfortable tap */
.header-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.site-header .header-saved { display: none; }       /* hidden on phones */
@media (min-width: 640px) {
  .site-header .header-saved { display: inline-flex; }
  .header-actions .btn { min-height: 36px; padding: 8px 12px; font-size: 14px; }
}

/* =========================================================
   MOBILE BOTTOM NAV (safe-area aware)
   ========================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 6px 4px;
  min-height: 52px;
}
.bottom-nav a span:first-child { font-size: 18px; line-height: 1; }
.bottom-nav a.is-active { color: var(--primary); font-weight: 600; }
@media (min-width: 768px) { .bottom-nav { display: none; } }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   BUTTONS (44px touch targets on phones)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 13px 20px;                       /* >= 44px tall on phones */
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.1s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
@media (min-width: 640px) { .btn { padding: 12px 20px; font-size: 15px; } }
.btn-coral { background: var(--accent); color: #fff; box-shadow: var(--shadow-coral); }
.btn-coral:hover { filter: brightness(1.05); text-decoration: none; }
.btn-teal { background: var(--primary); color: var(--primary-foreground); }
.btn-teal:hover { filter: brightness(1.1); text-decoration: none; }
.btn-outline { background: var(--card); color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--secondary); text-decoration: none; }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { opacity: 0.4; pointer-events: none; }
.btn-block { width: 100%; }

/* =========================================================
   PILLS / BADGES
   ========================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
}
.pill-sand { background: var(--secondary); color: var(--secondary-foreground); }
.pill-teal { background: rgba(11, 85, 88, 0.1); color: var(--primary); }
.pill-coral { background: var(--accent); color: #fff; }
.pill-white { background: rgba(255, 255, 255, 0.15); color: #fff; }
.pill-outline { border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.pill.is-active { background: var(--primary); color: var(--primary-foreground); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill-row__divider { width: 1px; height: 20px; background: var(--border); }
/* Tappable pills get phone-sized touch targets */
@media (max-width: 639px) {
  button.pill { min-height: 40px; padding: 8px 16px; font-size: 12px; }
}

/* =========================================================
   FORMS (16px inputs everywhere on phones — no iOS zoom)
   ========================================================= */
.input-base {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input);
  background: var(--card);
  padding: 12px 16px;
  font-size: 16px;                          /* iOS zooms on focus if <16px */
  font-family: var(--font-body);
  color: var(--foreground);
}
@media (min-width: 640px) { .input-base { font-size: 15px; } }
.input-base::placeholder { color: rgba(84, 108, 109, 0.7); }
.input-base:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }
.input-hero {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.input-hero::placeholder { color: rgba(255, 255, 255, 0.6); }
.input-hero:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
label.field-label { display: block; margin-bottom: 6px; }
.form-error { color: var(--destructive); font-size: 13px; margin-top: 6px; }
input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
@media (min-width: 640px) { input[type="checkbox"] { width: 16px; height: 16px; } }

/* Two-column field grids stack on phones, split from 640px */
.field-grid { display: grid; gap: 12px; }
.field-grid--choices { gap: 10px; }
@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid--stack { grid-template-columns: none; }
}

/* =========================================================
   CARDS
   ========================================================= */
.card-surface {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-teal);
  padding: 18px;
}
@media (min-width: 640px) { .card-surface { padding: 20px; } }
.card-info { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); padding: 16px 20px; }
.card-sand { border-radius: var(--radius-sm); background: rgba(237, 229, 215, 0.5); padding: 12px 16px; }

.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}
.cat-card__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; margin: 0; }
.cat-card__body { padding: 14px 16px 16px; }
@media (min-width: 640px) { .cat-card__body { padding: 16px 18px 18px; } }
.cat-card__title { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
@media (min-width: 640px) { .cat-card__title { font-size: 18px; } }
.cat-card__meta { font-size: 14px; color: var(--muted-foreground); margin-bottom: 8px; }
.cat-card__summary { font-size: 14px; color: var(--muted-foreground); }
.cat-card__cost {
  position: absolute;
  right: 12px; top: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 11px; font-weight: 700; color: var(--primary);
}
.cat-card__imgwrap { position: relative; }
.fallback-img { background: var(--secondary); width: 100%; aspect-ratio: 4/3; }

/* Guide card: image full-bleed with scrim, text overlay */
.guide-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-teal);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1) 55%, transparent);
}
.guide-card__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  line-height: 1.25;
}
.guide-card:hover { text-decoration: none; }

/* Defined card hover: lift + soft teal shadow, no scale, no color shift */
@media (hover: hover) {
  .cat-card:hover,
  .guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(11, 85, 88, 0.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card,
  .guide-card { transition: none; }
  .cat-card:hover,
  .guide-card:hover { transform: none; box-shadow: none; }
}

/* Featured guide: teal gradient banner above the grid (matches app popup) */
.guide-featured {
  display: block;
  text-decoration: none;
  background: var(--hero-gradient);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-teal);
  overflow: hidden;
  padding: 28px 24px;
}
.guide-featured:hover { text-decoration: none; filter: brightness(1.06); }
.guide-featured__pill {
  display: inline-block;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  margin-bottom: 12px;
}
.guide-featured__title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; line-height: 1.25;
  color: #fff; margin: 0 0 10px; display: block;
}
.guide-featured__excerpt {
  font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.6;
  margin: 0 0 18px; max-width: 560px; display: block;
}
.guide-featured .btn { display: inline-flex; }
@media (min-width: 640px) {
  .guide-featured { padding: 40px 48px; }
  .guide-featured__title { font-size: 30px; }
  .guide-featured__excerpt { font-size: 15px; }
}

/* =========================================================
   HERO PATTERNS
   ========================================================= */
.hero-gradient { background: var(--hero-gradient); color: #fff; border-radius: 0; }
.hero-gradient h1 { color: #fff; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo__scrim { position: absolute; inset: 0; background: var(--scrim); }
.hero-photo__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-bottom: 20px;
  color: #fff;
}
@media (min-width: 768px) { .hero-photo__content { padding-bottom: 24px; } }
.hero-photo__content h1 { color: #fff; }

/* Homepage hero split — single column on phones */
.home-hero .container-app {
  display: grid;
  gap: 24px;
  padding-block: 32px;
}
@media (min-width: 768px) {
  .home-hero .container-app { padding-block: 64px; }
}
@media (min-width: 1024px) { .home-hero .container-app { padding-block: 80px; } }
.home-hero__sub { color: rgba(255, 255, 255, 0.85); font-size: 16px; max-width: 56ch; margin-bottom: 0; }
@media (min-width: 640px) { .home-hero__sub { font-size: 18px; } }
/* Hero CTA button + social proof line */
.home-hero__cta { margin-top: 20px; }
.home-hero__proof { margin: 14px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.match-preview { background: var(--secondary); border-radius: var(--radius); padding: 16px; }
.match-preview__card {
  background: var(--card); border-radius: var(--radius-sm);
  display: flex; gap: 12px; align-items: center; padding: 12px; margin-top: 10px;
}
.match-preview__thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--secondary); }
.match-preview__name { font-weight: 600; font-size: 14px; }
.match-preview__meta { font-size: 12px; color: var(--muted-foreground); }

/* =========================================================
   SECTIONS / GRIDS (stacked on phones, grow with viewport)
   ========================================================= */
.section { padding-block: 28px; }
@media (min-width: 768px) { .section { padding-block: 56px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { gap: 20px; grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { gap: 20px; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { gap: 20px; grid-template-columns: repeat(2, 1fr); } }
.grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { gap: 20px; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* Homepage "plan smarter" columns: stacked cards on phones, 2-col from 1024px */
.home-cols { display: grid; gap: 32px; }
@media (min-width: 1024px) { .home-cols { grid-template-columns: 1.6fr 1fr; gap: 40px; } }
.home-cols__aside .card-surface { margin-top: 12px; }
.split-2 { display: grid; gap: 24px; }
@media (min-width: 1024px) { .split-2 { grid-template-columns: 1.6fr 1fr; gap: 32px; } }
.maxw-3xl { max-width: 768px; margin-inline: auto; }
.maxw-4xl { max-width: 896px; margin-inline: auto; }

/* Section heading: stacked on phones, inline row from 640px */
.section-head { display: block; margin-bottom: 20px; }
@media (min-width: 640px) {
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
}
.link-arrow { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; display: inline-block; margin-top: 6px; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(2px); }
@media (min-width: 640px) { .link-arrow { margin-top: 0; } }

/* Lead capture band */


/* Split hero (long-form pages) */
.split-hero { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .split-hero { grid-template-columns: 1.05fr 1fr; } }
.split-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.split-hero__fallback { background: var(--secondary); min-height: 220px; }
.split-hero__text {
  background: var(--hero-gradient);
  color: #fff;
  padding: 32px 20px;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) { .split-hero__text { padding: 48px 24px; } }
.split-hero__inner { max-width: 560px; margin-inline: auto; }
.split-hero__back { color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.split-hero__back:hover { color: #fff; }
.split-hero__text h1 { color: #fff; margin-top: 8px; }
.split-hero__excerpt { color: rgba(255,255,255,0.85); margin-top: 12px; }
.split-hero__meta { color: rgba(255,255,255,0.6); margin-top: 16px; }
.eyebrow--white { color: rgba(255,255,255,0.8); }

/* Long-form body rhythm */
.longform-body .maxw-3xl,
.longform-body .maxw-4xl { margin-block: 32px; }
@media (min-width: 768px) {
  .longform-body .maxw-3xl,
  .longform-body .maxw-4xl { margin-block: 48px; }
}
.longform-body .maxw-3xl:first-child,
.longform-body .maxw-4xl:first-child { margin-top: 0; }

/* Stat grid (trip dashboard / weather) */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stat-grid { gap: 20px; } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); padding: 16px; box-shadow: var(--shadow-teal); }
@media (min-width: 640px) { .stat-card { padding: 20px; } }
.stat-card__value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--primary); }
@media (min-width: 640px) { .stat-card__value { font-size: 24px; } }

/* Accent info box (hurricane / warning) */
.accent-box {
  border: 1px solid rgba(232, 117, 91, 0.4);
  background: rgba(232, 117, 91, 0.05);
  border-radius: var(--radius-sm);
  padding: 20px;
}

/* Tab bar */
.tab-bar { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--border); margin-block: 20px; }
.tab-bar a {
  padding: 12px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
  white-space: nowrap; text-decoration: none;
}
.tab-bar a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* Tables: swipeable on phones instead of clipped */
.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
@media (max-width: 767px) { .table-wrap table { min-width: 560px; } }
.table-wrap thead { background: rgba(237, 229, 215, 0.6); }
.table-wrap th { text-align: left; padding: 10px 14px; font-weight: 600; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--border); }
.table-wrap tbody tr:first-child td { border-top: none; }

/* FAQ details */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--primary);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 20px; transition: transform 0.2s; color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 15px; color: var(--muted-foreground); margin: 8px 0 0; }

/* Wizard (trip planner) */
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--muted-foreground);
}
.step-dot.is-active, .step-dot.is-done { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.step-line { flex: 1; height: 1px; background: var(--border); max-width: 48px; }
.choice-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); padding: 16px; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500; transition: all 0.15s;
  min-height: var(--tap-min);
}
.choice-card:hover { border-color: var(--primary); }
.choice-card.is-selected { border-color: var(--primary); background: rgba(11, 85, 88, 0.05); box-shadow: 0 0 0 1px var(--primary); }

/* Success state */
.form-success { text-align: center; padding: 40px 20px; }
.form-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(232, 117, 91, 0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.form-success h3 { font-family: var(--font-display); color: var(--primary); margin-bottom: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(237, 229, 215, 0.4);
  padding-block: 32px;
}
@media (min-width: 768px) { .site-footer { margin-top: 64px; padding-block: 40px; } }
.site-footer .container-app { display: grid; gap: 20px; }
@media (min-width: 768px) { .site-footer .container-app { grid-template-columns: 1fr 2fr; align-items: start; } }
.site-footer .brand { font-size: 18px; }
.pill-outline.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-links .footer-small > a { font-size: 12px; opacity: 0.7; }
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .footer-links ul { justify-content: flex-end; } }
.footer-links li { list-style: none; margin: 0; }
.footer-links a { font-size: 14px; color: rgba(24, 53, 57, 0.8); }
.footer-links a:hover { color: var(--primary); }
.footer-meta { margin-top: 24px; font-size: 12px; color: var(--muted-foreground); }

/* =========================================================
   UTILITIES / ANIMATIONS
   ========================================================= */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .bottom-nav, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
}
