/* GuidaVista marketing site: static CSS, no framework.
   Palette mirrors the app's own "Golden Hour" design tokens
   (CariTrip/CariTrip/Core/DesignSystem/Theme.swift) so the site and the
   app read as the same product. */

:root {
  --bg: #fcf8f2;
  --surface: #ffffff;
  --paper: #fff4e6;
  --text: #10222e;
  --text-secondary: #55626b;
  --hairline: rgba(14, 52, 72, 0.1);
  --navy-top: #154a63;
  --navy-bottom: #08202d;
  --coral: #ff6b57;
  --coral-line: #b5321f;
  --accent: #17697a;
  --lagoon: #2aa0b4;
  --success: #1b7059;
  --shadow-sm: 0 1px 2px rgba(14, 34, 46, 0.06), 0 1px 1px rgba(14, 34, 46, 0.04);
  --shadow-card: 0 18px 40px -20px rgba(14, 52, 72, 0.28), 0 2px 8px rgba(14, 52, 72, 0.06);
  --shadow-lift: 0 30px 60px -24px rgba(8, 32, 45, 0.45);
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-sm: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1180px;
  --gutter: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08202d;
    --surface: #10303f;
    --paper: #0e2b3b;
    --text: #f5eee4;
    --text-secondary: #a8b7c0;
    --hairline: rgba(255, 255, 255, 0.1);
    --coral: #ff6b57;
    --coral-line: #ff8a7a;
    --accent: #6fd0de;
    --lagoon: #2aa0b4;
    --success: #5fd1ae;
    --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 30px 70px -22px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  --bg: #08202d;
  --surface: #10303f;
  --paper: #0e2b3b;
  --text: #f5eee4;
  --text-secondary: #a8b7c0;
  --hairline: rgba(255, 255, 255, 0.1);
  --coral: #ff6b57;
  --coral-line: #ff8a7a;
  --accent: #6fd0de;
  --lagoon: #2aa0b4;
  --success: #5fd1ae;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-bottom);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-line);
  margin: 0 0 14px;
}

.lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 16px 0 0;
}

.section {
  padding: 76px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section--paper { background: var(--paper); }
.section--navy {
  background: linear-gradient(175deg, var(--navy-top), var(--navy-bottom));
  color: #fff4e6;
}
.section--navy .eyebrow { color: #ffb38c; }
.section--navy p { color: #cfe0e6; }
.section--navy h2 { color: #fff4e6; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--coral);
  color: #10222e;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.btn-quiet {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 242, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(8, 32, 45, 0.72); }
}
:root[data-theme="dark"] .site-header { background: rgba(8, 32, 45, 0.72); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
}
.brand img { border-radius: 9px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 4px;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-secondary);
}
.lang-switch a[aria-current="true"] {
  background: var(--navy-bottom);
  color: #fff4e6;
}

@media (min-width: 880px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
}

.hero-copy h1 {
  font-size: clamp(38px, 6vw, 60px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-bottom);
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: var(--shadow-sm);
  opacity: 0.92;
}
.store-badge svg { flex-shrink: 0; }
.store-badge strong { display: block; font-size: 16px; font-family: var(--font-display); font-weight: 600; }
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}
.phone-stack {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 440 / 480;
}
.phone-frame {
  position: absolute;
  width: 240px;
  border-radius: 42px;
  background: #0b0b0d;
  padding: 10px;
  box-shadow: var(--shadow-lift);
}
.phone-frame .screen {
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.phone-frame .screen::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #0b0b0d;
  border-radius: 999px;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame.p1 { left: 2%; top: 6%; z-index: 2; }
.phone-frame.p2 { right: 0; bottom: 0; width: 220px; z-index: 1; transform: rotate(4deg); opacity: 0.96; }

@media (max-width: 959px) {
  .phone-stack { aspect-ratio: auto; height: 420px; }
  .phone-frame { width: 200px; }
  .phone-frame.p2 { width: 180px; }
}

/* ---------- Editions ---------- */

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (min-width: 720px) {
  .edition-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.edition-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
.edition-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.edition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 45, 0) 35%, rgba(8, 32, 45, 0.85) 100%);
  z-index: -1;
}
.edition-card .label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
}
.edition-card .num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd9a8;
  margin-bottom: 4px;
}
.edition-card .name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.edition-card .desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #e3ecef;
}

.editions-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.editions-note svg { flex-shrink: 0; color: var(--success); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lagoon) 16%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 600;
}
.feature-card p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- Trust / sample pages ---------- */

.trust-layout {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .trust-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
}
.checked-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-line);
  margin-top: 20px;
}
.checked-badge svg { color: var(--success); }

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
.page-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  min-width: 0;
}
.page-card img { width: 100%; height: auto; aspect-ratio: 750 / 1339; object-fit: cover; }
.page-card figcaption {
  padding: 12px 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.page-card figcaption strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
}

/* ---------- Companion (navy, photo bg) ---------- */

.companion {
  position: relative;
  color: #fff4e6;
  overflow: hidden;
}
.companion-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.companion-bg img { width: 100%; height: 100%; object-fit: cover; }
.companion-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(8, 32, 45, 0.82), rgba(8, 32, 45, 0.94));
}
.companion .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.companion .eyebrow { color: #ffb38c; }
.companion h2 { color: #fff4e6; }
.companion .lede { color: #dce9ec; margin-left: auto; margin-right: auto; }

.companion .feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}
.companion .feature-card h3 { color: #fff4e6; }
.companion .feature-card p { color: #cfe0e6; }
.companion .feature-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffd9a8;
}

/* ---------- Experiences ---------- */

.exp-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .exp-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 160px; }
  .exp-featured { grid-row: span 2; }
}
.exp-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  min-height: 180px;
  box-shadow: var(--shadow-card);
}
.exp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 45, 0) 40%, rgba(8, 32, 45, 0.82) 100%);
  z-index: -1;
}
.exp-card .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--coral-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}
.exp-card .cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.exp-featured .cap { font-size: 24px; }

.disclosure {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.disclosure svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ---------- Destinations ---------- */

.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .dest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dest-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
  box-shadow: var(--shadow-card);
}
.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.dest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 45, 0) 45%, rgba(8, 32, 45, 0.82) 100%);
  z-index: -1;
}
.dest-card .cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
}
.dest-card .city {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.dest-card .status {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.dest-card.is-live .status { background: var(--coral); color: #10222e; }
.dest-card.is-soon { filter: grayscale(0.55); }
.dest-card.is-soon .status { background: rgba(255, 255, 255, 0.22); color: #fff; }
.dest-card.is-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 45, 0.3);
}

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; flex-shrink: 0; color: var(--accent); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin: 0 0 18px; color: var(--text-secondary); font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-bottom);
  color: #cfe0e6;
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff4e6;
}
.footer-tag { margin-top: 10px; font-size: 14px; color: #9fb6bf; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb6bf;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  color: #e4edef;
  text-decoration: none;
  font-size: 15px;
}
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: #8ca5af;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
