/* Drake Supper Club — homepage + BVI shared styles. Brand-matched to sicily.sailchecker.com. */

:root {
  --sc-navy:        #0e3a5c;
  --sc-gold:        #e8b448;
  --sc-teal:        #1c75bc;
  --drake-blue:     #1c75bc;
  --drake-light:    #5299d3;
  --sc-white:       #ffffff;
  --sc-light:       #f3f6fa;
  --sc-cream:       #faf8f3;
  --font-sans:      "Open Sans", system-ui, sans-serif;
  --font-heading:   "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--sc-navy);
  line-height: 1.6;
  background: var(--sc-white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--sc-teal); text-decoration: none; }
a:hover { color: var(--sc-gold); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Top bar ===== */
.topbar {
  border-bottom: 1px solid rgba(28,117,188,0.08);
  background: var(--sc-white);
}
.topbar .container { padding: 1.25rem 1.5rem; }
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.topbar .logo img.shield { height: 36px; width: auto; }
.topbar .logo img.wordmark { height: 22px; width: auto; }
.topbar .crumbs {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sc-teal);
}
.topbar .crumbs a { color: var(--sc-teal); }
.topbar .crumbs a:hover { color: var(--sc-gold); }

/* ===== Drake home hero (cream, brand-led) ===== */
.home-hero {
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--sc-cream) 0%, var(--sc-white) 100%);
}
.home-hero .shield {
  height: clamp(120px, 16vw, 168px);
  width: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
.home-hero .wordmark {
  height: clamp(36px, 5vw, 56px);
  width: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
.home-hero .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--sc-teal);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

/* ===== About / explanation ===== */
.about {
  padding: 1rem 1.5rem 4rem;
  text-align: center;
  background: var(--sc-white);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
}
.about p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--sc-navy);
  margin-bottom: 1.25rem;
}
.about p strong { color: var(--sc-teal); }
.about .pull {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--sc-teal);
  margin: 2rem auto 0;
  max-width: 56ch;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(28,117,188,0.18);
  border-bottom: 1px solid rgba(28,117,188,0.18);
}

/* ===== Trip cards ===== */
.trips-section {
  padding: 3rem 1.5rem 5rem;
  background: var(--sc-light);
}
.trips-section h2 {
  font-family: var(--font-heading);
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--sc-teal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.trips-section .sub {
  text-align: center;
  font-size: 0.92rem;
  color: var(--sc-navy);
  opacity: 0.75;
  margin-bottom: 2.5rem;
}

.trips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.trip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(28,117,188,0.18);
  border-radius: 14px;
  background: var(--sc-white);
  text-decoration: none;
  color: var(--sc-navy);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 4px 14px rgba(14,58,92,0.07);
  min-height: 240px;
}
.trip-card:hover {
  border-color: var(--sc-gold);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(14,58,92,0.14);
}
.trip-card.no-link { cursor: default; }
.trip-card.no-link:hover {
  border-color: rgba(28,117,188,0.18);
  transform: none;
  box-shadow: 0 4px 14px rgba(14,58,92,0.07);
}
.trip-card .badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.badge-past   { background: rgba(14,58,92,0.08); color: var(--sc-navy); }
.badge-active { background: var(--sc-gold); color: var(--sc-navy); }
.badge-soon   { background: rgba(28,117,188,0.10); color: var(--drake-blue); border: 1px solid rgba(28,117,188,0.3); }
.trip-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 1rem 0 0.35rem;
  color: var(--sc-teal);
  letter-spacing: -0.01em;
}
.trip-card .where {
  font-size: 0.82rem;
  color: var(--sc-navy);
  opacity: 0.7;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}
.trip-card p {
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  color: var(--sc-navy);
  flex: 1;
}
.trip-card .arrow {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-teal);
  margin-top: auto;
}
.trip-card:hover:not(.no-link) .arrow { color: var(--sc-gold); }
.trip-card .meta-note {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--sc-navy);
  opacity: 0.55;
  font-style: italic;
}

/* ===== BVI page-specific hero (photo background) ===== */
.bvi-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-image: url('/photos/bvi-27/bvi-yacht-charter-6.jpg');
  color: var(--sc-white);
  overflow: hidden;
}
.bvi-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,58,92,0.20) 0%, rgba(14,58,92,0.60) 100%);
  pointer-events: none;
}
.bvi-hero .container { position: relative; z-index: 1; padding: 6rem 1.5rem; }
.bvi-hero .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sc-gold);
  margin-bottom: 1.25rem;
}
.bvi-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--sc-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.bvi-hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin: 0 0 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ===== Buttons / CTAs (shared) ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--sc-gold);
  color: var(--sc-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 22px rgba(232,180,72,0.32);
  transition: transform 120ms ease, box-shadow 120ms ease;
  border: none;
  cursor: pointer;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(232,180,72,0.45);
  color: var(--sc-navy);
}
.cta-ghost {
  background: transparent;
  color: var(--sc-white);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.cta-ghost:hover {
  border-color: var(--sc-gold);
  color: var(--sc-gold);
  background: rgba(0,0,0,0.15);
}
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ===== BVI body sections ===== */
.bvi-body {
  padding: 4.5rem 0;
  background: var(--sc-white);
}
.bvi-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--sc-teal);
  margin-bottom: 1rem;
}
.bvi-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sc-teal);
  margin: 1.5rem 0 0.5rem;
}
.bvi-body p { margin-bottom: 1rem; max-width: 64ch; }
.bvi-body ul { padding-left: 1.25rem; max-width: 64ch; }
.bvi-body li { margin: 0.35rem 0; }

.bvi-gallery {
  background: var(--sc-light);
  padding: 4rem 0;
}
.bvi-gallery .strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.bvi-gallery figure { margin: 0; }
.bvi-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 6px 18px rgba(14,58,92,0.15);
}
.bvi-gallery figcaption {
  font-size: 0.8rem;
  color: var(--sc-navy);
  opacity: 0.7;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== Modal (Expression of interest) ===== */
dialog.eoi {
  border: none;
  border-radius: 14px;
  background: var(--sc-white);
  color: var(--sc-navy);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 2rem);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(14,58,92,0.45);
}
dialog.eoi::backdrop {
  background: rgba(14,58,92,0.55);
  backdrop-filter: blur(4px);
}
dialog.eoi form { padding: 2rem 2rem 1.5rem; }
dialog.eoi h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  color: var(--sc-teal);
}
dialog.eoi .sub {
  color: var(--sc-navy);
  opacity: 0.75;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
dialog.eoi label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sc-navy);
  opacity: 0.7;
  margin: 0 0 0.4rem;
}
dialog.eoi input,
dialog.eoi textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  margin: 0 0 1.1rem;
  background: var(--sc-light);
  border: 1px solid rgba(28,117,188,0.18);
  border-radius: 8px;
  color: var(--sc-navy);
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
dialog.eoi textarea { resize: vertical; min-height: 88px; }
dialog.eoi input:focus,
dialog.eoi textarea:focus {
  outline: none;
  border-color: var(--sc-teal);
  background: var(--sc-white);
}
dialog.eoi .actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
dialog.eoi .cta-ghost {
  background: transparent;
  color: var(--sc-navy);
  border: 1px solid rgba(14,58,92,0.3);
  box-shadow: none;
}
dialog.eoi .cta-ghost:hover {
  border-color: var(--sc-teal);
  color: var(--sc-teal);
  background: transparent;
}
.status {
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  color: var(--sc-navy);
  opacity: 0.75;
}
.status.ok { color: #2c7a3a; opacity: 1; }
.status.err { color: #b13d3d; opacity: 1; }

/* ===== Footer ===== */
.site-footer {
  background: var(--sc-navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}
.site-footer a { color: var(--sc-gold); text-decoration: none; }
.site-footer a:hover { color: var(--sc-white); }

/* ===== Mobile ===== */
@media (max-width: 700px) {
  .topbar .logo img.shield { height: 30px; }
  .topbar .logo img.wordmark { display: none; }
  .home-hero { padding: 3rem 1.25rem 2rem; }
  .about { padding: 0.5rem 1.25rem 3rem; }
  .trips-section { padding: 2.5rem 1.25rem 4rem; }
  .bvi-hero .container { padding: 4.5rem 1.25rem; }
  .bvi-body { padding: 3rem 0; }
  .bvi-gallery img { height: 200px; }
  dialog.eoi {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
    margin: 0 0 auto 0;
    position: fixed;
    bottom: 0; left: 0; top: auto;
  }
}

/* ===== Featured image (banner above the home hero) ===== */
.featured {
  width: 100%;
  height: clamp(280px, 42vh, 460px);
  overflow: hidden;
  background: var(--sc-cream);
  position: relative;
}
.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured::after {
  /* Soft fade to the cream of the hero below — keeps the brand block grounded */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent 0%, var(--sc-cream) 100%);
  pointer-events: none;
}
/* Pull the home-hero up slightly so it tucks into the fade */
.home-hero { padding-top: 2.5rem; }

@media (max-width: 700px) {
  .featured { height: clamp(220px, 36vh, 320px); }
}

/* ===== Force light-mode rendering + bulletproof image sizing =====
   Opera/Vivaldi's "force dark on web pages" mode can both invert colours and
   strip image dimension constraints — these rules push back as far as a
   stylesheet can.  */
:root { color-scheme: light only; }
.home-hero .shield {
  max-height: 168px !important;
  max-width: 168px !important;
  width: auto !important;
  height: auto !important;
}
.home-hero .wordmark {
  max-height: 56px !important;
  max-width: min(520px, 90vw) !important;
  width: auto !important;
  height: auto !important;
}
