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

/* ============================================================
   PHOENIX NEXT HIGH SCHOOL — Global Stylesheet
   phoenixnextschools.com
   ============================================================ */

/* ── Google Fonts loaded in each HTML head ── */

/* ── CSS Variables ── */
:root {
  --red:        #001E5F;
  --red2:       #001650;
  --red-light:  rgba(0,158,210,0.12);
  --ink:        #1a1a1a;
  --mid:        #555;
  --soft:       #888;
  --border:     #e4e4e4;
  --light:      #f6f6f6;
  --white:      #ffffff;
  --serif:      'Libre Baskerville', Georgia, serif;
  --sans:       'Outfit', sans-serif;
  --radius:     10px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 56px rgba(0,0,0,.13);
  --transition: all 0.28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.13; letter-spacing: -.01em; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.section-title {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700; color: var(--ink); margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--red); }
.body-lg { font-size: 17px; color: var(--mid); line-height: 1.82; font-weight: 300; }
.body-md { font-size: 15px; color: var(--mid); line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 18px rgba(0,30,95,.35);
}
.btn-red:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,30,95,.4); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-outline-dark {
  border: 2px solid var(--border); color: var(--ink); background: transparent;
}
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }
.btn-white {
  background: #fff; color: var(--red);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 600; font-size: 15px;
  transition: gap .2s;
}
.text-link:hover { gap: 14px; }
.text-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; flex-shrink: 0; }

/* ── Layout helpers ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── AI Mockup Badge ── */
.ai-label {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  background: rgba(0,0,0,.52); color: rgba(255,255,255,.78);
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; pointer-events: none;
}

/* ── TOPBAR ── 
.topbar {
  background: var(--red); padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: flex-end; align-items: center; gap: 6px;
}
.topbar a {
  color: rgba(255,255,255,.85); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; padding: 2px 10px; transition: color .2s;
}
.topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,.3); font-size: 10px; }
*/

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, border-color .3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,.10);
  border-bottom-color: transparent;
}
.navbar .container {
  height: 107px; display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.nav-logo-box {
  width: 105px; height: 105px; background: transparent; border-radius: 0;
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text strong {
  display: block;
  font-family: 'Cinzel', var(--serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.25;
  letter-spacing: 0.06em;
}
.nav-logo-text span {
  font-size: 10px; color: var(--red); font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a {
  padding: 10px 16px; font-size: 15px; font-weight: 500;
  color: var(--ink); border-radius: 7px; transition: var(--transition);
}
.nav-links > a:hover,
.nav-links > a.active { color: var(--red); background: rgba(0,158,210,0.10); }
.nav-links .btn-nav-cta {
  background: var(--red); color: #fff !important;
  border-radius: 8px !important; font-weight: 700 !important;
  padding: 10px 22px !important;
  box-shadow: 0 3px 14px rgba(0,30,95,.3);
}
.nav-links .btn-nav-cta:hover {
  background: var(--red2) !important; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,30,95,.4) !important;
}
/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; z-index: 600;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 490;
  background: var(--white); flex-direction: column;
  padding: 100px 32px 48px; gap: 4px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px; font-size: 16px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--border); border-radius: 8px;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--red); background: rgba(0,158,210,0.10); }
.mobile-nav .mob-cta {
  margin-top: 20px; background: var(--red) !important; color: #fff !important;
  text-align: center; font-weight: 700 !important; border-radius: 10px !important;
  border: none !important;
}

/* ── FOOTER ── */
.site-footer { background: #111; padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 60px;
}
.footer-brand .ft-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .ft-logo-box {
  width: 52px; height: 52px; background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  overflow: hidden; flex-shrink: 0;
}
.footer-brand .ft-logo strong {
  font-family: var(--serif); font-size: 16px; color: #fff; line-height: 1.25;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.75; max-width: 270px; margin-bottom: 22px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,.48);
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: rgba(255,255,255,.28);
}
.footer-bottom a { color: rgba(255,255,255,.28); transition: color .2s; margin-left: 20px; }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 7px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: var(--transition);
}
.social-icon:hover { background: var(--red); color: #fff; }

/* ── TICKER ── */
/*
.news-ticker {
  background: #ffffff;
  padding: 13px 0;
  overflow: hidden;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}
*/
.news-ticker {
  display: none;
}
.ticker-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 0 48px;
}
.ticker-label {
  background: #001E5F; color: #fff; padding: 4px 14px;
  border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: tickScroll 35s linear infinite;
}
.ticker-item {
  color: #001E5F; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.ticker-item::before { content: '●'; color: #009ED2; font-size: 8px; }
@keyframes tickScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative; padding: 116px 0 80px;
  background: var(--ink); overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,30,95,.6) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .25;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: rgba(255,255,255,.65); }
.page-hero .eyebrow::before { background: rgba(255,255,255,.4); }
.page-hero h1 {
  font-size: clamp(34px, 4vw, 62px); color: #fff; font-weight: 700;
  line-height: 1.08; margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: #a8d4f5; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.72); max-width: 560px; font-weight: 300; line-height: 1.75; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--light); padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.breadcrumb a { color: var(--red); transition: color .2s; }
.breadcrumb a:hover { color: var(--red2); }
.breadcrumb span { color: var(--border); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition); overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-img { overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 12px;
  background: rgba(0,158,210,0.10); color: var(--red);
}
.card h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.card p  { font-size: 13px; color: var(--mid); line-height: 1.65; }
.card-foot {
  padding: 15px 24px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--red);
  display: flex; justify-content: space-between; align-items: center;
}
.card-foot .arrow { font-size: 18px; transition: transform .2s; }
.card:hover .card-foot .arrow { transform: translateX(5px); }

/* ── FEATURE LIST ── */
.feature-item {
  display: flex; gap: 18px; padding: 22px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
  transition: var(--transition);
}
.feature-item:first-child { padding-top: 0; }
.feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,158,210,0.10); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: var(--transition);
}
.feature-item:hover .feat-icon { background: var(--red); color: #fff; }
.feat-body h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.feat-body p  { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ── STAT BAND ── */
.stat-band {
  background: var(--ink); display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 54px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.09);
  transition: background .2s;
}
.stat-cell:last-child { border: none; }
.stat-cell:hover { background: rgba(255,255,255,.04); }
.stat-num {
  font-family: var(--serif); font-size: 58px; font-weight: 700;
  color: #fff; line-height: 1;
}
.stat-num sup { font-size: 26px; }
.stat-lbl { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 10px; letter-spacing: .04em; }

/* ── ACCORDION ── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink);
  transition: color .2s;
}
.accordion-btn:hover { color: var(--red); }
.accordion-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,158,210,0.10); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; flex-shrink: 0; transition: var(--transition);
}
.accordion-item.open .accordion-icon { background: var(--red); color: #fff; transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1), padding .3s; }
.accordion-body p { font-size: 15px; color: var(--mid); line-height: 1.75; padding-bottom: 22px; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1.5px solid var(--border); font-family: var(--sans); font-size: 15px;
  color: var(--ink); background: var(--white); transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(0,30,95,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-white  { color: #fff; }
.bg-light    { background: var(--light); }
.bg-red      { background: var(--red); }
.bg-ink      { background: var(--ink); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   1200px  large tablet / small laptop tweaks
   1100px  hamburger kicks in (covers iPad Pro landscape etc.)
    900px  grids tighten further
    768px  single-column layouts
    480px  small mobile
   ══════════════════════════════════════════════════════════ */

/* ── Large tablet / small laptop (1200px) ── */
@media (max-width: 1200px) {
  .container { padding: 0 28px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .nav-logo-text strong { font-size: 15px; }
  .nav-links > a { padding: 8px 12px; font-size: 14px; }
  .nav-links .btn-nav-cta { padding: 8px 16px !important; font-size: 14px; }
}

/* ── Hamburger breakpoint — iPad / tablet (1100px) ── */
@media (max-width: 1100px) {
  /* Switch to hamburger menu */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Navbar sizing */
  .navbar .container { height: 82px; padding: 0 20px; }
  .nav-logo-box { width: 72px; height: 72px; }
  .nav-logo-text strong { font-size: 12px; letter-spacing: 0.05em; }
  .nav-logo-text span { font-size: 10px; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
}

/* ── Tablet portrait / large phone (900px) ── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section    { padding: 72px 0; }
  .section-sm { padding: 52px 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section-title { font-size: clamp(26px, 4vw, 40px); }
}

/* ── Mobile landscape / small tablet (768px) ── */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section    { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  /* Navbar */
  .navbar .container { height: 68px; padding: 0 16px; }
  .nav-logo-box { width: 56px; height: 56px; }
  .nav-logo-text strong { font-size: 10px; letter-spacing: 0.04em; }
  .nav-logo-text span   { font-size: 10px; }

  /* Layouts */
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-band { grid-template-columns: 1fr 1fr; }

  /* Typography */
  .section-title { font-size: clamp(24px, 6vw, 36px); }

  /* Images in grid-2 — cap height, prevent portrait blowout */
  .grid-2 img { max-height: 320px; width: 100%; object-fit: cover; }
  .gallery-img { max-height: 320px; }

  /* Push image-first columns to appear after text */
  .grid-2 .story-img-wrap,
  .grid-2 .about-img-secondary,
  .grid-2 [data-reveal]:has(.about-img-secondary) { order: 2; }

  /* Footer */
  .ticker-inner { padding: 0 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom div { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

  /* Page hero */
  .page-hero { padding: 72px 0 56px; }
  .page-hero h1 { font-size: clamp(28px, 6vw, 48px); }
  .page-hero p  { font-size: 15px; }
}

/* ── Small mobile (480px) ── */
@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .section    { padding: 44px 0; }
  .section-sm { padding: 32px 0; }

  /* Navbar */
  .navbar .container { height: 64px; }
  .nav-logo-box { width: 52px; height: 52px; }
  .nav-logo { gap: 10px; }
  .nav-logo-text strong { font-size: 13px; }
  .nav-logo-text span   { display: none; }

  /* Stats */
  .stat-band { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.09); }
  .stat-num  { font-size: 44px; }

  /* Text */
  .section-title { font-size: clamp(22px, 7vw, 30px); }
  .btn { padding: 12px 22px; font-size: 14px; }

  /* Page hero */
  .page-hero { padding: 56px 0 44px; }
  .page-hero h1 { font-size: clamp(24px, 8vw, 36px); }
}