/* Herring Cove Veterinary Hospital — site styles
   Matched to the DNN "polo" skin the hospital's site used (measured with
   getComputedStyle on herringcovevethospital.com): Open Sans 300 body text,
   Raleway 700 navigation, navy #114170, red #ff0000 for the emergency and
   booking links, #ededed alternate sections.
   All URLs in here are relative so the site works in a subfolder. */

:root {
  --navy: #114170;
  --red: #ff0000;
  --ink: #252525;
  --text: #565656;
  --para: #3a3a3a;
  --grey: #ededed;
  --store: #b2b5ba;
  --topbar: #f0f0f0;
  --wrap: 1170px;
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
  --nav: Raleway, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.657;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; letter-spacing: 1px; color: var(--ink); line-height: 1.4; }
p { margin: 0 0 10px; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.notice-bar { margin: 0; padding: 8px 15px; background: var(--navy); color: #fff; text-align: center; font-weight: 600; }

/* ---- top bar + header ---------------------------------------------------- */
.topbar { background: var(--topbar); }
.topbar .wrap { height: 40px; display: flex; align-items: center; padding: 0 30px; }
.topbar a { color: var(--red); font-size: 20px; font-weight: 700; line-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-head { background: #fff; position: relative; }
.head-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 0 30px; }
.brand img { height: 70px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav a {
  display: block; padding: 11px 14px;
  font-family: var(--nav); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: none; }
.nav a.nav-book { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

/* ---- home ---------------------------------------------------------------- */
.hero {
  background: #ddd url(../img/banner-kittens.jpg) center / cover no-repeat;
  height: calc(100vh - 120px);
  min-height: 420px;
}

.band { text-align: center; }
.band-navy { background: var(--navy); padding: 20px 40px; }
.band-navy h2 { color: #fff; font-size: 34px; line-height: 1.5; }
.band-store { background: var(--store); padding: 20px 0; }
.band-store h2 { font-size: 30px; line-height: 1.5; margin-bottom: 6px; }

.btn {
  display: inline-block; padding: 11px 20px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; line-height: 14px;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--navy); color: #fff; border: 0; border-radius: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn-light { background: #fff; color: #4c5667; border-radius: 24px; }

.section { padding: 40px 0; }
.section-grey { background: var(--grey); }

.intro { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: center; }
.intro-title { font-size: 30px; line-height: 1.5; margin-bottom: 30px; }
.intro p, .text p { font-weight: 400; color: var(--para); line-height: 27px; }
.intro-img img { margin: 5px auto; }

.cta { background: var(--navy); padding: 20px; text-align: center; color: #fff; }
.cta h2 { color: #fff; font-size: 40px; line-height: 1.36; }
.cta .cta-sub { color: #fff; font-size: 23px; line-height: 1.68; letter-spacing: 1px; margin: 0 0 30px; }

.ql-title { font-size: 53px; color: var(--navy); text-align: center; padding: 20px 0; line-height: 1.32; }
.quick-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.quick-links img { width: 100%; aspect-ratio: 340 / 227; object-fit: cover; }
.quick-links h3 { font-size: 18px; font-weight: 600; line-height: 27px; margin-top: 15px; }
.quick-links h3 a { color: var(--navy); }

/* ---- interior pages -------------------------------------------------------- */
.page-banner { background: #ddd center / cover no-repeat; height: 400px; }
.page-banner-short { height: 300px; }
.banner-about { background-image: url(../img/header-about.jpg); }
.banner-services { background-image: url(../img/header-services.jpg); }
.banner-contact { background-image: url(../img/header-contact.jpg); }

.page-title { font-size: 40px; color: var(--navy); text-align: center; line-height: 1.36; margin: 30px 0 15px; }
.title-dark { font-size: 40px; line-height: 1.36; margin-bottom: 30px; }
.lead-center p { font-weight: 400; color: var(--para); text-align: center; line-height: 27px; }

/* services */
.offer-title { font-size: 40px; text-align: center; line-height: 1.36; margin: 10px 0 0; }
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 0; }
.offer-img img { width: 100%; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { display: flex; align-items: center; gap: 20px; padding: 20px 10px; min-height: 105px; }
.offer-list h3 { font-size: 16px; letter-spacing: normal; }
.paw { flex: none; width: 65px; height: 65px; background: var(--navy); display: grid; place-items: center; }
.paw svg { width: 28px; height: 28px; fill: #fff; }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: start; }

/* emergency */
.emergency-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0 60px; }
.emg-title { font-size: 30px; font-weight: 600; line-height: 1.5; }
.emg-title a { color: var(--navy); }

/* about / team */
.team-group-title { font-size: 40px; color: var(--navy); text-align: center; line-height: 1.36; margin: 20px 0 25px; }
.person { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; margin-bottom: 60px; }
.person:last-child { margin-bottom: 0; }
.person h3 { font-size: 30px; line-height: 1.5; margin-bottom: 15px; }
.person p { font-weight: 400; color: var(--para); line-height: 27px; }
.person-photo { margin: 5px auto 0; }
.person-photo-blank { display: block; width: 100%; aspect-ratio: 3 / 4; background: #ddd; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.form-card { background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .4); border-radius: 3px; padding: 30px; align-self: start; }
.form-card:focus { outline: none; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--para); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font: 300 13px Arial, sans-serif; color: #666; background: #fff;
  border: 1px solid #ccc; border-left: 2px solid #ff4b4b; padding: 8px 8px 8px 5px; border-radius: 0;
}
.field input { height: 38px; }
.field textarea { height: 200px; resize: vertical; }
.btn-send { background: #007330; color: #fff; font: 700 13px Arial, sans-serif; padding: 15px 10px; border: 0; cursor: pointer; }
.btn-send:hover { opacity: .9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 450px; border: 0; }

.alert { padding: 12px 15px; margin-bottom: 20px; border-radius: 3px; }
.alert p { margin: 0 0 4px; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }
.alert.ok { background: #e7f5ec; color: #1d5b33; }
.alert.err { background: #fdecec; color: #8a1f1f; }

/* legal + 404 */
.prose { max-width: 900px; }
.prose h1 { font-size: 40px; color: var(--navy); line-height: 1.36; margin-bottom: 20px; }
.prose h2 { font-size: 26px; margin: 30px 0 10px; }
.prose p, .prose li { font-weight: 400; color: var(--para); line-height: 27px; }
.prose ul { padding-left: 22px; }
.prose .lede { font-size: 19px; }
.prose .muted, .muted { color: #777; }
.eyebrow { display: block; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ---- footer ---------------------------------------------------------------- */
.site-foot { background: var(--navy); color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 60px; padding-bottom: 40px; }
.site-foot h4 { color: #fff; font-size: 23px; font-weight: 600; line-height: 1.68; text-transform: uppercase; margin-bottom: 10px; }
.site-foot p { color: #fff; line-height: 27px; }
.site-foot a { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { line-height: 32px; margin-bottom: 10px; }
.foot-links a { font-weight: 400; }
.foot-links a::before { content: "\203A"; margin-right: 8px; }
.foot-emg { margin: 0; font-weight: 600; letter-spacing: 1px; line-height: 31px; }
.foot-emg .emg-name { font-style: italic; }
.copyright { background: rgba(0, 0, 0, .02); padding: 30px 0; text-align: center; font-size: 12px; text-transform: uppercase; }
.copyright a { color: #fff; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
  .head-inner { padding: 0 15px; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .nav-toggle { display: block; order: -1; }
  .brand img { height: 60px; }
  .nav { display: none; width: 100%; padding-bottom: 10px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .topbar .wrap { padding: 0 15px; }

  .hero { height: 160vw; max-height: 600px; min-height: 0; }
  .intro, .split, .offer, .contact-grid, .person, .emergency-cols, .foot-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .page-banner { height: 200px; }
  .page-banner-short { height: 160px; }
  .cta h2 { font-size: 28px; }
  .cta .cta-sub { font-size: 20px; }
  .ql-title { font-size: 40px; }
  .page-title, .offer-title, .title-dark, .team-group-title { font-size: 30px; }
  .intro-title, .person h3, .emg-title { font-size: 24px; }
  .band-navy h2 { font-size: 26px; }
  .band-store h2 { font-size: 22px; }
}
