/* ICAS Chennai Chapter - Styles */

:root {
  --color-primary: #1a3a8a;
  --color-primary-dark: #122a66;
  --color-accent: #d4a017;
  --color-accent-dark: #b8860b;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe5a;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7fb;
  --color-text: #1f2937;
  --color-muted: #5b6473;
  --color-border: #e3e8ef;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --container-max: 1100px;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--color-primary);
}

.brand:hover { text-decoration: none; }

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 500;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 160, 23, 0.12), transparent 55%),
    linear-gradient(135deg, #eef2fb 0%, #f8f5ec 100%);
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-accent);
  overflow: hidden;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  margin: 0 0 0.4rem;
  color: var(--color-primary-dark);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto var(--space-md);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-md) 0;
  width: 100%;
  max-width: 720px;
}

.hero-actions .btn { width: 100%; }

.hero-meta {
  margin-top: var(--space-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.hero-meta p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s, color 0.15s, box-shadow 0.15s;
  min-height: 48px;
  text-align: center;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

.btn-accent {
  background: var(--color-accent);
  color: #1a1a1a;
}
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); color: #fff; }

.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section:nth-of-type(even) {
  background: var(--color-bg-soft);
}

.section-title {
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: var(--space-md);
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  align-items: start;
}

.faq-question h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
}

.faq-answer p {
  margin: 0 0 0.85rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-info p { margin: 0 0 var(--space-sm); }
.contact-info p:last-child { margin-bottom: 0; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.contact-actions .btn { width: 100%; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #e7ecf7;
  padding: var(--space-md) 0;
  text-align: center;
}

.site-footer p { margin: 0.25rem 0; font-size: 0.92rem; }
.footer-note { color: #b8c2d9; font-size: 0.85rem; }

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 40;
}
.scroll-top:hover { background: var(--color-primary-dark); }
.scroll-top.visible { display: block; }

/* Responsive */
@media (max-width: 820px) {
  .faq-item {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.open { max-height: 320px; }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-xs) 0;
  }
  .primary-nav li { width: 100%; }
  .primary-nav a {
    display: block;
    padding: 0.9rem var(--space-sm);
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav li:last-child a { border-bottom: none; }
{
    grid-template-columns: 1fr;
    max-width: 320px;
 
  .hero { padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }

  .hero-actions .btn { width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
