/* Atlanta First Time Home Buyer Webinar — Cloudflare-ready styles */
:root {
  --navy: #0a1120;
  --navy-light: #192234;
  --navy-mid: #11172a;
  --gold: #fbc000;
  --gold-bright: #fbbf24;
  --gold-dark: #d17600;
  --white: #ffffff;
  --gray-300: #94a0b8;
  --gray-500: #64748b;
  --text: #e2e8f0;
  --font-headline: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max-width: 1170px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Typography */
.badge {
  display: inline-block;
  background: rgba(251, 192, 0, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 192, 0, 0.3);
}

h1, h2, h3 {
  font-family: var(--font-headline);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-300); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold-bright);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
  text-decoration: none;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 4rem 0; }
section.dark { background: var(--navy-light); }

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.hero .subtitle {
  font-size: 1.125rem;
  color: var(--gray-300);
  max-width: 640px;
  margin: 1rem auto 2rem;
}

/* Benefit cards */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(251, 192, 0, 0.3);
  transform: translateY(-4px);
}

.benefit-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(251, 192, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.benefit-card p { color: var(--gray-300); margin: 0; font-size: 0.95rem; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-300);
}

/* Host section */
.host-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.host-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--navy-light);
  border: 2px solid rgba(251, 192, 0, 0.2);
}

.host-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* Registration form */
.register-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.register-form {
  background: linear-gradient(180deg, hsl(222, 47%, 12%) 0%, hsl(222, 47%, 8%) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(10, 15, 30, 0.8);
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 0.375rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(251, 192, 0, 0.15);
}

.form-group input::placeholder { color: var(--gray-500); }

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-300);
  line-height: 1.4;
}

.checkbox-group input { margin-top: 0.2rem; flex-shrink: 0; }

.form-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* Countdown */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.countdown-unit {
  text-align: center;
  min-width: 80px;
}

.countdown-unit .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
  margin-top: 0.25rem;
}

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  margin: 2rem 0;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Calendly */
.calendly-wrap {
  min-height: 700px;
  margin: 2rem 0;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--gold); }
.legal-content p, .legal-content li { color: var(--gray-300); }
.legal-content ul { padding-left: 1.5rem; }

/* Footer */
.site-footer {
  background: var(--navy-light);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.site-footer a { color: var(--gray-300); margin: 0 0.75rem; }

/* Utility lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--gray-300);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Page-specific: registered */
.registered-hero {
  text-align: center;
  padding: 5rem 0;
}

.registered-hero .check-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .host-grid { grid-template-columns: 1fr; }
  .countdown-unit .number { font-size: 2rem; }
  section { padding: 2.5rem 0; }
}
