/* Lions Club of Singapore Bedok — aligned with Lions International brand palette */
:root {
  --lci-blue: #00338d;
  --lci-blue-dark: #002266;
  --lci-blue-light: #407cca;
  --lci-gold: #ebb700;
  --lci-gold-soft: #f5d76e;
  --lci-purple: #7a2582;
  --lci-gray: #55565a;
  --lci-gray-light: #f4f5f7;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 51, 141, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

a {
  color: var(--lci-blue);
  text-decoration: none;
}

a:hover {
  color: var(--lci-purple);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--lci-blue-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--lci-gold-soft);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--lci-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lci-blue), var(--lci-purple));
  border: 3px solid var(--lci-gold);
  display: grid;
  place-items: center;
  color: var(--lci-gold);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  color: var(--lci-blue);
  font-size: 1.05rem;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  color: var(--lci-gray);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--lci-gray);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--lci-blue);
  border-bottom-color: var(--lci-gold);
}

.nav-cta {
  background: var(--lci-blue) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px !important;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: var(--lci-purple) !important;
}

.menu-toggle {
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(0, 51, 141, 0.94), rgba(122, 37, 130, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(235, 183, 0, 0.25), transparent 45%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 24px solid rgba(235, 183, 0, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  background: rgba(235, 183, 0, 0.18);
  color: var(--lci-gold-soft);
  border: 1px solid rgba(235, 183, 0, 0.45);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--lci-gold);
  color: var(--lci-blue-dark);
}

.btn-primary:hover {
  background: var(--lci-gold-soft);
  color: var(--lci-blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-blue {
  background: var(--lci-blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--lci-purple);
  color: var(--white);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hero-card h3 {
  margin: 0 0 0.75rem;
  color: var(--lci-gold-soft);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li {
  margin: 0.4rem 0;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--lci-gray-light);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title .label {
  color: var(--lci-purple);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0.4rem 0 0.6rem;
  color: var(--lci-blue);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-title p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--lci-gold);
  height: 100%;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lci-blue), var(--lci-purple));
  color: var(--lci-gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--lci-blue);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
  border: 1px solid #e6e8ee;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--lci-blue);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Timeline / list */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--lci-blue);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.timeline-item .when {
  color: var(--lci-purple);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Page hero small */
.page-hero {
  background: linear-gradient(120deg, var(--lci-blue), var(--lci-purple));
  color: var(--white);
  padding: 2.75rem 0;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.92;
  max-width: 40rem;
}

/* Leadership */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.person {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lci-blue-light), var(--lci-blue));
  border: 3px solid var(--lci-gold);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
}

.person h3 {
  margin: 0;
  color: var(--lci-blue);
}

.person .role {
  color: var(--lci-purple);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.25rem 0 0.6rem;
}

.person p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-box h3 {
  margin-top: 0;
  color: var(--lci-blue);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eceef3;
  display: flex;
  gap: 0.75rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  color: var(--lci-gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Form (client-side only, mailto) */
.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--lci-gray);
  font-size: 0.9rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid #d5d9e2;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(0, 51, 141, 0.25);
  border-color: var(--lci-blue);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.form-msg {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #e8f5e9;
  color: #1b5e20;
  font-weight: 600;
}

.form-msg.show {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--lci-blue-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  color: var(--lci-gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--lci-gold-soft);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.4rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.slogan {
  font-weight: 800;
  color: var(--lci-gold);
  letter-spacing: 0.04em;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.prose {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--muted);
}
.prose h3 {
  color: var(--lci-blue);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.pill {
  background: rgba(0, 51, 141, 0.08);
  color: var(--lci-blue);
  border: 1px solid rgba(0, 51, 141, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .people,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
