/* ============================================================
   Top Dive — landing styles
   Brand: deep navy (logo) + ocean aqua accent + warm cream
   Type:  Montserrat (display sans) + Lora (body serif) + Inter (eyebrows/buttons)
   ============================================================ */

:root {
  --navy:        #0a3d7c;   /* logo blue */
  --navy-deep:   #062a57;
  --navy-darker: #041d3d;
  --aqua:        #1ec8c8;   /* ocean accent / CTA */
  --aqua-dark:   #14a3a3;
  --cream:       #f6f2ea;
  --sand:        #ece4d6;
  --ink:         #0c1b2a;
  --ink-soft:    #44566a;
  --white:       #ffffff;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 18px 40px -20px rgba(6, 42, 87, 0.45);
  --shadow-lg: 0 30px 70px -28px rgba(6, 42, 87, 0.6);
  --maxw: 1140px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: normal; font-weight: 700; color: var(--aqua); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--aqua-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--aqua); }

.section { padding: 96px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy-deep); color: var(--cream); }
.section-navy h2 { color: var(--white); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 16px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }
.section-navy .section-lead { color: #c5d4e6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--aqua); color: var(--navy-darker); box-shadow: 0 10px 24px -10px rgba(30, 200, 200, 0.7); }
.btn-accent:hover { background: var(--aqua-dark); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(6, 42, 87, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.5);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 46px; width: auto; }
.site-header.scrolled .brand-logo { height: 40px; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-menu a { color: var(--white); font-weight: 500; font-size: 0.95rem; opacity: .9; transition: opacity .2s; }
.nav-menu a:hover { opacity: 1; }
.nav-menu .btn { color: var(--navy-darker); }
.nav-menu .btn:hover { color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; padding: 140px 0 90px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(30,200,200,.18), transparent 60%),
    linear-gradient(160deg, rgba(6,42,87,.72) 0%, rgba(4,29,61,.70) 45%, rgba(4,29,61,.82) 100%),
    url('assets/hero.jpg');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,29,61,.35) 0%, rgba(4,29,61,.15) 40%, rgba(4,29,61,.75) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px;
  background: linear-gradient(180deg, transparent, var(--white));
  opacity: .0;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow { color: var(--aqua); }
.hero h1 { font-size: clamp(2.7rem, 6.5vw, 4.6rem); font-weight: 600; margin-bottom: 22px; letter-spacing: -0.5px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #dbe7f5; max-width: 600px; margin-bottom: 30px; }

.signup--hero { display: flex; gap: 10px; max-width: 480px; }
.signup--hero input {
  flex: 1; padding: 15px 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: var(--white); font-size: 1rem; backdrop-filter: blur(6px);
}
.signup--hero input::placeholder { color: rgba(255,255,255,.65); }
.signup--hero input:focus { outline: none; border-color: var(--aqua); background: rgba(255,255,255,.16); }

.hero-note { font-size: 0.92rem; color: #c5d4e6; margin-top: 16px; }
.hero-note strong { color: var(--white); }
.hero-trust { margin-top: 28px; font-size: 0.9rem; color: #aebfd4; letter-spacing: .02em; }
.hero-trust strong { color: var(--white); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  color: var(--white); font-size: 1.4rem; opacity: .7; animation: bob 2s infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-darker); color: var(--white); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: 'Montserrat', system-ui, sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--aqua); letter-spacing: -0.02em; }
.trust-label { font-size: 0.86rem; color: #b9c8dc; }

/* ---------- Value cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.dest-card {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: var(--white); box-shadow: var(--shadow);
  background-size: cover; background-position: center; transition: transform .25s var(--ease), box-shadow .25s;
}
.dest-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* Each card: photo under a bottom-darkening navy gradient so the text/badge stay legible. */
.dest-card {
  --dest-tint: linear-gradient(180deg, rgba(4,29,61,.10) 0%, rgba(4,29,61,.30) 45%, rgba(4,29,61,.88) 100%);
}
.dest-maldives  { background-image: var(--dest-tint), url('assets/dest-maldives.jpg'); }
.dest-redsea    { background-image: var(--dest-tint), url('assets/dest-redsea.jpg'); }
.dest-indonesia { background-image: var(--dest-tint), url('assets/dest-indonesia.jpg'); }
.dest-thailand  { background-image: var(--dest-tint), url('assets/dest-thailand.jpg'); }
.dest-fuvahmulah { background-image: var(--dest-tint), url('assets/dest-fuvahmulah.jpg'); }

.dest-card--wide { grid-column: 1 / -1; min-height: 300px; }
.dest-card--wide .dest-desc { max-width: 64ch; }
.dest-card--wide .dest-body h3 { font-size: 2rem; }

.dest-badge {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; color: var(--navy);
  background: rgba(255,255,255,.92); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}
.dest-badge--land { background: #e9b04a; color: var(--navy-darker); }
.dest-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,29,61,0) 30%, rgba(4,29,61,.85) 100%);
}
.dest-body { position: relative; z-index: 2; padding: 30px; }
.dest-flag { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; color: #d8ecff; }
.dest-body h3 { font-size: 1.7rem; margin-bottom: 6px; }
.dest-meta { font-size: 0.85rem; color: var(--aqua); font-weight: 600; margin-bottom: 10px; }
.dest-desc { font-size: 0.96rem; color: #e3edf8; margin-bottom: 18px; max-width: 42ch; }
.dest-foot { text-align: center; margin-top: 34px; color: var(--ink-soft); }
.dest-foot a { color: var(--aqua-dark); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- How it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(4,29,61,0) 55%, rgba(4,29,61,.45) 100%), url('assets/about-gerva.jpg');
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.1);
}
.about-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.about-text p { color: #cdd9e8; margin-bottom: 16px; }
.about-text strong { color: var(--white); }
.about-points { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 30px; color: #dbe7f5; }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--navy-darker);
  background: var(--aqua); width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700;
}

/* ---------- Signup / lead magnet ---------- */
.signup-section { background: linear-gradient(180deg, var(--white), var(--cream)); }
.signup-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.signup-perks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.signup-perks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.signup-perks li::before {
  content: "★"; position: absolute; left: 0; top: 0; color: var(--aqua-dark); font-size: 0.95rem;
}
.signup-card {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.signup-card h3 { font-size: 1.5rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid #d8dde4; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(30,200,200,.15); }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.signup-success { text-align: center; padding: 20px 0; }
.signup-success-mark {
  width: 60px; height: 60px; border-radius: 50%; background: var(--aqua); color: var(--navy-darker);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 700;
}
.signup-success h3 { margin-bottom: 8px; }
.signup-success p { color: var(--ink-soft); }

/* ---------- MailerLite embedded form — inherit site styling ---------- */
.ml-embedded .ml-form-embedWrapper,
.ml-embedded .ml-form-embedBody {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  font-family: inherit !important;
}
/* MailerLite repeats its own title/description; the section heading already covers it */
.ml-embedded .ml-form-embedContent { display: none !important; }
.ml-embedded .ml-form-embedBody label {
  font-family: inherit !important;
  font-size: 0.85rem !important; font-weight: 600 !important;
  color: var(--ink) !important; margin-bottom: 6px !important;
}
/* High-specificity selectors below intentionally mirror MailerLite's own
   #mlb2-<id> chain so our brand styles win the cascade over its inline sheet. */
.ml-embedded #mlb2-41992983.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input.form-control,
.ml-embedded #mlb2-41992983.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody select.form-control {
  font-family: inherit !important; font-size: 1rem !important; color: var(--ink) !important;
  width: 100% !important; padding: 13px 15px !important;
  border: 1.5px solid #d8dde4 !important; border-radius: var(--radius-sm) !important;
  background: var(--white) !important; box-shadow: none !important;
}
.ml-embedded #mlb2-41992983.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input.form-control:focus,
.ml-embedded #mlb2-41992983.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody select.form-control:focus {
  border-color: var(--aqua) !important; box-shadow: 0 0 0 3px rgba(30,200,200,.15) !important;
}
.ml-embedded #mlb2-41992983.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
  font-family: inherit !important; font-size: 1rem !important; font-weight: 700 !important;
  background: var(--navy) !important; border: 0 !important; border-radius: 999px !important;
  padding: 16px 20px !important; box-shadow: none !important;
  transition: background .2s var(--ease) !important;
}
.ml-embedded #mlb2-41992983.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover { background: var(--aqua-dark) !important; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-list { display: grid; gap: 12px; margin-top: 8px; }
.faq-item {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-sm); padding: 4px 22px;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--aqua-dark); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(150deg, var(--navy), var(--navy-darker)); color: var(--white); text-align: center; }
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; color: var(--white); }
.final-cta p { color: #cdd9e8; margin-bottom: 28px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-darker); color: #b9c8dc; padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.95rem; opacity: .85; transition: opacity .2s; }
.footer-nav a:hover { opacity: 1; color: var(--aqua); }
.footer-contact a { color: var(--aqua); font-weight: 500; }
.footer-bottom { padding-top: 22px; font-size: 0.82rem; color: #7e92ab; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    background: var(--navy-deep); transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.5);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1.15rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid, .signup-wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .dest-grid, .cards-3, .steps, .trust-grid { grid-template-columns: 1fr; }
  .signup--hero { flex-direction: column; }
  .signup--hero .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .dest-badge { top: 16px; right: 16px; font-size: 0.62rem; padding: 5px 11px; }
  .dest-flag { display: block; padding-right: 104px; }
  .dest-card--wide .dest-body h3 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
