/* AFB Developments — Shared Stylesheet */

:root {
  --navy:      #1a2744;
  --navy-dark: #0f1a33;
  --navy-mid:  #243156;
  --gold:      #c9a84c;
  --gold-light:#e5c97a;
  --gold-dark: #a8852e;
  --white:     #ffffff;
  --off-white: #f7f6f2;
  --gray-light:#ebebeb;
  --gray:      #888;
  --text:      #1e1e1e;
  --radius:    6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --transition:0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
section.tight { padding: 48px 0; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo { height: 42px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
}
.nav-links .btn-nav {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius);
}
.nav-links .btn-nav:hover { background: var(--gold-light); color: var(--navy-dark); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: var(--transition);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 680px; }
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 1.15rem;
  color: #b8c4d8;
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.card-body { padding: 28px 28px 32px; }
.card-icon {
  width: 54px; height: 54px;
  background: rgba(201,168,76,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
}

/* ── GRID HELPERS ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ── STEPS ───────────────────────────────────────────────── */
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── SECTION VARIANTS ────────────────────────────────────── */
.bg-navy    { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p  { color: #b8c4d8; }
.bg-offwhite { background: var(--off-white); }
.bg-dark    { background: var(--navy-dark); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.gold-line {
  width: 52px; height: 3px;
  background: var(--gold);
  margin: 14px 0 24px;
}
.gold-line.center { margin: 14px auto 24px; }

/* ── FORM ────────────────────────────────────────────────── */
.form-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  padding: 44px 48px;
  max-width: 660px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
label .req { color: var(--gold-dark); }
input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Checkbox */
.check-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f0f4ff;
  border: 1.5px solid #c7d2e8;
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
}
.check-wrap input[type=checkbox] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.check-label { font-size: 0.88rem; color: #374151; line-height: 1.55; }
.check-label strong { color: var(--navy); }

.sms-compliance {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
  border-top: 1px solid var(--gray-light);
  padding-top: 12px;
}
.sms-compliance a { color: var(--navy); font-weight: 600; }

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}
.form-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 56px 0 28px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 38px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-about { font-size: 0.88rem; line-height: 1.7; max-width: 320px; }
footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #243156;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-disclaimer {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 14px;
  line-height: 1.6;
}

/* ── BADGE / PILL ────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: #94a3b8; font-size: 1.05rem; }

/* ── PROSE (privacy/terms) ───────────────────────────────── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin: 40px 0 12px; font-size: 1.25rem; color: var(--navy); }
.prose h3 { margin: 28px 0 8px; font-size: 1.05rem; color: var(--navy-mid); }
.prose p  { margin-bottom: 16px; color: #444; }
.prose ul { margin: 8px 0 16px 20px; }
.prose li { margin-bottom: 6px; color: #444; }
.prose a  { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }
.prose strong { color: var(--navy); }

/* ── TOAST ───────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; right: 28px;
  padding: 14px 22px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  z-index: 999; pointer-events: none;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}
#toast.show {
  opacity: 1; transform: translateY(0);
}
#toast.success { background: #14532d; color: #bbf7d0; border: 1px solid #16a34a; }
#toast.error   { background: #7f1d1d; color: #fecaca; border: 1px solid #dc2626; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3    { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .form-wrap  { padding: 28px 20px; }
  .form-row   { grid-template-columns: 1fr; }
  .nav-links  { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dark); padding: 12px 16px 20px; border-bottom: 2px solid var(--gold); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-cta   { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
