/* Blackmon Tutoring — Locations page */

.loc-page {
  --navy: #0b1f3f;
  --blue: #5babe0;
  --blue-2: #3e8dc4;
  --ink: #222222;
  --muted: #5d7089;
  --muted-2: #54647e;
  --border: #dfe7f0;
  --bg-light: #f4f8fc;
  --bg-input: #fbfcfe;
  --font-heading: var(--font-merriweather), Georgia, serif;
  --font-body: var(--font-inter), Arial, sans-serif;
  color: var(--ink);
  font-family: var(--font-body);
}

.loc-page * { box-sizing: border-box; }

.loc-page .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.loc-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 0.2px solid var(--blue-2);
  background: rgba(62, 141, 196, 0.04);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 20px;
}

.loc-page .eyebrow.on-dark {
  border-color: rgba(91, 171, 224, 0.5);
  background: rgba(91, 171, 224, 0.08);
  color: var(--blue);
}

.loc-page .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  flex-shrink: 0;
}

.loc-page h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.34px;
  margin: 0 0 12px;
  text-align: center;
}

.loc-page .section-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.loc-page .section-head { text-align: center; }
.loc-page .section-head .eyebrow { display: inline-flex; }

.loc-page section { padding: 88px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #e8f1f8; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue-2); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-outline-navy:hover { background: var(--bg-light); border-color: var(--blue-2); }

/* ---------- HERO ---------- */

.loc-hero {
  position: relative;
  padding: 90px 0;
  color: #fff;
  overflow: hidden;
}

.loc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/subject/assets/city-dallas.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
}

.loc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(7,18,41,0.9) 0%, rgba(11,31,63,0.9) 55%, rgba(18,42,84,0.9) 100%);
}

.loc-hero .inner { position: relative; z-index: 1; }

.loc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
}

.loc-hero-grid > * {
  min-width: 0;
}

.loc-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0 0 20px;
  color: #fff;
}

.loc-hero .hero-copy {
  font-size: 17.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 30px;
}

.loc-hero .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.loc-hero-photo {
  border-radius: 18px;
  overflow: hidden;
  height: 340px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,0.4);
}

.loc-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FEATURED STATES ---------- */

.loc-featured { background: #fff; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}

.city-grid > * {
  min-width: 0;
}

.city-card {
  position: relative;
  display: block;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(11,31,63,0.08);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -16px rgba(11,31,63,0.35);
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.city-card:hover img {
  transform: scale(1.06);
}

.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 31, 63, 0.05) 38%, rgba(11, 31, 63, 0.85) 100%);
}

.city-card .city-label {
  position: absolute;
  left: 26px;
  bottom: 24px;
  z-index: 1;
  color: #fff;
}

.city-card .city-label .city-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 23px;
  display: block;
  margin-bottom: 6px;
}

.city-card .city-label .city-sub {
  font-size: 15px;
}

/* ---------- STATE GRID ---------- */

.loc-states { background: var(--bg-light); }

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.state-grid > * {
  min-width: 0;
}

.state-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.state-card:hover {
  background: var(--navy);
  border-color: var(--blue-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(11,31,63,0.4);
}

.state-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 14px;
  transition: color 0.2s ease;
}

.state-card:hover h4 {
  color: var(--blue);
}

.state-card .city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.state-card .city-list li {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.2s ease;
}

.state-card:hover .city-list li {
  color: rgba(255,255,255,0.8);
}

.state-card .city-list li a {
  color: inherit;
  text-decoration: none;
}

.state-card .city-list li a:hover {
  color: var(--blue-2);
  text-decoration: underline;
}

/* ---------- VIRTUAL CALLOUT ---------- */

.loc-virtual {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.loc-virtual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/why-blackmon/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.3;
}

.loc-virtual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(7,18,41,0.9) 0%, rgba(11,31,63,0.9) 55%, rgba(18,42,84,0.9) 100%);
}

.loc-virtual .inner { position: relative; z-index: 1; }

.loc-virtual h2 { color: #fff; }
.loc-virtual .section-lede { color: rgba(255,255,255,0.8); margin-bottom: 30px; }

/* ---------- FAQ + CONTACT (shared pattern) ---------- */

.loc-faq {
  background: linear-gradient(90deg, rgba(232, 241, 248, 0.45), rgba(232, 241, 248, 0.45)), #fff;
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}

.faq-grid > * {
  min-width: 0;
}

.faq-grid h2, .faq-grid .section-lede { text-align: left; margin-left: 0; }

.faq-list { border-top: 1px solid var(--border); margin-top: 24px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }

.faq-item .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.faq-item .faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item .faq-toggle::before,
.faq-item .faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #3e8dc4;
  transform: translate(-50%, -50%);
}

.faq-item .faq-toggle::before { width: 16px; height: 2px; }
.faq-item .faq-toggle::after { width: 2px; height: 16px; }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); }

.faq-item .faq-answer {
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  margin-top: 12px;
  max-width: 90%;
}

.faq-item:not(.is-open) .faq-answer { display: none; }

.faq-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 50px -24px rgba(20, 40, 80, 0.25);
  padding: 40px;
}

.faq-card .eyebrow-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-2);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.faq-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.26px;
  margin: 0 0 8px;
}

.faq-card .form-sub { font-size: 16px; color: #222; margin: 0 0 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row > * {
  min-width: 0;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--navy);
  font-family: var(--font-body);
}

.form-field textarea { resize: vertical; min-height: 90px; }
.form-field.full { grid-column: 1 / -1; }

.faq-card .btn-submit {
  width: 100%;
  margin: 24px 0 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -8px rgba(91, 171, 224, 0.7);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-card .btn-submit:hover { background: var(--blue-2); }

.faq-card .form-note { font-size: 13px; color: #5b6472; text-align: center; margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .loc-hero-grid { grid-template-columns: 1fr; }
  .loc-hero-photo { height: 260px; }
  .city-grid,
  .state-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .loc-page .inner { padding: 0 24px; }
}

@media (max-width: 640px) {
  .city-grid,
  .state-grid { grid-template-columns: 1fr; }
}
