/* Livingston NJ landing — page-specific styles (v2)
 * Mirrors the live theteachertutors.com aesthetic: bright blue primary,
 * multi-color service cards, light-teal hero, rounded corners, soft shadows.
 * Builds on design-tokens.css. */

/* ============================================================
 * Header — ported from main site's custom.css with logo size
 * tuned to a midpoint (60px vs main-site 80px and my-page 40px).
 * Class names match the main site so menu.css applies cleanly.
 * ============================================================ */

/* Dark top bar — phone + social */
.h-top {
  background: var(--secondary-color);
  padding: 6px 0;
  color: #ffffff;
  font-size: 14px;
}
.h-top a { color: #ffffff; text-decoration: none; }
.h-top a:hover { color: var(--header-color); text-decoration: none; }
.h-top .menu-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  gap: 8px 16px;
}
.h-top .call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.h-top .call a { display: inline-flex !important; padding: 0 !important; }
.h-top .social_top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.h-top .social_top span { margin-right: 8px; }
.h-top .social_top a {
  padding: 0 8px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

/* Main header */
.header-main {
  width: 100%;
  /* Always-sticky pattern: pins to top once the dark .h-top above scrolls
     out of view, before JS adds .header-scrolled at 120px. */
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-color);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.header-main.header-scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.header-main.header-scrolled .header-wrap { padding: 8px 0; }
.header-main.header-scrolled .logo img    { height: 48px; }

.header-wrap {
  padding: 16px 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: padding 0.3s ease;
}
.header-main .logo {
  flex-shrink: 0;          /* don't let flex collapse the logo */
  display: inline-block;
}
.header-main .logo a { display: block; line-height: 0; }
.header-main .logo img {
  /* Midpoint sizing — main site 80px, prior Livingston 40px → 60px.
     logo.svg has viewBox 913.31 × 363.61 (~2.51:1) but no width/height
     attribute, so we set aspect-ratio explicitly to stop the flex parent
     from collapsing width to 0 while height is honored. */
  height: 60px;
  width: auto;
  aspect-ratio: 913 / 364;
  max-width: none;
  transition: height 0.3s ease;
}

/* Uniform spacing between nav items. menu.css gives the .has-dropdown items
   a built-in padding-right for the caret but plain <li>s have no margin —
   so without this rule "Find Tutors" sticks to "Special Services". */
.header-main .navbar .menu_wrapper > ul { gap: 24px; }
.header-main .navbar .menu_wrapper > ul > li.has-dropdown { padding-right: 0; }
.header-main .navbar .menu_wrapper > ul > li.has-dropdown > a { padding-right: 18px; position: relative; }
.header-main .navbar .menu_wrapper > ul > li.has-dropdown > a::after {
  /* Caret moves from the <li> (menu.css default) onto the <a> so it sits
     right next to the link text instead of after the gap. */
  position: absolute;
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
}
/* Override menu.css's caret placement so it doesn't double up */
.header-main .has-dropdown::after { display: none; }

/* Pill buttons in the nav (mirrors .navbar .btn-lite / .btn-dark from custom.css) */
.navbar .btn-lite,
.navbar .btn-dark {
  padding: 8px 16px;
  border-radius: 15px;
  margin-left: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.navbar .btn-lite {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: #ffffff;
}
.navbar .btn-lite:hover {
  color: #ffffff;
  background: var(--primary-color);
  text-decoration: none;
}
.navbar .btn-dark {
  color: #ffffff;
  border: 1px solid var(--secondary-color);
  background: var(--secondary-color);
}
.navbar .btn-dark:hover,
.navbar .btn-dark:focus {
  color: #ffffff;
  border: 1px solid var(--secondary-color);
  background: var(--secondary-color);
  opacity: 0.85;
  text-decoration: none;
}

/* Mobile nav burger (Font Awesome icon). Breakpoint at 1200px — below
   that, the full desktop nav (logo + 5 dropdowns + 2 buttons) doesn't
   fit cleanly at common laptop widths (1280, 1366), so we use the
   burger menu earlier than menu.css's 1080px default. */
.mobile-nav-toggle {
  display: none;
  font-size: 26px;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 4px 8px;
}
@media (max-width: 1199px) {
  .mobile-nav-toggle { display: inline-block; }
  .header-main .navbar .menu_wrapper { display: none; }
  .header-main .navbar.is-open .menu_wrapper {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    padding: 16px 24px;
    z-index: 30;
  }
  .header-main .navbar.is-open .menu_wrapper > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .header-main .navbar.is-open .menu_wrapper > ul > li > a {
    padding: 10px 0;
    justify-content: flex-start;
  }
  .header-main .navbar .btn-lite,
  .header-main .navbar .btn-dark {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }
}

/* Drop the dark top-bar's "Follow Us:" label on narrow screens */
@media (max-width: 540px) {
  .h-top .social_top span { display: none; }
  .h-top .menu-top { font-size: 13px; }
}

/* ============================================================
 * Hero — light teal background, headline left, image right
 * ============================================================ */
.tt-hero {
  background: var(--header-color);
  padding-top: 48px;
  padding-bottom: 64px;
  overflow: hidden;
}
@media (min-width: 992px) {
  .tt-hero { padding-top: 72px; padding-bottom: 100px; }
}
.tt-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .tt-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}
.tt-hero__copy { max-width: 38rem; }
.tt-hero__h1 { margin-top: 0; }
.tt-hero__h1 .tt-hero__accent { color: var(--primary-color); }
.tt-hero__lede { margin-top: 18px; }

.tt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tt-hero__meta {
  margin-top: 24px;
  font-size: 14px;
  color: var(--color3);
  line-height: 1.7;
}
.tt-hero__meta strong { font-weight: 700; color: var(--secondary-color); }
.tt-hero__star { color: #f5a623; font-size: 16px; }

.tt-hero__art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tt-hero__art img,
.tt-hero__art picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tt-hero__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Orchestrated load reveal */
.tt-hero__copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: ttRise 600ms var(--ease-out) forwards;
}
.tt-hero__copy > :nth-child(1) { animation-delay:   0ms; }
.tt-hero__copy > :nth-child(2) { animation-delay: 100ms; }
.tt-hero__copy > :nth-child(3) { animation-delay: 200ms; }
.tt-hero__copy > :nth-child(4) { animation-delay: 300ms; }
.tt-hero__copy > :nth-child(5) { animation-delay: 400ms; }
@keyframes ttRise { to { opacity: 1; transform: none; } }

/* ============================================================
 * Trust strip — pill chips on white, blue text (match live site)
 * ============================================================ */
.tt-trust {
  padding: 32px 0;
  background: var(--white);
}
.tt-trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
}
.tt-trust__chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid rgba(60, 106, 224, 0.18);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(60, 106, 224, 0.06);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color3);
}
.tt-trust__chip strong {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ============================================================
 * Why-here — 3 columns with subtle blue check cards
 * ============================================================ */
.tt-why { background: var(--bg-color-light); }
.tt-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .tt-why__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.tt-why__col {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.tt-why__col:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(38,38,38,0.10); }
.tt-why__col h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary-color);
  margin: 0 0 12px;
}
.tt-why__col p { font-size: 15px; line-height: 1.65; color: var(--txt-color); margin: 0; }

/* ============================================================
 * Services grid — multi-color cards matching live site
 * (Blue, Pink, Purple, Green rotating across cards)
 * ============================================================ */
.tt-services { background: var(--white); }
.tt-services__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}
.tt-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .tt-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tt-services__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.tt-service {
  background: var(--c-blue);
  color: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card-2);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tt-service:hover { transform: translateY(-4px); }
.tt-services__grid > .tt-service:nth-child(4n+1) { background: var(--c-blue); }
.tt-services__grid > .tt-service:nth-child(4n+2) { background: var(--c-pink); }
.tt-services__grid > .tt-service:nth-child(4n+3) { background: var(--c-purple); }
.tt-services__grid > .tt-service:nth-child(4n)   { background: var(--c-green); }

.tt-service__icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  color: var(--white);
}
.tt-service h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--white);
  letter-spacing: 0;
}
.tt-service p { font-size: 14.5px; line-height: 1.6; margin: 0; color: rgba(255,255,255,0.92); }

/* ============================================================
 * Walking distance + map
 * ============================================================ */
.tt-walk { background: var(--bg-color-light); }
.tt-walk__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}
@media (min-width: 992px) {
  .tt-walk__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
}
.tt-walk__lede p { color: var(--txt-color); margin: 12px 0 0; line-height: 1.65; }

.tt-map {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.tt-map iframe { width: 100%; height: 100%; border: 0; }
.tt-map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--color3);
  font-size: 13px;
  background-image: radial-gradient(circle at 1px 1px, rgba(60,106,224,0.10) 1px, transparent 0);
  background-size: 14px 14px;
}
.tt-map--static {
  display: block;
  text-decoration: none;
  color: var(--secondary-color);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out);
}
.tt-map--static:hover { border-color: var(--primary-color); }
.tt-map--static .tt-map__pin {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--secondary-color);
}
.tt-map--static .tt-map__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tt-walk__schools {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.tt-walk__schools li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tt-walk__schools li strong { font-weight: 700; color: var(--secondary-color); }
.tt-walk__schools li span { color: var(--color3); font-size: 13px; }

/* ============================================================
 * Tutor section — 2-col grid matching the live /our-tutors design
 * ============================================================ */
.tt-tutors { background: var(--white); }
.tt-tutors__header { margin-bottom: 24px; }
.tt-tutors__intro { max-width: 38rem; }
.tt-tutors__intro p { color: var(--txt-color); margin: 12px 0 0; }

/* Filter pills */
.tt-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  margin: 24px 0 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tt-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tt-filters__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color3);
  margin-right: 8px;
  min-width: 76px;
}
.tt-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  text-decoration: none;
  transition: all 200ms var(--ease-out);
}
.tt-pill:hover { border-color: var(--primary-color); color: var(--primary-color); }
.tt-pill.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}
.tt-pill--clear {
  border-color: transparent;
  color: var(--primary-color);
  text-decoration: underline;
}
.tt-pill--clear:hover { background: transparent; color: var(--primary-color-2); }

/* Grid of tutor cards */
.tt-tutors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .tt-tutors__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Tutor card — photo left, info right, like the live /our-tutors page */
.tt-card {
  position: relative; /* anchor for .tt-card__check */
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  /* opacity: reveal fade (500ms). transform: shared by reveal-lift and
     hover-lift (250ms feels snappy on hover, snappy-but-fine on reveal). */
  transition: opacity      500ms var(--ease-out),
              transform    250ms var(--ease-out),
              border-color 200ms var(--ease-out),
              box-shadow   200ms var(--ease-out);
}
.tt-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(60, 106, 224, 0.10);
}

.tt-card__top {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 360px) {
  .tt-card__top { grid-template-columns: 88px 1fr; gap: 12px; }
}

.tt-card__photo {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-deep);
}
@media (max-width: 360px) {
  .tt-card__photo { width: 88px; height: 88px; }
}
.tt-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tt-card__info { min-width: 0; }
.tt-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--secondary-color);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.tt-card__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--txt-color);
}
.tt-card__row span {
  min-width: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-card__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--primary-color);
  margin-top: 2px;
}

/* Background-check icon — top-right corner overlay, with hover tooltip */
.tt-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(60, 106, 224, 0.10);
  border: 1px solid rgba(60, 106, 224, 0.35);
  color: var(--primary-color);
  text-decoration: none;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.tt-card__check:hover,
.tt-card__check:focus-visible {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  text-decoration: none;
}
.tt-card__check svg { width: 18px; height: 18px; }

/* Tooltip — hidden by default; appears on hover/focus */
.tt-card__check-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 12px 14px;
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms, transform 200ms var(--ease-out);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  z-index: 10;
}
.tt-card__check-tip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--header-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tt-card__check-tip em {
  font-style: normal;
  display: block;
  margin-top: 8px;
  color: var(--header-color);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 11.5px;
}
/* Small arrow pointing at the icon */
.tt-card__check-tip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--secondary-color);
  transform: rotate(45deg);
}
.tt-card__check:hover .tt-card__check-tip,
.tt-card__check:focus-visible .tt-card__check-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 200ms var(--ease-out), visibility 0s linear 0s, transform 200ms var(--ease-out);
}

.tt-card__body { margin-top: 14px; }
.tt-card__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--secondary-color);
  margin: 0 0 6px;
}
.tt-card__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--txt-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.tt-btn--sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.tt-tutors__empty {
  padding: 48px 24px;
  background: var(--bg-color-light);
  border-radius: 12px;
  text-align: center;
  color: var(--txt-color);
  margin: 16px 0 0;
}
/* Show-more CTA — prominent button after the 10-tutor grid */
.tt-tutors__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.tt-tutors__more-meta {
  font-size: 13px;
  color: var(--color3);
  margin: 0;
}
.tt-btn--lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* ============================================================
 * How it works — 3 numbered steps
 * ============================================================ */
.tt-steps { background: var(--bg-color-light); }
.tt-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 768px) { .tt-steps__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.tt-step {
  counter-increment: step;
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.tt-step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.tt-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--secondary-color);
}
.tt-step p { color: var(--txt-color); font-size: 15px; line-height: 1.6; margin: 0; }

/* ============================================================
 * Testimonials — white cards, blue accent
 * ============================================================ */
.tt-testimonials { background: var(--secondary-color); color: var(--white); }
.tt-testimonials__head { text-align: center; margin-bottom: 40px; }
.tt-testimonials .tt-eyebrow { color: rgba(255,255,255,0.7); }
.tt-testimonials .tt-display { color: var(--white); }
.tt-testimonials__rating {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.tt-testimonials__rating strong {
  font-weight: 700;
  color: var(--white);
}
.tt-testimonials__star {
  color: #f5a623;
  font-size: 16px;
  margin-right: 4px;
}

.tt-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 992px) { .tt-quotes { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.tt-quote {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  margin: 0;
}
.tt-quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 1;
  color: rgba(60,106,224,0.18);
}
.tt-quote blockquote {
  position: relative;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--txt-color);
  padding-top: 28px;
}
.tt-quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tt-quotes__more {
  display: inline-flex;
  margin: 32px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tt-quotes__more::after { content: " →"; padding-left: 6px; }
.tt-quotes__more:hover { color: var(--header-color); }
.tt-testimonials .tt-container { text-align: center; }

/* ============================================================
 * Subjects — 4 blocks
 * ============================================================ */
.tt-subjects { background: var(--white); }
.tt-subjects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (min-width: 768px) { .tt-subjects__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
.tt-subjects__col {
  background: var(--bg-color-light);
  border-radius: 14px;
  padding: 24px;
}
.tt-subjects__col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  margin: 0 0 12px;
}
.tt-subjects__col p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--txt-color);
  margin: 0;
}

/* ============================================================
 * FAQ — accordion, blue accents
 * ============================================================ */
.tt-faq { background: var(--bg-color-light); }
.tt-faq__list {
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tt-faq__item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: opacity      500ms var(--ease-out),
              transform    500ms var(--ease-out),
              border-color 200ms var(--ease-out);
}
.tt-faq__item[open] { border-color: var(--primary-color); }
.tt-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--secondary-color);
  position: relative;
}
.tt-faq__q::-webkit-details-marker { display: none; }
.tt-faq__q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-color);
}
.tt-faq__item[open] .tt-faq__q::after { content: "−"; }
.tt-faq__a {
  padding: 0 24px 22px;
  color: var(--txt-color);
  font-size: 15px;
  line-height: 1.65;
}
.tt-faq__a p { margin: 0 0 14px; }
.tt-faq__a p:last-child { margin-bottom: 0; }
.tt-faq__map {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: 320px;
}

/* ============================================================
 * CTA — light teal block, white card NAP
 * ============================================================ */
.tt-cta { background: var(--header-color); }
.tt-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 992px) {
  .tt-cta__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}
.tt-cta__copy { max-width: 38rem; }
.tt-cta__nap {
  font-style: normal;
  font-size: 15px;
  line-height: 1.75;
  color: var(--txt-color);
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.tt-cta__nap strong {
  display: block;
  color: var(--secondary-color);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tt-cta__nap a { color: var(--primary-color); text-decoration: none; }
.tt-cta__nap a:hover { text-decoration: underline; }
.tt-cta__hours { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06); }
.tt-cta__hours dt {
  display: inline-block;
  width: 96px;
  font-size: 13px;
  color: var(--color3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tt-cta__hours dd { display: inline; margin: 0; font-size: 14px; color: var(--secondary-color); }
.tt-cta__hours dd::after { content: ""; display: block; }

/* ============================================================
 * Footer
 * ============================================================ */
.tt-footer {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 64px 0 28px;
}
.tt-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .tt-footer__cols { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}
.tt-footer__col h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0 0 14px;
}
.tt-footer__col img { height: 44px; width: auto; margin-bottom: 14px; }
.tt-footer__col p { margin: 0 0 8px; color: var(--txt-color); font-size: 14px; line-height: 1.65; }
.tt-footer__col address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--txt-color); }
.tt-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tt-footer__col ul a { font-size: 14px; text-decoration: none; color: var(--txt-color); font-weight: 600; }
.tt-footer__col ul a:hover { color: var(--primary-color); }

.tt-footer__rule { height: 1px; background: rgba(0,0,0,0.06); margin: 40px 0 16px; }
.tt-footer__fineprint {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--color3);
}
.tt-footer__fineprint a { color: var(--color3); text-decoration: none; }
.tt-footer__fineprint a:hover { color: var(--primary-color); }

/* ============================================================
 * Sticky mobile CTA
 * ============================================================ */
.tt-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 280ms var(--ease-out);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.tt-sticky-cta.is-visible { transform: none; }
.tt-sticky-cta__meta { font-size: 12px; color: var(--color3); line-height: 1.3; }
.tt-sticky-cta__meta strong { display: block; color: var(--secondary-color); font-size: 14px; font-weight: 700; }
.tt-sticky-cta .tt-btn { padding: 10px 18px; font-size: 13px; min-height: 40px; }
@media (max-width: 767px) { .tt-sticky-cta { display: flex; } }

/* ============================================================
 * Hero motion — slow background drift + floating artifacts
 *   .tt-hero      : establishes stacking context
 *   ::before      : low-opacity radial blob, 30s drift
 *   .__artifacts  : absolute layer behind .__grid, 5 shapes
 *   .__grid       : sits above the motion via z-index: 2
 * Global @media (prefers-reduced-motion: reduce) in design-tokens.css
 * kills every transition + animation, so no per-block override here.
 * ============================================================ */
.tt-hero { position: relative; isolation: isolate; }
.tt-hero__grid { position: relative; z-index: 2; }

.tt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 20% 50%,
    rgba(60, 106, 224, 0.07) 0%,
    transparent 50%);
  animation: tt-hero-drift 30s ease-in-out infinite;
}
@keyframes tt-hero-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -20px); }
}

.tt-hero__artifacts {
  /* Centered, content-width box so child positions align with the visible
     layout (the hero itself is full-bleed teal). overflow:visible lets the
     blob spill slightly past the content edge — .tt-hero already has
     overflow:hidden to clip anything that leaves the band. */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max);
  padding: 0 var(--gutter-desk);
  pointer-events: none;
  z-index: 1;
}
.tt-hero__artifacts .artifact {
  position: absolute;
  display: block;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.tt-hero__artifacts .artifact-inner {
  display: block;
  width: 100%;
  height: auto;
}

/* Brand decorations — clustered dots (top-right) and wavy round-shape blob
   (bottom-right), ported from the main site's hero. Outer span picks up
   mouse/scroll parallax from JS; inner image handles slow drift/spin.
   Desktop only (hidden via @media below). */

/* Pink-dot column — top-right above the photo card */
.tt-hero__artifacts .artifact-dots {
  top: 40px;
  right: 64px;
  width: 28px;
}
.tt-hero__artifacts .artifact-dots .artifact-inner {
  opacity: 0.85;
  animation: tt-art-drift-soft 12s ease-in-out infinite;
}

/* Wavy round-shape blob — bottom-right behind/below the photo card */
.tt-hero__artifacts .artifact-blob {
  bottom: -40px;
  right: -30px;
  width: 160px;
}
.tt-hero__artifacts .artifact-blob .artifact-inner {
  opacity: 0.5;
  animation: tt-art-spin-slow 32s linear infinite;
}

@keyframes tt-art-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes tt-art-drift-soft {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4px, -8px); }
}

/* Hide artifacts on mobile + touch devices entirely */
@media (max-width: 767px), (hover: none) {
  .tt-hero__artifacts { display: none; }
}

/* ============================================================
 * Context-aware pencil cursor + interactive hover states
 * ============================================================ */
.tt-card,
.tt-faq__q,
.tt-btn--primary {
  cursor: url('/images/cursors/pencil.svg') 2 2, pointer;
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .tt-card,
  .tt-faq__q,
  .tt-btn--primary { cursor: pointer; }
}

/* Card hover lift — transition list already includes transform/opacity on the
   base .tt-card rule above, so just declare the hover target here. */
.tt-card:hover { transform: translateY(-2px); }

.tt-faq__q { transition: color 200ms var(--ease-out); }
.tt-faq__q:hover { color: var(--primary-color); }

/* .tt-btn already has transition: all .3s ease in design-tokens.css */
.tt-btn--primary:hover  { transform: translateY(-1px); }
.tt-btn--primary:active { transform: translateY(0); }
