/* West Palm Beach Veterinary Clinic */

:root {
  --navy: #000133;
  --navy-line: #2a2e66;
  --navy-soft: #3a3f7a;
  --gold: #e9a23b;
  --gold-light: #f3c77a;
  --ink: #141633;
  --muted: #4a4e6b;
  --eyebrow: #5a5f80;
  --bg: #f9f6f6;
  --card: #ffffff;
  --border: #e6e3e8;
  --tint: #eef0fa;
  --on-navy: #d9dbea;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1192px;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: #2a3290; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }
.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #1a1d5c; color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--navy); }
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { flex-shrink: 0; line-height: 0; }
.brand img { width: 210px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: #fff; text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover { color: var(--gold-light); }
.main-nav ul a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-appt { min-height: 44px; padding: 0 18px; font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-call { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline-flex; }

@media (max-width: 1100px) {
  .header-inner { min-height: 80px; }
  .brand img { width: 180px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .btn-call { width: 48px; height: 48px; padding: 0; }
  .btn-call-text { display: none; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px; margin: 0;
    padding: 16px 24px 24px; background: var(--navy); border-top: 1px solid var(--navy-line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
  .main-nav ul a[aria-current="page"] { border-bottom-color: var(--navy-line); color: var(--gold-light); }
  .nav-appt { min-height: 52px; font-size: 16px; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 1, 51, .62); }
.hero-content { position: relative; padding-top: 140px; padding-bottom: 96px; }
.hero-text { max-width: 720px; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.eyebrow-light { color: var(--gold-light); }
.hero h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.01em; line-height: 1.05; }
.hero-sub { margin: 20px 0 0; font-size: 20px; max-width: 560px; color: #ecedf5; }
.hero .btn-row { margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: 16px; }
.hero-meta > * { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; color: #fff; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.page-hero h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(36px, 5vw, 52px); }
.page-hero p { margin: 14px 0 0; max-width: 640px; font-size: 19px; color: var(--on-navy); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 0; }
.section-white { background: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(32px, 4vw, 44px); color: var(--navy); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
a.card:hover { border-color: #c9c6d6; box-shadow: 0 6px 20px rgba(0, 1, 51, .06); color: var(--ink); }
.card-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--navy); }
.card-title { font-size: 20px; font-weight: 700; color: var(--navy); }
.card-text { color: var(--muted); }
.card-meta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--navy); }

/* ---------- Pricing teaser ---------- */
.price-panel {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  padding: 56px; border-radius: var(--radius-lg); background: var(--navy); color: #fff;
}
.price-panel > div { flex: 1 1 340px; min-width: 0; }
.price-panel .h2 { color: #fff; }
.price-panel p { color: var(--on-navy); max-width: 420px; margin-top: 16px; }
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--navy-line); font-size: 19px; }
.price-rows li:last-child { border-bottom: 0; }
.price-rows strong { white-space: nowrap; }
@media (max-width: 600px) { .price-panel { padding: 32px 24px; } }

/* ---------- Split layouts ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split-img { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.split .lead { margin-top: 20px; }
.split .link-arrow, .split .btn { margin-top: 28px; }

/* ---------- Reviews ---------- */
.rating-big .stars { font-size: 0; }
.review-card { margin: 0; }
.review-card blockquote { margin: 0; font-size: 18px; }
.review-card figcaption { font-weight: 700; color: var(--navy); }

/* ---------- Visit ---------- */
.visit { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.visit-info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 22px; }
.visit-map { flex: 1.3 1 420px; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #e9e7ee; }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.info-item { display: flex; gap: 14px; }
.info-item .icon { color: var(--navy); margin-top: 3px; }
.info-item strong { display: block; color: var(--navy); }
.info-item > div { min-width: 0; }
.info-item a, .info-item span { display: block; color: var(--muted); overflow-wrap: anywhere; }
.site-footer a { overflow-wrap: anywhere; }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: 20px; }
.service-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: start;
  padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.service-row h2 { font-size: 24px; font-weight: 700; color: var(--navy); font-family: var(--font-body); }
.service-row p { margin-top: 10px; color: var(--muted); max-width: 680px; }
.service-row ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service-row li { background: var(--tint); color: var(--navy); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 500; }
.service-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; padding: 24px; }
  .service-price { white-space: normal; }
}
.notice { padding: 28px 32px; border-radius: var(--radius); background: var(--tint); color: var(--ink); }
.notice strong { color: var(--navy); }

/* ---------- About page ---------- */
.vet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.vet-card { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.vet-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.vet-card figcaption { padding: 20px 24px 24px; }
.vet-card strong { display: block; font-size: 22px; color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.vet-card span { color: var(--muted); }

/* ---------- Pricing page ---------- */
.pricing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.price-group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.price-group + .price-group { margin-top: 24px; }
.price-group h2 { font-size: 22px; font-weight: 700; font-family: var(--font-body); color: var(--navy); margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 0; border-bottom: 1px solid var(--border); text-align: left; font-size: 18px; }
.price-table th { font-weight: 500; }
.price-table td { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; padding-left: 16px; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.pricing-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.pricing-aside img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.aside-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.aside-card p { color: var(--on-navy); }
.aside-card .btn { width: 100%; margin-top: 10px; }
@media (max-width: 900px) {
  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-aside { position: static; }
  .pricing-aside img { display: none; }
}
@media (max-width: 500px) {
  .price-group { padding: 24px 20px; }
  .price-table th, .price-table td { font-size: 16px; }
  .price-table td { white-space: normal; }
}

/* ---------- Contact page & form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; scroll-margin-top: 24px; }
@media (max-width: 600px) { .form-card { padding: 28px 20px; } }
.form-card h2 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field legend { font-weight: 600; color: var(--navy); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9b6c6; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(233, 162, 59, .5); border-color: var(--navy); }
.field-radios { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
.field-radios legend { width: 100%; margin-bottom: 6px; padding: 0; }
.field-radios label, .field-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); cursor: pointer; }
.field-radios label { align-items: center; min-height: 44px; }
.field-radios input, .field-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.field-consent span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 15px; color: var(--muted); margin: 0; }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-side .visit-map { min-height: 300px; flex: none; }
.contact-side .visit-map iframe { min-height: 300px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Text pages (policies) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--navy); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .6em; }
.prose .updated { color: var(--muted); font-size: 15px; }

/* ---------- Thank you / 404 ---------- */
.message-box { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px 32px; }
.message-icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 999px; background: var(--tint); color: var(--navy); margin-bottom: 20px; }
.message-box p { color: var(--muted); margin-top: 12px; }
.message-box .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-top: 72px; font-size: 16px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.1fr .9fr 1.4fr .8fr; } }
.footer-brand img { width: 230px; height: auto; }
.footer-title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 12px; font-family: var(--font-body); }
.site-footer p { margin: 0 0 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 10px; }
.social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--navy-soft); }
.social a:hover { background: var(--navy-line); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--navy-line); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
