/* ============================================================
   Powai Toastmasters — shared styles
   Brand colours from Toastmasters International brand manual
   ============================================================ */

:root {
  --loyal-blue: #004165;
  --loyal-blue-dark: #00304a;
  --true-maroon: #772432;
  --true-maroon-light: #8f3542;
  --cool-gray: #a9b2b1;
  --happy-yellow: #f2df74;
  --paper: #fcfcfa;
  --ink: #1c2b33;
  --muted: #5a6b73;
  --line: #e4e7e6;
  --card: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 65, 101, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 65, 101, 0.10);

  --wrap: 1120px;
  --radius: 10px;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--loyal-blue);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--true-maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--gray { background: #f4f6f6; }
.section--blue { background: var(--loyal-blue); color: #dbe6ec; }
.section--blue h2, .section--blue h3 { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--loyal-blue);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-text span { font-size: 0.72rem; color: var(--true-maroon); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--loyal-blue);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.98rem;
}
.nav-links a:hover { background: #eef2f2; text-decoration: none; }
.nav-links a.active { color: var(--true-maroon); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--loyal-blue); margin: 4px 0; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--true-maroon); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--true-maroon-light); }
.btn--ghost { background: transparent; color: var(--loyal-blue); border-color: var(--loyal-blue); }
.btn--ghost:hover { background: var(--loyal-blue); color: #fff; }
.btn--light { background: var(--happy-yellow); color: var(--true-maroon); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 15% 0%, #00507d 0%, var(--loyal-blue) 45%, var(--loyal-blue-dark) 100%);
  color: #eaf2f6;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -60px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(242,223,116,0.16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; }
.hero-eyebrow {
  display: inline-block;
  color: var(--happy-yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead { font-size: 1.22rem; max-width: 54ch; color: #cfe0ea; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 26px; color: #bcd2df; font-size: 0.95rem; }
.hero-meta b { color: #fff; font-family: var(--font-head); font-size: 1.35rem; display: block; }

/* ---------- Generic content ---------- */
.lede { font-size: 1.2rem; color: var(--muted); max-width: 64ch; }
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #eaf1f4;
  color: var(--loyal-blue);
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 12px; align-items: flex-start; }
.values .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--happy-yellow); display: grid; place-items: center; margin-top: 3px; }
.values .dot::before { content: "✓"; color: var(--true-maroon); font-weight: 800; font-size: 0.8rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan--featured { border: 2px solid var(--true-maroon); box-shadow: var(--shadow-md); }
.plan .tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--true-maroon); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px;
}
.plan h3 { color: var(--true-maroon); }
.plan .price { font-family: var(--font-head); font-weight: 800; color: var(--loyal-blue); font-size: 2.4rem; margin: 6px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan ul li { position: relative; padding-left: 26px; color: var(--ink); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--loyal-blue); font-weight: 800; }
.plan .btn { margin-top: auto; text-align: center; }

.fee-note {
  background: #fff8e6;
  border: 1px solid #f0e2a8;
  border-left: 4px solid var(--happy-yellow);
  border-radius: 10px;
  padding: 18px 22px;
  color: #6a5b1e;
  font-size: 0.96rem;
}

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--loyal-blue);
  padding: 16px 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--true-maroon); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--loyal-blue); margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--loyal-blue); border-color: var(--loyal-blue); }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #eaf1f4; color: var(--loyal-blue); display: grid; place-items: center; }
.info-row b { display: block; color: var(--loyal-blue); font-family: var(--font-head); }
.info-row span { color: var(--muted); font-size: 0.96rem; }
.meeting-box { background: var(--loyal-blue); color: #dceaf1; border-radius: 14px; padding: 26px; }
.meeting-box h3 { color: #fff; }
.meeting-box .when { font-family: var(--font-head); font-size: 1.3rem; color: var(--happy-yellow); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--loyal-blue-dark); color: #b7cbd7; padding: 54px 0 26px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cddbe4; }
.site-footer a:hover { color: var(--happy-yellow); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand img { height: 54px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8ba7b6; font-size: 0.86rem; }
.disclaimer { max-width: 900px; margin-top: 10px; color: #7c98a8; font-size: 0.82rem; line-height: 1.5; }

/* ---------- Chatbot widget ---------- */
.cp-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--true-maroon); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(119,36,50,0.4);
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.cp-launcher:hover { transform: scale(1.06); }
.cp-launcher svg { width: 28px; height: 28px; }

.cp-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 900;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,48,74,0.32);
  display: none; flex-direction: column;
  border: 1px solid var(--line);
}
.cp-panel.open { display: flex; }
.cp-head {
  background: linear-gradient(135deg, var(--loyal-blue), var(--loyal-blue-dark));
  color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.cp-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--happy-yellow); color: var(--true-maroon); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.cp-head b { display: block; font-family: var(--font-head); }
.cp-head span { font-size: 0.8rem; color: #b7d3e2; }
.cp-head .status::before { content: "●"; color: #7CFC9A; margin-right: 5px; font-size: 0.7rem; }
.cp-close { margin-left: auto; background: none; border: none; color: #cfe0ea; cursor: pointer; font-size: 1.4rem; line-height: 1; }

.cp-body { flex: 1; overflow-y: auto; padding: 16px; background: #f5f8f9; display: flex; flex-direction: column; gap: 12px; }
.cp-msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.cp-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.cp-msg.user { background: var(--loyal-blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cp-msg.bot a { color: var(--true-maroon); font-weight: 600; }

.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; background: #f5f8f9; }
.cp-chip { background: #fff; border: 1px solid var(--cool-gray); color: var(--loyal-blue); border-radius: 999px; padding: 7px 13px; font-size: 0.83rem; cursor: pointer; font-weight: 600; }
.cp-chip:hover { background: var(--loyal-blue); color: #fff; border-color: var(--loyal-blue); }

.cp-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); padding: 12px 16px; border-radius: 14px; border-bottom-left-radius: 4px; }
.cp-typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--cool-gray); animation: cpblink 1.2s infinite; }
.cp-typing span:nth-child(2) { animation-delay: 0.2s; }
.cp-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cpblink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.cp-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.cp-foot input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: var(--font-body); font-size: 0.95rem; }
.cp-foot input:focus { outline: 2px solid var(--loyal-blue); border-color: var(--loyal-blue); }
.cp-foot button { background: var(--true-maroon); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.cp-foot button:hover { background: var(--true-maroon-light); }
.cp-foot button svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; gap: 2px;
  }
  .nav-links.show { display: flex; }
  .nav-toggle { display: block; }
  .hero-meta { gap: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-2 { grid-template-columns: 1fr; }
}
