/* ==========================================================================
   Tustin Premier Compounding Pharmacy — 2026 design system
   Standalone stylesheet: no Bootstrap, no jQuery required.
   ========================================================================== */

:root {
  --brand: #5a33b4;
  --brand-deep: #38206e;
  --brand-ink: #241447;
  --brand-soft: #ece5fa;
  --accent: #5a33b4;
  --green: #1f7a3d;
  --green-dark: #175d2f;
  --ink: #241f2e;
  --muted: #5f5a6b;
  --cream: #faf7f2;
  --surface: #ffffff;
  --line: #e7e1d6;
  --line-soft: #efeae1;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(36 20 71 / 5%), 0 4px 12px rgb(36 20 71 / 6%);
  --shadow-md: 0 2px 4px rgb(36 20 71 / 6%), 0 14px 34px rgb(36 20 71 / 10%);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--brand-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 650;
}

.skip-link:focus {
  top: 12px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand-ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(820px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.center {
  text-align: center;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn,
.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary,
.seo-cta {
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}

.btn-primary:hover,
.seo-cta:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline,
.seo-cta.secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand-deep) !important;
}

.btn-outline:hover,
.seo-cta.secondary:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--brand-deep) !important;
}

.btn-light:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
  color: #fff !important;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

.seo-cta {
  margin: 6px 10px 6px 0;
}

.btn:focus-visible,
.seo-cta:focus-visible,
.nav-burger:focus-visible,
.site-nav a:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Sticky site chrome (topbar + header) ---------- */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  transition: box-shadow 0.2s ease;
}

.site-chrome.is-scrolled {
  box-shadow: 0 10px 28px rgb(36 20 71 / 12%);
}

.tp-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  background: var(--brand-ink);
  color: #fff;
  font-size: 0.9rem;
  padding: 0;
  min-height: 44px;
}

.tp-topbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 160px;
  padding: 10px 14px;
  text-align: center;
  line-height: 1.25;
}

.tp-topbar a {
  color: #fff;
  text-decoration: none;
  opacity: 1;
  font-weight: 650;
}

.tp-topbar a:hover {
  opacity: 1;
  filter: brightness(1.06);
  text-decoration: none;
}

.tp-topbar__call {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.tp-topbar__addr {
  background: #0a7fa8;
  color: #fff;
  font-weight: 600;
}

.site-header {
  background: rgb(250 247 242 / 96%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--brand-ink);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  flex-shrink: 0;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-ink);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.site-nav a.active {
  background: var(--brand);
  color: #fff;
}

.site-nav a.nav-cta {
  background: var(--green);
  color: #fff;
  font-weight: 650;
  margin-left: 4px;
}

.site-nav a.nav-cta:hover {
  background: var(--green-dark);
  color: #fff;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #2b1660 0%, #452387 45%, #5a33b4 78%, #6d43cf 100%);
  color: #fff;
  padding: clamp(72px, 11vw, 150px) 0 clamp(88px, 12vw, 160px);
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.hero--photo {
  background: #241447;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgb(36 20 71 / 92%) 0%, rgb(69 35 135 / 78%) 48%, rgb(90 51 180 / 55%) 100%),
    linear-gradient(to top, rgb(36 20 71 / 55%), transparent 42%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.hero--photo::before,
.hero--photo::after {
  opacity: 0.28;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -160px;
  background: #8f5ff0;
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -200px;
  background: #33d17a;
  opacity: 0.22;
  animation-delay: -4s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 22px) scale(1.06); }
}

.hero__in {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.reveal {
  animation: fade-up 0.9s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .eyebrow,
.hero .brand-hero {
  color: #c9b8f2;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.45em;
}

.hero h1 em {
  font-style: italic;
  color: #b1f4c9;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgb(255 255 255 / 88%);
  max-width: 48ch;
  margin-bottom: 1.8em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__chips li {
  padding: 7px 15px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgb(255 255 255 / 88%);
}

/* Start strip + need lists (homepage) */
.start-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
}

.start-strip__item {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0.25rem 1.15rem 0;
  background: transparent;
  border: 0;
  border-top: 3px solid var(--brand);
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: color 0.18s ease;
}

.start-strip__item:hover {
  transform: none;
  box-shadow: none;
  color: var(--brand-deep);
}

.start-strip__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.start-strip__item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-ink);
}

.start-strip__item span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.need-list a {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.18s ease, color 0.18s ease;
}

.need-list a:hover {
  padding-left: 0.45rem;
  color: var(--brand-deep);
}

.need-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-ink);
}

.need-list span {
  color: var(--muted);
}

.form-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-rail a {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-ink);
  background: var(--surface);
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-rail a:hover {
  background: var(--brand-soft);
  border-color: transparent;
}

.quotes--tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .start-strip,
  .quotes--tight {
    grid-template-columns: 1fr;
  }

  .start-strip {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero::before,
  .hero::after {
    animation: none !important;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(140deg, #2b1660 0%, #452387 55%, #5a33b4 100%);
  color: #fff;
  padding: clamp(44px, 7vw, 84px) 0;
}

.page-hero .breadcrumbs {
  color: rgb(255 255 255 / 72%);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.page-hero .breadcrumbs a {
  color: rgb(255 255 255 / 88%);
}

.page-hero h1 {
  color: #fff;
  margin: 0;
}

/* ---------- Cards / feature grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card--link {
  text-decoration: none;
  display: block;
  color: inherit;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

.split__body h2 {
  margin-top: 0;
}

.split__body p {
  color: var(--muted);
}

.split--flip .split__media {
  order: 2;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote__stars {
  color: #e9a800;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.quote p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

.quote footer {
  font-weight: 700;
  color: var(--brand-ink);
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--brand-ink);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(34px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.contact-band h2 {
  color: #fff;
  margin-top: 0;
}

.contact-band p {
  color: rgb(255 255 255 / 80%);
}

.contact-band .nap-lines {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact-band .eyebrow {
  color: #c9b8f2;
}

.contact-band .nap-lines a {
  color: #b1f4c9;
}

.contact-band iframe {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
}

/* ---------- SEO page content (generated pages) ---------- */
.seo-page {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}

.seo-prose {
  max-width: 72ch;
}

.seo-prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-top: 2.2em;
}

.seo-prose h3 {
  margin-top: 1.6em;
}

.seo-prose p,
.seo-prose li {
  color: var(--muted);
}

.seo-prose ul,
.seo-prose ol {
  padding-left: 1.3rem;
}

.seo-prose li {
  margin-bottom: 0.5em;
}

.seo-lead {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--ink) !important;
  line-height: 1.6;
}

.seo-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 72ch;
  margin-top: 1.6rem;
}

/* ---------- On-site refill / transfer forms ---------- */
.tp-form {
  max-width: 40rem;
  margin: 1.4rem 0 2.4rem;
  display: grid;
  gap: 1.25rem;
}

.tp-form__section {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: grid;
  gap: 0.9rem;
}

.tp-form__section legend {
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--brand-ink);
}

.tp-form__hint {
  margin: -0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.tp-form__row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.tp-form__field {
  display: grid;
  gap: 0.35rem;
}

.tp-form__field label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.tp-form__optional {
  font-weight: 400;
  color: var(--muted);
}

.tp-form input[type="text"],
.tp-form input[type="tel"],
.tp-form input[type="email"],
.tp-form input[type="date"],
.tp-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.tp-form input:focus,
.tp-form textarea:focus {
  outline: 2px solid var(--brand-soft);
  outline-offset: 1px;
  border-color: var(--brand);
}

.tp-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.tp-form .seo-cta {
  justify-self: start;
  margin-top: 0.1rem;
  cursor: pointer;
  border: 0;
  font: inherit;
}

.tp-form__honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tp-form__privacy-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 0.95rem;
}

.tp-form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.tp-form__consent input {
  margin-top: 0.35rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.tp-form__error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: #fdecea;
  color: var(--ink);
  font-size: 0.95rem;
}

.tp-form-success {
  max-width: 40rem;
  margin: 1rem 0 1.4rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--green);
  background: var(--brand-soft);
  color: var(--ink);
}

.tp-form-success p {
  margin: 0;
}

@media (max-width: 640px) {
  .tp-form__row {
    grid-template-columns: 1fr;
  }
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--brand-deep);
  text-decoration: none;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 650;
  color: #e8e0f7;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 650;
  color: #fff;
  margin: 0 0 0.8rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.8rem;
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.88rem;
  color: rgb(255 255 255 / 72%);
}

.seo-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1.4rem 0;
}

.seo-nap {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.6rem;
  margin: 2.4rem 0 1.4rem;
  max-width: 72ch;
}

.seo-nap p {
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.seo-reviewed,
.seo-disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 72ch;
}

.related-links {
  max-width: 72ch;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.related-links a {
  display: inline-block;
  margin: 0.3rem 0.7rem 0.3rem 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.related-links a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-ink);
  color: rgb(255 255 255 / 78%);
  padding: clamp(48px, 7vw, 80px) 0 34px;
  margin-top: clamp(48px, 7vw, 90px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.site-footer img {
  width: 120px;
  opacity: 0.95;
  margin-bottom: 16px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__legal {
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 55%);
  text-align: center;
}

.site-footer__legal p {
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand span {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.88rem;
  }
}

@media (max-width: 960px) {
  .nav-burger {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    z-index: 120;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px max(20px, calc(50vw - 560px)) 20px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 13px 16px;
    font-size: 1.05rem;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .tp-topbar__call,
  .tp-topbar__addr {
    flex: 1 1 50%;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .grid--3,
  .grid--2,
  .quotes,
  .split {
    grid-template-columns: 1fr;
  }

  .split--flip .split__media {
    order: 0;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .seo-cta {
    display: flex;
    width: 100%;
    margin: 8px 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
