/* ==========================================================================
   Ascend Academy -- public marketing site
   Plain CSS, no framework/build step (matches the project's stated philosophy).
   Palette/fonts are a PROPOSED starting point -- swap the variables below
   once real brand colors/logo exist. See site/README.md for a full TODO list.
   ========================================================================== */

:root {
  /* --- Brand palette (official Ascend Academy colors) --- */
  --color-primary: #041d15;       /* deep forest green -- headers, primary text on light */
  --color-primary-light: #0c3527;
  --color-accent: #c3924f;        /* gold -- CTAs, highlights, badges */
  --color-accent-dark: #a67b3e;
  --color-slate: #6f7073;         /* stone gray -- neutral tags/utility accents */
  --color-navy: #031c26;          /* navy blue -- deep backgrounds (hero, footer) */

  --color-bg: #ffffff;
  --color-bg-alt: #efe6da;        /* ivory cream -- alternating section backgrounds */
  --color-bg-navy: #031c26;
  --color-text: #1a1f1c;
  --color-text-muted: #6f7073;
  --color-text-on-navy: #efe6da;
  --color-border: #e2dbcd;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 32, 56, 0.06);
  --shadow: 0 10px 30px rgba(15, 32, 56, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 32, 56, 0.16);

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-alt { background: var(--color-bg-alt); }
.bg-navy { background: var(--color-bg-navy); color: var(--color-text-on-navy); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(195, 146, 79, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: #21150a; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.bg-navy .btn-outline { color: #fff; }
.bg-navy .btn-outline:hover { background: #fff; color: var(--color-primary); }

/* --- Top announcement bar --- */
.announce {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.92rem;
  text-align: center;
  padding: 10px 16px;
}
.announce a { color: var(--color-accent); font-weight: 600; text-decoration: underline; }

/* --- Header / nav --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 230, 218, 0.92); /* ivory cream -- matches the logo file's own background */
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-decoration: none;
}
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 6px; /* softens the logo's square ivory background edge */
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  text-decoration: none;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: 0.2s;
}

@media (min-width: 900px) {
  .nav-phone { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 899px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.primary-nav.open { max-height: 420px; }
  nav.primary-nav a { padding: 16px 24px; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 75%);
  padding: 72px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art svg { width: 100%; max-width: 380px; height: auto; }
.hero-logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* --- Pillars / feature cards --- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(195, 146, 79, 0.16);
  color: var(--color-accent-dark);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

/* --- Coming soon placeholders (used honestly -- this program is brand new) --- */
.coming-soon {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}
.coming-soon .tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-slate);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* --- Mission block --- */
.mission-block {
  border-left: 5px solid var(--color-accent);
  padding: 6px 0 6px 28px;
  margin: 0;
}
.mission-block p {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

/* --- Contact strip --- */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.contact-pill svg { width: 20px; height: 20px; color: var(--color-accent-dark); }

/* --- Footer --- */
footer.site-footer {
  background: var(--color-bg-navy);
  color: rgba(238, 242, 248, 0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.footer-wordmark span { color: var(--color-accent); }
.footer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 242, 248, 0.55);
  margin-bottom: 18px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid a {
  display: block;
  color: rgba(238, 242, 248, 0.82);
  text-decoration: none;
  padding: 6px 0;
}
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(238, 242, 248, 0.55);
}
.footer-bottom a { text-decoration: underline; color: inherit; }

/* --- Misc utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.badge-motif { width: 100%; height: auto; }
