:root {
  --legacy-brand: #690000;
  --legacy-accent: #e6a900;
  --legacy-ink: #252525;
  --legacy-soft: #f7f3f1;
  --legacy-line: rgba(105, 0, 0, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--legacy-accent);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .top-nav > ul.right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
  }

  .top-nav > ul.right > li > a {
    padding-right: 0.72rem;
    padding-left: 0.72rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

main img {
  max-width: 100%;
  height: auto;
}

.seo-content-section {
  padding: 3.5rem 1rem 4.5rem;
}

.seo-content-section > .line {
  max-width: 1180px;
}

.seo-intro {
  max-width: 760px;
  margin-bottom: 2rem;
  color: #555;
  font-size: 1.08rem;
}

.seo-testimonial-grid,
.seo-video-grid {
  display: grid;
  gap: 1.25rem;
}

.seo-testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0 3.5rem;
}

.seo-testimonial {
  margin: 0;
  padding: 1.7rem;
  border: 1px solid var(--legacy-line);
  border-top: 4px solid var(--legacy-brand);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(50, 23, 20, 0.08);
}

.seo-testimonial p {
  margin: 0 0 1rem;
  color: var(--legacy-ink);
  font-size: 1.02rem;
  line-height: 1.75;
}

.seo-testimonial footer {
  color: var(--legacy-brand);
  font-weight: 700;
}

.seo-video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0;
}

.seo-video-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--legacy-line);
  border-radius: 12px;
  background: #fff;
  color: var(--legacy-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(50, 23, 20, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.seo-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(50, 23, 20, 0.13);
}

.seo-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.seo-video-card span {
  display: block;
  padding: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.seo-video-card span::after {
  content: "Watch on YouTube →";
  display: block;
  margin-top: 0.45rem;
  color: var(--legacy-brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.seo-video-card[data-platform="facebook"] span::after {
  content: "Watch on Facebook →";
}

.seo-contact-phone {
  margin: -0.65rem 20px 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--legacy-brand);
  background: #fff;
  color: var(--legacy-ink);
}

.seo-contact-phone a {
  color: var(--legacy-brand);
  font-weight: 700;
  text-decoration: none;
}

.seo-medical-note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--legacy-accent);
  background: var(--legacy-soft);
  color: #4c4c4c;
}

.seo-profile-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: start;
}

.seo-profile-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(50, 23, 20, 0.12);
}

.seo-credentials {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--legacy-brand);
  background: var(--legacy-soft);
  font-weight: 700;
}

.seo-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  background: var(--legacy-brand);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .seo-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }

  .icon-bar {
    display: none !important;
  }

  header .logo img,
  header .logo .logo-white,
  header .logo .logo-dark {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
  }

  footer .desk-view > div {
    min-height: 64px;
    padding: 5px 4px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid var(--legacy-line);
    box-shadow: 0 -8px 24px rgba(50, 23, 20, 0.12);
  }

  footer .desk-view {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
  }

  footer .desk-view a {
    min-height: 54px;
    padding: 3px !important;
  }

  footer .desk-view img {
    width: 25px !important;
    height: 25px !important;
  }

  footer .desk-view p {
    margin: 2px 0 0;
    color: var(--legacy-brand);
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.1;
  }

  .seo-content-section {
    padding: 2.5rem 1rem 3.5rem;
  }

  .section-head .headline {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .seo-testimonial-grid,
  .seo-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
