/* ABIX — Asia Business & Investment Exchange */
:root {
  --navy: #0B1F33;
  --navy-deep: #071521;
  --navy-mid: #14304a;
  --gold: #C6A15B;
  --gold-light: #d4b87a;
  --gold-dark: #a8853f;
  --white: #ffffff;
  --off-white: #f7f5f1;
  --muted: #5c6b7a;
  --line: rgba(198, 161, 91, 0.28);
  --shadow: 0 18px 48px rgba(11, 31, 51, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 51, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198, 161, 91, 0.2);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 0 0 1px rgba(198,161,91,0.25);
}
.logo img {
  display: block;
  height: 42px;
  width: auto;
}
@media (min-width: 900px) {
  .logo img { height: 48px; }
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active {
  color: var(--gold-light);
  background: rgba(198,161,91,0.1);
}
.nav-cta {
  margin-left: 0.4rem !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1rem !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(198,161,91,0.45);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy-deep) center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,21,33,0.92) 0%, rgba(7,21,33,0.72) 48%, rgba(7,21,33,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 720px;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0 2.75rem;
  border-bottom: 3px solid var(--gold);
}
.page-hero p { color: rgba(255,255,255,0.78); max-width: 40rem; margin: 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--off-white); }
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy .muted { color: rgba(255,255,255,0.7); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-navy .section-head p { color: rgba(255,255,255,0.72); }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(11,31,51,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(11,31,51,0.05);
}
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(198,161,91,0.15);
  color: var(--gold-dark);
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.feature-split img, .media-frame img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.media-frame { overflow: hidden; border-radius: var(--radius); }
.muted { color: var(--muted); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(198,161,91,0.25);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.stat span { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* Expect chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip {
  background: rgba(198,161,91,0.12);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Events */
.event-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(11,31,51,0.08);
  box-shadow: 0 8px 24px rgba(11,31,51,0.05);
}
.event-date {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
}
.event-date .day { font-size: 1.55rem; font-weight: 800; color: var(--gold); line-height: 1; }
.event-date .mon { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.35rem; }
.event-date .year { font-size: 0.8rem; opacity: 0.7; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.badge-confirmed { background: rgba(46, 160, 100, 0.15); color: #1f7a4a; }
.badge-tentative { background: rgba(198,161,91,0.18); color: var(--gold-dark); }
.event-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.event-list { display: grid; gap: 1.1rem; }

/* Partners */
.partner-card {
  text-align: left;
  padding: 1.75rem;
  height: 100%;
}
.partner-card .role {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.partner-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
  min-width: 0;
}
.partner-card-head h3 {
  margin: 0;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.partner-card-logo {
  flex: 0 0 auto;
  display: block;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 148px;
  object-fit: contain;
  object-position: left center;
}
/* SV mark is only ~72×48 native — never upscale */
.partner-card-logo-sv {
  max-height: 40px;
  max-width: 72px;
  width: 72px;
  height: auto;
}

/* News */
.news-note {
  background: rgba(198,161,91,0.1);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,31,51,0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(11,31,51,0.18);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--navy);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(198,161,91,0.45);
  border-color: var(--gold);
}
textarea { min-height: 140px; resize: vertical; }
.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}
.consent input { width: auto; margin-top: 0.25rem; }
.placeholder-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
}
.contact-aside {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-aside a { color: var(--gold-light); }
.contact-aside h3 { color: var(--gold); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band p { color: rgba(255,255,255,0.78); max-width: 36rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand { color: var(--white); font-weight: 800; letter-spacing: 0.08em; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.disclaimer {
  max-width: 58rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
}

/* Privacy */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { color: var(--muted); }

/* Next event highlight — banner shown in full (no crop) */
.next-event {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,31,51,0.08);
}
.next-event-body { padding: 1.75rem; }
.next-event-media {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.next-event-media picture,
.next-event-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 880 / 555;
}
/* Contain variant for feature media (event banner with text/faces) */
.media-frame.media-frame-contain {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* radius only; image uses contain so edges stay visible */
}
.media-frame.media-frame-contain picture,
.feature-split .media-frame-contain img,
.media-frame.media-frame-contain img {
  width: 100%;
  height: auto;
  object-fit: contain !important;
  aspect-ratio: 880 / 555;
  box-shadow: none;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature-split, .next-event, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 110px 1fr; }
}
@media (max-width: 760px) {
  .partner-card-head {
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(198,161,91,0.25);
    gap: 0.15rem;
  }
  .nav.open { display: flex; }
  .nav-cta { margin-left: 0 !important; text-align: center; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 4rem 0 3rem; }
  .event-card { grid-template-columns: 1fr; }
}


/* ACC Gala panoramic photo — never crop heads */
.gala-band {
  margin: 1.75rem 0 0;
}
.gala-band picture,
.gala-band img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}
.section-navy .gala-band {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.gala-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin: 0.65rem 0 0;
  text-align: center;
}
.section:not(.section-navy) .gala-caption { color: var(--muted); }
.gala-about-photo {
  margin-top: 1.5rem;
}
.gala-about-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Watch on YouTube CTA (no iframe) */
.yt-cta {
  margin: 1.35rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}
.btn-watch {
  font-size: 1rem;
  padding: 0.95rem 1.55rem;
}
.yt-play { flex-shrink: 0; }
.yt-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.section:not(.section-navy) .yt-note { color: var(--muted); }

/* Footer logo */
.footer-logo {
  display: inline-block;
  margin-bottom: 0.85rem;
  line-height: 0;
}
.footer-logo img {
  display: block;
  height: 52px;
  width: auto;
}
.footer-address {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.7);
}
.footer-address a { color: rgba(255,255,255,0.78); }
.footer-address a:hover { color: var(--gold-light); }

/* Partner logo row */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 1.75rem 0 2rem;
}
.partner-logo-card {
  background: #fff;
  border: 1px solid rgba(11,31,51,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.1rem;
  min-height: 110px;
}
.partner-logo-card img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.partner-logo-card.logo-acc img { max-height: 40px; width: auto; max-width: 150px; }
.partner-logo-card.logo-mb img { max-height: 36px; width: auto; max-width: 180px; }
.partner-logo-card.logo-abix img { max-height: 56px; width: auto; max-width: 200px; }
.partner-logo-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

/* Event detail */
.event-detail {
  scroll-margin-top: 90px;
}
.event-detail-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #12324f 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.event-detail-hero .eyebrow { color: var(--gold); }
.event-detail-hero h2 { color: var(--white); margin: 0.35rem 0 0.85rem; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}
.event-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.event-meta dd { margin: 0; color: rgba(255,255,255,0.9); font-weight: 600; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.event-fee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(198,161,91,0.15);
  border: 1px solid rgba(198,161,91,0.45);
  color: var(--gold-light);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Agenda timeline */
.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.agenda::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(198,161,91,0.15));
}
.agenda li {
  position: relative;
  padding: 0 0 1.15rem 2rem;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.agenda li:last-child { padding-bottom: 0; }
.agenda li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,161,91,0.2);
}
.agenda-time {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.95rem;
}
.agenda-item { font-weight: 600; color: var(--navy); }

/* People */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.person-card {
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(11,31,51,0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem 1.35rem;
  box-shadow: var(--shadow);
}
.person-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(198,161,91,0.2);
  background: #e8eef4;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
}
.person-role {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.person-bio {
  text-align: left;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}
.person-card.person-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem 1.5rem;
  text-align: left;
  align-items: start;
}
.person-card.person-wide .person-photo { margin: 0; }
.person-card.person-wide .person-bio { margin-top: 0.65rem; }

@media (max-width: 760px) {
  .partner-logos { grid-template-columns: 1fr; }
  .agenda li { grid-template-columns: 1fr; gap: 0.2rem; }
  .person-card.person-wide { grid-template-columns: 1fr; text-align: center; }
  .person-card.person-wide .person-photo { margin: 0 auto 0.5rem; }
  .person-card.person-wide .person-bio { text-align: left; }
  .event-detail-hero { padding: 1.5rem 1.15rem; }
}
