/*
 * Store Locator centre pages: styling for inc/store-template.php.
 * Ported 2026-10-05 from live's tmj-site/store-template.css, unchanged apart from these
 * comments. WP Rocket's Remove Unused CSS keeps it through the ".tmjstore(.*)" safelist
 * entry in inc/performance.php, so every class stays under that one prefix.
 */

.tmjstore {
  --tmj-forest: #153b37;
  --tmj-teal: #3c877f;
  --tmj-teal-soft: #779e9a;
  --tmj-orange: #f27e1f;
  --tmj-orange-lift: #ff8a3d;
  --tmj-mint: #edf2f2;
  --tmj-paper: #ffffff;
  --tmj-ink: #22302d;
  --tmj-ink-soft: #5b6b67;
  --tmj-rule: #dfe8e6;

  /* One content measure + one gutter for EVERY band, so the hero, the contact
     rail and the body grid share identical left/right edges. The hero pads its
     outer element and centres an inner max-width; the rail and grid carry both
     on one element, so they must add the gutters back (border-box).
     Change --tmj-content alone to rewidth the whole template.
     Reference widths on this site: nav bar .tmj-nav-bar = 1600px max-width with
     24px padding (content 1552px); Divi rows default to 1080px. */
  --tmj-content: 1440px;
  --tmj-gutter: 44px;

  background: var(--tmj-paper);
  color: var(--tmj-ink);
}

.tmjstore *,
.tmjstore *::before,
.tmjstore *::after { box-sizing: border-box; }

.tmjstore h1,
.tmjstore h2,
.tmjstore h3,
.tmjstore h4 { text-wrap: balance; }

/* screen-reader-only text (keeps the full centre name inside the h1) */
.tmjstore-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- hero
   No negative margins and no overflow clipping: the portrait sits inside
   the band as an ordinary grid item, so nothing can escape its parent. */
.tmjstore-hero {
  background: var(--tmj-forest);
  color: #fff;
  padding: 40px var(--tmj-gutter);
}
.tmjstore-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  max-width: var(--tmj-content);
  margin: 0 auto;
}
.tmjstore-crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
  text-decoration: none;
  margin-bottom: 18px;
}
.tmjstore-crumb:hover,
.tmjstore-crumb:focus-visible { color: #fff; }
.tmjstore-crumb svg { width: 13px; height: 13px; }

.tmjstore-title {
  margin: 0 0 14px;
  padding: 0;
  color: #fff;
  line-height: 1.06;
}
.tmjstore-title__pre {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tmj-orange-lift);
  margin-bottom: 10px;
  line-height: 1.4;
}
.tmjstore-title__main {
  display: block;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.tmjstore-doctor {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.tmjstore-portrait {
  width: 230px;
  height: 288px;
  object-fit: cover;
  object-position: 50% 25%;
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  display: block;
  max-width: 100%;
}
/* More than one doctor: headshots side by side, a little smaller. */
.tmjstore-portraits { display: flex; gap: 18px; }
.tmjstore-portraits--multi .tmjstore-portrait { width: 190px; height: 238px; }

/* ------------------------------------------------------------ contact rail */
.tmjstore-railwrap {
  max-width: calc(var(--tmj-content) + var(--tmj-gutter) * 2);
  margin: 0 auto;
  padding: 44px var(--tmj-gutter) 0;
}
.tmjstore-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--tmj-rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tmjstore-rail__item {
  display: flex;
  gap: 13px;
  padding: 20px 22px;
  border-right: 1px solid var(--tmj-rule);
}
.tmjstore-rail__item:last-child { border-right: none; }
.tmjstore-rail__ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--tmj-mint);
  color: var(--tmj-teal);
  display: grid;
  place-items: center;
}
.tmjstore-rail__ico svg { width: 17px; height: 17px; }
.tmjstore-rail__text { min-width: 0; }
.tmjstore-rail__k {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tmj-teal-soft);
  margin-bottom: 3px;
}
.tmjstore-rail__v {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tmj-ink);
  overflow-wrap: anywhere;
}
.tmjstore-rail__v a { color: inherit; text-decoration: none; }
.tmjstore-rail__v a:hover,
.tmjstore-rail__v a:focus-visible { color: var(--tmj-teal); text-decoration: underline; }

/* -------------------------------------------------------------- body grid */
.tmjstore-grid {
  max-width: calc(var(--tmj-content) + var(--tmj-gutter) * 2);
  margin: 0 auto;
  padding: 52px var(--tmj-gutter) 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.tmjstore-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tmj-teal);
  margin: 0 0 12px;
}
.tmjstore-about__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--tmj-forest);
  margin: 0 0 18px;
  line-height: 1.15;
}
.tmjstore-prose { max-width: 65ch; }
.tmjstore-prose p {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--tmj-ink-soft);
  margin: 0 0 16px;
}
.tmjstore-prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- buttons */
.tmjstore-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.tmjstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 5px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease;
}
.tmjstore-btn svg { width: 15px; height: 15px; }
.tmjstore-btn--primary { background: var(--tmj-orange); color: #fff; }
.tmjstore-btn--primary:hover,
.tmjstore-btn--primary:focus-visible { background: var(--tmj-orange-lift); color: #fff; }
.tmjstore-btn--ghost { border-color: var(--tmj-teal); color: var(--tmj-teal); background: #fff; }
.tmjstore-btn--ghost:hover,
.tmjstore-btn--ghost:focus-visible { background: var(--tmj-teal); color: #fff; }

/* ----------------------------------------------------------------- aside */
.tmjstore-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 20px;
}
.tmjstore-card {
  border: 1px solid var(--tmj-rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tmjstore-card__head { padding: 18px 22px; }
.tmjstore-card__head h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--tmj-forest);
  letter-spacing: -.01em;
  margin: 0;
}
.tmjstore-card__head p {
  font-size: 14px;
  color: var(--tmj-ink-soft);
  margin: 5px 0 0;
}
.tmjstore-card__link a {
  color: var(--tmj-teal);
  font-weight: 600;
  text-decoration: none;
}
.tmjstore-card__link a:hover,
.tmjstore-card__link a:focus-visible { text-decoration: underline; }

/* ------------------------------------------------------------------- map */
.tmjstore-map {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--tmj-mint);
}
.tmjstore-map iframe { display: block; width: 100%; height: 240px; border: 0; }

/* Google Maps ships its own tile <img>s. A theme-wide `img{max-width:100%}`
   squashes them into a broken grid; this override is required, not cosmetic. */
.tmjstore-map img {
  max-width: none !important;
  max-height: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Divi/Anchor styles must not leak into Google's controls. */
.tmjstore-map button { border-radius: 0; }
.tmjstore-map .gm-style a { text-decoration: none; }
/* Fallback when the Maps Embed API is unavailable. A labelled brand band:
   NOT a simulated map. */
.tmjstore-locband {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 20px;
  background: var(--tmj-forest);
  color: #fff;
}
.tmjstore-locband__pin {
  width: 20px; height: 20px;
  color: var(--tmj-orange-lift);
  flex: none;
}
.tmjstore-locband__pin svg { width: 100%; height: 100%; display: block; }
.tmjstore-locband__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ form */
.tmjstore-form { padding: 0 22px 22px; }
.tmjstore-form input[type="text"],
.tmjstore-form input[type="tel"],
.tmjstore-form input[type="email"],
.tmjstore-form textarea {
  width: 100%;
  background: var(--tmj-mint);
  border: 1px solid var(--tmj-rule);
  border-radius: 5px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--tmj-ink);
  margin-bottom: 11px;
  font-family: inherit;
}
.tmjstore-form textarea { min-height: 96px; resize: vertical; }
.tmjstore-form input::placeholder,
.tmjstore-form textarea::placeholder { color: #9aa9a5; }
.tmjstore-form input[type="submit"],
.tmjstore-form .wpcf7-submit {
  width: 100%;
  background: var(--tmj-orange);
  color: #fff !important;
  border: 0;
  border-radius: 5px;
  padding: 15px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.tmjstore-form input[type="submit"]:hover,
.tmjstore-form .wpcf7-submit:hover { background: var(--tmj-orange-lift); }
.tmjstore-form p { margin: 0; }

/* -------------------------------------------------------------- a11y/focus */
.tmjstore a:focus-visible,
.tmjstore button:focus-visible,
.tmjstore input:focus-visible,
.tmjstore textarea:focus-visible {
  outline: 3px solid var(--tmj-orange);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .tmjstore-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .tmjstore-aside { position: static; }
}

@media (max-width: 900px) {
  /* one change moves every band's edge together */
  .tmjstore { --tmj-gutter: 24px; }
  .tmjstore-hero { padding: 28px var(--tmj-gutter); }
  .tmjstore-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }
  .tmjstore-portrait { width: 168px; height: 210px; }
  .tmjstore-portraits { gap: 12px; }
  .tmjstore-portraits--multi .tmjstore-portrait { width: 140px; height: 175px; }
  .tmjstore-railwrap { padding-top: 32px; }
  .tmjstore-rail { grid-template-columns: 1fr; }
  .tmjstore-rail__item {
    border-right: none;
    border-bottom: 1px solid var(--tmj-rule);
  }
  .tmjstore-rail__item:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tmjstore * { transition: none !important; animation: none !important; }
}
