/* =======================================================
   Omkar Computer Education — site stylesheet
   Palette: Indigo (primary) + Saffron (accent) + Teal (success)
   ======================================================= */

:root {
  --color-primary: #1B3A6B;      /* deep indigo blue */
  --color-primary-dark: #122747;
  --color-primary-light: #2E5590;
  --color-accent: #F4A300;       /* saffron / amber */
  --color-accent-dark: #D48A00;
  --color-success: #1F9D74;      /* teal green */
  --color-bg: #F8F7F4;
  --color-bg-alt: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #5B6472;
  --color-border: #E4E1D9;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(20, 30, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 30, 60, 0.10);
  --container-width: 1140px;
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

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

.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-primary { background: var(--color-primary); color: #fff; }
.section-primary p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(244, 163, 0, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-primary:hover { background: var(--color-accent-dark); color: var(--color-primary-dark); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-dark { background: var(--color-primary); color: #fff; }
.btn-dark:hover { background: var(--color-primary-dark); color: #fff; }

.btn-whatsapp { background: var(--color-success); color: #fff; }
.btn-whatsapp:hover { background: #178160; color: #fff; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}
.brand img { height: 40px; width: auto; }
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.active,
.nav-links a:hover { color: var(--color-primary); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 85% 15%, rgba(244,163,0,0.16), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(27,58,107,0.10), transparent 40%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--color-primary-dark); }
.hero .lede { font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hero-visual {
  background: linear-gradient(155deg, var(--color-primary), var(--color-primary-light));
  border-radius: 24px;
  padding: 36px;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(244,163,0,0.25);
}
.hero-visual-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.hero-visual-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}
.hero-visual-list li:last-child { border-bottom: none; }
.hero-visual-list .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(27,58,107,0.08);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* ---------- Course cards ---------- */
.course-group { margin-bottom: 48px; }
.course-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}
.course-group-title .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent);
}
.course-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}
.course-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.course-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(27,58,107,0.08);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.course-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.testimonial-name { font-weight: 600; color: var(--color-text); margin-top: 14px; }
.testimonial-role { font-size: 0.8rem; color: var(--color-text-muted); }
.placeholder-note {
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  background: rgba(244,163,0,0.1);
  border: 1px solid rgba(244,163,0,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 28px;
}

/* ---------- Gallery ---------- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--color-border);
}

/* ---------- Announcements ---------- */
.announcement-card {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}
.announcement-date {
  flex: none;
  width: 84px;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 100px; }

/* ---------- Contact info blocks ---------- */
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.info-row:last-child { border-bottom: none; }
.info-row .icon-badge { margin-bottom: 0; flex: none; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  border-radius: 20px;
  padding: 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .brand-sub { color: rgba(255,255,255,0.6); }
.site-footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem;
}
.social-row a:hover { background: var(--color-accent); color: var(--color-primary-dark); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: var(--color-success);
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 1.5rem;
}
.wa-float:hover { background: #178160; color: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 52px 0;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.page-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 10px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-dark-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 10px; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}
