/* Shipwreck Coast Diving — /beta sign-up (unpublished preview)
   Fonts and colors match the live Google Site and approved mockups.
   Gold (#DC974C) is used sparingly. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Oswald-400.ttf") format("truetype");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Oswald-600.ttf") format("truetype");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Oswald-700.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/OpenSans-400.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/OpenSans-600.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/OpenSans-700.ttf") format("truetype");
}

:root {
  --black: #000000;
  --white: #ffffff;
  --text: #212121;
  --heading: #1f1f1f;
  --muted: #424242;
  --rule: #cccccc;
  --bg: #f7f7f7;
  --input: #f4f4f4;
  --gold: #dc974c;
  --navy: #071a37;
  --ice: #e3eef5;
  --link: #1a5f9e;
  --error: #b42318;
  --max: 1120px;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--white); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
  letter-spacing: 0.01em;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: default;
  padding: 0;
}
.search-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Hero */
.hero {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: center;
  background-color: #0f192a;
  background-image: url("ocean_bg.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 26, 55, 0.15) 40%, rgba(7, 26, 55, 0.35) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}
.hero-badge img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}
.eyebrow {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
}
.hero h1 {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 20px;
}
.hero-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36em;
}

/* Home-page hero type (live site) */
.home-hero .hero-copy { text-align: left; }
.home-kicker {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.home-rule {
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, #8fa4b8, #d8e0e8);
  margin: 0 0 22px;
  border: 0;
}
.home-tagline {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.45;
}

/* CTA banner for the unpublished home-page mock */
.beta-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 28px 24px 32px;
  border-top: 3px solid var(--gold);
}
.beta-cta-inner { max-width: var(--max); margin: 0 auto; }
.beta-cta-btn {
  display: inline-block;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--gold);
}
.beta-cta-btn:hover,
.beta-cta-btn:focus-visible {
  color: var(--navy);
  text-decoration: none;
  background: var(--ice);
}

.about-stub {
  background: var(--white);
  padding: 56px 24px 64px;
  text-align: center;
}
.about-stub h2 {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--heading);
  margin: 0;
}

/* Main /beta layout */
.page {
  padding: 56px 24px 72px;
}
.page-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px 56px;
  align-items: start;
}
h2, .section-title {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 20px;
}
.points { list-style: none; margin: 0 0 40px; padding: 0; }
.points li {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.points .num {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.mission {
  margin: 8px 0 0;
  padding-top: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 15px;
}
.mission::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 16px;
}

/* Form card */
.form-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  padding: 32px 32px 28px;
}
.form-card h2 { margin-bottom: 8px; }
.form-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.field { margin: 0 0 16px; }
.field label,
.field .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 6px;
}
.req {
  color: var(--gold);
  font-weight: 700;
}
.hint {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 6px;
}
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  height: 44px;
  border: 1px solid #e6e6e6;
  background: var(--input);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  outline: none;
}
input:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(7, 26, 55, 0.12);
}
input.invalid, .checks.invalid {
  box-shadow: 0 0 0 2px var(--error);
}
.checks.invalid { border-radius: 6px; padding: 4px; }
.checks {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}
.checks input[type="checkbox"],
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
  margin: 8px 0 18px;
  cursor: pointer;
  font-weight: 400;
}
.consent input { margin-top: 2px; }
.consent a { white-space: nowrap; }
.submit {
  display: block;
  width: 100%;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.submit:hover, .submit:focus-visible { background: #0b2a52; }
.submit:disabled { opacity: 0.7; cursor: wait; }
.fine-print {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.error-msg {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin: 4px 0 0;
}
.field.has-error .error-msg,
.form-error.visible { display: block; }
.form-error {
  display: none;
  background: #fdecea;
  color: var(--error);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0 0 16px;
}

.thanks {
  display: none;
  padding: 8px 0 12px;
}
.thanks.visible { display: block; }
.thanks h2 { margin-bottom: 12px; }
.thanks p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Footer */
.site-footer {
  background: var(--white);
  text-align: center;
  padding: 36px 24px 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-name {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--heading);
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}
.footer-place { margin: 0 0 8px; color: var(--muted); }
.footer-links { margin: 0 0 8px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.copyright { margin: 0; color: #8a8a8a; font-size: 12.5px; }

@media (max-width: 900px) {
  .page-grid,
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero { min-height: 0; }
  .hero::before {
    background: linear-gradient(180deg, rgba(7, 26, 55, 0.05) 0%, rgba(7, 26, 55, 0.4) 100%);
  }
  .hero-inner {
    padding: 28px 20px 36px;
    text-align: center;
  }
  .hero-badge img { max-width: 280px; }
  .eyebrow::after { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 32px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .home-hero .hero-copy { text-align: center; }
  .home-rule { margin-left: auto; margin-right: auto; }
  .page { padding: 40px 20px 56px; }
  .form-card { padding: 24px 20px 22px; }
  .mission { margin-left: auto; margin-right: auto; }
  .mission::before { margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { padding: 0 16px; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 0;
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: 12px 20px; }
  .search-btn { display: none; }
}

/* Security-check overlay (shown only if the form endpoint asks for one) */
.guard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 55, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.guard-modal {
  background: var(--white);
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.guard-modal iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: var(--white);
}
.guard-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--heading);
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1;
}
.guard-close:hover { color: var(--navy); }
@media (max-width: 480px) {
  .guard-modal iframe { height: 500px; }
}
