/* =========================================================
   Cabo San Lucas Boats — Design System
   Coastal editorial theme: deep sea blue + warm sand + sunset
   ========================================================= */

:root {
  /* Core palette (5 total: 1 brand + neutrals + 1 accent) */
  --sea:        #0e4d64; /* deep sea blue — brand primary */
  --sea-deep:   #0a3a4d; /* darker sea for text on light / footer */
  --sand:       #f6efe4; /* warm sand — page background */
  --sand-card:  #fffdf9; /* near-white card surface */
  --ink:        #16302f; /* near-black text (teal-black) */
  --sunset:     #e2703a; /* sunset accent — CTAs */
  --sunset-dark:#c85a28; /* CTA hover */

  /* Derived */
  --sea-soft:   #e2ecef; /* soft tint of sea */
  --line:       #e3dccb; /* hairline on sand */
  --muted:      #5c6b6a; /* muted body text */
  --white:      #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,48,47,.06), 0 1px 3px rgba(16,48,47,.05);
  --shadow-md: 0 8px 24px rgba(10,58,77,.10);
  --shadow-lg: 0 24px 60px rgba(10,58,77,.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--sea-deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { text-wrap: pretty; }
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sunset);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 4vw, 56px); }
.grid { display: grid; gap: 24px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.narrow { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sunset); color: var(--white); box-shadow: 0 6px 18px rgba(226,112,58,.35); }
.btn--primary:hover { background: var(--sunset-dark); }
.btn--sea { background: var(--sea); color: var(--white); }
.btn--sea:hover { background: var(--sea-deep); }
.btn--ghost { background: transparent; color: var(--sea-deep); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--sea); background: var(--sea-soft); }
.btn--light { background: var(--white); color: var(--sea-deep); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,239,228,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--sea-deep); }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-family: var(--font-sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sunset); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .93rem; font-weight: 500; color: var(--sea-deep); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--sunset); transition: width .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .nav-cta-mobile { display: none; }
.nav .caret { width: 13px; height: 13px; vertical-align: -1px; display: inline-block; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; color: var(--sea-deep); }
.nav-toggle svg { width: 24px; height: 24px; }

/* Dropdown for "Tours" */
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--sand-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: all .18s ease; z-index: 120;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--sea-soft); }
.dropdown a strong { font-size: .92rem; color: var(--sea-deep); }
.dropdown a span { font-size: .78rem; color: var(--muted); font-weight: 400; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: clamp(40px, 5vw, 72px); }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 52ch; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-serif); font-size: 1.5rem; color: var(--sea-deep); display: block; }
.hero-stats .stat span { font-size: .8rem; color: var(--muted); }

.media-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(10,58,77,.82); color: var(--white); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; display: flex; align-items: center; gap: 8px;
}
.media-badge svg { width: 15px; height: 15px; }

/* ---------- Booking widget wrap ---------- */
.booking-wrap {
  background: var(--sand-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 18px; margin-top: 6px;
}
.booking-wrap .booking-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.booking-wrap .booking-head svg { width: 20px; height: 20px; color: var(--sea); }
.booking-wrap .booking-head b { font-family: var(--font-sans); font-size: .95rem; color: var(--sea-deep); }
.booking-wrap .booking-head .pill { margin-left: auto; font-size: .72rem; background: var(--sea-soft); color: var(--sea-deep); padding: 3px 10px; border-radius: 999px; font-weight: 600; }

/* ---------- Booking cards (self-contained, always render) ---------- */
.book-card {
  background: var(--sand-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.book-card__media img { width: 100%; height: 100%; object-fit: cover; }
.book-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--sunset); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
  letter-spacing: .02em;
}
.book-card__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.book-card__title { font-family: var(--font-serif); font-size: 1.16rem; line-height: 1.25; color: var(--sea-deep); }
.book-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.book-card__facts .star { color: var(--sunset); font-weight: 700; }
.book-card__facts .dot { opacity: .5; }
.book-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.book-card__price { display: flex; align-items: baseline; gap: 4px; }
.book-card__price small { font-size: .72rem; color: var(--muted); }
.book-card__price b { font-family: var(--font-serif); font-size: 1.5rem; color: var(--sea-deep); line-height: 1; }
.book-card__price span { font-size: .74rem; color: var(--muted); }

/* Featured booking card used in the hero (image on top, prominent CTA) */
.book-card--hero { box-shadow: var(--shadow-lg); }
.book-card--hero .book-card__media { aspect-ratio: 16 / 9; }
.book-card--hero .book-card__body { padding: 22px; gap: 14px; }
.book-card--hero .book-card__title { font-size: 1.34rem; }
.book-card--hero .btn { width: 100%; justify-content: center; }
.book-card__note { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.book-card__note svg { width: 14px; height: 14px; color: var(--sea); flex: 0 0 auto; }

/* Grid of individual booking cards */
.gyg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.gyg-grid > .book-card { min-width: 0; }

/* ---------- Disclaimer ---------- */
.disclaimer-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; color: var(--muted);
  background: var(--sea-soft); padding: 5px 12px; border-radius: 999px; cursor: help;
  position: relative;
}
.disclaimer-chip svg { width: 13px; height: 13px; }
.disclaimer-chip .tip {
  position: absolute; bottom: calc(100% + 10px); left: 0;
  width: min(320px, 78vw); background: var(--sea-deep); color: #eaf3f5;
  padding: 12px 14px; border-radius: 10px; font-size: .78rem; line-height: 1.5;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; z-index: 60;
}
.disclaimer-chip:hover .tip, .disclaimer-chip:focus .tip { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Section hub / cards ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 12px; display: inline-block; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--sand-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-tag { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--sea-deep); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.22rem; }
.card-body p { font-size: .93rem; color: var(--muted); flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-meta .price { font-size: .9rem; color: var(--sea-deep); font-weight: 600; }
.card-link { font-size: .9rem; font-weight: 600; color: var(--sunset); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .fi { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h4 { font-family: var(--font-sans); font-size: .98rem; color: var(--sea-deep); margin-bottom: 3px; }
.feature p { font-size: .84rem; color: var(--muted); }

/* ---------- Article / long-form content ---------- */
.article { max-width: 760px; }
.article h2 { margin-top: 44px; margin-bottom: 14px; }
.article h3 { margin-top: 28px; margin-bottom: 10px; color: var(--ink); }
.article p { margin-bottom: 16px; color: #2b3d3c; }
.article ul.bullets { margin: 0 0 18px; display: grid; gap: 9px; }
.article ul.bullets li { position: relative; padding-left: 26px; color: #2b3d3c; }
.article ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--sunset); transform: rotate(45deg); }
.article a.inline { color: var(--sea); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.article a.inline:hover { color: var(--sunset); }

/* Content layout with sticky sidebar */
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 20px; }
.side-card { background: var(--sand-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h4 { font-family: var(--font-sans); font-size: 1rem; color: var(--sea-deep); margin-bottom: 12px; }
.side-card .toc a { display: block; padding: 6px 0; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.side-card .toc a:last-child { border-bottom: none; }
.side-card .toc a:hover { color: var(--sunset); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .92rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table caption { text-align: left; font-size: .8rem; color: var(--muted); padding-bottom: 8px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--sea); color: var(--white); font-weight: 600; font-size: .85rem; }
.data-table tbody tr:nth-child(even) { background: var(--sea-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Callout / note */
.note { background: var(--sea-soft); border-left: 4px solid var(--sea); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: .92rem; color: var(--sea-deep); }
.note strong { color: var(--sea-deep); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--sand-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--sea-deep); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sunset); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 16px; color: #2b3d3c; font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--sea-deep), var(--sea)); color: #eaf3f5; border-radius: 22px; padding: clamp(30px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfe0e4; max-width: 56ch; margin: 12px auto 24px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); padding-block: 18px; }
.breadcrumb a:hover { color: var(--sunset); }
.breadcrumb span { color: var(--line); }

/* Page hero (interior) */
.page-hero { padding-block: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 36px); }
.page-hero .eyebrow { margin-bottom: 12px; display: inline-block; }
.page-hero h1 { margin-bottom: 16px; max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero-media { margin-top: 28px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21 / 8; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Two-col interior hero with widget */
.interior-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.interior-hero--single { grid-template-columns: 1fr; max-width: 820px; }

/* Category cards (link-style booking cards used on hub pages) */
.cat-card { text-decoration: none; color: inherit; }
.cat-card:hover .cat-card__link { color: var(--sunset); }
.cat-card__desc { font-size: .9rem; color: var(--muted); line-height: 1.5; flex: 1; }
.cat-card__link { font-weight: 600; font-size: .9rem; color: var(--sea); margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea-deep); color: #cfe0e4; padding-block: 56px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: var(--sunset); }
.footer-about { font-size: .9rem; color: #a9c2c8; max-width: 34ch; margin-top: 14px; }
.footer-col h5 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .9rem; color: #a9c2c8; padding: 5px 0; }
.footer-col a:hover { color: var(--sunset); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .82rem; color: #8fa9af; }
.footer-disclaimer { font-size: .78rem; color: #8fa9af; line-height: 1.6; margin-top: 18px; max-width: 68ch; }

/* ---------- Legal / text pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 6px 0 14px; }
.legal h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 22px; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sand-card); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft);
}
.form-status { font-size: .92rem; color: var(--muted); min-height: 1.2em; }
.form-status.ok { color: var(--sea-deep); font-weight: 600; }

/* ---------- Utilities ---------- */
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .interior-hero { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; order: -1; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--sand-card); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .has-drop .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; min-width: 0; grid-template-columns: 1fr; padding: 0 0 0 12px; }
  .nav.open .btn, .nav.open .nav-cta-mobile { display: inline-flex; margin-top: 12px; }
  .cards, .features, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
