/* Marbella Pet Travel & Veterinary Concierge — static landing page styles.
   Palette, type and motion ported from design/Main.dc.html (desktop)
   and design/Mobile.dc.html (≤600px). */

:root {
  --paper: #f7f4ee;
  --ink: #1c2320;
  --green: #2f6b4f;
  --green-dark: #1f4d38;
  --gold: #b8955a;
  --sand: #e3ddd1;
  --stone: #6b655a;
  --body-text: #4a4740;
  --dim: #9a948a;
  --cream: #c9c2b4;
  --mint: #b8d9c6;
  --slot-hover: #ecf3ee;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --pad: clamp(20px, 6.7vw, 96px);
  /* type scale: 12 13 14 15 16 18 20 24 28 36 44 54 */
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px; --fs-16: 16px;
  --fs-18: 18px; --fs-20: 20px; --fs-24: 24px; --fs-28: 28px; --fs-36: 36px;
  --fs-44: 44px; --fs-54: 54px;
}

* { box-sizing: border-box; }

button, select { font: inherit; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px;
}
.book:focus-visible, .cta:focus-visible { outline-color: var(--ink); }
img { max-width: 100%; }

.serif { font-family: var(--serif); }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin: 0;
}
.eyebrow--muted { color: var(--stone); }
.eyebrow--mint { color: var(--mint); }

.cta {
  display: inline-block; background: var(--green); color: var(--paper);
  padding: 16px 32px; border-radius: 4px; font-weight: 600; font-size: var(--fs-18);
  text-decoration: none;
}
.cta:hover { background: var(--green-dark); color: var(--paper); }
.cta--small { font-size: 16px; padding: 16px 24px; }

/* ---------- motion (from the artboard helmet) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes xfade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes slide { to { transform: translateX(-50%); } }

.r { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.25s; } .d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; } .d5 { animation-delay: 0.7s; }
.c1 { animation-delay: 1.3s; } .c2 { animation-delay: 1.7s; } .c3 { animation-delay: 2.1s; } .c4 { animation-delay: 2.5s; }

.p0 { animation: drift 15s linear infinite alternate; }
.p1 { opacity: 0; animation: xfade 15s ease-in-out infinite; animation-delay: 5s; }
.p2 { opacity: 0; animation: xfade 15s ease-in-out infinite; animation-delay: 10s; }

@media (prefers-reduced-motion: reduce) {
  .r, .p0, .p1, .p2, .marquee { animation: none !important; opacity: 1 !important; }
}

/* ---------- header ---------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--pad); background: var(--ink); color: var(--cream);
}
.langs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.lang {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; padding: 4px 8px;
  color: var(--paper);
}
.lang--on { background: var(--paper); color: var(--ink); }
.topbar-note { font-size: 12px; }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--pad); border-bottom: 1px solid var(--sand);
}
.brand { font-size: var(--fs-20); letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-dim { color: var(--stone); }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.book {
  display: inline-block; background: var(--green); color: var(--paper);
  padding: 12px 20px; border-radius: 4px; font-weight: 600; text-decoration: none;
}
.book:hover { background: var(--green-dark); color: var(--paper); }
.book--light { background: var(--paper); color: var(--ink); padding: 16px 24px; }
.book--light:hover { background: #ffffff; color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 4px; cursor: pointer;
  color: var(--ink); line-height: 0;
}

/* content cap: readable measures on wide screens; .route-strip stays full-bleed */
.topbar, .nav, main > section, footer { max-width: 1440px; margin-inline: auto; }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px;
  padding: 96px var(--pad) 72px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.hero h1 {
  margin: 0; font-size: 54px; font-weight: 400; line-height: 1.32;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
}
.hero-lead {
  font-size: 20px; line-height: 1.55; margin: 0; color: var(--body-text);
  max-width: 560px; text-wrap: pretty;
}
.hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 4px; flex-wrap: wrap; }
.hero-note { font-size: 15px; color: var(--stone); }

/* the fill-in sentence slots */
.slot {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; border-bottom: 3px solid var(--green); border-radius: 0;
  font-family: var(--serif); font-style: italic; font-size: 1em; line-height: 1.15;
  color: var(--green); padding: 0 32px 2px 4px; cursor: pointer;
  field-sizing: content;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.slot:hover { background: var(--slot-hover); }
.slotwrap { position: relative; display: inline-flex; align-items: baseline; max-width: 100%; }
.slotwrap svg { position: absolute; right: 6px; bottom: 0.3em; pointer-events: none; }

/* hero media */
.hero-media { position: relative; height: 640px; }
.hero-frame {
  position: absolute; inset: 0 0 56px 0; border-radius: 8px; overflow: hidden;
  background: var(--sand);
}
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.trip-card {
  position: absolute; left: -48px; bottom: 0; width: 360px;
  background: #ffffff; border: 1px solid var(--sand); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 48px -28px rgba(28, 35, 32, 0.45);
}
.trip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.trip-route { font-size: 18px; }
.trip-meta { font-size: 12px; color: var(--stone); text-align: right; }
.trip-rule { height: 1px; background: var(--sand); }
.trip-item { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.trip-item svg { flex: none; }
.trip-item--todo { color: var(--stone); }

/* ---------- route strip ---------- */

.route-strip {
  overflow: hidden; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand);
  padding: 16px 0;
}
.marquee {
  display: flex; gap: 0; width: max-content; animation: slide 46s linear infinite;
  font-size: 15px; color: var(--stone); font-style: italic;
}
.marquee span { padding: 0 28px; white-space: nowrap; }

/* ---------- answer panel ---------- */

.answer { padding: 80px var(--pad) 0; }
.answer-noscript { font-size: 14px; color: var(--stone); margin: 0 0 16px; }
.answer-grid {
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr;
  border-top: 1px solid var(--ink);
}
.answer-cell { padding: 32px 40px 32px; display: flex; flex-direction: column; gap: 12px; }
.answer-cell:first-child { padding-left: 0; }
.answer-cell:last-child { padding-right: 0; }
.answer-cell + .answer-cell { border-left: 1px solid var(--sand); }
.answer-title { font-size: 28px; font-weight: 400; line-height: 1.25; margin: 0; }
.answer-body { line-height: 1.55; color: var(--body-text); margin: 0; }
.answer-price { font-size: 36px; }
.answer-pricenote { line-height: 1.55; color: var(--body-text); font-size: 15px; margin: 0; }
.who-row { display: flex; gap: 16px; align-items: center; }
.who-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  flex: none;
}
.who-name { font-size: 20px; }
.who-role { font-size: 14px; color: var(--stone); }
.who-text { line-height: 1.55; color: var(--body-text); font-size: 15px; margin: 0; }

/* ---------- three problems ---------- */

.problems {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  padding: 96px var(--pad) 96px;
}
.problem { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.problem h2 { font-size: 24px; font-weight: 400; margin: 0; }
.problem p { margin: 0; line-height: 1.55; color: var(--body-text); }

/* ---------- split sections (New in Marbella / Going home / Your vet) ---------- */

.split {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px;
  padding: 0 var(--pad) 96px; align-items: center;
}
.split--flip { grid-template-columns: 1.1fr 0.9fr; }
.split--vet { grid-template-columns: 0.8fr 1.2fr; }
.split-media {
  border-radius: 8px; overflow: hidden; height: 480px; background: var(--sand);
}
.split-media--short { height: 400px; }
.split-media--tall { height: 560px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media:not(.split-media--tall) img[alt="Shaggy dog resting on a village street"] { object-position: 50% 60%; }
.split-media--tall img { object-position: 50% 20%; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.split-title { font-size: var(--fs-36); font-weight: 400; line-height: 1.15; margin: 0; }
.split-body { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body-text); text-wrap: pretty; }
.split-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.split-price { color: var(--stone); }

.vet-name { font-size: 44px; font-weight: 400; line-height: 1.1; margin: 0; }
.vet-role { font-size: var(--fs-18); color: var(--body-text); }
.split--vet .split-text { gap: 16px; }

/* ---------- services and fees ---------- */

.fees { padding: 0 var(--pad) 96px; }
.fees-title { font-size: 36px; font-weight: 400; margin: 0 0 32px; }
.fee-table { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.fee-row {
  display: grid; grid-template-columns: 2fr 5fr 1fr; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--sand); align-items: baseline;
}
.fee-name { font-weight: 600; }
.fee-desc { color: var(--body-text); }
.fee-price { text-align: right; white-space: nowrap; }
.fees-note { font-size: 14px; color: var(--stone); margin: 16px 0 0; max-width: 72ch; }

/* ---------- Norway strip ---------- */

.norway { padding: 0 var(--pad) 96px; }
.norway-card {
  background: var(--ink); color: var(--paper); border-radius: 8px; padding: 48px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center;
}
.norway-text { display: flex; flex-direction: column; gap: 16px; }
.norway-title { font-size: var(--fs-28); font-weight: 400; line-height: 1.3; margin: 0; }
.norway-body { color: var(--cream); line-height: 1.5; margin: 0; }
.norway-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.norway-note { font-size: 13px; color: var(--stone); }

/* ---------- language / promise ---------- */

.promises {
  padding: 0 var(--pad) 96px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 72px;
}
.promise { display: flex; flex-direction: column; gap: 16px; }
.promise h2 { font-size: 28px; font-weight: 400; margin: 0; }
.promise p { margin: 0; line-height: 1.6; color: var(--body-text); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--sand); padding: 36px var(--pad) 56px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--stone);
}
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-credits { max-width: 72ch; }

/* ---------- tablet: two-column middle ---------- */

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
  .hero-media { height: 480px; }
  .trip-card { left: 0; }
  .answer-grid { grid-template-columns: 1fr 1fr; }
  .answer-cell--main { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-bottom: 28px; }
  .answer-cell--cost { padding-left: 0; }
  .answer-cell--who { padding-right: 0; }
  .problems { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
  .split, .split--flip, .split--vet { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split-media, .split-media--short, .split-media--tall { height: 360px; }
  .split-title { font-size: 32px; }
  .vet-name { font-size: 36px; }
  .norway-card { grid-template-columns: 1fr; gap: 24px; padding: 36px; }
  .promises { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-media { height: 280px; }
  .trip-card { display: none; }
  .hero { padding-top: 32px; padding-bottom: 32px; }
}

@media (max-width: 719px) {
  .split, .split--flip, .split--vet { grid-template-columns: 1fr; gap: 24px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-cell { padding-left: 0; padding-right: 0; border-left: 0; }
  .promises { grid-template-columns: 1fr; }
}

/* ---------- phone: Mobile.dc.html ---------- */

@media (max-width: 600px) {
  .topbar { padding: 8px 20px; }
  .lang { font-size: 11px; letter-spacing: 0.06em; padding: 3px 8px; }
  .topbar-note { display: none; }

  .nav { padding: 16px 20px; }
  .brand { font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; }
  .brand-dim { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--sand);
    padding: 20px; z-index: 10;
  }
  header { position: relative; }
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; padding: 8px; }
  .book { padding: 13px 16px; font-size: 14px; min-height: 44px; }
  .book-long { display: none; }

  .hero { padding: 32px 20px 24px; gap: 16px; }
  .hero-text { gap: 16px; }
  .hero h1 { font-size: 34px; line-height: 1.35; gap: 4px 8px; }
  .slot { padding: 0 24px 2px 2px; }
  .hero-lead { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 0; }
  .cta { display: block; text-align: center; padding: 16px; font-size: 16px; }
  .hero-note { text-align: center; }

  .hero-media { height: 420px; }
  .hero-frame { inset: 0; }
  .trip-card { display: none; }

  .answer { padding: 24px 20px 0; }
  .answer-grid {
    grid-template-columns: 1fr; background: #ffffff; border: 1px solid var(--sand);
    border-radius: 8px; padding: 20px; gap: 12px;
  }
  .answer-cell, .answer-cell--main, .answer-cell--cost, .answer-cell--who {
    padding: 0; border-left: 0; background: none;
  }
  .answer-eyebrow--hide { display: none; }
  .answer-title { font-size: 20px; line-height: 1.3; }
  .answer-body { font-size: 15px; line-height: 1.5; }
  .answer-cell--cost {
    border-top: 1px solid var(--sand); padding-top: 12px;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px;
  }
  .answer-price { font-size: 24px; align-self: center; }
  .answer-pricenote { font-size: 13px; }
  .who-photo { width: 40px; height: 40px; }
  .who-name { font-size: 14px; font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 600; }
  .who-role { font-size: 13px; }
  .who-text { display: none; }

  .problems { padding: 40px 20px 8px; gap: 24px; }
  .problem { gap: 8px; padding-top: 16px; }
  .problem h2 { font-size: 20px; }
  .problem p { font-size: 15px; line-height: 1.5; }

  .split, .split--flip, .split--vet { padding: 40px 20px 0; gap: 16px; }
  .split-text { gap: 16px; }
  .split-media, .split-media--short, .split-media--tall { height: 240px; }
  .split--flip .split-media--short { height: 220px; }
  .split--vet .split-media--tall { height: 360px; order: -1; }
  .eyebrow { font-size: 11px; }
  .split-title { font-size: 28px; line-height: 1.2; }
  .split-body { font-size: 16px; }
  .split-cta { flex-direction: column; align-items: stretch; gap: 0; }
  .split-price { display: none; }
  .vet-name { font-size: 28px; }
  .vet-role { font-size: 15px; }

  .fees { padding: 44px 20px 0; }
  .fees-title { font-size: 26px; margin-bottom: 16px; }
  .fee-row { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; font-size: 15px; }
  .fee-desc { grid-column: 1 / -1; font-size: 14px; color: var(--body-text); }
  .fees-note { font-size: 13px; line-height: 1.5; }

  .norway { padding: 40px 20px 0; }
  .norway-card { padding: 28px 24px; gap: 12px; }
  .norway-title { font-size: 20px; line-height: 1.3; }
  .norway-cta { align-items: stretch; }
  .book--light { display: block; text-align: center; padding: 16px; margin-top: 8px; }
  .norway-note { display: none; }

  .promises { padding: 36px 20px 40px; gap: 24px; }
  .promise h2 { font-size: 24px; }

  footer { margin-top: 40px; padding: 24px 20px 40px; line-height: 1.6; font-size: 12px; }
  .foot-row { flex-direction: column; gap: 8px; }
}

@media print {
  .topbar, .nav-actions, .route-strip, .hero-media, noscript, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .fee-row, .norway-card, .split { break-inside: avoid; }
  .cta, .book { border: 1px solid #000; background: none !important; color: #000 !important; }
}
