
/* Super J Education - styles.css */

:root {
  --navy: #243259;
  --navy-soft: #3A4A78;
  --gold: #E5B636;
  --gold-soft: #F4D27A;
  --logo-red: #D9342B;
  --logo-green: #5BB04A;
  --logo-blue: #2E84C7;
  --logo-yellow: #F2C744;
  --ink: #1A1A1A;
  --muted: #7A7A7A;
  --surface: #FFFFFF;
  --surface-alt: #F6F4EE;
  --border: #E2E2E2;
  --font-sans: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-display: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

a { color: var(--logo-blue); }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 700; color: var(--navy); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); font-weight: 700; color: var(--navy); margin: 0 0 0.5em; }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Stack */
.stack > * + * { margin-top: var(--space, 1.5rem); }

/* Grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }

/* Section title */
.section-title {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 6px solid var(--gold);
  margin-bottom: 2rem;
}
.section-title h2 { margin: 0; font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
.section-subtitle { margin: 0.2em 0 0; font-size: 0.9375rem; color: var(--muted); }

/* Hero band */
.hero-band {
  background: var(--gold);
  padding: 80px 0;
  text-align: center;
}
.hero-band h1 { color: var(--navy); }
.hero-band .hero-subtext { max-width: 640px; margin: 0 auto 2rem; color: var(--navy); }

/* Buttons */
.btn { display: inline-block; padding: 0.75em 2em; border-radius: 50px; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; }
.cta-pill { background: var(--gold); color: var(--navy); padding: 0.5em 1.25em; border-radius: 50px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.cta-pill:hover { background: var(--gold-soft); color: var(--navy); }

/* Site header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-top: 0; padding-bottom: 0; min-height: 72px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 48px; width: auto; }

/* Nav */
#main-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; justify-content: center; flex-wrap: wrap; }
.nav-list > li > a,
.nav-list > li > button.dropdown-toggle { color: #fff; text-decoration: none; padding: 0.5rem 0.85rem; font-weight: 500; font-size: 0.9375rem; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; transition: color 0.15s; }
.nav-list > li > a:hover,
.nav-list > li > button.dropdown-toggle:hover { color: var(--gold); }
.nav-list > li > a:focus-visible,
.nav-list > li > button.dropdown-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--navy-soft); min-width: 180px; border-radius: 6px; list-style: none; margin: 0; padding: 0.5rem 0; box-shadow: var(--shadow); z-index: 200; }
.dropdown li a { color: #fff; text-decoration: none; padding: 0.5rem 1rem; display: block; font-size: 0.9rem; }
.dropdown li a:hover { background: var(--gold); color: var(--navy); }
.has-dropdown.open .dropdown { display: block; }

/* Nav toggle (mobile) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  #main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 1rem; }
  #main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; }
  .dropdown { position: static; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .cta-pill { display: none; }
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.13); transform: translateY(-2px); }

/* Headshot card */
.headshot-card { text-align: center; }
.headshot-img { width: 160px; height: 160px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; }
.headshot-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .headshot-img { width: 200px; height: 200px; } }
.headshot-img--square { border-radius: var(--radius); width: 100%; height: auto; overflow: hidden; }
.headshot-img--square img { width: 100%; height: auto; object-fit: unset; border-radius: var(--radius); }
.headshot-card h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.headshot-card .role { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75em; }
.headshot-card .intro { font-size: 0.9375rem; text-align: left; }

/* Headshot placeholder SVG */
.headshot-placeholder {
  display: block; width: 100%; height: 100%;
  background: var(--navy-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='28' r='16' fill='%23fff'/%3E%3Cellipse cx='40' cy='72' rx='28' ry='20' fill='%23fff'/%3E%3C/svg%3E") center/cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='28' r='16' fill='%23fff'/%3E%3Cellipse cx='40' cy='72' rx='28' ry='20' fill='%23fff'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* Icon tile */
.icon-tile { text-align: center; padding: 1rem; }
.icon-tile img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 0.5rem; }
.icon-tile p { font-size: 0.875rem; color: var(--ink); margin: 0; }

/* Key Characteristics horizontal item */
.kc-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.kc-item:last-child { border-bottom: none; }
.kc-item img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; margin-top: 0.2rem; border-radius: 50%; overflow: hidden; }
.kc-item-text strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.kc-item-text p { margin: 0; color: var(--ink); line-height: 1.7; }

/* Consultant cards */
.consultant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .consultant-grid { grid-template-columns: 1fr; } }
.consultant-card h3 { font-size: 1.6rem; font-weight: 700; color: var(--logo-blue); margin: 0 0 0.75rem; }
.consultant-card p { margin: 0 0 0.75em; line-height: 1.75; }
.consultant-card p:last-child { margin-bottom: 0; }

/* Milestone list */
.milestone-list { list-style: none; padding: 0; margin: 0; }
.milestone-list li { display: flex; gap: 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.milestone-list li:last-child { border-bottom: none; }
.milestone-date { flex: 0 0 6.5rem; font-weight: 700; color: var(--gold); font-size: 0.95rem; white-space: nowrap; }
.milestone-text { color: var(--ink); line-height: 1.65; }

/* Diagram figure */
.diagram-figure { margin: 2rem 0; text-align: center; }
.diagram-figure img { max-width: 100%; height: auto; border-radius: 8px; }
.diagram-figure figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }

/* Data table */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table thead tr { background: var(--navy); color: #fff; }
.data-table th { padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.data-table tbody tr:hover { background: rgba(36,50,89,0.05); }

/* Content prose */
.content-prose { max-width: 800px; }
.content-prose p { margin-bottom: 1.25em; }
.muted-note { color: var(--muted); font-size: 0.9375rem; }

/* Contact address */
.contact-address { font-style: normal; display: block; margin: 1.5rem auto; }
.contact-address p { margin: 0.5em 0; font-size: 1.1rem; }
.contact-address a { color: var(--logo-blue); }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand img { height: 48px; width: auto; display: block; align-self: flex-start; }
.footer-tagline { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin: 0; }

/* Back to top */
.back-to-top { position: fixed; bottom: 24px; right: 24px; background: var(--gold); color: var(--navy); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 99; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* Page header section */
.page-header-section { padding-top: 48px; }

ul { padding-left: 1.5rem; }
ul li { margin-bottom: 0.5em; }

/* AP advantages numbered list */
.ap-advantages { list-style: none; padding: 0; margin: 0; }
.ap-advantage-item { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.75rem; }
.ap-num {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: var(--ink);
  line-height: 1;
}
.ap-advantage-item p { margin: 0; padding-top: 0.3rem; }

@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero-band { padding: 48px 0; }
}
