@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', 'Segoe UI Emoji', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  color: #1f2937;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 7rem;
  background-color: #0953ba;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 80px;
}

.logo img {
  max-height: 300px;
  height: auto;
  width: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: #1e3a8a;
}

.cta-btn {
  background-color: #fff;
  color: #0953ba;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.cta-btn:hover {
  background-color: #f3f4f6;
  color: #1e40af;
}
.nav-links .cta-btn {
  color: #0953ba !important;   /* Force blue text */
  background-color: #fff;      /* White background */
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.hamburger div {
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

.hero {
  background: linear-gradient(to right, #eef2f7, #ffffff);
  padding: 3rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 1rem;
}

p {
  line-height: 1.7;
  color: #4b5563;
}

.cta-button {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
  min-width: 200px;
  text-align: center;
}

.cta-button:hover {
  background-color: #2563eb;
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.social-proof {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.content-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.text {
  flex: 1;
  min-width: 280px;
}

.content-image {
  width: 80%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  display: block;
}


.reviews {
  background-color: #f3f4f6;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.review-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.review {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: left;
}

.review-link {
  text-decoration: none;
  color: inherit;
}

.review-link:hover .review {
  background-color: #f9fafb;
  box-shadow: 0 0 0 2px #3b82f6;
}

.footer {
  background-color: #111827;
  color: #d1d5db;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-text {
  margin-top: 1rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  margin: 0 0.25rem;
}

.footer a:hover {
  text-decoration: underline;
}

.tutor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.tutor-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  flex: 1 1 280px;
}

.tutor-card h2 {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: #111827;
}


.portrait-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  object-fit: cover;
}

#lead-form { scroll-margin-top: 80px; }  /* keeps form visible under sticky nav */

.lead-capture { max-width:520px; margin:2rem auto; padding:1rem; }
.lead-capture .field { margin:.75rem 0; }
.lead-capture label { display:block; font-weight:600; margin-bottom:.25rem; }
.lead-capture input[type="text"],
.lead-capture input[type="email"],
.lead-capture input[type="tel"],
.lead-capture textarea {
  width:100%; padding:.6rem .75rem; border:1px solid #ddd; border-radius:.5rem; font-size:1rem;
}
.lead-capture textarea { resize: vertical; }
.lead-capture button {
  display:inline-block; padding:.7rem 1.1rem; border:0; border-radius:.6rem; font-weight:600;
  cursor:pointer; background:#0953ba; color:#fff; transition: background .2s ease;
}
.lead-capture button:hover { background:#07479d; }
.lead-capture .consent { font-size:.9rem; margin:.75rem 0; }

@media (max-width:480px){
  .lead-capture { padding:.5rem; }
  .lead-capture button { width:100%; }
}

.lead-msg { color: #0953ba; }

#lead-form { scroll-margin-top: 80px; }

/* Match select styling to inputs */
.lead-capture select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  padding-right: 2.2rem; /* space for arrow */
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #fff;

  /* Remove default browser styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M5.25 7.5L10 12.25 14.75 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

/* Prominent success banner (keeps the form visible) */
.lead-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #0953ba;   /* brand blue */
  background: #e8f1ff;         /* light brand tint */
  color: #0b3a7a;               /* readable blue text */
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.lead-success__icon {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 800;
  background: #0953ba; color: #fff; flex: none;
}

/* Toggle visibility when JS sets the flag */
.lead-capture.show-success .lead-success { display: flex; }

/* Optional: style the small inline message if you keep it */
.lead-msg { color: #0953ba; font-weight: 600; }

/* =========================
   Mobile Styles (<= 768px)
   ========================= */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { height: 60px; padding: 0 1rem; }
  .logo img { max-height: 400px; max-width: 280px; position: static; transform: none; }

  /* Hamburger */
  .hamburger { display: flex; margin-left: auto; }

  /* Hide top-bar CTA on mobile; we’ll show a full-width CTA inside the menu */
  .navbar .cta-btn { display: none; margin: 0; }

  /* Mobile menu (drawer) */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    position: absolute;
    top: 60px; left: 0; width: 100%;
    background: #0953ba;
    padding: 1rem;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .4s ease;
    z-index: 999;
  }
  .nav-links.active { max-height: 80vh; overflow-y: auto; opacity: 1; }

  .nav-links a { width: 100%; padding: .75rem 0; }

  /* Full-width Book Now button inside the menu */
  .nav-links .cta-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: .75rem 0 0;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    color: #0953ba;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }

  /* Stack common sections nicely on mobile */
  .hero, .content-box, .review-container { flex-direction: column; text-align: center; }
  .text { text-align: center; }
}

/* =========================
   Small Phones (<= 480px)
   ========================= */
@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  p  { font-size: 1rem; }
}

/* --- Mobile menu CTA: prevent right overflow --- */
@media (max-width: 768px) {
  /* ensure the drawer itself can’t exceed the viewport */
  .nav-links {
    box-sizing: border-box;
    padding: 1rem;              /* inside padding */
    width: 100vw;               /* match viewport width */
    left: 0;                    /* guard against sub-pixel shifts */
  }

  /* hide any top-bar CTA on mobile */
  .navbar .cta-btn {
    display: none !important;
    margin: 0 !important;
  }

  /* the CTA inside the menu */
  .nav-links .cta-btn {
    display: block;
    /* use side margins instead of full width to avoid rounding overflow */
    width: calc(100% - 2rem);   /* 1rem left + 1rem right */
    margin: 0.75rem 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    color: #0953ba;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;        /* allow wrapping */
    word-break: break-word;     /* never push outside */
  }
}
@media (max-width: 768px) {
  .cta-btn { margin: 0 !important; }
}
/* Stop horizontal scroll when mobile menu opens */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; } /* belt & braces */

  .nav-links {
    position: fixed;      /* fill the viewport width precisely */
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    overflow-x: hidden;   /* nothing can poke out sideways */
  }
}

/* Services hero tweaks */
.services-hero {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.services-heading {
  font-size: clamp(1.6rem, 1.6rem + 1vw, 2rem);
  margin: 0 0 .5rem 0;
}
.services-intro {
  color: #444;
  margin-bottom: 1.25rem;
}

/* Grid of service cards */
.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 640px){ .service-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px){ .service-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }

.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: #e5e5e5;
}
.service-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.service-card__title {
  margin: 0;
  font-size: 1.125rem;
}
.service-card__text {
  margin: 0;
  color: #333;
}
.service-card__actions {
  margin-top: .5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
/* Price pill on service cards */
.service-price{
  display:inline-block;
  margin:.4rem 0 .6rem;
  padding:.28rem .65rem;
  border-radius:9999px;
  font-weight:700;
  font-size:.95rem;
  line-height:1;
  color:#0953ba;
  background:#eef4ff;
  border:1px solid #cfe0ff;
}

/* Muted style for “Custom” */
.service-price--muted{
  color:#374151;
  background:#f3f4f6;
  border-color:#e5e7eb;
}

.cta-inline {
  text-decoration: none;
  font-weight: 600;
  color: #0953ba;
}

/* small info band */
.how-we-work {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(1, minmax(0,1fr));
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: .9rem 1rem;
}
@media (min-width: 640px){ .how-we-work{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 960px){ .how-we-work{ grid-template-columns: repeat(5, minmax(0,1fr)); } }
.how-item { color: #0b3a7a; font-weight: 600; }

.intro-band { background:#fff; border-bottom:1px solid #eee; }
.chip-row { display:flex; gap:.5rem; flex-wrap:wrap; }
.chip { font-size:.95rem; background:#eef3ff; color:#0b3a7a; padding:.4rem .7rem; border-radius:999px; white-space:nowrap; }
