/* ============================================
   Vivekananda Study Circle – Technopark
   Shared stylesheet
   ============================================ */

:root {
  --saffron: #e8761f;
  --saffron-dark: #c95e0d;
  --saffron-light: #fdf1e6;
  --maroon: #8e1f14;
  --ink: #2b2118;
  --ink-soft: #6b5d50;
  --paper: #fffdfa;
  --card: #ffffff;
  --border: #f0e2d4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(142, 31, 20, 0.08);
  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--saffron-dark);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--maroon);
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-links a.btn {
  color: #fff;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--saffron-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--saffron-dark);
  border: 2px solid var(--saffron);
}

.btn.ghost:hover {
  background: var(--saffron-light);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 90% at 85% 10%, rgba(232, 118, 31, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(142, 31, 20, 0.08), transparent 60%),
    var(--paper);
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  border: 1px solid #f5d9bd;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--saffron-dark);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}

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

.hero-logo {
  justify-self: center;
  width: min(320px, 70%);
  filter: drop-shadow(0 18px 40px rgba(142, 31, 20, 0.22));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section.tinted {
  background: linear-gradient(180deg, #fff8f0, #fffdfa);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.8rem;
}

.section-head .kicker {
  color: var(--saffron-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0.5rem 0 0.8rem;
}

.section-head p {
  color: var(--ink-soft);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(142, 31, 20, 0.13);
}

.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Event cards ---------- */

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.event-banner {
  height: 180px;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 2.6rem;
  overflow: hidden;
}

.event-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover .event-banner img {
  transform: scale(1.05);
}

.event-body {
  padding: 1.5rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-body .date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  margin-bottom: 0.5rem;
}

.event-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.event-body p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  flex: 1;
}

.event-body .more {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Quote carousel ---------- */

.quote-band {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(232, 118, 31, 0.25), transparent 65%),
    linear-gradient(160deg, #a02a1c, #7c1a10);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.quote-band .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  max-width: 48rem;
  margin: 0.5rem auto 1.4rem;
  min-height: 4.5em;
}

.quote-band cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6c193;
}

.quote-dots {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.quote-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.quote-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* ---------- About page ---------- */

.page-hero {
  background:
    radial-gradient(ellipse 70% 100% at 80% 0%, rgba(232, 118, 31, 0.15), transparent 60%),
    var(--saffron-light);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.7rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 1.05rem;
}

.prose {
  max-width: 46rem;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 0.8rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Timeline (events page) ---------- */

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 46rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--saffron), var(--maroon));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--saffron);
}

.timeline-item .date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}

.timeline-item h3 {
  font-size: 1.3rem;
  margin: 0.3rem 0 0.5rem;
}

.timeline-item p {
  color: var(--ink-soft);
}

.timeline-empty {
  color: var(--ink-soft);
  text-align: center;
  padding: 2rem 0;
}

.timeline-empty code {
  background: var(--saffron-light);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.timeline-item .photo {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 540px;
}

.timeline-item .photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info .item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.contact-info .item .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  border-radius: 12px;
  font-size: 1.25rem;
}

.contact-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.contact-info p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 118, 31, 0.15);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  border-radius: var(--radius);
  color: #fff;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
}

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

.cta-band .btn:hover {
  background: var(--saffron-light);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #241a12;
  color: #cbb9a8;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

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

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #cbb9a8;
  transition: color 0.2s;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
}

.footer-brand span {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
}

.footer-note {
  text-align: center;
  font-size: 0.85rem;
  padding-top: 1.5rem;
  color: #94806e;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    order: -1;
    width: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 420px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.4rem;
  }

  .nav-links a.btn {
    margin: 0.6rem 1.4rem 1rem;
    display: inline-block;
    padding: 0.6rem 1.4rem;
  }
}
