/* AY Academy — public website styles */

:root {
  --green: #25764f;
  --green-dark: #18593b;
  --deep: #143f32;
  --lime: #eaf5e7;
  --gold: #dcae54;
  --bg: #f5f8f4;
  --muted: #718176;
  --border: #e2eae3;
  --shadow: 0 12px 35px #15392712;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #1d342b;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid #6db98b;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 6%;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--deep);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), #369b69);
  font-size: 19px;
  letter-spacing: -2px;
  box-shadow: 0 5px 16px #25764f30;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 29px;
  color: #435d4f;
}

.navlinks a:not(.btn) {
  font-weight: 550;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.navlinks a:not(.btn):hover { color: var(--green); border-color: #b9dcc4; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--deep);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  padding: 12px 19px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; }
.btn.outline {
  background: #fff;
  color: var(--deep);
  border: 1px solid #cbded0;
}
.btn.outline:hover { background: #f1f8f1; }
.btn-block { width: 100%; }

.portal-link { white-space: nowrap; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 50px;
  padding: 95px 7% 80px;
  background:
    radial-gradient(ellipse at 85% 16%, #d4efd3, transparent 36%),
    linear-gradient(135deg, #f2f7e9, #fff);
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 30px;
  background: #e4f2dc;
  color: #297447;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 19px 0;
  font-size: clamp(37px, 5vw, 69px);
  line-height: 1.09;
  letter-spacing: -2px;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p {
  max-width: 575px;
  color: #586d5e;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-graphic {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 32px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(155deg, #1b5840, #12382e);
  box-shadow: 0 26px 56px #0d3c2c30;
}
.hero-graphic::before {
  content: "✧";
  position: absolute;
  right: -18px;
  top: -93px;
  color: #ffffff14;
  font-size: 260px;
}
.hero-graphic .small { color: #c8e5ce; letter-spacing: 1px; }
.hero-graphic h2 {
  position: relative;
  max-width: 320px;
  margin: 24px 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.16;
}
.mini-stats { display: flex; gap: 12px; margin-top: 55px; }
.mini-stats div {
  flex: 1;
  padding: 12px;
  border: 1px solid #ffffff30;
  border-radius: 14px;
  background: #ffffff1d;
  font-size: 12px;
}
.mini-stats strong { display: block; font-size: 22px; }

/* ---------- Sections ---------- */

.section { padding: 75px 7%; }
.section h2 {
  margin: 8px 0 11px;
  font-size: clamp(28px, 3vw, 35px);
  letter-spacing: -.7px;
}
.section-intro { max-width: 640px; color: var(--muted); }

.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.program-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px #1539271a;
}
.program-card .symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lime);
  font-size: 26px;
}
.program-card h3 { margin: 18px 0 8px; }
.program-card p { margin: 0; color: var(--muted); }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 7%;
  background: #e3f0e4;
}
.banner h2 { margin: 10px 0 6px; font-size: clamp(25px, 3vw, 32px); }
.banner p { margin: 0; color: #627568; }
.banner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.banner-points span {
  padding: 9px 14px;
  border: 1px solid #c3ddc5;
  border-radius: 999px;
  background: #f7fcf5;
  color: #2c6b47;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Admission form ---------- */

.contact-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list strong { color: var(--deep); }
.contact-list span { color: var(--muted); }

.contact-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 5px; font-size: 24px; }
.form-intro { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  color: #3d5545;
  font-size: 13px;
  font-weight: 650;
}
.field > span small { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dce7de;
  border-radius: 10px;
  background: #fff;
  color: #1d342b;
  font-weight: 400;
  outline-color: #89bc9a;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #7fb695;
  box-shadow: 0 0 0 3px #dff0e3;
}
.field textarea { resize: vertical; min-height: 100px; }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  color: #53685a;
  font-size: 13px;
}
.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff55;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.spinner-sm { width: 17px; height: 17px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.form-status.error {
  border: 1px solid #f0caca;
  background: #fff1f1;
  color: #9d3434;
}
.form-status.info {
  border: 1px solid #d5e8d7;
  background: #f1f8f1;
  color: #2c6845;
}

.form-success {
  padding: 22px 4px 4px;
  text-align: center;
}
.form-success .success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e2f4e6;
  color: #1f7b4a;
  font-size: 27px;
  font-weight: 800;
}
.form-success h3 { margin: 0 0 8px; }
.form-success p { color: var(--muted); }
.form-success .reference {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f2f7f1;
  color: #2e6543;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.privacy-note {
  margin: 14px 0 0;
  color: #8a978d;
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 7%;
  border-top: 1px solid var(--border);
  background: #fff;
  color: #76877b;
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.footer-brand strong { color: var(--deep); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-graphic { min-height: 290px; }
  .mini-stats { margin-top: 30px; }
  .contact-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .public-header { height: 70px; padding: 0 5%; }
  .nav-toggle { display: block; }
  .navlinks {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 5% 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 16px 30px #15392718;
  }
  .navlinks.open { display: flex; }
  .navlinks a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid #f0f4ef; }
  .navlinks .btn { margin-top: 8px; }

  .hero { padding: 48px 5% 55px; }
  .hero p { font-size: 16px; }
  .section { padding: 55px 5%; }
  .programs { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; padding: 32px 5%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 22px; }
  .contact-list li { grid-template-columns: 1fr; gap: 3px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 26px 5%; }
}

@media (max-width: 430px) {
  .brand { font-size: 17px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
