/* =========================================================
   VidyaSetu — styles.css
   Palette: Vidya Trust (white + deep teal accent). Mobile-first.
   Change any of the tokens in :root below to re-skin the site.
   ========================================================= */

:root {
  --bg:          #FFFFFF;
  --surface:     #F7F9FA;
  --text:        #0F1E2D;
  --text-muted:  #5A6B7A;
  --accent:      #0E7C7B;
  --accent-dark: #0A5D5C;
  --accent-soft: #E3F2F1;
  --success:     #25D366;   /* WhatsApp brand green */
  --success-dark:#1EBE5B;
  --border:      #E5EAEE;
  --shadow-sm:   0 2px 8px rgba(20, 30, 60, 0.05);
  --shadow-md:   0 10px 30px rgba(20, 30, 60, 0.06);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --container: 1140px;
  --gap:       20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --------- SKIP LINK (a11y) --------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  background: #fff;
  color: var(--accent-dark);
  padding: 10px 14px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

/* --------- HEADER --------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}
@supports not (backdrop-filter: blur(8px)) {
  .site-header { background: #fff; }
}
.nav {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 800; letter-spacing: 0.2px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; }
.brand-name { color: var(--text); font-size: 20px; }

.nav-links {
  display: none;
  margin-left: auto;
  gap: 22px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--accent-dark); text-decoration: none; }

@media (min-width: 780px) {
  .nav-links { display: flex; }
}

/* --------- BUTTONS --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

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

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-wa {
  background: var(--success); color: #fff;
}
.btn-wa:hover { background: var(--success-dark); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; margin-left: auto; }

/* Ensure the header CTA meets the 44px touch-target minimum on mobile. */
@media (max-width: 779px) {
  .btn-sm { min-height: 44px; padding: 10px 14px; font-size: 15px; }
}

/* --------- FOCUS VISIBLE (a11y) --------- */
:focus { outline: none; } /* only for elements that provide their own :focus-visible below */
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.field select:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  /* handled by the box-shadow rule already; also add outline for high-contrast users */
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Simple WhatsApp glyph — drawn in CSS so no extra asset needed */
.wa-ico {
  width: 16px; height: 16px; display: inline-block;
  background:
    radial-gradient(circle at 30% 30%, #fff 2px, transparent 2px) 6px 6px/6px 6px no-repeat,
    #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M19.11 17.2c-.27-.14-1.62-.8-1.87-.89-.25-.09-.43-.14-.61.14-.18.27-.7.89-.86 1.07-.16.18-.32.2-.59.07-.27-.14-1.14-.42-2.17-1.34-.8-.71-1.34-1.59-1.5-1.86-.16-.27-.02-.42.12-.55.12-.12.27-.32.41-.48.14-.16.18-.27.27-.45.09-.18.05-.34-.02-.48-.07-.14-.61-1.48-.84-2.03-.22-.53-.45-.46-.61-.47-.16-.01-.34-.01-.53-.01s-.48.07-.73.34c-.25.27-.96.94-.96 2.28 0 1.34.98 2.64 1.11 2.82.14.18 1.93 2.94 4.68 4.13 2.75 1.19 2.75.79 3.25.74.5-.05 1.62-.66 1.85-1.29.23-.63.23-1.17.16-1.29-.07-.11-.25-.18-.52-.32zM16 4C9.37 4 4 9.37 4 16c0 2.12.56 4.11 1.54 5.83L4 28l6.34-1.66C11.98 27.36 13.94 28 16 28c6.63 0 12-5.37 12-12S22.63 4 16 4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M19.11 17.2c-.27-.14-1.62-.8-1.87-.89-.25-.09-.43-.14-.61.14-.18.27-.7.89-.86 1.07-.16.18-.32.2-.59.07-.27-.14-1.14-.42-2.17-1.34-.8-.71-1.34-1.59-1.5-1.86-.16-.27-.02-.42.12-.55.12-.12.27-.32.41-.48.14-.16.18-.27.27-.45.09-.18.05-.34-.02-.48-.07-.14-.61-1.48-.84-2.03-.22-.53-.45-.46-.61-.47-.16-.01-.34-.01-.53-.01s-.48.07-.73.34c-.25.27-.96.94-.96 2.28 0 1.34.98 2.64 1.11 2.82.14.18 1.93 2.94 4.68 4.13 2.75 1.19 2.75.79 3.25.74.5-.05 1.62-.66 1.85-1.29.23-.63.23-1.17.16-1.29-.07-.11-.25-.18-.52-.32zM16 4C9.37 4 4 9.37 4 16c0 2.12.56 4.11 1.54 5.83L4 28l6.34-1.66C11.98 27.36 13.94 28 16 28c6.63 0 12-5.37 12-12S22.63 4 16 4z'/></svg>") center/contain no-repeat;
}

/* --------- HERO --------- */
.hero {
  padding: 44px 0 40px;
  background:
    radial-gradient(ellipse at top right, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin: 16px 0 12px;
  color: var(--text);
}
.lede {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 56ch;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  list-style: none; padding: 0; margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.trust-strip li {
  position: relative; padding-left: 20px;
}
.trust-strip li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}

/* --------- GENERIC SECTION --------- */
.section {
  padding: 56px 0;
}
.section-alt { background: var(--surface); }
.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.section-lede {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 62ch;
}

/* --------- SEARCH FORM --------- */
.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
@media (min-width: 720px) {
  .search-form {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }
  .search-form .btn { height: 44px; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.field select,
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-height: 44px; /* touch target */
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-status {
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0 16px;
  min-height: 1.4em;
  scroll-margin-top: 80px; /* keep the sticky header from covering this after scrollIntoView */
}

/* Anchor targets get header-safe scroll padding */
:target,
#find, #how, #why, #tutors-join, #contact { scroll-margin-top: 80px; }

/* --------- TUTOR CARDS --------- */
.tutor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px)  { .tutor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tutor-grid { grid-template-columns: repeat(3, 1fr); } }

.tutor-card {
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tutor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.tutor-card-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  letter-spacing: 0.5px;
}
.avatar.female { background: linear-gradient(135deg, #C86B85, #8E3F5E); }
.avatar.male   { background: linear-gradient(135deg, #3A7CA5, #1E4E7A); }

.tutor-name { font-weight: 700; font-size: 17px; margin: 0; }
.tutor-qual { color: var(--text-muted); font-size: 13px; margin: 2px 0 0; }

.tutor-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tag.tag-muted {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tutor-meta {
  list-style: none; padding: 0; margin: 8px 0 14px;
  font-size: 14px; color: var(--text);
  display: grid; gap: 4px;
}
.tutor-meta b { color: var(--text); }
.tutor-meta .muted { color: var(--text-muted); }

.tutor-bio {
  color: var(--text-muted); font-size: 14px;
  margin: 4px 0 14px;
  flex: 1;
}

.tutor-cta {
  margin-top: auto;
  width: 100%;
}
.cta-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* --------- HOW IT WORKS --------- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 0; margin: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p  { margin: 0; color: var(--text-muted); font-size: 15px; }

/* --------- WHY US CARDS --------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p  { margin: 0; color: var(--text-muted); font-size: 15px; }

/* --------- BECOME A TUTOR --------- */
.benefits {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; gap: 10px;
}
.benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}
.privacy {
  color: var(--text-muted); font-size: 13px; margin: 12px 0 0;
}

/* --------- FORM EMBEDS (Google / MS Forms) --------- */
.form-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.form-block-title { margin: 24px 0 4px; font-size: 18px; }
.form-block-sub   { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; }
/* Inside the bordered .form-block (parent section) the title needs no extra top gap */
.form-block .form-block-title { margin-top: 0; }

.form-mount { text-align: center; }

/* When a real form is embedded, the mount switches to a full-width panel. */
.form-mount.has-embed {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.form-embed {
  display: block;
  width: 100%;
  height: 80vh;          /* tall enough for a multi-field form */
  min-height: 640px;
  border: 0;
}

/* --------- NATIVE FORMS (.vs-form) --------- */
.vs-form {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.vs-field { margin-bottom: 14px; }
.vs-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.vs-field .req { color: #C0392B; margin-left: 2px; }

.vs-form input,
.vs-form select,
.vs-form textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}
.vs-form input:focus,
.vs-form select:focus,
.vs-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.vs-form textarea { resize: vertical; }

/* Two-up rows collapse to one column on small screens */
.vs-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .vs-row { grid-template-columns: 1fr 1fr; } }

.vs-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 6px 0 18px;
  cursor: pointer;
}
.vs-consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }

/* Honeypot — visually and programmatically hidden from humans */
.vs-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}

.vs-form .btn { width: 100%; }

.vs-form-msg {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}
.vs-form-msg.ok  { background: var(--accent-soft); color: var(--accent-dark); }
.vs-form-msg.err { background: #FDECEA; color: #B0392B; }

.or-line {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 16px 0 10px;
}

/* --------- HOW OUR FEE WORKS --------- */
.fee-cols {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 720px) { .fee-cols { grid-template-columns: repeat(2, 1fr); } }
.fee-col {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fee-col h3 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--accent-dark);
}
.fee-col .benefits { margin-bottom: 0; }

/* --------- CONTACT STRIP --------- */
.contact-strip { background: var(--accent-soft); }

/* --------- FOOTER --------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.brand-footer .brand-name { font-size: 18px; }
.tagline { color: var(--text-muted); font-size: 14px; margin-top: 6px; max-width: 40ch; }
.footer-grid h3 {
  margin: 0 0 8px; font-size: 14px;
  color: var(--text); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent-dark); }
.muted   { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; }
.copyright {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* --------- REDUCED MOTION --------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
