/*
 * SailorLove — Maritime Design System
 *
 * Palette
 * --navy:  #0a1628  (deep navy — dark sections, navbar, footer)
 * --ocean: #0d3b5e  (ocean blue — gradients, CTA section)
 * --blue:  #0077b6  (interactive — step numbers, links)
 * --gold:  #c9a843  (accent — CTA buttons, eyebrow text)
 * --sky:   #e8f4fd  (light — alternate section backgrounds)
 */

:root {
  --navy:  #0a1628;
  --ocean: #0d3b5e;
  --blue:  #0077b6;
  --gold:  #c9a843;
  --gold-hover: #d4b44f;
  --sky:   #e8f4fd;
}

/* ----------------------------------------
   Base
---------------------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ----------------------------------------
   Navbar
---------------------------------------- */
#mainNav {
  background: transparent;
  padding: 1.25rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#mainNav.scrolled {
  background: var(--navy);
  padding: 0.75rem 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

#mainNav .nav-link.active {
  color: var(--gold) !important;
}

.navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: #fff !important;
  letter-spacing: 0.3px;
}

/* ----------------------------------------
   Hero
---------------------------------------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--navy) 0%, #0d3b5e 55%, #1a6080 100%);
  background-image: linear-gradient(to bottom, rgba(10,22,40,0.72) 0%, rgba(10,22,40,0.58) 100%), url('../img/hero2.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 100px;
}

/* Subtle colour glow for depth */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(0, 119, 182, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(201, 168, 67, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Large faint anchor decoration */
.hero-anchor-bg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22rem;
  opacity: 0.04;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 18px)); }
}

.hero-eyebrow {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 3.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 800px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hero-subtitle {
    white-space: normal;
  }
  .hero {
    background-position: 70% center;
  }
}

.hero-subtitle--secondary {
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 3.5rem;
  white-space: normal;
}

/* Form wrapper caps the width on large screens */
.hero-form-wrapper {
  max-width: 520px;
}

.hero-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.hero-input::placeholder       { color: rgba(255, 255, 255, 0.45); }
.hero-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 67, 0.22);
  color: #fff;
  outline: none;
}

.hero-success {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
}

.hero-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Wave divider at bottom of hero */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ----------------------------------------
   Shared section styles
---------------------------------------- */
.section-light { background: #fff; }
.section-sky   { background: var(--sky); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ----------------------------------------
   Features
---------------------------------------- */
.feature-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid #e2eaf2;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.10);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* ----------------------------------------
   How It Works
---------------------------------------- */
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.30);
}

/* ----------------------------------------
   CTA Section
---------------------------------------- */
.section-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

#how-it-works {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: calc(2.5rem + 100px);
}

#how-it-works::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--sky);
  z-index: -1;
}

.section-cta .section-title { color: #fff; }

.cta-input {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.cta-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.cta-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 67, 0.22);
  color: #fff;
  outline: none;
}

.cta-success {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

/* ----------------------------------------
   Gold button (shared)
---------------------------------------- */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 168, 67, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ----------------------------------------
   Honeypot (anti-spam)
---------------------------------------- */
.sl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ----------------------------------------
   Profile Modal (step 2)
---------------------------------------- */
.profile-modal {
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10, 22, 40, 0.22);
}

.profile-modal-anchor {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--blue);
}

.profile-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.profile-radio {
  padding: 0.65rem 1rem;
  border: 1px solid #e2eaf2;
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
  margin: 0;
}

.profile-radio:has(.form-check-input:checked) {
  border-color: var(--blue);
  background: rgba(0, 119, 182, 0.06);
}

.profile-radio .form-check-input {
  margin-top: 0.2rem;
}

.profile-radio .form-check-label {
  cursor: pointer;
  font-weight: 500;
}

.profile-skip {
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.25rem;
}

.profile-skip:hover {
  color: var(--navy) !important;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  font-size: 0.95rem;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
}

.footer-strong {
  color: rgba(255, 255, 255, 0.55);
}

.footer-link {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
  text-decoration: none;
}

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