:root {
  --brand-navy: #0b3c49;
  --brand-teal: #0f6674;
  --brand-teal-light: #e7f1f2;
  --brand-gold: #c9a227;
  --brand-gold-dark: #a9861d;
  --brand-ink: #1f2933;
  --brand-muted: #5b6b73;
  --brand-bg: #f7f9fa;
}

html {
  font-size: 19px;
}

@media (min-width: 768px) {
  html {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 21px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  padding-bottom: 84px;
  background-color: var(--brand-bg);
  color: var(--brand-ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.display-4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--brand-navy);
}

a {
  color: var(--brand-teal);
}

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

.text-muted {
  color: var(--brand-muted) !important;
}

/* Navbar */
.site-navbar {
  background-color: var(--brand-navy) !important;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.site-navbar .navbar-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  color: #fff !important;
  letter-spacing: 0.02em;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-logo {
  height: 84px;
  width: auto;
  display: block;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
  white-space: nowrap;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Contact stands apart from the plain text nav links — a filled button,
   last in the list, echoing the main site's own treatment of its Contact
   link (there it's a solid navy pill; ours uses the brand gold accent
   since our navbar background is already navy). */
.site-navbar .nav-contact-btn {
  background-color: var(--brand-gold);
  color: var(--brand-navy) !important;
  border-radius: 0.375rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.site-navbar .nav-contact-btn:hover {
  background-color: var(--brand-gold-dark);
  color: var(--brand-navy) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-outline-secondary {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn-outline-secondary:hover {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--brand-gold);
}

/* Cards */
.card {
  border: 1px solid rgba(11, 60, 73, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(11, 60, 73, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 60, 73, 0.12);
}

.card-title {
  color: var(--brand-navy);
}

/* Hero (home page + entity Show pages) — full-bleed, edge to edge,
   regardless of the parent .container's max-width. */
.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--brand-navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2rem;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  text-align: center;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-sm {
  min-height: 40vh;
  margin-bottom: 1.5rem;
}

/* The home page hero runs taller than the entity pages' so the advisor
   card has more image to float over. */
.hero-home {
  min-height: 82vh;
  margin-bottom: 0;
}

/* Card thumbnails */
.card-img-top {
  height: 180px;
  object-fit: cover;
}

.hero-tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* Tour tiles — a horizontal photo + title + text-link row, used for
   Rivers/Destinations/CruiseLines/Cruises listings in place of the
   heavier vertical Bootstrap card. */
.tile {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  padding: 0.6rem;
  margin: -0.6rem -0.6rem 1.15rem;
  border-radius: 0.5rem;
  transition: background-color 0.18s ease;
}

.tile-img {
  width: 180px;
  height: 135px;
  object-fit: cover;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.tile-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile-title {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
  transition: color 0.18s ease;
}

.tile-subtitle {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  transition: color 0.18s ease;
}

.tile-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-teal);
  transition: color 0.18s ease;
}

/* "Invert" hover — the whole tile, image included, fills with brand navy
   and every line of text flips to a light color. */
.tile:hover {
  background-color: var(--brand-navy);
}

.tile:hover .tile-title,
.tile:hover .tile-subtitle,
.tile:hover .tile-subtitle.text-muted {
  color: #fff !important;
}

.port-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.port-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.port-photo {
  width: 150px;
  height: 105px;
  object-fit: cover;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.port-name {
  margin-bottom: 0.25rem;
}

.port-desc {
  margin-bottom: 0;
}

.tile:hover .tile-link {
  color: var(--brand-gold);
}

/* Advisor "pop in" card — floats over the bottom edge of the home hero,
   echoing the advisor card on shipsandtripstravel.com. */
.advisor-float-wrap {
  display: flex;
  justify-content: center;
  margin-top: -8rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.advisor-float-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(11, 60, 73, 0.22);
  padding: 1.5rem 1.75rem 1.75rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.advisor-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(11, 60, 73, 0.18);
  margin: 0.5rem 0 0.75rem;
}

.advisor-photo-lg {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(11, 60, 73, 0.18);
  flex-shrink: 0;
}

.advisor-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.advisor-name {
  margin: 0.15rem 0 0;
}

.advisor-float-card .advisor-name {
  font-size: 1.35rem;
}

.advisor-role {
  font-weight: 600;
  color: var(--brand-teal);
  margin: 0.15rem 0 0.5rem;
}

.advisor-contact {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.advisor-contact a {
  white-space: nowrap;
}

.advisor-about-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
  font-weight: 600;
}

.advisor-about-btn:hover {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

/* Short accent rule under the title on every CMS-driven page (Home, About,
   Contact, Privacy). */
.title-rule {
  width: 4rem;
  height: 3px;
  margin: 0.5rem auto 1.5rem;
  border: none;
  background-color: var(--brand-gold);
  border-radius: 2px;
  opacity: 1;
}

/* Long-form page body copy (About, Contact, etc.) — justified rather than
   the centered heading/intro above it, since centered paragraphs of prose
   read poorly at any real length. */
.page-body {
  text-align: justify;
}

/* Advisor profile block — the photo + name/role/contact header, shared by
   the home page's bio modal and the About page. */
.advisor-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* On the About page (not the home page's bio modal, which shares this same
   block) Connie's photo + name/role/contact are centered as a unit. */
.page-body .advisor-profile {
  justify-content: center;
  text-align: center;
}

/* Home page Featured / Search Cruises — side by side rather than tabbed,
   each under its own heading. */
.home-panels {
  margin-bottom: 2.5rem;
}

.home-panel-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.home-panel {
  flex: 1;
  border: 1px solid rgba(11, 60, 73, 0.1);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.featured-slide-img {
  height: 360px;
  object-fit: cover;
  border-radius: 0.375rem;
}

#featuredCarousel .carousel-caption {
  background: rgba(11, 60, 73, 0.72);
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  bottom: 1.25rem;
}

/* The site-wide h1-h6 rule sets headings to navy, which left the caption's
   title unreadable against its own navy-tinted overlay. */
#featuredCarousel .carousel-caption h5 {
  color: #fff;
}

.featured-slide-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cruise-search-form .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.search-panel {
  background-color: var(--brand-teal-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

/* Sticky advisor CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--brand-navy);
  color: #fff;
  padding: 1.1rem 1rem;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.sticky-cta-photo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.sticky-cta-btn {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.55rem 1.5rem;
  border-radius: 0.5rem;
}

.sticky-cta-btn:hover {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
}

/* Cruise detail page — keep the lead-gen card in view as the itinerary and
   cabin sections scroll past, only once the columns sit side by side. */
@media (min-width: 768px) {
  .lead-form-sticky {
    position: sticky;
    top: 1.5rem;
  }
}

/* Footer */
.site-footer {
  background-color: var(--brand-navy);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
