/* ============================================
   Jaffna Toastmasters Club — Public Site Styles
   Palette based on Toastmasters brand colors:
   Loyal Blue #004165, True Maroon #772432,
   Cool Gray #A9B2B1, Happy Yellow #F2DF74
   ============================================ */

:root {
  --blue: #004165;
  --blue-dark: #00304b;
  --blue-light: #0a5c8c;
  --maroon: #772432;
  --gray: #A9B2B1;
  --yellow: #F2DF74;
  --ink: #1d2b33;
  --muted: #5b6b74;
  --bg: #f6f8f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 48, 75, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 48, 75, 0.14);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.brand-logo { height: 52px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--blue); font-size: 1.05rem; }
.brand-text small { color: var(--maroon); font-size: 0.72rem; font-style: italic; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.main-nav a:hover, .main-nav a.active { color: var(--maroon); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blue);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--maroon); color: var(--white) !important; }
.btn-primary:hover { background: #5e1c27; }

.btn-secondary { background: var(--blue); color: var(--white) !important; }
.btn-secondary:hover { background: var(--blue-dark); }

.btn-outline { border-color: var(--blue); color: var(--blue) !important; background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white) !important; }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(242, 223, 116, 0.08);
}

.hero-content { max-width: 640px; position: relative; z-index: 1; }

.hero .eyebrow {
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; color: #d7e3ec; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2rem; color: var(--blue); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.section-head .rule {
  width: 60px; height: 4px; background: var(--maroon);
  margin: 14px auto 0; border-radius: 2px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0, 65, 101, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.card h3 { color: var(--blue); margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Meeting info ---------- */
.meeting-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.meeting-details {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}

.meeting-details h3 { color: var(--yellow); margin-bottom: 18px; font-size: 1.3rem; }

.meeting-details ul { list-style: none; }
.meeting-details li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  gap: 12px;
}
.meeting-details li:last-child { border-bottom: none; }
.meeting-details li strong { min-width: 90px; color: #cfe0eb; font-weight: 600; }

.agenda-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.agenda-card h3 { color: var(--maroon); margin-bottom: 18px; font-size: 1.3rem; }

.agenda-item {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #e1e7ea;
  font-size: 0.95rem;
}
.agenda-item:last-child { border-bottom: none; }
.agenda-item .time { color: var(--maroon); font-weight: 700; min-width: 68px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--maroon);
  color: var(--white);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--yellow); }
.stat-label { font-size: 0.9rem; color: #eed7db; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { color: #cfe0eb; margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Content pages ---------- */
.page-title-band {
  background: var(--blue);
  color: var(--white);
  padding: 48px 0;
}
.page-title-band h1 { font-size: 2.2rem; }
.page-title-band p { color: #cfe0eb; margin-top: 6px; }

.content-block { max-width: 780px; margin: 0 auto; }
.content-block h2 { color: var(--blue); margin: 32px 0 12px; }
.content-block p { margin-bottom: 16px; color: #33454f; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--blue); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d5dde1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fbfcfd;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

/* ---------- Social icons & embeds ---------- */
.social-icons { display: flex; gap: 12px; margin-top: 14px; }

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.social-icons a:hover { background: var(--maroon); transform: translateY(-3px); }

.social-icons svg { width: 20px; height: 20px; fill: #fff; }

.social-embeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.social-embed-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border-top: 4px solid var(--blue);
}

.social-embed-card h3 { color: var(--blue); margin-bottom: 14px; font-size: 1.1rem; }
.social-embed-card iframe { width: 100%; border: none; }
.embed-scroll { overflow-x: auto; }

/* Make the TikTok creator embed span the full card width */
.social-embed-card .tiktok-embed,
.social-embed-card .tiktok-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.social-embed-card .embed-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #b9cdd9; margin-top: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 50px 20px 30px;
}

.site-footer h4 { color: var(--yellow); margin-bottom: 14px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a { color: #b9cdd9; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  font-size: 0.82rem;
  text-align: center;
}
.footer-bottom .disclaimer { color: #7d97a7; margin-top: 6px; font-size: 0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  /* 16px inputs stop iOS Safari from auto-zooming on focus */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 14px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }

  .hero h1 { font-size: 2.1rem; }
  .meeting-box, .contact-grid, .social-embeds { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Next meeting countdown & events ---------- */
.countdown { display: flex; gap: 14px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.cd-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 10px;
  min-width: 88px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cd-num { display: block; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); }

.event-list { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--maroon);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  text-align: left;
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 14px;
  line-height: 1.15;
  flex-shrink: 0;
}
.event-day { font-size: 1.4rem; font-weight: 800; }
.event-month { font-size: 0.75rem; text-transform: uppercase; color: var(--yellow); }
.event-meta { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

/* ---------- Executive committee ---------- */
.officer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.officer-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  padding: 26px 20px;
  text-align: center;
}
.officer-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--yellow);
}
.officer-initials {
  background: var(--blue);
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.officer-card h3 { color: var(--blue); font-size: 1.05rem; }
.officer-role { color: var(--maroon); font-weight: 700; font-size: 0.85rem; margin: 3px 0 10px; }
.officer-bio { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--yellow);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-quote { font-style: italic; color: var(--ink); line-height: 1.65; flex: 1; }
.testimonial-who strong { color: var(--blue); display: block; }
.testimonial-who span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.gallery-filter {
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.gallery-filter.active { background: var(--blue); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0, 30, 48, 0.85));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 18px 12px 10px;
}
