/* Alleve Animal Hospital — site styles */

:root {
  --blue: #03a5d5;
  --blue-dark: #0587ae;
  --blue-light: #e6f6fb;
  --red: #c8242b;
  --ink: #2b2f33;
  --muted: #5f6b73;
  --line: #e2e6e9;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --hero-bg: #c9c9c9;
  --max: 1080px;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 40, 60, 0.08);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.1rem; font-weight: 600; }
h2 { font-size: 1.6rem; font-weight: 600; color: var(--blue-dark); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2rem); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Top bar */
.topbar { background: var(--blue-dark); color: #fff; font-size: 0.9rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 0.4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .social { display: flex; gap: 0.75rem; }
.topbar .social svg { width: 18px; height: 18px; fill: currentColor; vertical-align: middle; }

/* Header + nav */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand-name { font-size: 1.3rem; font-weight: 600; color: var(--blue); letter-spacing: 0.01em; white-space: nowrap; }
.brand-tagline { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.7rem; font: inherit; color: var(--ink); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 8px; white-space: nowrap;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.site-nav a:hover { background: var(--blue-light); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.site-nav .nav-call { background: var(--red); color: #fff; margin-left: 0.5rem; }
.site-nav .nav-call:hover { background: #a91d23; color: #fff; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; padding-bottom: 0.5rem; }
  .site-nav .nav-call { margin-left: 0; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--ink); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1rem; min-height: 300px; }
.hero-copy { padding: 2.5rem 0; }
.hero-copy h1 { color: var(--ink); }
.hero-copy p { font-size: 1.1rem; color: #3f474d; max-width: 34rem; }
.hero-media { position: relative; height: 300px; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;
  opacity: 0; transition: opacity 1.2s ease;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-composite: intersect;
}
.hero-media img.is-active { opacity: 1; }
.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 2px solid transparent; transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { height: 220px; }
  .hero-copy { padding: 2rem 0 1rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.page-title { background: var(--blue-light); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.page-title h1 { color: var(--blue-dark); margin: 0; }
.page-title p { margin: 0.4rem 0 0; color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-img { background: #fff; display: flex; justify-content: center; padding: 1rem 1rem 0; }
.card-img img { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; }
.card-body { padding: 1.1rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { flex: 1; color: var(--muted); font-size: 0.97rem; }
.card-body .more { font-weight: 600; text-decoration: none; }

/* Info strip */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.info-strip > div { padding: 1.25rem; border-left: 4px solid var(--blue); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.info-strip h3 { color: var(--blue-dark); margin-bottom: 0.4rem; }
.info-strip p { margin: 0; color: var(--muted); }
.info-strip a { text-decoration: none; }

/* Gallery */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; aspect-ratio: 765 / 370; box-shadow: var(--shadow); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.gallery img.is-active { opacity: 1; }
.gallery-controls { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.gallery-controls button {
  width: 12px; height: 12px; border-radius: 50%; border: none; padding: 0;
  background: #c4ccd2; cursor: pointer;
}
.gallery-controls button[aria-current="true"] { background: var(--blue); }
.gallery-caption { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* Services */
.jump-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.jump-nav a {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--blue-light);
  color: var(--blue-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.jump-nav a:hover { background: var(--blue); color: #fff; }
.service { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: none; }
.service-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 34px; height: 34px; stroke: var(--blue-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h2 { margin-bottom: 0.4rem; }
.service p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .service { grid-template-columns: 1fr; } }

/* Staff */
.staff-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; display: grid; grid-template-columns: 140px 1fr; gap: 1.75rem; align-items: start; }
.person img { width: 140px; height: 140px; }
.person img { object-fit: cover; border-radius: 50%; border: 3px solid var(--blue-light); }
.person h2 { font-size: 1.2rem; margin-bottom: 0.1rem; }
.person .role { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.person p:last-child { margin-bottom: 0; max-width: 60rem; }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* Testimonials */
.testimonials { display: grid; gap: 1.5rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; align-items: start; }
.testimonial.no-photo { grid-template-columns: 1fr; }
.testimonial img { width: 160px; border-radius: 10px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { color: #3f474d; }
.testimonial cite { display: block; font-style: normal; font-weight: 600; color: var(--blue-dark); margin-top: 0.5rem; }
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) { .testimonial { grid-template-columns: 1fr; } }

.cta-box { background: var(--blue-light); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 2rem; }
.cta-box p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.4rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 0.7rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #3f474d; margin: 0 0 1rem; }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
.location-grid dl { margin: 0; }
.location-grid dt { font-weight: 600; color: var(--blue-dark); margin-top: 1rem; }
.location-grid dd { margin: 0.2rem 0 0; }
.hours { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.hours td { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; white-space: nowrap; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e9ecef; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-link { display: inline-block; margin-top: 0.6rem; }
.note { background: #fff6e5; border-left: 4px solid #f0a53a; padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin-top: 1.5rem; }
.note p:last-child { margin: 0; }
@media (max-width: 760px) { .location-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6dc; padding: 2.5rem 0 1.5rem; margin-top: 3rem; font-size: 0.95rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand img { width: 44px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 1.5rem; padding-top: 1rem; font-size: 0.85rem; color: #9aa6af; grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .gallery img { transition: none; }
}
