/* =============================================================
   Hannah Pet Hospital — shared design system
   Loaded by every page. Page-specific styles live inline.
   ============================================================= */

/* ---------- Fonts ---------- */
/* WOFF2 first (modern browsers — ~57% smaller than TTF, all current
   browsers support it). TTF fallback for very old browsers that
   somehow don't. font-display: swap shows the system fallback font
   immediately while the brand font streams in, so first paint is
   never blocked. */
@font-face {
  font-family: "Teen";
  src: url("../fonts/teen.woff2") format("woff2"),
       url("../fonts/teen.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teen";
  src: url("../fonts/teen-bold.woff2") format("woff2"),
       url("../fonts/teen-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teen Light";
  src: url("../fonts/teen-light.woff2") format("woff2"),
       url("../fonts/teen-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --hannah-blue: #51b5e0;
  --hannah-orange: #ff6308;
  --hannah-red: #8c2633;
  --hannah-green: #1eb53a;
  --hannah-yellow: #fdd757;
  --hannah-navy: #1f3b54;
  --cream: #f7f8f6;
  --warm-cream: #ffffff;
  --text: #1f3b54;
  --muted: #5d6d7a;
  --white: #ffffff;
  --border: rgba(31, 59, 84, 0.15);
  --shadow: 0 20px 50px rgba(31, 59, 84, 0.14);
  --radius: 14px;
  --max: 1180px;
}

/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
  /* Suppress iOS Safari's default gray tap rectangle. Focus-visible outlines
     (skip-link, mobile menu close, social icons, etc.) still indicate
     interactivity for keyboard users. */
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Teen", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--warm-cream);
  line-height: 1.55;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* <picture> should be invisible to layout so CSS that targets `.parent img`
   keeps working when an image is wrapped in <picture> for WebP fallback. */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* ---------- Container ---------- */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Announcement bar ---------- */
.announcement {
  background-color: var(--hannah-navy);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 8px 8px, 10px 10px;
  color: var(--white);
  font-size: 0.92rem;
  text-align: center;
  padding: 10px 18px;
  /* When the viewport meta uses viewport-fit=cover (iPhone notch /
     Dynamic Island), extend the navy background behind the status bar
     while keeping the text below it. env() resolves to 0 on devices
     without a notch, so this is a no-op everywhere else. */
  padding-top: calc(10px + env(safe-area-inset-top));
}

.announcement a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header / nav ---------- */
header {
  z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 96px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
}

.logo img {
  width: 210px;
  height: auto;
}

.logo-fallback {
  display: none;
  font-weight: 800;
  color: var(--hannah-navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 24px;
  color: var(--hannah-navy);
  font-size: 0.96rem;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--hannah-orange);
}

/* Current page indicator — set automatically by js/site.js via aria-current="page" */
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--hannah-orange);
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--hannah-orange);
  border-radius: 2px;
}

.nav-actions {
  gap: 12px;
}

.phone {
  color: var(--hannah-navy);
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: "Teen", ui-sans-serif, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--hannah-orange);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(31, 59, 84, 0.22);
}

.btn-primary:hover {
  background: #d94f00;
}

.btn-secondary {
  color: var(--hannah-navy);
  background: var(--white);
  border-color: var(--border);
}

.btn-dark {
  background: var(--hannah-navy);
  color: var(--white);
}

/* ---------- Section utilities ---------- */
section {
  padding: 92px 0;
}

.eyebrow,
.section-kicker {
  color: var(--hannah-orange);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-heading {
  font-weight: 700;
  color: var(--hannah-navy);
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 720px;
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--hannah-navy);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 8px 8px, 10px 10px;
  color: rgba(255, 255, 255, 0.78);
  padding: 60px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(620px, 2fr);
  gap: 74px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  max-width: 430px;
  margin-bottom: 20px;
}

.footer-logo-mark {
  width: 210px;
  margin-bottom: 18px;
}

.footer-logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-locations {
  display: grid;
  gap: 16px;
  font-size: 0.96rem;
  line-height: 1.45;
}

/* .footer-location is rendered as an <a> linking to locations.php#<id>.
   Override generic footer a styling so the grid gap is the only spacing. */
.footer-location {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 0;
  padding: 0;
  transition: color 0.18s ease;
}

.footer-location:hover,
.footer-location:focus-visible {
  color: var(--white);
}

.footer-location:hover strong,
.footer-location:focus-visible strong {
  color: var(--hannah-blue);
}

.footer-location strong,
.footer-call strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-call a {
  display: inline;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Social media icons in the footer brand block */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--hannah-orange);
  transform: translateY(-2px);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* App download badges (footer-brand block) */
.footer-app {
  margin-top: 24px;
}

.footer-app strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}

.footer-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-app-badges a {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.footer-app-badges picture,
.footer-app-badges img {
  display: block;
  height: 44px;
  width: auto;
}

/* Official BBB Accredited Business Seal wrapper. The HTML inside is
   exactly what BBB provides — we just add layout spacing. The seal
   image is 250×52 white-text-on-blue, designed for dark backgrounds.
   Left-aligned on desktop (sits directly under the app store badges);
   centered when the brand column stretches full-width on mobile
   (see the mobile media query). */
.footer-bbb-seal {
  margin-top: 22px;
  text-align: left;
}
.footer-bbb-seal a {
  display: inline-block;
  margin: 0;        /* override the generic `footer a { margin-bottom: 9px }` */
  padding: 0;
  line-height: 0;   /* prevents an extra baseline gap under the image */
}
.footer-bbb-seal img {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 34px 48px;
  justify-content: end;
}

footer h3 {
  color: var(--hannah-blue);
  font-size: 1.12rem;
  margin-bottom: 14px;
}

/* Skip-to-content link for keyboard / screen-reader users. Off-screen until focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--hannah-navy);
  color: var(--white);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--hannah-orange);
  outline-offset: -3px;
}

footer a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.76);
}

footer a:hover {
  color: var(--white);
}

.footer-standalone-link {
  color: var(--hannah-blue);
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: 18px;
}

/* Full-width brand trust line sitting between the main footer grid and the
   copyright row. Centered single sentence surfacing founding date + OVMEB
   licensure, both verifiable. */
.footer-trust {
  padding: 22px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-trust p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-trust a {
  display: inline;
  color: var(--hannah-blue);
  font-weight: 700;
  margin: 0;
}

.footer-trust a:hover,
.footer-trust a:focus-visible {
  color: var(--hannah-yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  font-size: 0.85rem;
}

.footer-legal a {
  display: inline-block;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.4);
}

.copyright {
  font-size: 0.9rem;
}

/* ---------- Floating mobile CTA bar ---------- */
.mobile-cta {
  display: none;
}

@media (max-width: 680px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    gap: 0;
    background: var(--hannah-navy);
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.24);
  }
  .mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .mobile-cta-call {
    background: var(--white);
    color: var(--hannah-navy);
    margin-right: 6px;
  }
  .mobile-cta-quote {
    background: var(--hannah-orange);
    color: var(--white);
    margin-left: 6px;
  }
  /* Lift the cookie banner above the sticky CTA so it doesn't sit
     directly on the bottom edge / get hidden behind the CTA. */
  .cookie-banner {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  /* Push the page footer up so its bottom row isn't behind the CTA. */
  footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 200;
  background: var(--hannah-navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  padding: 18px 22px;
  /* Slide-in animation when shown */
  transform: translateY(140%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.cookie-banner-copy {
  flex: 1;
  min-width: 0;
}
.cookie-banner-copy strong {
  display: block;
  color: var(--white);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.cookie-banner-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-copy a {
  color: var(--hannah-yellow);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.cookie-btn-primary {
  background: var(--white);
  color: var(--hannah-navy);
}
.cookie-btn-primary:hover { background: var(--hannah-yellow); }
.cookie-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}
.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

@media (max-width: 680px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 16px 18px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    padding: 12px;
  }
}

/* ---------- Mobile menu (hamburger + full-screen overlay) ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--hannah-orange);
  outline-offset: 2px;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hannah-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after  { top: 8px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--warm-cream);
  display: none;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner {
  min-height: 100vh;
  /* iOS Safari accounts for the dynamic browser chrome with 100dvh */
  min-height: 100dvh;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu-header .logo img {
  width: 168px;
  height: auto;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: var(--hannah-navy);
  border-radius: 8px;
}

.mobile-menu-close:focus-visible {
  outline: 3px solid var(--hannah-orange);
  outline-offset: 2px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu-nav a {
  color: var(--hannah-navy);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  color: var(--hannah-orange);
}

.mobile-menu-nav a[aria-current="page"] {
  color: var(--hannah-orange);
  border-left: 4px solid var(--hannah-orange);
  padding-left: 12px;
}

.mobile-menu-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hannah-navy);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 10px;
}

.mobile-menu .btn {
  width: 100%;
}

/* Lock body scroll while mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ---------- Responsive — shared chrome only ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1000px) {
  .nav-links,
  .phone {
    display: none;
  }

  /* Show the hamburger and let it take its natural place at the end of the nav row */
  .nav-toggle {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* On mobile, links surface first; brand block (logo, locations,
     social, apps, BBB seal) drops below. Grid `order` reverses DOM
     order without touching markup. */
  .footer-grid > .footer-brand { order: 2; }
  .footer-grid > .footer-links-grid { order: 1; }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  /* BBB seal centers when the brand column stretches full-width. */
  .footer-bbb-seal {
    text-align: center;
  }

  /* Center every footer element once it's stacked single-column */
  footer {
    text-align: center;
  }

  .footer-logo-mark {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-app-badges {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* Touch devices: bump tap targets to comfortable size (≥44px per Apple HIG) */
@media (pointer: coarse) {
  /* Footer link rows are text-only by default; pad them so each link is a
     comfortable tap target without changing visual rhythm too much. */
  footer a {
    padding: 10px 0;
    margin-bottom: 2px;
  }

  /* Footer h3 column titles get a bit more separation from links */
  footer h3 {
    margin-bottom: 8px;
  }

  /* Announcement bar tap area for the embedded phone link */
  /* Keep the 44px tap target for the embedded phone link, but DON'T use
     flex here — the bar's contents are mixed text + inline <a>, and flex
     splits each text run / inline element into its own column. min-height
     + generous vertical padding gives the right tap area without the
     3-column break. */
  .announcement {
    min-height: 44px;
    padding: 12px 16px;
  }
}

@media (max-width: 680px) {
  /* Center standalone CTA buttons on mobile pages */
  .hero-actions,
  .hero-buttons {
    justify-content: center;
  }

  /* Buttons that sit as standalone elements within copy/card containers
     get centered via auto margins on mobile (requires display: flex on the
     inline-flex .btn for margin auto to work). */
  .plan-card .btn,
  .join-content > div > .btn,
  .doctor-video-copy > .btn,
  .tlc-feature-copy > .btn,
  .society-copy > .btn,
  .sick-injured-copy > .btn {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .announcement {
    font-size: 0.82rem;
  }

  .nav {
    min-height: 72px;
  }

  .logo img {
    width: 148px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  section {
    padding: 68px 0;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  /* The standalone links column is split into two grid cells (children 5 + 6)
     so they sit side-by-side on desktop. When stacked on mobile, the grid's
     34px row gap creates a visual break between "Meet the Team" and
     "Careers" — pull the 6th cell up so the two halves read as one list. */
  .footer-links-grid > div:nth-child(6) {
    margin-top: -34px;
  }
}
</content>
</invoke>