/* ===== GLOBAL RESET ===== */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: #f1f5f9;
  color: #111827;
  line-height: 1.6;
}

/* ===== PAGE WRAPPER (BOXED LAYOUT) ===== */
.page {
  max-width: 1200px;
  margin: 24px auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 22px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}

.topbar a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

/* ===== HEADER ===== */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

/* Default brand (old AA text mark) — safe to keep */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
}

.brand__tag {
  font-size: 0.85rem;
  color: #374151;
}

/* ===== LOGO BRAND (NEW) ===== */
.brand--logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  max-width: 200px;   /* desired width */
  height: auto;       /* keeps aspect ratio */
  display: block;
}

/* ===== BUTTONS (UNIFIED BLUE) ===== */
.btn {
  padding: 11px 20px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  background: #1d4ed8;
  color: #ffffff !important;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

/* ===== NAV ===== */
.nav { display: flex; align-items: center; }

/* Use this class on index/about/etc nav: class="nav nav--buttons" */
.nav--buttons {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav--buttons .btn {
  padding: 10px 16px;
  font-size: 0.92rem;
}

/* ===== HERO ===== */
.hero {
  padding: 48px 0;
  background: #ffffff;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 6px 0 10px;
}

.hero__lead {
  font-size: 1.05rem;
  color: #374151;
  max-width: 620px;
  margin: 0;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero__photo {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ===== SECTIONS ===== */
.section { padding: 38px 0; }

.section h1 {
  margin: 0 0 10px;
}

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.section h3 {
  margin: 0 0 8px;
}

.section p {
  font-size: 1.05rem;
  color: #374151;
  margin: 0 0 10px;
}

.section__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}

/* Fix anchor jump for Vision */
#vision { scroll-margin-top: 90px; }

/* ===== STACK (BUTTON ROWS) ===== */
.stack {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stack--wide { gap: 12px; }
.stack--room { margin-top: 14px; }

/* ===== CARDS ===== */
.card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
}

/* ===== LISTS ===== */
.bullets {
  padding-left: 18px;
  margin: 0;
}

.bullets li {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* ===== GRID (Endorsements cards) ===== */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

/* ===== FORM EMBED (Google Form) ===== */
.form-embed {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.form-embed iframe {
  width: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

/* ===== FOOTER ===== */
.footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  padding: 22px 0;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__grid,
  .section__grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 2.1rem; }

  .nav--buttons { justify-content: flex-start; }

  /* Endorsements: 2 columns on tablet */
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile polish */
@media (max-width: 700px) {
  body { background: #ffffff; }

  .page {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .container { padding: 0 16px; }

  /* Topbar stacks nicely */
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  /* Header stacks and nav becomes a neat grid */
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }

  .brand { min-width: 0; }

  /* Logo scales down on mobile */
  .site-logo { max-width: 150px; }

  /* NAV: 2-column grid buttons */
  .nav--buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: initial;
  }

  .nav--buttons .btn {
    width: 100%;
    padding: 12px 12px;
    font-size: 0.95rem;
  }

  /* HERO: comfortable stacking + readable type */
  .hero { padding: 32px 0; }
  .hero h1 { font-size: 2rem; }

  /* CTAs: 2-column */
  .hero__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero__cta .btn { width: 100%; }

  /* Sections */
  .section { padding: 28px 0; }

  /* STACKS: make button rows 2-column on mobile */
  .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stack .btn { width: 100%; }

  /* If a stack has 3 buttons, let the last one span full width */
  .stack .btn:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* Endorsements: 1 column on mobile */
  .grid4 { grid-template-columns: 1fr; }

  /* Form height on mobile (Google Form needs more vertical room) */
  .form-embed iframe { height: 2200px; }
}

/* Extra-small phones: single-column buttons for comfort */
@media (max-width: 420px) {
  .nav--buttons,
  .hero__cta,
  .stack {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 1.85rem; }

  /* Slightly smaller logo on tiny screens */
  .site-logo { max-width: 135px; }
}
