/* ============================================================
   Wings Melaka — hand-written stylesheet (no framework)
   Palette taken from the Wings Melaka logo (eagle / sun / sky).
   ============================================================ */

:root {
  --navy: #1E2A6E;
  --navy-soft: #2E3F8A;
  --gold: #F5B82E;
  --gold-deep: #D9971A;
  --sky: #5BA8DC;
  --sky-light: #BFE6FA;
  --cream: #FFF9EE;
  --ink: #1F2630;
  --muted: #5B6675;
  --line: #E7EBF0;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(27, 42, 87, .06);
  --shadow-md: 0 12px 30px rgba(27, 42, 87, .10);
  --maxw: 1160px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; color: var(--navy); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 0; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(245, 184, 46, .4); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 12px 24px; font-size: 15px; }

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 46px; height: 46px; flex: 0 0 auto; }
.brand .name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; color: var(--navy); line-height: 1; }
.brand .name small { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .42em; color: var(--gold-deep); margin-top: 3px; }
.logo-img { height: 60px; width: auto; display: block; }

nav.main { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 15px;
  color: var(--navy-soft); transition: .18s;
}
.nav-item > a:hover, .nav-item > a.active { background: #F1F6FB; color: var(--navy); }
.nav-item .caret { font-size: 10px; opacity: .6; }

.dropdown {
  position: absolute; left: 0; top: 100%; width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--navy-soft); }
.dropdown a:hover { background: #F1F6FB; color: var(--navy); }

.nav-cta { margin-left: 8px; background: var(--gold); color: #fff !important; padding: 10px 20px !important; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 16px rgba(245, 184, 46, .35); }
.nav-cta:hover { background: var(--gold-deep) !important; }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* mobile menu (toggled by JS) */
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 24px 24px; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: block; }
.mobile-menu > a, .mobile-menu .m-group > span { display: block; padding: 13px 6px; font-weight: 600; color: var(--navy-soft); }
.mobile-menu .m-sub { margin-left: 12px; border-left: 1px solid var(--line); padding-left: 12px; }
.mobile-menu .m-sub a { display: block; padding: 9px 6px; font-size: 14px; color: var(--muted); }
.mobile-menu .nav-cta { display: block; text-align: center; margin-top: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(20, 30, 80, .45) 0%, rgba(20, 30, 80, .28) 45%, rgba(20, 30, 80, .48) 100%), url('../assets/hero-bg.jpg') center 30% / cover no-repeat; }
.hero .sun { display: none; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 88px 0 120px; text-align: center; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .7); color: #2C6FA6; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 16px rgba(10, 18, 50, .5); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255, 255, 255, .94); max-width: 600px; margin: 0 auto 34px; text-shadow: 0 1px 10px rgba(10, 18, 50, .45); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wave { display: block; width: 100%; height: auto; margin-top: -2px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.cream { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.kicker { color: var(--gold-deep); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* who we are */
.who-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.who h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.who p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.values { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }
.pill { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.photo-ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, #cfeafe, #a7d3f2); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; color: #4a7aa6; font-weight: 600; overflow: hidden; }
.photo-ph .tag { position: absolute; bottom: 14px; left: 14px; background: rgba(255, 255, 255, .85); padding: 6px 12px; border-radius: 8px; font-size: 12px; color: var(--muted); }

/* card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: .22s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d4e3f2; }
.card .ico { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.card .age { font-size: 13px; font-weight: 600; color: #2C6FA6; }
.badge-closed { position: absolute; top: 18px; right: 18px; background: #FBEAEA; color: #C0392B; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ic-sky { background: #E3F1FC; } .ic-amber { background: #FFF1DC; } .ic-green { background: #E8F5E9; }
.ic-purple { background: #F3E9FB; } .ic-pink { background: #FCE9EF; } .ic-teal { background: #E9F6F4; }

/* impact */
.impact { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats .num { font-family: 'Fraunces', serif; font-size: 46px; font-weight: 700; color: #fff; }
.stats .num span { color: var(--gold); }
.stats .lbl { color: #b9c6e6; font-size: 15px; margin-top: 4px; }

/* get involved cards */
.inv { border-radius: var(--radius); padding: 34px 28px; text-align: center; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: .22s; }
.inv:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.inv .ico { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 18px; }
.inv h3 { font-size: 22px; margin-bottom: 10px; }
.inv p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ---------- inner page header ---------- */
.page-header { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(20, 30, 80, .52), rgba(20, 30, 80, .44)), url('../assets/hero-bg.jpg') center 45% / cover no-repeat; text-align: center; }
.page-header .sun { display: none; }
.page-header .inner { position: relative; z-index: 2; padding: 64px 24px 80px; }
.page-header .kicker { color: var(--gold) !important; }
.page-header h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; color: #fff; text-shadow: 0 2px 16px rgba(10, 18, 50, .5); }
.page-header p { max-width: 640px; margin: 16px auto 0; color: rgba(255, 255, 255, .92); font-size: 17px; text-shadow: 0 1px 10px rgba(10, 18, 50, .45); }

/* ---------- generic content ---------- */
.content { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.content.wide { max-width: 900px; }
.content.widest { max-width: 1000px; }
.block { margin-bottom: 60px; scroll-margin-top: 90px; }
.block h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 16px; }
.block h3 { font-size: 19px; margin: 22px 0 12px; }
.block p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
blockquote { border-left: 4px solid var(--gold); background: var(--cream); padding: 16px 20px; font-style: italic; color: var(--navy); font-size: 17px; border-radius: 0 8px 8px 0; }
blockquote footer { margin-top: 8px; font-size: 14px; font-weight: 600; font-style: normal; color: var(--gold-deep); }

/* info table (board / staff / office bearers) */
.info-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-table .row { display: grid; grid-template-columns: 220px 1fr; gap: 8px; padding: 14px 20px; }
.info-table .row:nth-child(odd) { background: var(--cream); }
.info-table .row .k { font-weight: 600; color: var(--navy); }
.info-table .row .v { color: var(--muted); }

/* triple value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-grid .vcard { border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 20px; }
.value-grid .vcard .lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-deep); margin-bottom: 6px; }
.value-grid .vcard p { font-size: 15px; color: var(--muted); margin: 0; }

/* services detail */
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 24px; scroll-margin-top: 90px; }
.svc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.svc-head .ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 auto; }
.svc-head h2 { font-size: 24px; line-height: 1.2; }
.svc-head .age { font-size: 14px; font-weight: 600; color: #2C6FA6; }
.svc ul { list-style: none; }
.svc ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 16px; color: var(--muted); }
.svc ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.curriculum { margin-top: 20px; background: var(--cream); border-radius: 12px; padding: 20px; }
.curriculum .lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-deep); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--navy); }

/* ---------- news timeline ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; }
.news-entry { position: relative; margin-bottom: 56px; scroll-margin-top: 90px; }
.news-entry .dot { position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.news-entry .date { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-deep); margin-bottom: 4px; }
.news-entry h2 { font-size: 24px; margin-bottom: 12px; }
.news-entry p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream); }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.gallery figcaption { padding: 8px 12px; font-size: 13px; font-style: italic; color: var(--muted); }

/* ---------- calendar tables ---------- */
.cal-note { display: flex; gap: 10px; align-items: flex-start; background: #FFF6E0; border: 1px solid #F3D588; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; font-size: 14px; color: #8a6d1f; }
.cal-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-table caption { text-align: left; font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: 16px; }
.cal-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 16px; text-align: left; }
.cal-table td { padding: 11px 16px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.cal-table tbody tr:nth-child(even) td { background: var(--cream); }
.cal-table td .note { display: block; font-size: 12px; color: var(--sky); margin-top: 2px; }
.cal-table .term { font-weight: 600; color: var(--navy); }
@media (max-width: 620px) { .cal-table th, .cal-table td { padding: 9px 10px; font-size: 13px; } }

/* ---------- forms ---------- */
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); }
.form .req { color: var(--gold-deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.check input { width: auto; accent-color: var(--gold); margin-top: 4px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 16px; color: var(--muted); }
.contact-list li .ico { font-size: 20px; }
.map { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- team grid (About) ---------- */
.team-intro { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 16px; margin: 14px 0 36px; }
.member { text-align: center; }
.avatar { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 600; font-size: 28px; color: var(--navy); box-shadow: var(--shadow-sm); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-name { font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.3; }
.m-role { color: var(--gold-deep); font-size: 13px; font-weight: 600; margin-top: 3px; }
.m-prof { color: var(--muted); font-size: 12px; margin-top: 1px; }

/* ---------- form status message ---------- */
.form-status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 1em; }
.form-status.ok { color: #1b8a4b; }
.form-status.err { color: #C0392B; }
.svc p + h3 { margin-top: 24px; }
.svc .lead { font-size: 17px; color: var(--muted); margin-bottom: 14px; }
.svc .since { display: inline-block; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--gold-deep); margin-bottom: 16px; }

/* ---------- footer ---------- */
footer.site { background: linear-gradient(180deg, #BFE6FA, #A7D3F2); color: #35426A; padding: 38px 0 20px; font-size: 14px; border-top: 1px solid #93C6EC; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 22px; border-bottom: 1px solid rgba(30, 42, 110, .16); align-items: center; }
.foot-grid > div { text-align: center; }
.foot-grid .brand { justify-content: center; margin-bottom: 4px; }
.foot-grid .desc { margin-left: auto; margin-right: auto; }
.foot-grid .socials { justify-content: center; }
footer .brand img { display: block; height: 104px; width: auto; }
footer h4 { color: var(--navy); font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
footer a { display: block; padding: 4px 0; color: var(--navy-soft); transition: .15s; }
footer a:hover { color: var(--gold-deep); }
footer .desc { margin: 6px auto 14px; max-width: 300px; color: #3B487A; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid rgba(30, 42, 110, .12); color: var(--navy); display: flex; align-items: center; justify-content: center; padding: 0; font-weight: 700; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.copyright { padding-top: 18px; text-align: center; color: #44527D; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  nav.main { display: none; }
  .burger { display: flex; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .value-grid, .check-grid, .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .info-table .row { grid-template-columns: 1fr; gap: 2px; }
  .hero-inner { padding: 64px 0 90px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
