/* =========================================================
   BCA Classes in Ranchi — style.css
   Mobile-first · minimal · fast · one primary brand colour
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --primary:       #1a4fb4;   /* strong, trustworthy blue */
  --primary-dark:  #123a8c;
  --primary-deep:  #0d2a66;
  --primary-tint:  #eef3fc;
  --primary-tint2: #dde8f9;
  --accent:        #e5791b;   /* warm, used sparingly */
  --accent-soft:   #fdf1e4;

  --ink:      #16202e;        /* headings / strong text */
  --body:     #3b4657;        /* body copy */
  --muted:    #6b7688;
  --line:     #e4e8ef;
  --line-2:   #d5dbe6;

  --bg:       #ffffff;
  --bg-alt:   #f5f7fb;        /* off-white section */
  --card:     #ffffff;

  --ok:  #157a48;
  --err: #c02626;

  --radius:   14px;
  --radius-sm:10px;
  --shadow-sm: 0 1px 2px rgba(18,32,55,.06), 0 2px 8px rgba(18,32,55,.05);
  --shadow-md: 0 4px 14px rgba(18,32,55,.08), 0 12px 34px rgba(18,32,55,.07);
  --shadow-primary: 0 8px 22px rgba(26,79,180,.28);

  --maxw: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.15rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p  { margin: 0 0 1em; }

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

/* ---------- A11y helpers ---------- */
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }

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

.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-tint); }

.btn-whatsapp { background: #1faa53; color: #fff; box-shadow: 0 8px 22px rgba(31,170,83,.25); }
.btn-whatsapp:hover { background: #17853f; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  color: #fff; border-radius: 11px; box-shadow: var(--shadow-primary);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .72rem; font-weight: 500; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 11px; cursor: pointer; padding: 0;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after  { position: absolute; top: 6px;  left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  list-style: none; margin: 0; padding: 10px 20px 18px;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  display: none; flex-direction: column;
}
.nav-list.open { display: flex; }
.nav-list a {
  display: block; padding: 13px 6px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: .98rem;
}
.nav-list li:last-child a { border: 0; }
.nav-list .nav-cta { margin-top: 12px; }
.nav-list .nav-cta a { padding: 0; }
.nav-list .nav-cta .btn { color: #fff; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 420px at 82% -8%, var(--primary-tint2), transparent 60%),
    linear-gradient(180deg, var(--primary-tint), #fff 78%);
  padding: 44px 0 40px;
}
.hero-grid { display: grid; gap: 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-2); color: var(--primary-dark);
  font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  margin: 0 0 18px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero h1 { margin-bottom: .35em; }
.hero-sub { font-family: var(--font-head); font-size: clamp(1.05rem, .95rem + .6vw, 1.32rem); font-weight: 700; color: var(--primary-dark); margin: 0 0 .7em; }
.hero-lede { color: var(--body); max-width: 56ch; font-size: 1.03rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.hero-meta { font-size: .9rem; color: var(--muted); font-weight: 600; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; max-width: 540px; margin: 0 auto; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff;
}

/* ---------- Quick bar ---------- */
.quick-bar { background: linear-gradient(90deg, var(--primary-deep), var(--primary-dark)); color: #fff; }
.quick-bar-inner { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; align-items: center; text-align: center; }
.quick-bar-text { margin: 0; font-weight: 600; font-size: .98rem; }
.quick-bar-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-bar .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.quick-bar .btn-outline:hover { background: rgba(255,255,255,.18); }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 22px 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
}
.trust-item span {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: var(--primary-tint); border-radius: 10px; font-size: 1.05rem;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); }
.section-alt + .section { border-top: 1px solid var(--line); }

.section h2 { position: relative; }
.section h2::after {
  content: ""; display: block; width: 52px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); margin-top: 14px;
}
.section-intro { color: var(--body); max-width: 66ch; font-size: 1.02rem; margin-top: 6px; }

.note {
  background: var(--accent-soft); border: 1px solid #f2ddc4; color: #86541c;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; max-width: 66ch;
}

/* ---------- Feature / card grids ---------- */
.feature-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-tint2); }
.feature-card h3 { display: flex; align-items: center; gap: 9px; }
.feature-card h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none;
  background: linear-gradient(145deg, var(--primary), var(--accent));
}
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Lists ---------- */
.check-list, .two-col-list, .resource-list { padding: 0; margin: 20px 0; list-style: none; }
.check-list li, .two-col-list li, .resource-list li {
  position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); color: var(--body);
}
.check-list li::before, .two-col-list li::before, .resource-list li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.subject-list { list-style: none; padding: 0; margin: 6px 0 0; }
.subject-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.subject-list li:last-child { border-bottom: 0; }
.subject-list strong { color: var(--ink); }

/* ---------- Pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.pill {
  background: #fff; color: var(--primary-dark); border: 1px solid var(--line-2);
  padding: 7px 15px; border-radius: 999px; font-size: .86rem; font-weight: 600;
}

/* ---------- Accordion ---------- */
.accordion { margin-top: 24px; display: grid; gap: 12px; }
.accordion-item {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
}
.accordion h3 { margin: 0; font-size: 1rem; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 0; padding: 17px 18px; text-align: left; cursor: pointer;
  font: 700 1rem/1.35 var(--font-head); color: var(--ink);
}
.accordion-trigger:hover { background: var(--primary-tint); }
.accordion-trigger[aria-expanded="true"] { background: var(--primary-tint); color: var(--primary-dark); }
.accordion-icon { position: relative; width: 18px; height: 18px; flex: none; }
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.accordion-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.accordion-icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: scaleY(0); opacity: 0; }
.accordion-panel { padding: 6px 18px 20px; }
.accordion-panel > *:last-child { margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial-list { margin: 22px 0; }
.testimonial-placeholder { color: var(--muted); font-style: italic; }
.testimonial {
  margin: 0 0 16px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.testimonial footer { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; margin-top: 26px; }
.enquiry-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 13px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fdfefe00; background-color: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field-error { color: var(--err); font-size: .84rem; margin: 6px 0 0; font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok  { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: 12px; }

.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md); }
.contact-card h3 { font-size: 1.15rem; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span:first-child { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.contact-list strong, .contact-list a { font-size: .98rem; color: var(--ink); }

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 20px; margin-top: 26px; }
.location-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.location-info p { margin-bottom: .6em; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 230px; text-align: center; text-decoration: none;
  background: linear-gradient(160deg, var(--primary-tint), #fff);
  border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  color: var(--primary-dark); font-weight: 600; padding: 24px;
}
.map-placeholder span:first-child { font-size: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1c30; color: #b9c6d6; padding: 52px 0 22px; font-size: .93rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.site-footer a { color: #b9c6d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; color: #fff; margin-bottom: .5em; }
.footer-heading { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: .7em; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; color: #8494a7; font-size: .82rem; }
.footer-bottom p { margin: 3px 0; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(18,32,55,.12);
}
.mobile-cta-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px; text-decoration: none; color: var(--primary-dark);
  font-size: .76rem; font-weight: 700;
}
.mobile-cta-btn + .mobile-cta-btn { border-left: 1px solid var(--line); }
.mobile-cta-btn span { font-size: 1.2rem; }
body { padding-bottom: 66px; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; right: 16px; bottom: 80px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--primary); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow-md); transition: transform .12s ease;
}
.scroll-top:hover { transform: translateY(-2px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Tablet / Desktop
   ========================================================= */
@media (min-width: 700px) {
  .trust-strip-inner { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-bar-inner { flex-direction: row; justify-content: space-between; }
  .contact-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .two-col-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
}

@media (min-width: 940px) {
  .section { padding: 78px 0; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .resource-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }

  .nav-toggle { display: none; }
  .nav-list {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: 2px; padding: 0; border: 0; background: transparent; box-shadow: none;
  }
  .nav-list a { border: 0; padding: 9px 13px; font-weight: 600; font-size: .93rem; border-radius: 999px; color: var(--body); }
  .nav-list a:hover { background: var(--primary-tint); color: var(--primary-dark); }
  .nav-list .nav-cta { margin: 0 0 0 8px; }
  .nav-list .nav-cta .btn { width: auto; }

  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
  .scroll-top { bottom: 22px; }

  .hero { padding: 72px 0 64px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-cta, .scroll-top, .quick-bar { display: none; }
}
