/* ==========================================================
   KALKI ACADEMY — Stylesheet
   Design direction: White-first, minimal, professional, modern,
   mobile-first. No excessive gradients/shadows/animations.
   ========================================================== */

:root {
  --color-orange: #FF9A00;
  --color-blue:   #007FFF;
  --color-green:  #00A550;
  --color-red:    #FF0000;
  --color-black:  #000000;

  --color-white:      #FFFFFF;
  --color-bg-light:   #F7F7F7;
  --color-border:     #E5E5E5;
  --color-text-muted: #666666;

  --radius: 6px;
  --container-width: 1140px;
  --transition: 0.15s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Noto Sans Tamil", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
.muted { color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-primary:hover { background: #222; text-decoration: none; }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-black); text-decoration: none; }

.btn-login {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 10px 18px;
}
.btn-login:hover { background: #e88a00; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-black);
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; }
.brand-text { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
}

.site-nav {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: 20px;
  transform: translateY(-110%);
  transition: transform var(--transition);
  overflow-y: auto;
}
.site-nav.open { transform: translateY(0); }
.site-nav ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.site-nav li { border-bottom: 1px solid var(--color-border); }
.site-nav a {
  display: block;
  padding: 14px 4px;
  color: var(--color-black);
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--color-blue); text-decoration: none; }
.site-nav a.active { font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero-logo { width: 72px; height: 72px; margin: 0 auto 20px; }
.hero h1 { font-size: 2.1rem; margin-bottom: 0.3em; }
.hero .slogan {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.6em;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--color-bg-light); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--color-white);
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--color-black); }
.card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--color-white);
}
.card-icon.orange { background: var(--color-orange); }
.card-icon.blue   { background: var(--color-blue); }
.card-icon.green  { background: var(--color-green); }

/* Profile cards (Founder / Council) */
.profile-card { text-align: center; }
.profile-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Image protection (best-effort, not foolproof) ---------- */
.protected-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.brand-logo,
.hero-logo {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.profile-name { font-weight: 700; margin-bottom: 2px; }
.profile-role { color: var(--color-blue); font-size: 0.9rem; margin-bottom: 8px; }
.profile-meta { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 10px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--color-white);
  margin-bottom: 14px;
}
.badge-orange { background: var(--color-orange); }
.badge-blue   { background: var(--color-blue); }
.badge-green  { background: var(--color-green); }

/* ---------- Coming Soon ---------- */
.coming-soon {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-light);
}
.coming-soon h2 { margin-bottom: 8px; }
.coming-soon p { color: var(--color-text-muted); max-width: 480px; margin: 0 auto; }

/* ---------- Contact form ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: #ddd;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 44px 20px;
}
.footer-title { font-weight: 700; font-size: 1.1rem; color: var(--color-white); }
.footer-brand p { color: #aaa; margin: 2px 0; font-size: 0.9rem; }
.footer-links h4, .footer-social h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid #222;
  padding: 16px 20px;
  font-size: 0.82rem;
  color: #888;
  text-align: center;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================
   Desktop enhancement (mobile is the baseline experience)
   ========================================================== */
@media (min-width: 860px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: visible;
  }
  .site-nav ul {
    display: flex;
    gap: 22px;
    margin: 0;
  }
  .site-nav li { border-bottom: none; }
  .site-nav a { padding: 6px 2px; }

  .hero { padding: 90px 0 64px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-ctas { flex-direction: row; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

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