
@property --g1x { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
@property --g1y { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --g2x { syntax: '<percentage>'; inherits: false; initial-value: 80%; }
@property --g2y { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --g3x { syntax: '<percentage>'; inherits: false; initial-value: 70%; }
@property --g3y { syntax: '<percentage>'; inherits: false; initial-value: 80%; }
@property --g4x { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --g4y { syntax: '<percentage>'; inherits: false; initial-value: 20%; }

:root {
  --white: #ffffff;
  --text-dark: #00222f;
  --teal: #00435e;
  --light-teal: #0e7695;
  --yellow: #daca23;
  --peach: #ed7967;
  --green: #84d8d0;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--white);
  color: var(--teal);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  body { font-size: 16px; }
}

/* ── HEADINGS ── */
h1 {
  font-family: 'Urbanist', sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: var(--light-teal);
}

h2 {
  font-family: 'Urbanist', sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--light-teal);
}
@media (max-width: 1340px) {
  h2 { font-size: 38px; }
}
@media (max-width: 768px) {
  h2 { font-size: 32px; }
}

h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--teal);
}

/* ── LINKS ── */
a {
  color: var(--teal);
}
a:hover {
  color: var(--light-teal);
}
.footer-wrapper a:hover {
  color: inherit;
}

/* ── HAMBURGER / MOBILE NAV ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background: var(--light-teal);
  padding: 1.5rem 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile ul a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

/* ── NAV ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.nav-app-btn {
  margin: 0;
  white-space: nowrap;
}

nav {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 125px;
  border-bottom: 0.01rem solid rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo-img img {
  height: 100px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--teal);
}
@media (max-width: 1340px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  nav { padding: 0.75rem 1.25rem; justify-content: space-between; height: auto; }
  .nav-logo-img img { height: 80px; }
  nav .nav-app-btn { display: none; }
}

/* ── BUTTONS ── */
.btn-cta {
  background: var(--light-teal);
  color: white;
  border: none; cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 1.8rem;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s;
  margin: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-cta:hover { background: var(--peach); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--light-teal);
  border: 2px solid var(--light-teal);
  cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 1.8rem;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0;
}
.btn-outline:hover { background: var(--peach); color: var(--white); border-color: transparent; }
@media (max-width: 768px) {
  .btn-cta, .btn-outline { font-size: 16px; }
}

/* ── HERO ── */
.hero {
  padding: 6.5rem 4rem 0;
  --g1x: 10%; --g1y: 90%;
  --g2x: 80%; --g2y: 20%;
  --g3x: 70%; --g3y: 80%;
  --g4x: 30%; --g4y: 20%;
  background: radial-gradient(ellipse at var(--g1x) var(--g1y), var(--peach) 0%, transparent 60%),
              radial-gradient(ellipse at var(--g2x) var(--g2y), var(--green) 0%, transparent 80%),
              radial-gradient(ellipse at var(--g3x) var(--g3y), var(--light-teal) 0%, transparent 40%),
              radial-gradient(ellipse at var(--g4x) var(--g4y), var(--yellow) 0%, transparent 70%),
              var(--green);
  animation: heroGradient 14s ease-in-out infinite;
}

@keyframes heroGradient {
  0%   { --g1x: 10%; --g1y: 90%; --g2x: 80%; --g2y: 20%; --g3x: 70%; --g3y: 80%; --g4x: 30%; --g4y: 20%; }
  25%  { --g1x: 75%; --g1y: 15%; --g2x: 15%; --g2y: 75%; --g3x: 25%; --g3y: 15%; --g4x: 85%; --g4y: 75%; }
  50%  { --g1x: 90%; --g1y: 50%; --g2x: 10%; --g2y: 45%; --g3x: 55%; --g3y: 90%; --g4x: 55%; --g4y: 10%; }
  75%  { --g1x: 20%; --g1y: 25%; --g2x: 65%; --g2y: 75%; --g3x: 85%; --g3y: 25%; --g4x: 10%; --g4y: 85%; }
  100% { --g1x: 10%; --g1y: 90%; --g2x: 80%; --g2y: 20%; --g3x: 70%; --g3y: 80%; --g4x: 30%; --g4y: 20%; }
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 3rem 3rem 0 0;
  overflow: hidden;
  margin-top: 0.75rem;
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  background: var(--white);
  color: var(--teal);
  padding: 12px 40px;
  border-radius: 1.5rem;
  display: inline-block;
  opacity: 95%;
}
.hero-badge h2 {
  margin: 0;
}
@media (max-width: 1340px) {
  .hero { padding-top: 75px; }
  .hero-image-wrap { height: 490px; }
  .hero-badge { bottom: 2.5rem; left: 2.5rem; }
  .hero-badge h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 50px; padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-image-wrap { height: 290px; }
  .hero-badge { bottom: 1rem; left: 1rem; padding: 12px 20px; }
  .hero-badge h2 { font-size: 18px; }
}

/* ── ABOUT ── */
.about {
  padding: 5rem 6rem 5rem 6rem;
  display: grid;
  border-radius: 3rem 3rem 0 0;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  background: var(--green);
}
.about-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.about-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 64px;
}
.ams-logo { height: 88px; }
.imc-logo { height: 100px; }
@media (max-width: 1720px) {
  .about-logos { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 900px) {
  .about-logos { flex-direction: column; align-items: flex-start; gap: 24px; }
}

.about-heading {
  background: var(--white);
  padding: 1rem 3rem 6rem 3rem;
  border-radius: 1.75rem;
  margin-left: 0rem;
  min-width: 0;
}
@media (max-width: 1200px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-heading { padding-bottom: 32px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .about-logos { flex-direction: row; align-items: center; gap: 24px; }
}
@media (max-width: 1340px) {
  .about { padding-left: 2rem; padding-right: 2rem; }
  .ams-logo { height: 78px; }
}
@media (min-width: 1201px) and (max-width: 1340px) {
  .about-logos { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 900px) {
  .ams-logo { height: 78px; }
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding: 4rem 1.25rem 4rem; }
  .about-heading { padding: 16px 24px 32px; }
  .ams-logo { height: 58px; }
}
@media (max-width: 600px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding: 4rem 1.25rem 4rem; }  
  .ams-logo { height: 55px; }
}

.about-card {
  border-radius: 1.7rem;
  padding: 0px 30px 0px 30px;
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: box-shadow 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
}
.about-card h3 {
  transition: margin-bottom 0.5s ease;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--teal);
  transition: transform 0.3s ease;
}
.about-card.is-open .card-chevron {
  transform: rotate(180deg);
}
.about-card p,
.about-card a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  color: var(--teal);
  transition: opacity 0.3s ease-in-out 0s, max-height 0.4s ease-in-out 0.05s;
}
.about-card.is-open {
  padding-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.about-card.is-open h3 {
  margin-bottom: 16px;
}
.about-card.is-open p {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 16px;
}
.about-card.is-open a {
  max-height: 300px;
  opacity: 1;
}
.about-card a:hover {
  color: var(--light-teal);
}
@keyframes cardFlip {
  0%   { transform: perspective(800px) rotateY(0deg); }
  30%  { transform: perspective(800px) rotateY(15deg); }
  100% { transform: perspective(800px) rotateY(0deg); }
}
.about-card.flipping {
  animation: cardFlip 0.5s ease-out forwards;
}

/* ── ENROLL ── */
.enroll {
  background: var(--white);
  padding: 6rem 6rem 2rem 6rem;
}
@media (max-width: 1340px) {
  .enroll { padding-left: 2rem; padding-right: 2rem; padding-top: 3rem; }
}
@media (max-width: 768px) {
  .enroll { padding: 2rem; }
}

.photo-background-wrap {
  position: relative;
  width: 100%;
  height: clamp(160px, 22vw, 300px);
  background: var(--peach);
}
.photo-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.photo-background-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--yellow) 80%, transparent);
}

.enroll-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .enroll-content { grid-template-columns: 1fr; }
}

.enroll-photo {
  border-radius: 1.5rem;
  overflow: hidden;
  height: 25rem;
  border: 2px solid var(--green);
}
.enroll-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 95%
}
@media (max-width: 768px) {
  .enroll-photo { height: auto; aspect-ratio: 4 / 3; width: 100%; box-sizing: border-box; }
}

/* ── VIDEOS ── */
.video-card h3 {
  margin: 0 0 8px 0;
}
.video-card p {
  margin: 0;
}
.videos-section {
  padding: 2rem 6rem 5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
}
@media (max-width: 1340px) {
  .videos-section { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 900px) {
  .videos-section { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 6rem; }
}
@media (max-width: 768px) {
  .videos-section { grid-template-columns: 1fr; padding-top: 2rem; padding-bottom: 4.5rem; gap: 3rem; }
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid var(--yellow);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── ACADEMICS ── */
.academics-section {
  background: var(--peach);
  padding: 3rem 6rem 3rem 6rem;
  border-radius: 0 0 3rem 3rem;
}
@media (max-width: 1340px) {
  .academics-section { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 768px) {
  .academics-section { padding: 2rem 2rem 4rem; }
}

.academics-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}
@media (max-width: 1200px) {
  .academics-amounts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .academics-amounts { grid-template-columns: 1fr; gap: 1rem; }
}

.academics-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--white);
}
.academics-card-img {
  height: 220px;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}
.academics-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(80%);
}
.academics-card h3 {
  color: var(--teal);
  padding: 30px 30px 8px;
  margin: 0;
}
.academics-card p {
  padding: 0 30px 16px;
  margin: 0;
}
.academics-learn-more {
  display: inline-block;
  margin: 0 30px 30px;
}

/* ── APP LOG IN ── */
.app-section {
  background: var(--white);
  padding: 3rem 6rem 6rem 6rem;
  text-align: center;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.app-grid .btn-cta {
  display: flex;
  text-align: center;
  text-decoration: none;
  margin: 0;
}
@media (max-width: 1340px) {
  .app-section { padding-left: 2rem; padding-right: 2rem; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-section { padding: 2rem 1.25rem 4rem; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FOOTER ── */
.footer-wrapper {
  background: var(--teal);
  overflow: hidden;
  border-radius: 3rem 3rem 0 0;
}
footer {
  background: transparent;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 30% 50%;
  gap: 20%;
  align-items: end;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  overflow-wrap: break-word;
}
.footer-brand a { text-decoration: none; }
.footer-social {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.875rem;
}
.footer-social a {
  text-decoration: none;
}
.footer-contact {
  text-align: right;
  background: transparent;
  min-width: 0;
  overflow-wrap: break-word;
}
.footer-bottom {
  background: var(--yellow);
  padding: 1.125rem 3rem;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1340px) {
  footer { padding-left: 2rem; padding-right: 2rem; grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { padding-left: 2rem; padding-right: 2rem; }
  .footer-wrapper { padding-left: 2rem; padding-right: 2rem; }
  .footer-contact { text-align: left; }
  .footer-social { justify-content: flex-start; }
}
@media (max-width: 768px) {
  footer { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.25rem; }
  .footer-brand { justify-content: flex-start; }
  .footer-contact { text-align: left; padding: 0; }
  .footer-contact h3 { font-size: 18px; }
  .footer-social { justify-content: flex-start; margin-top: 1rem; }
  .footer-wrapper { padding-left: 0; padding-right: 0; padding-bottom: 0; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem; }
}

/* ── ANIMATIONS ── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes badgeEntrance {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.95; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

nav { animation: slideDown 0.5s ease-out; }
.hero-badge { animation: badgeEntrance 0.8s ease-out 0.5s both; }

.anim-fade-up { opacity: 0; }
.anim-fade-up.in-view { animation: fadeInUp 0.6s ease-out forwards; }
.anim-fade { opacity: 0; }
.anim-fade.in-view { animation: fadeIn 0.8s ease-out forwards; }
