/* ============================================
   MyBHA Penang — Landing Page Styles
   ============================================ */

:root {
  --navy: #0a1a3d;
  --navy-deep: #061230;
  --navy-light: #122657;
  --gold: #c9a155;
  --gold-light: #e0bd76;
  --gold-soft: #f5e9cf;
  --ink: #1a1f36;
  --muted: #5b6478;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-cream: #faf7f1;
  --shadow-sm: 0 2px 8px rgba(10, 26, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 26, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 26, 61, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .25s ease; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,161,85,.35);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ----- Top Bar ----- */
.top-bar {
  background: var(--navy-deep);
  color: #d0d6e6;
  font-size: 0.85rem;
  padding: 10px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-left span { margin-right: 16px; }
.top-bar-left i { color: var(--gold); margin-right: 6px; }
.divider { opacity: .35; }
.top-bar-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  margin-left: 6px;
  font-size: 0.8rem;
}
.top-bar-right a:hover { background: var(--gold); color: var(--navy-deep); }

/* ----- Header ----- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  background: #fff;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.primary-nav li { position: relative; }
.primary-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 6px;
}
.primary-nav > ul > li > a:hover { color: var(--gold); background: var(--bg-soft); }
.primary-nav .has-dropdown > a i { font-size: 0.7rem; opacity: .6; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  display: none !important;
  flex-direction: column;
  border: 1px solid var(--line);
}
.has-dropdown:hover .dropdown { display: flex !important; }
.dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: 6px;
  color: var(--ink);
}
.dropdown li a:hover { background: var(--bg-soft); color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-content {
  color: #fff;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 8px 18px;
  border: 1px solid rgba(201,161,85,.5);
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-content p {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 32px; height: 4px;
  background: rgba(255,255,255,.35);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s ease;
}
.dot.active { background: var(--gold); width: 50px; }

/* ----- Sections ----- */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow { padding-left: 32px; }
.section-head h2 { margin-bottom: 16px; }
.section-head.light .eyebrow { color: var(--gold-light); }
.section-head.light .eyebrow::before { background: var(--gold-light); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.75); }

/* ----- About ----- */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text .lead { margin-bottom: 20px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 520px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.about-badge i { font-size: 1.8rem; color: var(--gold); }
.about-badge strong { display: block; color: var(--navy); font-size: 0.95rem; }
.about-badge span { font-size: 0.82rem; color: var(--muted); }

/* ----- Objectives ----- */
.objectives-section { background: #fff; }
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.objective-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.objective-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--gold);
  transition: height .4s ease;
}
.objective-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.objective-card:hover::before { height: 100%; }
.obj-icon {
  width: 56px; height: 56px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.objective-card h3 { margin-bottom: 10px; color: var(--navy); }
.objective-card p { font-size: 0.95rem; }

/* ----- Chairman / President ----- */
.president { background: var(--bg-cream); }
.president-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.president-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.president-photo::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.president-photo img { width: 100%; height: 500px; object-fit: cover; }
.president-text h2 { margin-bottom: 22px; }
.president-text p { margin-bottom: 16px; }
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 24px;
}

/* ----- Membership / Benefits ----- */
.membership {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.membership::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,161,85,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.benefit-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  transition: all .35s ease;
}
.benefit-card:hover {
  background: rgba(201,161,85,.08);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.benefit-card i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}
.benefit-card h3 { color: #fff; margin-bottom: 10px; }
.benefit-card p { color: rgba(255,255,255,.75); font-size: 0.95rem; }

.membership-cta {
  text-align: center;
  margin-top: 60px;
  padding: 50px 30px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  position: relative;
}
.membership-cta h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* ----- News ----- */
.news { background: var(--bg-soft); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .35s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.news-body { padding: 28px; }
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.news-body h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-body p { font-size: 0.95rem; margin-bottom: 16px; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.news-link:hover { color: var(--gold); gap: 12px; }

/* ----- Partners ----- */
.partners { background: #fff; padding: 80px 0; }
.partners-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  border-radius: 12px;
  transition: all .3s ease;
}
.partner-item i {
  font-size: 2.2rem;
  color: var(--navy);
}
.partner-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.partner-item:hover {
  background: var(--bg-soft);
}
.partner-item:hover i { color: var(--gold); }

/* ----- Contact ----- */
.contact { background: var(--bg-cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}
.contact-info { display: grid; gap: 20px; }
.info-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}
.info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.info-card > i {
  font-size: 1.4rem;
  color: var(--gold);
  width: 48px; height: 48px;
  background: var(--gold-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card h4 {
  color: var(--navy);
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.info-card p { font-size: 0.92rem; line-height: 1.6; }

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 28px; color: var(--navy); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .25s ease;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-deep);
  color: #b8c0d6;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-title { color: #fff; }
.footer-brand p {
  color: rgba(255,255,255,.65);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .3s ease;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  transition: all .25s ease;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
}
.footer-contact i { color: var(--gold); margin-top: 4px; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
}

/* ----- Scroll-to-top ----- */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .objectives-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .president-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-inner { justify-content: center; text-align: center; }
  .top-bar-left span { display: block; margin: 4px 0; }
  .divider { display: none; }

  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-lg);
    transition: right .35s ease;
    overflow-y: auto;
    z-index: 99;
  }
  .primary-nav.open { right: 0; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav > ul > li > a { padding: 12px 14px; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 20px;
    background: transparent;
    min-width: 0;
  }
  .has-dropdown .dropdown { display: none !important; }
  .has-dropdown.open .dropdown { display: flex !important; }

  .section { padding: 70px 0; }
  .hero { height: 80vh; min-height: 520px; }
  .hero-content p { font-size: 1rem; }

  .objectives-grid,
  .benefits-grid,
  .news-grid,
  .partners-row { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }

  .scroll-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .logo-title { font-size: 1.15rem; }
  .logo-sub { font-size: 0.65rem; }
}
