/* =========================================================
   VetConnect — Public Site: Navigation, Hero, Home Sections
   ========================================================= */

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-blue);
  box-shadow: 0 2px 14px rgba(8, 80, 125, 0.28);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.site-header .brand { color: var(--color-white); }
.site-header .brand img { border: 0; border-radius: 50%; background: #fff; }
.site-header .brand-name-full small { color: #D8EFFA; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background-color 160ms ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.nav-links a.is-active { background: var(--color-lime); color: var(--color-white); font-weight: 700; }
.nav-links a.is-active:hover { background: var(--color-lime-deep); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--color-white);
}
.site-header .btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.site-header .btn-primary {
  background: var(--color-white);
  color: var(--color-blue-deep);
}
.site-header .btn-primary:hover { background: var(--color-blue-pale); }
.site-header .unified-book { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.site-header .unified-book svg { flex:0 0 auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    color: var(--color-ink);
    padding: 12px var(--gutter);
    border-radius: 0;
  }
  .nav-links a:hover { background: var(--color-blue-pale); color: var(--color-blue-deep); }
  .nav-links a.is-active { background: var(--color-lime); color: var(--color-white); border-radius: 0; }
  .nav-actions {
    position: fixed;
    top: calc(68px + 178px);
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px var(--gutter) 18px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-actions.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-actions .btn { justify-content: center; width: 100%; }
  .site-header .btn-outline { border-color: var(--color-blue); color: var(--color-blue-deep); }
  .site-header .btn-outline:hover { background: var(--color-blue-pale); }
  .site-header .btn-primary { background: var(--color-blue); color: var(--color-white); }
  .site-header .btn-primary:hover { background: var(--color-blue-deep); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 56px) 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #EFF8DF 0%, #F5FAFD 55%, #FFFFFF 100%);
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 64px;
  display: block;
  z-index: 1;
}
.hero-paw {
  position: absolute;
  width: 190px;
  height: 190px;
  color: var(--color-blue-deep);
  opacity: 0.05;
  pointer-events: none;
}
.hero-paw-tl { top: -30px; left: -40px; transform: rotate(-18deg); }
.hero-paw-br { bottom: 40px; right: -30px; transform: rotate(14deg); color: var(--color-lime-deep); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-lime-pale);
  color: var(--color-lime-deep);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.hero-eyebrow img { width: 16px; height: 16px; }
.hero-copy h1 { margin-bottom: 0.4em; color: var(--color-blue); }
.hero-copy h1 .accent { color: var(--color-lime); }
.hero-copy .lede { margin-bottom: 1.8em; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding-bottom: 26px;
}
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-white);
  outline: 1px solid var(--color-border);
}
.hero-slot-card {
  position: absolute;
  left: 6%;
  bottom: 8%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-slot-card span.eyebrow {
  font-size: 0.72rem;
  color: var(--color-slate);
}
.hero-slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-slot-row .slot-day { font-size: 0.78rem; color: var(--color-slate); min-width: 54px; }
.hero-slot-row .slot-time { font-weight: 700; color: var(--color-blue-deep); font-size: 0.92rem; }

@media (max-width: 480px) {
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-grid { gap: 32px; }
}
@media (max-width: 760px) {
  .hero-visual { min-height: 260px; }
  .hero-slot-card { left: 50%; transform: translateX(-50%); bottom: -14px; }
  .hero-paw { width: 120px; height: 120px; }
}

/* ---------- How it works (sequence — numbering justified) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(100% - 6px);
  width: calc(32px + 12px);
  height: 2px;
  background: var(--color-lime);
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step:not(:last-child)::after { display: none; }
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--color-slate); margin-bottom: 0; }

/* ---------- Service preview cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.service-card:nth-child(2n) .service-icon { background: var(--color-lime); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 2px; }
.service-card p { color: var(--color-slate); font-size: 0.95rem; margin-bottom: 4px; }
.service-card .btn { align-self: flex-start; margin-top: auto; }

.section-foot-action {
  margin-top: 36px;
  text-align: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-blue-deep);
  border-radius: var(--radius-lg);
  padding: 56px var(--gutter);
  text-align: center;
  color: var(--color-white);
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 0.3em; }
.cta-banner p { color: #D8EFFA; margin: 0 auto 28px; }
.cta-banner .btn-primary {
  background: var(--color-lime);
}
.cta-banner .btn-primary:hover { background: var(--color-lime-deep); }

/* ---------- Locations preview ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .locations-grid { grid-template-columns: 1fr; }
}
.location-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
}
.location-pin {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-blue-pale);
  color: var(--color-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-pin svg { width: 20px; height: 20px; }
.location-card h3 { margin-bottom: 4px; }
.location-card p { color: var(--color-slate); font-size: 0.92rem; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: clamp(28px, 4vw, 40px) 0 0;
  margin-top: clamp(40px, 6vw, 64px);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 26px;
}
@media (max-width: 760px) {
  .footer-columns { grid-template-columns: 1fr; gap: 26px; }
}

.footer-col-brand .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brand img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.footer-brand span {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 600;
}
.footer-tagline {
  color: #D8EFFA;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  max-width: 30ch;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.footer-links-list,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list a {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-links-list a:hover { color: var(--color-lime); text-decoration: underline; }
.footer-contact-list li {
  color: #D8EFFA;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Original footer bottom strip: divider, copyright and educational notice */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 0 14px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #CFE7F5;
}
.footer-bottom span:last-child { text-align: right; }


/* =========================================================
   Landing page — nav + hero + footer. The hero gets generous
   vertical room of its own; the footer is left untouched and
   simply follows in normal flow below the fold.
   ========================================================= */
.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.landing main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(180deg, #EFF8DF 0%, #F5FAFD 55%, #FFFFFF 100%);
}
.landing .site-footer { margin-top: 0; }

/* Hero — taller section with real breathing room; content is
   vertically centered inside it, footer follows naturally after. */
.landing-hero {
  display: flex;
  align-items: center;
  min-height: clamp(480px, 62vh, 560px);
  padding: clamp(40px, 7vh, 72px) 0;
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  width: 100%;
}
.landing .hero-eyebrow { margin-bottom: clamp(12px, 1.8vh, 18px); }
.landing .hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  margin-bottom: clamp(12px, 2vh, 20px);
}
.landing .hero-copy .lede {
  font-size: clamp(0.94rem, 1.2vw, 1.1rem);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.landing-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: clamp(300px, 46vh, 480px);
}
.landing-visual-pets {
  width: clamp(300px, 46vw, 640px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(10, 76, 110, 0.18));
}

/* Tablets & phones — normal scrolling layout */
@media (max-width: 900px) {
  .landing { min-height: 0; }
  .landing-hero { min-height: 0; padding: 32px 0; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-visual { order: -1; min-height: 0; margin-bottom: 8px; }
  .landing-visual-pets { width: min(78vw, 320px); }
}


/* =========================================================
   Landing page — header + hero restyled to the new design.
   All scoped to .landing so other pages are untouched.
   Colours are the site's existing palette.
   ========================================================= */
.landing, .modern-nav {
  --lp-font: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --lp-green: #679E27;   /* deeper shade of the clinic green so small text stays readable */
}

/* ---- Header ---- */
.landing .nav-row, .modern-nav .nav-row { padding: 12px clamp(24px, 4.1vw, 42px); }
.landing .site-header .brand, .modern-nav .site-header .brand { font-family: var(--lp-font); font-weight: 700; font-size: 1.12rem; }
.landing .site-header .brand-name-full small, .modern-nav .site-header .brand-name-full small { font-family: var(--lp-font); font-weight: 500; font-size: 0.72rem; }
.landing .nav-links, .modern-nav .nav-links { gap: 34px; }
.landing .nav-links a, .modern-nav .nav-links a {
  font-family: var(--lp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.landing .nav-links a:hover, .modern-nav .nav-links a:hover { background: none; border-bottom-color: rgba(255, 255, 255, 0.6); }
.landing .nav-links a.is-active, .modern-nav .nav-links a.is-active,
.landing .nav-links a.is-active:hover, .modern-nav .nav-links a.is-active:hover { background: none; color: #fff; border-bottom-color: #fff; }
.landing .site-header .btn-primary, .modern-nav .site-header .btn-primary { font-family: var(--lp-font); font-weight: 700; border-radius: 10px; }

/* Services-style header: full-width bar, content aligned with the page grid */
.modern-nav .nav-row {
  max-width: 1264px;
  padding: 14px clamp(16px, 2.6vw, 32px);
}
.modern-nav .site-header .brand img { width: 44px; height: 44px; border-radius: 50%; }
.modern-nav .site-header .brand { font-size: 1.07rem; gap: 12px; }
.modern-nav .nav-links { gap: 30px; }

/* Log In dropdown */
.login-menu { position: relative; }
.login-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lp-font);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 6px 12px 6px 7px;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.login-menu-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.login-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-blue);
}
.login-menu-chevron { transition: transform 160ms ease; }
.login-menu.is-open .login-menu-chevron { transform: rotate(180deg); }
.login-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  z-index: 60;
}
.login-menu.is-open .login-menu-list { display: block; }
.login-menu-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--lp-font);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-blue-deep);
}
.login-menu-list a:hover { background: var(--color-blue-pale); text-decoration: none; }

/* ---- Hero ---- */
.landing .landing-hero {
  position: relative;
  overflow: hidden;
  flex: 1 0 auto;
  min-height: clamp(440px, 58vh, 600px);
  padding: 36px 0;
  background: linear-gradient(180deg, #DCF0FC 0%, #FFFFFF 100%);
}
.landing .landing-hero-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 580px);
  padding-left: calc(clamp(24px, 4.1vw, 42px) + 21px);
}
.landing .hero-pets {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 62%;
  object-fit: cover;
  object-position: right bottom;
  /* soft feathered left edge so the photo melts into the page */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  pointer-events: none;
  user-select: none;
}

.landing .landing-hero .hero-eyebrow {
  gap: 8px;
  font-family: var(--lp-font);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0;
  color: var(--lp-green);
  background: var(--color-lime-pale);
  border: 1px solid #D9E8C7;
  padding: 6px 14px 6px 10px;
  margin-bottom: clamp(16px, 2.6vh, 24px);
}
.hero-eyebrow-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.landing .landing-hero .hero-copy h1 {
  font-family: var(--lp-font);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--color-blue-deep);
  margin-bottom: clamp(14px, 2.2vh, 22px);
}
.landing .landing-hero .hero-copy .lede {
  font-family: var(--lp-font);
  font-weight: 500;
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  line-height: 1.6;
  color: var(--color-slate);
  max-width: 34em;
  margin-bottom: clamp(22px, 3.6vh, 34px);
}
.landing .landing-hero .hero-actions { gap: 16px; }
.landing .landing-hero .btn {
  font-family: var(--lp-font);
  font-weight: 700;
  font-size: 0.95rem;
  gap: 10px;
  padding: 13px 22px;
  border-width: 2px;
  border-radius: 12px;
}
.landing .landing-hero .btn-primary { border: none; outline: none; box-shadow: none; }
.landing .landing-hero .btn-primary:hover { border: none; outline: none; box-shadow: none; }
.landing .landing-hero .btn-primary:focus,
.landing .landing-hero .btn-primary:focus-visible,
.landing .landing-hero .btn-primary:active { border: none; outline: none; box-shadow: none; }
.landing .landing-hero .btn-outline {
  background: #fff;
  border-color: var(--color-blue);
  color: var(--color-blue-deep);
}
.landing .landing-hero .btn-outline:hover { background: var(--color-blue-pale); }

/* ---- Tablets & phones ---- */
@media (max-width: 900px) {
  .landing .landing-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 32px 0 0;
  }
  .landing .landing-hero-grid { padding-left: var(--gutter); }
  .landing .hero-pets {
    position: relative;
    width: 100%;
    height: auto;
    max-width: none;
    margin-top: 20px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
            mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  }
  .landing .landing-hero .hero-actions .btn { width: 100%; justify-content: center; }
  .landing .lede .br-wide { display: none; }
}

/* Phone menu: keep the original stacked Log in / Register buttons */
@media (max-width: 860px) {
  .login-menu-toggle { display: none; }
  .login-menu-list {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .login-menu-list a {
    text-align: center;
    border: 1px solid var(--color-blue);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
  }
}

/* Phone menu (≤860px): keep the stacked nav readable on the white panel
   for pages using the modern header (landing + services). */
@media (max-width: 860px) {
  .landing .nav-links,
  .modern-nav .nav-links { gap: 4px; }   /* desktop spacing would push Locations under the buttons panel */
  .landing .nav-links a,
  .modern-nav .nav-links a {
    color: var(--color-ink);
    padding: 12px var(--gutter);
    border-bottom: 0;
  }
  .landing .nav-links a:hover,
  .modern-nav .nav-links a:hover { background: var(--color-blue-pale); color: var(--color-blue-deep); }
  .landing .nav-links a.is-active,
  .modern-nav .nav-links a.is-active,
  .landing .nav-links a.is-active:hover,
  .modern-nav .nav-links a.is-active:hover {
    background: var(--color-blue-pale);
    color: var(--color-blue-deep);
    border-bottom: 0;
  }
}

/* =========================================================
   Unified VetConnect navbar + footer
   Keeps the header layout identical before and after login.
   ========================================================= */
.unified-header .nav-row {
  max-width: 1440px;
  padding: 12px clamp(24px, 3.2vw, 42px);
}
.unified-header .brand { gap: 12px; flex-shrink: 0; }
.unified-header .brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid rgba(255,255,255,.9);
}
.unified-header .brand-name-full {
  font-family: 'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.15;
}
.unified-header .brand-name-full small {
  display: block;
  margin-top: 3px;
  font-family: 'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #D8EFFA;
}
.unified-header .nav-links {
  flex: 1;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 38px);
  margin: 0 clamp(20px, 2.4vw, 34px);
}
.unified-header .nav-links a {
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;
  font-size: .9rem;
  font-weight: 700;
  padding: 8px 2px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.unified-header .nav-links a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-bottom-color: transparent;
}
/* Active page highlight — matches the green Book Appointment CTA for a consistent navbar. */
.unified-header .nav-links a.is-active,
.unified-header .nav-links a.is-active:hover {
  background: var(--color-lime);
  color: var(--color-white);
  border-bottom-color: var(--color-lime);
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: 0 4px 10px rgba(103, 158, 39, 0.18);
}
.unified-header .nav-actions { flex-shrink: 0; }
.unified-header .unified-book {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;
  font-weight: 800;
  white-space: nowrap;
  /* Same green as the active navbar pill and every Book Appointment CTA */
  background: var(--color-lime) !important;
  color: var(--color-white) !important;
  border: 1px solid var(--color-lime) !important;
  box-shadow: 0 4px 12px rgba(103, 158, 39, 0.22);
}
.unified-header .unified-book:hover {
  background: var(--color-lime-deep) !important;
  border-color: var(--color-lime-deep) !important;
  color: var(--color-white) !important;
}

.account-menu { position: relative; }
.account-menu-inner { position: relative; }
.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  max-width: 250px;
  padding: 6px 13px 6px 7px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;
  font-size: .88rem;
  font-weight: 700;
}
.account-toggle:hover { background: rgba(255,255,255,.16); }
.account-toggle .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-blue);
  flex: 0 0 34px;
}
.account-chevron { transition: transform .16s ease; }
.account-menu-inner.is-open .account-chevron { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 8px;
  background: #fff;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(8,80,125,.18);
  z-index: 100;
  display: none;
}
.account-menu-inner.is-open .account-dropdown { display: block; }
.account-summary { padding: 12px 12px 10px; }
.account-summary strong { display: block; color: var(--color-ink); font-size: 1rem; }
.account-summary span { display: block; margin-top: 4px; color: #71859a; font-size: .78rem; overflow-wrap: anywhere; }
.account-summary em {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #EFF8DF;
  color: var(--color-blue);
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
}
.account-menu-divider { height: 1px; background: #E7EEF4; margin: 4px 0; }
.account-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0A6CA3;
  text-decoration: none;
  cursor: pointer;
  font: 600 .9rem 'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;
  text-align: left;
  box-sizing: border-box;
}
.account-menu-item:hover { background: #EFF8DF; text-decoration: none; }
.account-menu-item svg { flex: 0 0 20px; color: var(--color-blue); }
.account-menu-item.account-logout { color: #E31B52; }
.account-menu-item.account-logout svg { color: #E31B52; }

/* Compact unified footer: essential clinic info, navigation, contact, and booking. */
.unified-footer {
  margin-top: auto;
  padding: 34px 0 0;
}
.unified-footer .footer-columns {
  grid-template-columns: 1.35fr .8fr 1.15fr .95fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 28px;
}
.unified-footer .footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.unified-footer .footer-brand span { font-size: 1rem; }
.unified-footer .footer-tagline { max-width: 34ch; }
.unified-footer .footer-address {
  margin: 12px 0 0;
  color: #D8EFFA;
  font-size: .84rem;
  line-height: 1.45;
}
.unified-footer .footer-col h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: .88rem;
  margin-bottom: 12px;
}
.unified-footer .footer-links-list { gap: 8px; }
.unified-footer .footer-links-list a { font-size: .86rem; }
.unified-footer .footer-contact-list { gap: 9px; }
.unified-footer .footer-contact-list li { font-size: .84rem; }
.unified-footer .footer-hotline { color: var(--color-blue-pale) !important; font-weight: 800; margin-top: 2px; }
.unified-footer .footer-hotline span { color: var(--color-white); }
.unified-footer .footer-action-text {
  color: #D8EFFA;
  font-size: .84rem;
  line-height: 1.45;
  margin: 0 0 12px;
  max-width: 24ch;
}
.unified-footer .footer-book-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: .82rem;
}
.unified-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  padding: 16px 0 18px;
  margin-top: 4px;
  text-align: left;
  font-size: .78rem;
}

html { scrollbar-gutter: stable; }
body { overflow-x: clip; }
body:has(.unified-header) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(.unified-header) > main { flex: 1 0 auto; }

@media (max-width: 1120px) {
  .unified-header .nav-links { gap: 12px; margin: 0 10px; }
  .unified-header .nav-links a { font-size: .8rem; }
  .unified-header .brand-name-full { font-size: .98rem; }
  .unified-header .unified-book { padding: 0 16px; }
}

@media (max-width: 900px) {
  .unified-footer .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .unified-header .nav-row { padding: 10px 18px; }
  .unified-header .nav-links {
    top: 74px;
    margin: 0;
  }
  .unified-header .nav-links a { color: var(--color-ink); font-size: .9rem; padding: 12px 20px; border-bottom: 0; }
  .unified-header .nav-links a.is-active,
  .unified-header .nav-links a.is-active:hover {
    color: var(--color-white);
    background: var(--color-lime);
    border-bottom: 0;
    border-radius: 10px;
  }
  .unified-header .nav-actions {
    top: calc(74px + 254px);
    padding: 14px 18px 18px;
  }
  .unified-header .nav-actions.is-open { display: flex; }
  .unified-header .account-menu { width: 100%; }
  .unified-header .account-toggle { width: 100%; justify-content: center; }
  .unified-header .account-dropdown { left: 0; right: 0; width: auto; }
  .unified-header .unified-book { width: 100%; justify-content: center; }
  .unified-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .unified-header .brand-name-full { font-size: .86rem; }
  .unified-header .brand-name-full small { font-size: .56rem; }
  .unified-header .brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: #fff; }
  .unified-footer .footer-columns { grid-template-columns: 1fr; }
}

/* Shared navbar logo: fixed size and contained so the logo never changes shape between pages. */
.unified-header .brand img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
  border: 0 !important;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 48px;
}

/* One identical green Book Appointment CTA everywhere. */
.unified-header .unified-book,
.unified-header .unified-book:hover,
.unified-header .unified-book:focus,
.unified-header .unified-book:focus-visible,
.unified-header .unified-book:active {
  background: var(--color-lime) !important;
  color: #fff !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Keep the navbar Log In control free of link underlines in every state. */
.guest-login-link,
.guest-login-link:hover,
.guest-login-link:focus,
.guest-login-link:focus-visible,
.guest-login-link:active {
  text-decoration: none !important;
}


/* Footer social links: consistent with VetConnect's existing blue/white palette. */
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease;
}
.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.7);
  outline: none;
}
.footer-social-links svg { width: 20px; height: 20px; flex: 0 0 20px; }
@media (max-width: 760px) {
  .footer-social-links a { min-height: 44px; }
}


/* Footer social icons: compact circular links matching the clinic's existing palette. */
.unified-footer .footer-brand-tagline {
  margin: 10px 0 0;
  max-width: 250px;
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.88;
}
.unified-footer .footer-col-social .footer-social-links {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}
.unified-footer .footer-col-social .footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: #087cc0;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.unified-footer .footer-col-social .footer-social-links a svg {
  display: block;
  width: 16px;
  height: 16px;
}
.unified-footer .footer-col-social .footer-social-links a:hover,
.unified-footer .footer-col-social .footer-social-links a:focus-visible {
  background: #dff5e8;
  transform: translateY(-2px);
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .unified-footer .footer-col-social .footer-social-links { gap: 9px; }
  .unified-footer .footer-col-social .footer-social-links a { width: 32px; height: 32px; min-height: 32px; }
}

/* Footer bottom repair: use a real border so it remains visible with social links. */
.site-footer.unified-footer .container > .footer-bottom {
  display: flex;
  position: static;
  visibility: visible;
  opacity: 1;
  width: 100%;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin: 24px 0 0;
  padding: 16px 0 18px;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  color: #FFFFFF;
  font-size: 0.8rem;
  line-height: 1.5;
  flex-wrap: wrap;
  overflow: visible;
}
.site-footer.unified-footer .container > .footer-bottom::before {
  content: none;
  display: none;
}
.site-footer.unified-footer .container > .footer-bottom > span {
  display: block;
  visibility: visible;
  opacity: 1;
  color: #FFFFFF;
  position: static;
  z-index: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.site-footer.unified-footer .container > .footer-bottom > span:last-child {
  text-align: right;
}
@media (max-width: 600px) {
  .site-footer.unified-footer .container > .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .site-footer.unified-footer .container > .footer-bottom > span:last-child {
    text-align: left;
  }
}


/* Final footer spacing adjustment: keep the divider and legal text closer to the columns. */
.site-footer.unified-footer {
  padding-top: 24px;
}
.site-footer.unified-footer .footer-columns {
  padding-bottom: 12px;
}
.site-footer.unified-footer .container > .footer-bottom {
  margin-top: 0;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  min-height: 0;
}
