/* Discovery Yacht Charters - Maritime theme overrides for Slides */

:root {
  --navy: #1A3A5C;
  --navy-light: #2E5A88;
  --gold: #D4A843;
  --gold-dark: #B8912F;
  --bg: #FFFFFF;
  --surface: #F5F7FA;
  --text: #1A1A2E;
  --text-light: #4A5568;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif !important;
  color: var(--navy);
  font-weight: 700;
}

/* Slide sections */
.slide {
  background-color: var(--bg);
}

.slide .content {
  color: var(--text);
}

.slide .content p {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05em;
}

.slide .content a {
  color: var(--navy-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,58,92,0.2);
}

.slide .content a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.slide .content img {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Site navigation - standalone, not dependent on Slides */
.site-nav {
  background-color: var(--navy);
  padding: 1em 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75em;
}

.nav-brand {
  color: var(--gold) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-brand:hover {
  color: #fff !important;
}

.nav-links a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 1.25em;
  border-bottom: none !important;
}

.nav-links a:hover {
  color: var(--gold) !important;
}

.nav-links a.active {
  color: var(--gold) !important;
}

@media screen and (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links a {
    margin-left: 0;
    margin-right: 1em;
  }
}

/* Override Slides framework scroll-locking - we want normal page scrolling */
html, body {
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
  height: auto !important;
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
}

/* All slides flow as normal page sections */
.slide {
  min-height: auto !important;
  height: auto !important;
  position: relative !important;
  scroll-snap-align: none !important;
  overflow: visible !important;
  padding: 3em 0;
}

.slide .content {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Content slide */
.slide[data-name="content"] {
  background-color: var(--bg) !important;
  padding: 2em 0;
}

/* Footer needs less padding */

.slide[data-name="footer"] {
  padding: 2em 0 !important;
}

/* Hero slide keeps more padding */
.slide[data-name="hero"] {
  padding: 6em 0 !important;
}

/* Make sure all text and elements inside slides are visible */
.slide .container,
.slide .wrap,
.slide [class*="fix-"],
.slide [class*="ae-"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative !important;
}

.slide[data-name="content"] h2 {
  color: var(--navy);
  font-size: 1.4em;
  margin-top: 1.5em;
}

.slide[data-name="content"] h3 {
  color: var(--navy);
  font-size: 1.15em;
  margin-top: 1.25em;
}

/* Footer slide */
.slide[data-name="footer"] {
  background-color: var(--navy) !important;
  min-height: auto !important;
  padding: 2em 0 !important;
}

.slide[data-name="footer"] a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  border-bottom: none;
}

.slide[data-name="footer"] a:hover {
  color: var(--gold);
}

.slide[data-name="footer"] p {
  color: rgba(255,255,255,0.4) !important;
}

/* White slide variant for alternating sections */
.whiteSlide {
  background-color: var(--surface) !important;
}

/* Buttons */
.button {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
}

.button.rounded {
  background-color: var(--gold) !important;
  color: var(--navy) !important;
}

.button.rounded:hover {
  background-color: var(--gold-dark) !important;
}

.button.rounded.empty {
  background: transparent !important;
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}

/* Harbour card for geo domain links */
.harbour-card {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  padding: 1.25em 1.75em;
  margin: 2em 0;
  border-radius: 0 6px 6px 0;
}

.harbour-card h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.05em;
}

.harbour-card a {
  color: var(--navy-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
}

/* Route info box */
.route-box {
  background: var(--surface);
  border-left: 4px solid var(--navy);
  padding: 1.25em 1.75em;
  margin: 1.5em 0;
  border-radius: 0 6px 6px 0;
}

.route-box h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1em;
}

/* Homepage hero slide override */
.slide[data-name="hero"] {
  background-color: var(--navy) !important;
}

.slide[data-name="hero"] h1,
.slide[data-name="hero"] h2 {
  color: #fff !important;
}

.slide[data-name="hero"] p {
  color: rgba(255,255,255,0.85) !important;
}
