/* ============================================================
   The40Million — Shared Stylesheet
   Design: Quiet Authority
   Fonts: Playfair Display (headings) + DM Sans (body)
   Colors: Deep blue #1D4ED8, Slate #1E293B, White #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #1E293B;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #1D4ED8;
  letter-spacing: -0.01em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}
.navbar-links a:hover,
.navbar-links a.active { color: #1D4ED8; }

.btn-nav {
  background: #1D4ED8;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: #1e40af; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1D4ED8 50%, #2563eb 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.hero-watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #bfdbfe;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #1D4ED8;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  border: 2px solid #ffffff;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: #eff6ff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ── Section labels ───────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1D4ED8;
  margin-bottom: 1rem;
}

/* ── Intro section ────────────────────────────────────────── */
.intro {
  padding: 5rem 0 4rem;
  background: #ffffff;
}

.intro-inner { max-width: 680px; margin: 0 auto; }

.intro-body {
  font-size: 1.1rem;
  color: #1E293B;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Cards section ────────────────────────────────────────── */
.cards-section {
  padding: 4rem 0 5rem;
  background: #f8fafc;
}

.cards-header { margin-bottom: 2.5rem; }

.cards-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #1D4ED8;
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-body {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* ── Sign-up section ──────────────────────────────────────── */
.signup {
  padding: 4.5rem 0 5rem;
  background: #dbeafe;
}

.signup-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.signup-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.signup-sub {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1E293B;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #044aad;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #1E293B;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.15);
}
.form-input::placeholder { color: #94a3b8; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #1D4ED8;
  flex-shrink: 0;
  cursor: pointer;
}
.form-check-label {
  font-size: 0.9rem;
  color: #1E293B;
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  background: #1D4ED8;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.25rem;
}
.btn-submit:hover { background: #1e40af; }

.form-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

.signup-thanks {
  display: none;
  background: #fff;
  border: 1.5px solid #1D4ED8;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}
.signup-thanks.visible { display: block; }
.signup-thanks h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #1D4ED8;
  margin-bottom: 0.5rem;
}
.signup-thanks p { font-size: 0.95rem; color: #475569; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #1E293B;
  color: #fff;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #93c5fd;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #94a3b8;
  font-style: italic;
  max-width: 260px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal {
  font-size: 0.75rem;
  color: #475569;
}

/* ── About hero ───────────────────────────────────────────── */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #1D4ED8 50%, #2563eb 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.about-hero-watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(10rem, 20vw, 20rem);
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about-hero-content { position: relative; z-index: 2; max-width: 640px; }

.about-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.about-hero-sub {
  font-size: 1.05rem;
  color: #bfdbfe;
  line-height: 1.7;
}

/* ── About content ────────────────────────────────────────── */
.about-content {
  padding: 5rem 0 4rem;
  background: #fff;
}

.about-body-wrap {
  max-width: 680px;
  border-left: 4px solid #1D4ED8;
  padding-left: 2rem;
}

.about-body {
  font-size: 1.1rem;
  color: #1E293B;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-contact {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #475569;
}
.about-contact a {
  color: #1D4ED8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── About CTA ────────────────────────────────────────────── */
.about-cta {
  padding: 4rem 0 5rem;
  background: #dbeafe;
  border-top: 1px solid #e2e8f0;
}

.about-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.about-cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.about-cta-sub {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.75rem;
}

.btn-cta {
  display: inline-block;
  background: #1D4ED8;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-cta:hover { background: #1e40af; }

/* ── Utility ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .hero-headline { font-size: 1.75rem; letter-spacing: -0.01em; }
  .about-hero-title { font-size: 1.6rem; }
  .navbar-links .btn-nav { display: none; } /* hide on very small screens */
}

@media (max-width: 360px) {
  .hero-headline { font-size: 1.55rem; }
  .about-hero-title { font-size: 1.45rem; }
}
