/**
 * Homepage — "Toorak · Stage 1 / We're moving" (Figma node 14:2)
 * Scoped to .tm-* classes; loaded only by frontpage.php.
 * Colours/fonts match the theme tokens in assets/css/src/base/_variables.scss.
 */

.tm-home,
.tm-footer {
  --tm-navy: #0c1546;
  --tm-blue: #6499dd;
  --tm-mid: #cadfe3;
  --tm-light: #e4edef;
  --tm-white: #ffffff;
  --tm-heading: 'P22 Mackinac', serif;
  --tm-body: 'Gilroy', verdana, Arial, sans-serif;
}

.tm-home *,
.tm-footer * {
  box-sizing: border-box;
}

.tm-home p,
.tm-home h1,
.tm-home h2,
.tm-home h3,
.tm-home address,
.tm-home figure,
.tm-footer p {
  margin: 0;
}

.tm-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navy band that sits behind the (unchanged) fixed site header */
.tm-header-band {
  background: var(--tm-navy);
  height: 71px;
}
@media (min-width: 768px) {
  .tm-header-band { height: 88px; }
}

/* Shared type */
.tm-eyebrow {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

.tm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 14px;
  border-radius: 27px;
  font-family: var(--tm-body);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background 150ms linear, color 150ms linear;
}
.tm-btn--dark {
  background: var(--tm-navy);
  color: var(--tm-white);
}
.tm-btn--dark:hover,
.tm-btn--dark:focus-visible {
  background: var(--tm-blue);
  color: var(--tm-navy);
}

/* Relocation status bar */
.tm-status {
  background: var(--tm-mid);
  padding: 14px 20px;
  min-height: 44px;
}
.tm-status__text {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Hero */
.tm-hero {
  background: var(--tm-navy);
  color: var(--tm-white);
  padding: 48px 0 56px;
}
.tm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.tm-home .tm-eyebrow--hero {
  color: var(--tm-blue);
}
.tm-home .tm-hero__title,
.tm-home .tm-hero__subtitle {
  color: var(--tm-white);
  font-family: var(--tm-heading);
  font-weight: 400;
  line-height: 1.14;
}
.tm-home .tm-hero__title {
  font-size: clamp(32px, 4.8vw, 46px);
  margin-top: 21px;
}
.tm-home .tm-hero__subtitle {
  font-size: clamp(28px, 4.6vw, 44px);
  margin-top: 37px;
}
.tm-home .tm-hero__lead {
  color: var(--tm-white);
  font-family: var(--tm-body);
  font-size: 18px;
  line-height: 1.65;
  max-width: 650px;
  margin-top: 36px;
}
.tm-hero__doctor {
  width: 100%;
  max-width: 380px;
}
.tm-hero__portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 380 / 510;
  object-fit: cover;
}

/* Care band */
.tm-care {
  background: var(--tm-mid);
  color: var(--tm-navy);
  padding: 44px 0 46px;
  text-align: center;
}
.tm-home .tm-care__title {
  color: var(--tm-navy);
  font-family: var(--tm-heading);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.25;
}
.tm-home .tm-care__text {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 17px;
  line-height: 1.65;
  margin-top: 27px;
}

/* New location */
.tm-location {
  background: var(--tm-white);
  padding: 64px 0 66px;
  scroll-margin-top: 88px;
}
.tm-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.tm-home .tm-location__title {
  color: var(--tm-navy);
  font-family: var(--tm-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 36px);
  line-height: 1.18;
  margin-top: 23px;
}
.tm-home .tm-location__sub {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 18px;
  line-height: 1.65;
  margin-top: 19px;
}
.tm-home .tm-location__address {
  background: var(--tm-light);
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 16px;
  font-style: normal;
  line-height: 1.65;
  max-width: 570px;
  margin-top: 26px;
  padding: 18px 20px 15px;
}
.tm-home .tm-location__parking {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 14px;
  line-height: 1.65;
  max-width: 570px;
  margin-top: 38px;
}
.tm-visit {
  background: var(--tm-mid);
  color: var(--tm-navy);
  padding: 28px 32px 70px;
}
.tm-home .tm-visit__title {
  color: var(--tm-navy);
  font-family: var(--tm-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 32px);
  line-height: 1.18;
  margin-top: 21px;
}
.tm-home .tm-visit__text {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 20px;
}
.tm-visit .tm-btn {
  width: 100%;
  margin-top: 48px;
}

/* Dr Robinson note */
.tm-robinson {
  background: var(--tm-light);
  color: var(--tm-navy);
  padding: 56px 0 57px;
}
.tm-robinson__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.tm-home .tm-robinson__title {
  color: var(--tm-navy);
  font-family: var(--tm-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 34px);
  line-height: 1.18;
  margin-top: 25px;
}
.tm-home .tm-robinson__lead {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 18px;
  line-height: 1.65;
}
.tm-home .tm-robinson__text {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 32px;
}

/* More from Toorak Orthodontics */
.tm-more {
  background: var(--tm-white);
  color: var(--tm-navy);
  padding: 44px 0 45px;
}
.tm-home .tm-more__title {
  color: var(--tm-navy);
  font-family: var(--tm-heading);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.18;
}
.tm-home .tm-more__text {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 24px;
}
.tm-more__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  list-style: none;
  margin: 45px 0 0;
  padding: 0;
}
.tm-more__links li {
  font-family: var(--tm-body);
  font-size: 15px;
  line-height: 1.65;
}
.tm-more__links a {
  display: block;
  max-width: 360px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--tm-blue);
  color: var(--tm-navy);
  text-decoration: none;
  transition: border-color 150ms linear, color 150ms linear;
}
.tm-more__links a:hover,
.tm-more__links a:focus-visible {
  color: var(--tm-blue);
  border-color: var(--tm-navy);
}

/* Footer (homepage variant) */
footer.tm-footer {
  background: var(--tm-light);
  color: var(--tm-navy);
  padding: 38px 0 29px;
}
.tm-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--tm-navy);
}
.tm-footer__logos {
  display: flex;
  align-items: flex-start;
  gap: 37px;
}
.tm-footer__logos img {
  display: block;
  object-fit: contain;
}
.tm-footer__aso { width: 135px; height: 75px; }
.tm-footer__ada { width: 110px; height: 78px; }
.tm-footer .tm-footer__note {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 15px;
  line-height: 1.65;
}
.tm-footer .tm-footer__links {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 41px;
}
.tm-footer__links a {
  color: var(--tm-navy);
  text-decoration: none;
}
.tm-footer__links a:hover,
.tm-footer__links a:focus-visible {
  color: var(--tm-blue);
}
.tm-footer .tm-footer__copy {
  color: var(--tm-navy);
  font-family: var(--tm-body);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  margin-top: 25px;
}

/* Desktop layout (Figma: 1440 frame, 1200 content) */
@media (min-width: 960px) {
  .tm-hero {
    padding: 64px 0 67px;
  }
  .tm-hero__grid {
    grid-template-columns: minmax(0, 700px) 380px;
    justify-content: space-between;
    gap: 40px;
  }
  .tm-hero__doctor {
    margin-top: 6px;
  }

  .tm-location__grid {
    grid-template-columns: minmax(0, 600px) 520px;
    justify-content: space-between;
    gap: 40px;
  }
  .tm-visit {
    min-height: 350px;
    padding-bottom: 32px;
  }
  .tm-visit .tm-btn {
    margin-top: 78px;
  }

  .tm-robinson__grid {
    grid-template-columns: minmax(0, 500px) minmax(0, 590px);
    justify-content: space-between;
    gap: 40px;
  }
  .tm-robinson__grid > div:last-child {
    padding-top: 4px;
  }
  .tm-home .tm-robinson__text {
    margin-top: 91px;
  }

  .tm-more__links {
    grid-template-columns: repeat(3, minmax(0, 360px));
    gap: 50px;
  }

  .tm-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
    gap: 40px;
    min-height: 130px;
    padding-bottom: 0;
  }
  .tm-footer__info {
    padding-top: 2px;
  }
}
