/* ===========================
   HARBINGER HARBOR — STYLES
   =========================== */

:root {
  --navy: #0d1f35;
  --navy-mid: #162d4a;
  --teal: #1a7f74;
  --teal-light: #22a99a;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray-light: #e8e4dc;
  --gray-mid: #9a9387;
  --text: #1a1612;
  --shadow: 0 8px 40px rgba(13,31,53,0.18);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-anchor {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.5));
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}

.logo-phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(26,127,116,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(201,168,76,0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0d1f35 0%, #162d4a 100%);
}

/* Decorative wave line */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  font-weight: 300;
}

/* ===== FORM SECTION ===== */
.form-section {
  max-width: 780px;
  margin: -40px auto 64px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.form-header {
  background: var(--navy);
  padding: 28px 36px;
  border-bottom: 3px solid var(--gold);
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.form-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.form-body {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.input-row {
  display: flex;
  gap: 16px;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-mid);
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,127,116,0.1);
  background: white;
}

input::placeholder { color: var(--gray-mid); }

/* ===== CONSENT ===== */
.consent-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #f9f7f3;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
  margin-top: 2px;
}

.consent-text {
  font-size: 0.83rem;
  color: #444;
  line-height: 1.55;
}

.consent-text strong { color: var(--navy); }

.consent-text a {
  color: var(--teal);
  text-decoration: underline;
}

.consent-note {
  font-size: 0.8rem;
  color: var(--gray-mid);
  font-style: italic;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.submit-btn:hover { background: var(--teal); }
.submit-btn:active { transform: scale(0.99); }

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--gray-mid);
  text-align: center;
  line-height: 1.5;
}

.form-disclaimer a { color: var(--teal); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--navy);
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 48px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.step p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #080f1a;
  border-top: 2px solid var(--gold);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 32px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.footer-brand .logo-anchor { font-size: 1.4rem; }
.footer-brand strong { color: var(--gold-light); font-size: 1rem; }
.footer-brand .footer-phone {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer-brand .footer-phone:hover { color: var(--gold-light); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 820px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-light);
}

.legal-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-page a { color: var(--teal); }

.legal-highlight {
  background: #edf7f6;
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--navy);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .input-row { flex-direction: column; }
  .form-body { padding: 24px 20px; }
  .form-header { padding: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { gap: 32px; }
}
