/* cwaNCME — CMEatSEA rebuild, styled after AmericanSeminar.com's cleaner,
   modern layout language, but kept on CMEatSEA's own brand palette (same
   values as cwaWCME/site.css) and logo. This is a from-scratch layout, not
   a WordPress replica like cwaWCME. */

:root {
  --cme-blue: #004677;
  --cme-blue-dark: #002952;
  --cme-gold: #a26f1d;
  --cme-gold-border: #ba8645;
  --cme-gold-btn: #9b7045;
  --cme-yellow: #f2b34e;
  --cme-yellow-light: #fbd79d;
  --cme-sand: #faf6ee;
}

body {
  font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #fff;
  color: #23343f;
}

.text-blue   { color: var(--cme-blue) !important; }
.text-blue-dark { color: var(--cme-blue-dark) !important; }
.text-gold   { color: var(--cme-gold) !important; }
.text-yellow { color: var(--cme-yellow) !important; }

.bg-sand { background-color: var(--cme-sand); }
.bg-blue-dark { background-color: var(--cme-blue-dark) !important; }
.bg-blue-gradient {
  background: linear-gradient(135deg, var(--cme-blue) 0%, var(--cme-blue-dark) 100%);
}

.btn-gold {
  color: #fff !important;
  background-color: var(--cme-gold-btn);
  border-color: var(--cme-gold-btn);
  font-weight: 600;
  padding: .65rem 1.75rem;
  border-radius: .5rem;
}
.btn-gold:hover { background-color: #7f5c38; border-color: #7f5c38; color: #fff !important; }

.btn-outline-light-gold {
  color: #fff !important;
  border: 2px solid var(--cme-yellow-light);
  border-radius: .5rem;
  font-weight: 600;
  padding: .6rem 1.6rem;
  background: transparent;
}
.btn-outline-light-gold:hover { background: var(--cme-yellow-light); color: var(--cme-blue-dark) !important; }

/* ── Top utility bar ─────────────────────────────────────── */
.top-bar { background: var(--cme-blue-dark); font-size: .85rem; border-bottom: 2px solid var(--cme-gold); }
.top-bar a { color: var(--cme-yellow-light); text-decoration: none; }
.top-bar a:hover { color: var(--cme-yellow); }
.top-bar i { color: var(--cme-yellow); }

/* ── Header / nav ────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid #f1e3cc; }
.site-logo img { width: 190px; }
.main-nav .nav-link {
  color: var(--cme-blue) !important;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding-bottom: .3rem !important;
}
.main-nav .nav-link:not(.btn-gold)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cme-gold);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.main-nav .nav-link:hover { color: var(--cme-gold) !important; }
.main-nav .nav-link:not(.btn-gold):hover::after { transform: scaleX(1); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cme-blue) 0%, var(--cme-blue-dark) 100%);
  color: #fff;
  padding: 4.5rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: url("/images/wave.svg") repeat-x bottom;
  opacity: .25;
}
.hero h1 {
  font-weight: 700;
  font-size: 2.85rem;
  line-height: 1.15;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--cme-yellow-light);
  max-width: 620px;
  margin-bottom: 5.5rem;
}

/* Sailing picker — overlaps the hero bottom edge like a booking widget */
.sailing-picker {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 20, 40, .25);
  padding: 1.75rem;
  margin-top: -5rem;
  position: relative;
  z-index: 2;
}
.sailing-picker label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cme-blue);
  margin-bottom: .25rem;
}
.sailing-picker select,
.sailing-picker input {
  border: 1px solid #dfe3e7;
  border-radius: .5rem;
  padding: .6rem .75rem;
}
.sailing-picker select:focus,
.sailing-picker input:focus {
  outline: none;
  border-color: var(--cme-gold-border);
  box-shadow: 0 0 0 .2rem rgba(162, 111, 29, .15);
}

/* ── Section headings ────────────────────────────────────── */
.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cme-gold);
}
.section-title { font-weight: 700; color: var(--cme-blue-dark); position: relative; padding-bottom: .6rem; }
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--cme-gold-btn), var(--cme-yellow));
  border-radius: 2px;
}

/* ── Sailing cards ───────────────────────────────────────── */
.sailing-card {
  border: 1px solid #eee;
  border-top: 3px solid var(--cme-gold-border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem rgba(0, 20, 40, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.sailing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 20, 40, .12);
}
.sailing-card__photo {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.sailing-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--cme-gold-btn);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sailing-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.sailing-card__dest { font-weight: 700; font-size: 1.15rem; color: var(--cme-blue-dark); }
.sailing-card__meta { font-size: .85rem; color: #6b7680; }
.sailing-card__meta i { width: 1.1rem; color: var(--cme-gold); }

/* ── Difference / feature strip ──────────────────────────── */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cme-sand);
  color: var(--cme-gold);
  border: 2px solid var(--cme-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto .9rem;
}

/* ── Testimonials hero box ──────────────────────────────── */
.testimonial-panel {
  background: linear-gradient(135deg, var(--cme-blue-dark) 0%, #001b38 100%);
  border-radius: 1.25rem;
  color: #fff;
}
.testimonial-panel .quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--cme-yellow);
  font-family: Georgia, serif;
}
#testimonialCarousel .carousel-indicators [data-bs-target] { background-color: #fff; }
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon { filter: invert(0); }

/* ── Call to action (placeholder pending reference image) ─── */
.cta-banner {
  background: linear-gradient(120deg, var(--cme-gold-btn) 0%, var(--cme-gold) 100%);
  border-radius: 1.25rem;
  color: #fff;
  padding: 3rem 2.5rem;
}
.cta-banner h2 { font-weight: 700; }
.cta-banner .btn-light-cta {
  background: #fff;
  color: var(--cme-gold-btn) !important;
  font-weight: 700;
  border-radius: .5rem;
  padding: .75rem 2rem;
  border: none;
}
.cta-banner .btn-light-cta:hover { background: var(--cme-yellow-light); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--cme-blue-dark); color: rgba(255,255,255,.65); border-top: 3px solid var(--cme-gold); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--cme-yellow); }

@media (max-width: 767.98px) {
  .hero { padding: 3rem 0 6rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lede { margin-bottom: 2rem; }
  .sailing-picker { margin-top: -3.5rem; }
}

/* ── Sailing detail pages (e.g. past sailings) ──────────────── */
.detail-hero { padding: 3.5rem 0 3rem; }
.breadcrumb-bar { background: var(--cme-sand); font-size: .85rem; }
.breadcrumb-bar a { color: var(--cme-blue); text-decoration: none; font-weight: 600; }
.breadcrumb-bar a:hover { color: var(--cme-gold); }

.badge-gold {
  display: inline-block;
  background: var(--cme-gold-btn);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .35rem .9rem;
  border-radius: 20px;
}
.badge-gold-outline {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--cme-yellow-light);
  color: var(--cme-yellow-light);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .32rem .85rem;
  border-radius: 20px;
}

.speaker-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 .5rem 1.5rem rgba(0, 20, 40, .05);
}
.speaker-card .speaker-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cme-sand);
  color: var(--cme-gold);
  border: 2px solid var(--cme-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto .75rem;
}
.speaker-card .speaker-name { font-weight: 700; color: var(--cme-blue-dark); }

.itinerary-list { list-style: none; padding: 0; margin: 0; }
.itinerary-list li {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px dashed #e3d9c4;
}
.itinerary-list li:last-child { border-bottom: none; }
.itinerary-list .port-marker {
  color: var(--cme-gold);
  font-size: 1rem;
  flex: 0 0 auto;
}
.itinerary-list .port-name { font-weight: 700; color: var(--cme-blue-dark); }
.itinerary-list .port-note { color: #6b7680; font-size: .9rem; }

.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: .75rem; overflow: hidden; }
.pricing-table thead th {
  background: var(--cme-blue-dark);
  color: var(--cme-yellow-light);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .85rem 1rem;
  text-align: left;
}
.pricing-table tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #f0ead9;
  background: #fff;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody td:first-child { font-weight: 700; color: var(--cme-blue-dark); }
.pricing-table .companion-free { color: var(--cme-gold); font-weight: 700; }

.inclusion-list { list-style: none; padding: 0; margin: 0; }
.inclusion-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .5rem 0;
}
.inclusion-list li i { color: var(--cme-gold); margin-top: .25rem; }

.addon-panel {
  background: var(--cme-sand);
  border: 1px solid #ecdfc0;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
}

.hero-photo-frame {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.5rem rgba(0, 20, 40, .18);
}
.hero-photo-frame img { width: 100%; height: auto; display: block; }

.map-frame {
  border: 1px solid #eee;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 .5rem 1.5rem rgba(0, 20, 40, .06);
}
.map-frame img { width: 100%; height: auto; display: block; }

.price-msrp { color: #9aa4ab; text-decoration: line-through; font-size: .95rem; margin-right: .4rem; }
.price-now { color: #dc3545; font-weight: 700; }

.alumni-banner {
  background: var(--cme-sand);
  border-left: 4px solid var(--cme-gold);
  border-radius: .5rem;
  padding: .9rem 1.25rem;
  color: var(--cme-gold-btn);
  font-weight: 700;
}

.sidebar-price-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 20, 40, .06);
  padding: 1.5rem;
}
.sidebar-price-box .from-price { color: #dc3545; font-weight: 700; font-size: 1.4rem; }
.sidebar-price-box .fine-print { color: #6b7680; font-size: .78rem; }

.expired-badge {
  display: inline-block;
  background: #eee;
  color: #6b7680;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--cme-blue);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { color: var(--cme-gold); }

.bio-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cme-gold-border);
}

.spec-table { width: 100%; }
.spec-table td { padding: .35rem .5rem; border-bottom: 1px solid #f0ead9; }
.spec-table td:first-child { font-weight: 700; color: var(--cme-blue-dark); width: 40%; }

.day-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--cme-blue-dark);
  color: var(--cme-yellow-light);
  font-weight: 700;
  flex: 0 0 auto;
}

.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.photo-strip img { width: 100%; height: 150px; object-fit: cover; border-radius: .6rem; }

.ratio-16x9 { position: relative; width: 100%; padding-top: 56.25%; border-radius: 1rem; overflow: hidden; }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
