/* New TA Website — homepage draft (style reference: clazroom.edu.my, Todak Academy colours) */
:root {
  --green: #8BB812;
  --lime: #A5BE2E;
  --green-dark: #5E7A2E;
  --orange: #FFA41C;
  --ink: #111111;
  --ink-2: #1c1d1a;
  --grey: #6b6b6b;
  --soft: #F5F5F5;
  --white: #ffffff;
  --cut: 18px;
  --cut-lg: 36px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* Chamfered corners — the main shape signature */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-lg { clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg))); }

/* Type */
.tag { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.h-xl { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: .9; font-size: clamp(56px, 10vw, 150px); }
.h-lg { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: .92; font-size: clamp(48px, 7vw, 96px); }
.h-md { font-family: var(--head); font-weight: 800; line-height: 1; font-size: clamp(34px, 4.2vw, 60px); }
.lead { color: var(--grey); max-width: 560px; font-size: 15px; }
.on-dark .lead { color: #b9b9b9; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 34px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; background: var(--green); color: var(--ink); transition: background .2s, transform .2s; }
.btn:hover { background: var(--lime); transform: translateY(-2px); }
.btn.alt { background: var(--orange); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }

/* Pixel grid background */
.pixels { position: relative; }
.pixels::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cg fill='%23000'%3E%3Crect x='4' y='4' width='40' height='40' opacity='.04'/%3E%3Crect x='52' y='52' width='40' height='40' opacity='.06'/%3E%3Crect x='148' y='4' width='40' height='40' opacity='.03'/%3E%3Crect x='100' y='100' width='40' height='40' opacity='.05'/%3E%3Crect x='4' y='148' width='40' height='40' opacity='.06'/%3E%3Crect x='148' y='148' width='40' height='40' opacity='.03'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.pixels.dark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cg fill='%238BB812'%3E%3Crect x='4' y='4' width='40' height='40' opacity='.06'/%3E%3Crect x='52' y='52' width='40' height='40' opacity='.1'/%3E%3Crect x='148' y='4' width='40' height='40' opacity='.04'/%3E%3Crect x='100' y='100' width='40' height='40' opacity='.08'/%3E%3Crect x='4' y='148' width='40' height='40' opacity='.1'/%3E%3Crect x='148' y='148' width='40' height='40' opacity='.05'/%3E%3C/g%3E%3C/svg%3E"); }
.pixels > * { position: relative; }

/* Mascot placeholder */
.mascot { position: relative; }
.mascot img { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.mascot .label { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .12em; background: var(--green); color: var(--ink); padding: 2px 10px; white-space: nowrap; }

/* Header */
/* Floating "popout" header: white bar + chamfered CTA */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: 18px; transition: padding .3s; }
.site-header.scrolled { padding-top: 10px; }
.site-header .wrap { position: relative; display: flex; align-items: stretch; height: 64px; width: min(1440px, 100% - 32px); }
.site-header .bar { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px 0 18px; background: var(--white); border: 1px solid rgba(17,17,17,.08); border-radius: 8px 0 0 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); transition: box-shadow .3s; }
.site-header.scrolled .bar { box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: .03em; }
.logo img { width: 52px; height: 52px; }
.logo span em { font-style: normal; color: var(--green); }
.site-header .logo { color: var(--ink); }
.site-header .logo img { width: 44px; height: 44px; }
.site-header .logo span em { color: var(--green-dark); }
.nav { display: flex; gap: clamp(20px, 3vw, 48px); margin-inline: auto; }
.nav a { position: relative; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 3px; background: var(--green); transition: right .25s; }
.nav a:hover { color: var(--green-dark); }
.nav a:hover::after { right: 0; }
.site-header .head-cta { height: auto; margin-left: -14px; padding: 0 38px 0 46px; font-size: 20px; background: var(--green); color: var(--ink); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.site-header .head-cta:hover { background: var(--lime); transform: none; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); font-size: 28px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: radial-gradient(1200px 600px at 75% 40%, rgba(139,184,18,.22), transparent 60%), linear-gradient(160deg, #1d2414 0%, var(--ink) 55%); color: var(--white); overflow: hidden; padding: 120px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 24px; }
.hero .h-xl span { color: var(--green); display: block; }
.hero p { color: #cfcfcf; max-width: 520px; margin: 22px 0 34px; font-size: 16px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .mascot { max-width: 420px; justify-self: end; width: 100%; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--white); clip-path: polygon(0 100%, 100% 100%, 100% 0, calc(100% - 64px) 100%, 64px 100%, 0 0); }
.scroll-hint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); font-family: var(--head); font-size: 13px; letter-spacing: .2em; color: #9a9a9a; }

/* Awards */
.awards { padding: 90px 0 110px; background: linear-gradient(#fff, #ececec); text-align: center; }
.awards .h-md { margin: 0 auto 14px; max-width: 760px; }
.awards .lead { margin: 0 auto 50px; }
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.award { background: var(--white); padding: 30px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.award .icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--soft); color: var(--green-dark); font-family: var(--head); font-weight: 800; font-size: 22px; }
.award p { font-size: 13px; color: var(--grey); }
.award strong { display: block; font-family: var(--head); font-size: 20px; color: var(--ink); margin-bottom: 4px; }

/* Programmes */
.programmes { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prog { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink-2); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.prog img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prog::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.prog > *:not(img) { position: relative; z-index: 1; }
.prog:hover img { transform: scale(1.05); }
.prog .chip { align-self: flex-start; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 3px 10px; background: var(--green); color: var(--ink); margin-bottom: 10px; }
.prog h3 { font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1; }
.prog p { font-size: 13px; color: #d0d0d0; margin-top: 6px; }
.prog-grid .prog:nth-child(1) { grid-column: span 2; aspect-ratio: auto; }

/* Why */
.why { background: var(--ink); color: var(--white); padding: 120px 0 130px; text-align: center; overflow: hidden; }
.why .mascot { width: 200px; margin: 0 auto 10px; }
.why .lead { margin: 16px auto 56px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; position: relative; }
.why-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.why-card .num { font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; opacity: .9; }
.why-card h3 { font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 1.02; }
.why-card p { font-size: 13px; margin-top: 8px; }
.why-card.c1 { background: var(--green); color: var(--ink); }
.why-card.c2 { background: var(--white); color: var(--ink); }
.why-card.c2 .num { color: var(--green); }
.why-card.c2 p { color: var(--grey); }
.why-card.c3 { background: var(--orange); color: var(--ink); }
.peek { position: absolute; left: -150px; bottom: -10px; width: 170px; }

/* Partners */
.partners { padding: 80px 0; background: var(--soft); overflow: hidden; }
.partners .tag { display: block; text-align: center; color: var(--grey); }
.marquee { display: flex; gap: 46px; width: max-content; animation: slide 40s linear infinite; margin-top: 20px; }
.marquee img { height: 82px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Events */
.events { padding: 110px 0; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event { background: var(--white); border: 1px solid #e6e6e6; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.event:hover { border-color: var(--green); transform: translateY(-4px); }
.event .chip { align-self: flex-start; font-size: 12px; border: 1px solid #ddd; padding: 1px 8px; }
.event h3 { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.1; }
.event time { font-size: 13px; color: var(--grey); }
.event img { aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-top: auto; }
.center { text-align: center; margin-top: 44px; }

/* CTA */
.cta { background: var(--ink-2); color: var(--white); padding: 90px 0 0; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: 1.4fr .5fr .8fr; gap: 28px; align-items: end; }
.cta .h-lg { margin-bottom: 16px; }
.cta .h-lg span { color: var(--green); }
.cta-copy { padding-bottom: 90px; }
.cta .mascot { max-width: 260px; }
.cta-links { display: grid; gap: 14px; padding-bottom: 90px; }
.cta-link { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background .2s; }
.cta-link:hover { background: rgba(139,184,18,.15); }
.cta-link small { display: block; font-size: 13px; color: #bbb; }
.cta-link b { font-family: var(--head); font-size: 30px; font-weight: 800; }
.cta-link i { width: 46px; height: 46px; display: grid; place-items: center; background: var(--green); color: var(--ink); font-style: normal; font-weight: 800; }

/* Footer */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 70px 0 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 34px; }
.foot-grid h4 { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--white); text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--green); }
.foot-grid address { font-style: normal; margin: 14px 0; }
.foot-bar { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #888; }
.socials { display: flex; gap: 14px; }
.socials a { font-family: var(--head); font-weight: 700; letter-spacing: .05em; }

/* Floating WhatsApp */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.wa svg { width: 28px; height: 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee { animation: none; } }

/* Responsive */
@media (max-width: 1000px) {
  .nav, .site-header .btn { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { height: 58px; }
  .site-header .bar { border-radius: 8px; clip-path: none; padding: 0 14px 0 10px; }
  .site-header .logo { font-size: 19px; }
  .site-header .logo img { width: 38px; height: 38px; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; margin: 0; background: var(--white); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 20px 20px 24px; gap: 16px; }
  .hero .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .hero .mascot { max-width: 260px; justify-self: center; }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .event-grid { grid-template-columns: 1fr; max-width: 520px; }
  .peek { display: none; }
  .cta-copy, .cta-links { padding-bottom: 0; }
  .cta .mascot { justify-self: center; }
  .cta-links { padding-bottom: 60px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .award-grid, .prog-grid { grid-template-columns: 1fr; }
  .prog-grid .prog:nth-child(1) { grid-column: auto; aspect-ratio: 4/5; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { padding: 0 24px; }
}
