/* ============================================================
   AISA — Asian Indian Seniors Association
   Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,300;0,500;1,300;1,500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --saffron:       #FF9933;
  --saffron-dark:  #E07B00;
  --saffron-light: #FFD099;
  --saffron-pale:  #FFF4E6;
  --green:         #138808;
  --green-dark:    #0A6006;
  --green-light:   #1AAD09;
  --green-pale:    #EBF8EB;
  --navy:          #000080;
  --navy-light:    #1A1A99;
  --cream:         #FFF9F2;
  --warm-white:    #FFFDF9;
  --dark:          #1C1208;
  --text-body:     #3A2800;
  --text-mid:      #6B4F1A;
  --text-light:    #9C7B45;
  --border:        #E8D5B0;
  --shadow:        rgba(28, 18, 8, 0.10);
  --shadow-hover:  rgba(255, 153, 51, 0.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --nav-h:     76px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tricolor Strip ─────────────────────────────────────────── */
.tricolor-strip {
  height: 5px;
  background: linear-gradient(to right,
    var(--saffron) 0%,   var(--saffron) 33.3%,
    #ffffff         33.3%, #ffffff         66.6%,
    var(--green)   66.6%, var(--green)   100%);
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--warm-white);
  box-shadow: 0 2px 20px var(--shadow);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saffron-dark);
  letter-spacing: 0.05em;
}

.brand-sub {
  font-family: var(--font-elegant);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 8px 16px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--saffron-dark);
  background: var(--saffron-pale);
}

.nav-links a.active {
  border-bottom: 2px solid var(--saffron);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-body);
}

.nav-mobile {
  display: none;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:hover { color: var(--saffron-dark); }

/* ── Page Hero Banner ───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3A1800 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '☸';
  position: absolute;
  font-size: 420px;
  color: rgba(255,153,51, 0.06);
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

.page-hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  border: 1px solid rgba(255,153,51,0.4);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-family: var(--font-elegant);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Section Styles ─────────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  margin-bottom: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-elegant);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--text-mid);
  max-width: 600px;
}

.section--cream  { background: var(--cream); }
.section--saffron { background: var(--saffron-pale); }
.section--dark   {
  background: linear-gradient(135deg, var(--dark) 0%, #3A1800 100%);
  color: #fff;
}
.section--green  { background: var(--green-pale); }

/* ── Divider ────────────────────────────────────────────────── */
.chakra-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.chakra-divider::before,
.chakra-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.chakra-divider span {
  font-size: 1.4rem;
  color: var(--saffron);
  line-height: 1;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

/* ── Pill Tag ───────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill--saffron { background: var(--saffron-pale); color: var(--saffron-dark); }
.pill--green   { background: var(--green-pale);   color: var(--green-dark); }
.pill--navy    { background: #EEEEFF;              color: var(--navy); }

/* ── Button ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--saffron {
  background: var(--saffron);
  color: var(--dark);
  border-color: var(--saffron);
}

.btn--saffron:hover {
  background: var(--saffron-dark);
  border-color: var(--saffron-dark);
  color: #fff;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn--green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn--green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* ── Grid Helpers ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.9);
  padding: 56px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: 4px;
}

.footer-brand-text .brand-name {
  color: var(--saffron-light);
  font-size: 1.4rem;
}

.footer-brand-text .brand-sub {
  color: rgba(255,255,255,0.7);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--saffron-light);
  margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '›';
  color: var(--saffron);
}

.footer-links a:hover { color: var(--saffron-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.footer-contact-item .icon {
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-tricolor {
  height: 3px;
  background: linear-gradient(to right,
    var(--saffron) 33.3%, #fff 33.3%, #fff 66.6%, var(--green-light) 66.6%);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-4,
  .grid-2,
  .footer-inner { grid-template-columns: 1fr; }

  .section { padding: 56px 20px; }

  .page-hero { padding: 48px 20px 40px; }
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::after { display: none; }
.text-center .section-subtitle { margin: 0 auto; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.46s; }
