/* divingwithwalid — shared design system
   Colors/tokens pulled from the approved Canva design doc (Diving Referral Home.dc.html) */

:root {
  --sand: oklch(0.97 0.012 85);
  --sand-dim: oklch(0.85 0.02 85);
  --ink: oklch(0.24 0.02 240);
  --ink-soft: oklch(0.42 0.03 235);
  --navy: oklch(0.27 0.055 235);
  --teal: oklch(0.53 0.09 200);
  --teal-light: oklch(0.72 0.08 195);
  --teal-pale: oklch(0.94 0.02 195);
  --coral: oklch(0.68 0.14 35);
  --hairline: oklch(0.88 0.01 85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
}
a { color: inherit; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }

.container { padding-left: 48px; padding-right: 48px; }

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  background: var(--sand);
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  flex-wrap: wrap;
}
.nav-links a { text-decoration: none; }
.btn-pill {
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--coral); color: var(--sand); padding: 16px 28px; font-size: 16px; }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--hairline); padding: 16px 28px; font-size: 16px; }
.btn-nav { background: var(--teal); color: var(--sand); padding: 10px 18px; }

.lang-switch { display: flex; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.lang-switch a { text-decoration: none; color: var(--ink-soft); }
.lang-switch a:hover { color: var(--coral); }
.lang-switch .lang-current { color: var(--ink); text-decoration: underline; }
.lang-switch span.sep { color: var(--hairline); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 480px;
}
.hero-copy {
  padding: 90px 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: 640px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.hero-title { font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.hero-sub { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.hero-ctas { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

.photo-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 280px;
}
.photo-placeholder.stripe-a { background: repeating-linear-gradient(135deg, oklch(0.4 0.07 200) 0px, oklch(0.4 0.07 200) 22px, oklch(0.3 0.06 220) 22px, oklch(0.3 0.06 220) 44px); }
.photo-placeholder.stripe-b { background: repeating-linear-gradient(135deg, oklch(0.55 0.09 25) 0px, oklch(0.55 0.09 25) 22px, oklch(0.45 0.08 30) 22px, oklch(0.45 0.08 30) 44px); }
.photo-placeholder.stripe-c { background: repeating-linear-gradient(135deg, oklch(0.5 0.08 200) 0px, oklch(0.5 0.08 200) 22px, oklch(0.4 0.07 220) 22px, oklch(0.4 0.07 220) 44px); }
.photo-placeholder.stripe-d { background: repeating-linear-gradient(135deg, oklch(0.55 0.09 150) 0px, oklch(0.55 0.09 150) 22px, oklch(0.45 0.08 160) 22px, oklch(0.45 0.08 160) 44px); }
.photo-placeholder.stripe-e { background: repeating-linear-gradient(135deg, oklch(0.5 0.07 260) 0px, oklch(0.5 0.07 260) 22px, oklch(0.4 0.06 250) 22px, oklch(0.4 0.06 250) 44px); }
.photo-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: monospace;
  font-size: 11px;
  color: var(--sand);
  background: rgba(0,0,0,0.35);
  padding: 4px 8px;
  border-radius: 5px;
}

/* Real photo tiles — same box as .photo-placeholder, but with an actual <img> */
.photo-tile { position: relative; overflow: hidden; background: var(--navy); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--sand);
  background: rgba(0,0,0,0.35);
  padding: 3px 7px;
  border-radius: 5px;
  text-decoration: none;
}

/* Personal / trust section */
.personal-section {
  padding: 90px 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.personal-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; max-width: 380px; }
.personal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.personal-copy { display: flex; flex-direction: column; gap: 16px; }
.personal-copy p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fact-chips li { font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-pale); padding: 6px 12px; border-radius: 999px; }
.cert-block { display: flex; flex-direction: column; gap: 10px; }
.cert-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cert-chips li { font-size: 12px; font-weight: 500; color: var(--ink-soft); background: transparent; border: 1px solid var(--teal-light); padding: 4px 10px; border-radius: 999px; }
.cert-trust { font-size: 13px; color: var(--ink-soft); opacity: 0.8; margin: 0; }
.personal-video { margin-top: 8px; border-radius: 16px; overflow: hidden; max-width: 260px; }
.personal-video video { width: 100%; display: block; }

@media (max-width: 880px) {
  .personal-section { grid-template-columns: 1fr; padding: 60px 24px; gap: 32px; }
  .personal-photo { max-width: 280px; }
}

/* HOW IT WORKS */
.how {
  padding: 90px 48px;
  background: var(--navy);
  color: var(--sand);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step-n {
  font-size: 15px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-size: 22px; font-weight: 700; }
.step-body { font-size: 16px; line-height: 1.5; color: var(--sand-dim); }

/* DESTINATIONS */
.destinations { padding: 90px 48px; }
.section-heading { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 44px; max-width: 600px; }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dest-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.dest-card .photo-placeholder, .dest-card .photo-tile { height: 180px; min-height: 0; }
.dest-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dest-name { font-size: 19px; font-weight: 700; }
.dest-blurb { font-size: 14px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.dest-link { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--teal); }

/* FORM */
.form-section { padding: 90px 48px; background: var(--teal-pale); }
.form-intro {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  margin-bottom: 44px;
}
.form-intro .section-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.form-intro .section-body { font-size: 16px; color: var(--ink-soft); margin: 0; }

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--sand);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 20px 50px -20px rgba(20,40,50,0.15);
}
.form-card.plain { border: 1px solid var(--hairline); box-shadow: none; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--hairline);
  font-size: 15px;
  font-family: inherit;
  background: var(--sand);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.group-size { display: flex; gap: 10px; }
.group-size label {
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--hairline);
  background: transparent;
}
.group-size input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.group-size input[type="radio"]:checked + span { color: var(--sand); }
.group-size label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: var(--sand); }
.counter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 16px;
}
.counter-row { display: flex; align-items: center; justify-content: space-between; }
.counter-label { font-size: 15px; font-weight: 500; color: var(--ink); }
.counter-control { display: flex; align-items: center; gap: 14px; }
.counter-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 100px;
  border: 1.5px solid var(--hairline);
  background: transparent;
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.counter-btn:hover { border-color: var(--teal); }
.counter-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.counter-value { min-width: 18px; text-align: center; font-size: 15px; font-weight: 600; }
.submit-btn {
  cursor: pointer;
  text-align: center;
  color: var(--sand);
  padding: 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
  width: 100%;
}
.submit-btn.coral { background: var(--coral); }
.submit-btn.teal { background: var(--teal); }

/* Tally embed placeholder note (dev-only, remove once a real Tally form ID is wired in) */
.embed-note {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--teal-pale);
  border: 1px dashed var(--teal-light);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.5;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 36px 48px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.footer a { text-decoration: underline; }
.footer-social { display: flex; gap: 14px; font-size: 13px; }
.footer-social a { text-decoration: none; color: var(--ink-soft); }
.footer-social a:hover { color: var(--coral); }

/* DESTINATION SUB-PAGES (egypt / koh-tao) */
.page-hero {
  padding: 80px 48px 50px;
  max-width: 760px;
}
.page-hero .hero-title { font-size: 44px; }
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 48px 60px;
}
.photo-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-strip .photo-placeholder, .photo-strip .photo-tile { height: 200px; min-height: 0; border-radius: 12px; }
.page-section { padding: 0 48px 90px; max-width: 760px; }
.page-section h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.page-section p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.cta-band {
  padding: 60px 48px;
  background: var(--navy);
  color: var(--sand);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.cta-band .section-title { font-size: 28px; font-weight: 700; margin: 0; max-width: 500px; }

.page-cover { margin: 0 48px 50px; border-radius: 20px; overflow: hidden; height: 380px; }
.page-cover img { width: 100%; height: 100%; object-fit: cover; }

.match-section {
  margin: 0 48px 60px;
  padding: 32px 36px;
  background: var(--teal-pale);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}
.match-section h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.match-section p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

@media (max-width: 880px) {
  .page-cover { margin: 0 24px 32px; height: 240px; }
  .match-section { margin: 0 24px 40px; padding: 24px; }
}

/* PARTNERS PAGE */
.partners-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 24px;
  gap: 44px;
}
.back-link {
  align-self: flex-start;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  cursor: pointer;
}
.partners-intro {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partners-intro .section-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.partners-intro .section-body { font-size: 16px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* RESPONSIVE */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 24px 40px; max-width: none; }
  .hero-title { font-size: 38px; }
  .how, .destinations, .form-section { padding: 60px 24px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .nav { padding: 18px 24px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); padding: 0 24px 40px; }
  .page-hero, .page-section, .cta-band { padding-left: 24px; padding-right: 24px; }
  .footer { padding: 28px 24px; }
}
