/* ============================================================
   An Lac Hanh Association of Victoria Inc. — anlachanh.org
   Hand-crafted stylesheet. No frameworks. Fast loading.
   ============================================================ */

:root {
  --cream: #f8f3ea;
  --cream-dark: #efe6d6;
  --white: #fffdf8;
  --maroon: #6e1f2b;
  --maroon-deep: #471220;
  --gold: #c8973a;
  --gold-soft: #e6c987;
  --ink: #2b2119;
  --muted: #6f6154;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --shadow: 0 18px 40px -18px rgba(71, 18, 32, 0.28);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--maroon-deep); }

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.45rem; }

p { margin-bottom: 1.1rem; }
a { color: var(--maroon); }
img, svg { max-width: 100%; }

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

.section { padding: 84px 0; }
.section-alt { background: var(--white); }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--maroon-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--gold-soft); color: var(--gold-soft); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); color: var(--maroon-deep); transform: translateY(-3px); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-deep); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--maroon-deep);
  box-shadow: 0 6px 24px -10px rgba(0,0,0,0.45);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.05; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }

.main-nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
.main-nav a {
  color: #f3e4cf;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-soft); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta { padding: 0.55rem 1.4rem !important; background: var(--gold); color: var(--maroon-deep) !important; border-radius: 999px; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-soft); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--gold-soft); margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  background: var(--maroon-deep);
  color: var(--white);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(200,151,58,0.18), transparent 65%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(200,151,58,0.1), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-vn { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.2rem; }
.hero h1 { color: var(--white); max-width: 800px; margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p { max-width: 620px; font-size: 1.18rem; color: #e8d9c4; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-lotus { position: absolute; right: -60px; bottom: -90px; width: 420px; opacity: 0.14; z-index: 1; }

/* ---------- Charity strip ---------- */
.charity-strip { background: var(--gold); color: var(--maroon-deep); }
.charity-strip .container { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; align-items: center; justify-content: center; padding: 1.1rem 0; }
.charity-strip strong { font-weight: 800; }
.charity-strip span { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; }
.charity-strip svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: 0 6px 24px -14px rgba(71,18,32,0.18);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card .icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  margin-bottom: 1.3rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.9rem; }
.card a.more { font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.card a.more:hover { color: var(--gold); }

/* ---------- Impact numbers ---------- */
.impact { background: var(--maroon-deep); color: var(--white); }
.impact h2 { color: var(--white); }
.impact .lead { color: #e0cdb2; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; text-align: center; }
.impact-num { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--gold-soft); line-height: 1; }
.impact-label { margin-top: 0.5rem; font-size: 0.95rem; color: #e8d9c4; }

/* ---------- Schedule ---------- */
.schedule { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px -14px rgba(71,18,32,0.18); }
.schedule th { background: var(--maroon); color: var(--white); text-align: left; padding: 0.9rem 1.3rem; font-size: 0.95rem; letter-spacing: 0.04em; }
.schedule td { padding: 0.95rem 1.3rem; border-bottom: 1px solid var(--cream-dark); font-size: 0.98rem; }
.schedule tr:last-child td { border-bottom: none; }
.schedule td:first-child { font-weight: 700; color: var(--maroon); white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { max-width: 620px; margin: 0 auto 2rem; color: #e8d9c4; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--maroon-deep); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 85% 30%, rgba(200,151,58,0.16), transparent 65%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p { color: #e8d9c4; max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--gold-soft); text-decoration: none; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2.4rem; } }

.panel { background: var(--white); border-radius: var(--radius); padding: 2.4rem; box-shadow: 0 6px 24px -14px rgba(71,18,32,0.18); border-left: 5px solid var(--gold); }
.panel h3 { margin-bottom: 0.9rem; }
.panel ul { padding-left: 1.2rem; color: var(--muted); }
.panel li { margin-bottom: 0.55rem; }

/* ---------- Program detail ---------- */
.program-item { display: grid; grid-template-columns: 72px 1fr; gap: 1.6rem; padding: 2.2rem 0; border-bottom: 1px solid var(--cream-dark); }
.program-item:last-child { border-bottom: none; }
.program-item .icon { width: 72px; height: 72px; background: var(--white); border: 2px solid var(--gold-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.program-item .icon svg { width: 34px; height: 34px; }
.program-item h3 { margin-bottom: 0.5rem; }
.program-item .vn { font-style: italic; color: var(--gold); font-size: 0.95rem; margin-bottom: 0.6rem; display: block; }
.program-item p { color: var(--muted); margin-bottom: 0.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.6rem; align-items: flex-start; }
.contact-detail svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 4px; }
.contact-detail strong { display: block; color: var(--maroon-deep); margin-bottom: 0.2rem; }
.contact-detail a { text-decoration: none; font-weight: 600; }

.form-group { margin-bottom: 1.3rem; }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--maroon-deep); }
input, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,58,0.2); }
textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: #2e0d16; color: #d9c3a6; padding: 64px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 { color: var(--gold-soft); font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #d9c3a6; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(217,195,166,0.18); padding: 1.4rem 0; text-align: center; font-size: 0.85rem; color: #a98f74; }
.footer-bottom p { margin: 0.2rem 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--maroon-deep);
    border-top: 1px solid rgba(230,201,135,0.2);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 4%; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.9rem 0; border-bottom: 1px solid rgba(230,201,135,0.12); }
  .nav-cta { margin: 0.8rem 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
