/* Attleboro Veterinary Clinic — warm cream + logo navy/blue, coral accent */
:root {
  --navy: #1f3160;
  --navy-deep: #16234a;
  --blue: #2a8be6;
  --logo-navy: #3f5a93;
  --coral: #e5574b;
  --coral-dark: #c9443a;
  --plum: #7a5f95;
  --plum-soft: #efe8f5;
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #1d2540;
  --muted: #5b6482;
  --line: rgba(31, 49, 96, .14);
  --radius: 18px;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
}
h1, h2, h3, h4, .display-font { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -.01em; color: var(--navy); }
a { color: var(--logo-navy); }
img { max-width: 100%; }

/* ---------- Navbar ---------- */
.site-nav { background: rgba(251, 246, 238, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .55rem 0; }
.site-nav .navbar-brand { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); display: flex; align-items: center; gap: .55rem; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1rem; }
.site-nav .nav-link { color: var(--navy); font-weight: 700; font-size: .95rem; padding: .5rem .7rem; }
.site-nav .nav-link:hover { color: var(--coral); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(42, 139, 230, .3); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }

.btn-coral { background: var(--coral); color: #fff; border: 2px solid var(--coral); font-weight: 800; border-radius: 999px; padding: .6rem 1.35rem; }
.btn-coral:hover, .btn-coral:focus { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-line { background: transparent; color: var(--navy); border: 2px solid var(--navy); font-weight: 800; border-radius: 999px; padding: .6rem 1.35rem; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-line-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); font-weight: 800; border-radius: 999px; padding: .6rem 1.35rem; }
.btn-line-light:hover { background: #fff; color: var(--navy); }
.btn-sm-pill { padding: .4rem 1rem; font-size: .9rem; }

/* ---------- Hero: split panel ---------- */
.hero { display: grid; grid-template-columns: 58fr 42fr; min-height: calc(100vh - 62px); }
.hero-photo { position: relative; background: #7d9a4a url('img/hero.webp') 40% center / cover no-repeat; min-height: 420px; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 49, 96, 0) 70%, rgba(31, 49, 96, .35) 100%); }
.hero-panel { background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 4rem clamp(1.75rem, 4.5vw, 4.5rem); position: relative; }
.hero-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 70% at 0% 100%, rgba(122, 95, 149, .45), transparent 65%); pointer-events: none; }
.hero-panel > * { position: relative; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: #9fd0ff; margin-bottom: 1.25rem; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.06; margin-bottom: 1.1rem; }
.hero-title em { font-style: italic; color: #ffd0b8; font-weight: 500; }
.hero-subtitle { color: rgba(255, 255, 255, .88); font-size: 1.1rem; max-width: 30rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-hours { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 1.1rem; font-size: .92rem; color: rgba(255, 255, 255, .85); display: flex; gap: .6rem; align-items: flex-start; }
.hero-hours i { color: #9fd0ff; margin-top: .2rem; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-white { background: var(--paper); }
.section-plum { background: var(--plum-soft); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--coral); margin-bottom: .75rem; display: block; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; margin-bottom: 1rem; }
.lead-soft { color: var(--muted); font-size: 1.1rem; max-width: 42rem; }

/* About */
.about-art { max-width: 380px; margin: 0 auto; }
.about-art img { width: 100%; height: auto; display: block; }
.notice { background: var(--cream); border-left: 5px solid var(--coral); border-radius: 12px; padding: 1.1rem 1.35rem; margin-top: 1.75rem; }
.notice strong { color: var(--navy); }

/* Services */
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.svc:hover { box-shadow: 0 14px 34px rgba(31, 49, 96, .1); transform: translateY(-2px); }
.svc-head { display: flex; gap: 1rem; align-items: flex-start; }
.svc-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; font-size: 1.5rem; }
.svc h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.svc p { margin: 0; color: var(--muted); font-size: .97rem; }
.svc-toggle { margin-top: 1rem; align-self: flex-start; background: none; border: 0; padding: 0; font-weight: 800; color: var(--coral); font-size: .92rem; }
.svc-toggle:hover { color: var(--coral-dark); }
.svc-toggle i { transition: transform .2s; display: inline-block; }
.svc-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.svc-body { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.svc-body h4 { font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 1rem; color: var(--navy); margin: 1.1rem 0 .3rem; letter-spacing: 0; }
.svc-body h4:first-child { margin-top: 0; }
.svc-body ul { padding-left: 1.2rem; margin-bottom: .5rem; }
.svc-body li { margin-bottom: .25rem; }
.svc-body p { color: var(--ink); margin-bottom: .7rem; font-size: .95rem; }
.svc-body a { font-weight: 700; }

/* Exotics */
.exotic-cell { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--plum-soft); }
.exotic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pocket-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pocket-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .95rem; font-weight: 700; font-size: .9rem; color: var(--navy); }

/* Emergency */
.emergency { background: var(--navy-deep); color: #fff; }
.emergency h2, .emergency h3 { color: #fff; }
.emergency .kicker { color: #ffb4a8; }
.emergency p { color: rgba(255, 255, 255, .84); }
.hosp { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 1.25rem; height: 100%; }
.hosp h3 { font-size: 1.08rem; margin-bottom: .5rem; font-family: 'Nunito Sans', sans-serif; font-weight: 800; }
.hosp address { margin: 0 0 .5rem; color: rgba(255, 255, 255, .8); font-size: .93rem; font-style: normal; }
.hosp a { color: #9fd0ff; font-weight: 700; word-break: break-word; }
.signs { columns: 2; column-gap: 2rem; padding-left: 1.1rem; margin: 0; color: rgba(255, 255, 255, .88); }
.signs li { margin-bottom: .3rem; break-inside: avoid; }

/* Team */
.vet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.vet-photo { aspect-ratio: 3 / 4; background: var(--plum-soft); overflow: hidden; }
.vet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vet-mono { aspect-ratio: 3 / 4; display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 5rem; font-weight: 600; color: #fff; }
.vet-mono.m1 { background: linear-gradient(150deg, var(--logo-navy), var(--blue)); }
.vet-mono.m2 { background: linear-gradient(150deg, var(--plum), #a98cc2); }
.vet-info { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.vet-info h3 { font-size: 1.3rem; margin-bottom: .1rem; }
.vet-role { color: var(--coral); font-weight: 800; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.vet-info p { font-size: .94rem; color: var(--ink); }
.vet-info .svc-toggle { margin-top: auto; padding-top: .5rem; }
.vet-bio { font-size: .93rem; padding-top: .9rem; margin-top: .9rem; border-top: 1px solid var(--line); }
.vet-bio p { margin-bottom: .7rem; }
.roster { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.roster h3 { font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--plum); margin-bottom: .9rem; }
.roster ul { list-style: none; padding: 0; margin: 0; }
.roster li { padding: .3rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.roster li:last-child { border: 0; }
.roster li span { color: var(--muted); font-size: .85rem; }
.roster p { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; }

/* Reviews */
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; position: relative; }
.stars { color: #f2a91d; letter-spacing: .12em; margin-bottom: .7rem; font-size: .95rem; }
.review p { font-size: .96rem; margin-bottom: 1rem; }
.review .who { font-weight: 800; color: var(--navy); margin: 0; }
.review-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.8rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.review-cta h3 { color: #fff; font-size: 1.5rem; }
.review-cta p { color: rgba(255, 255, 255, .85); }
.review-links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Resources */
.res { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; height: 100%; display: flex; flex-direction: column; }
.res .svc-icon { margin-bottom: 1rem; }
.res h3 { font-size: 1.35rem; }
.res p { color: var(--muted); font-size: .96rem; }
.res .btn { align-self: flex-start; margin-top: auto; }
.pay { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pay li { background: var(--plum-soft); color: var(--navy); font-weight: 800; font-size: .88rem; border-radius: 999px; padding: .3rem .9rem; }

/* Careers band */
.careers { background: linear-gradient(120deg, var(--plum) 0%, var(--logo-navy) 100%); color: #fff; padding: 3.5rem 0; }
.careers h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.careers p { color: rgba(255, 255, 255, .9); margin: 0; }

/* Contact */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.info-list i { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; font-size: 1.2rem; }
.info-list h3 { font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .15rem; }
.info-list p, .info-list a { margin: 0; font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.hours { width: 100%; max-width: 22rem; }
.hours td { padding: .15rem 0; font-size: 1rem; }
.hours td:first-child { padding-right: 1.5rem; }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.form-control { border-radius: 12px; border: 1px solid var(--line); padding: .7rem .95rem; background: #fff; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(42, 139, 230, .2); }
.form-label { font-weight: 800; font-size: .88rem; color: var(--navy); }
.areas { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 3.5rem 0 1.5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { background: #fff; border-radius: 14px; padding: .7rem 1rem; display: inline-block; }
.footer-logo img { width: 150px; height: auto; display: block; }
.site-footer h3 { font-family: 'Nunito Sans', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #9fd0ff; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); font-size: 1.1rem; }
.social a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.powered { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; align-items: center; font-size: .9rem; }
.powered .wfw { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .4rem 1rem; font-weight: 800; color: #fff; }
.powered .wfw i { color: #ffd166; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { padding: 1rem 0 .5rem; }
  .nav-actions { margin-top: .75rem; flex-wrap: wrap; }
}
@media (max-width: 991.98px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 46vh; background-position: 35% center; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(31, 49, 96, 0) 70%, rgba(31, 49, 96, .3) 100%); }
  .hero-panel { padding: 3rem 1.5rem 3.25rem; }
}
@media (max-width: 991.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 575.98px) {
  .signs { columns: 1; }
  .site-nav .navbar-brand { font-size: 1.1rem; }
  .hero-ctas .btn { width: 100%; }
  .svc, .review, .res { padding: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc, .svc-toggle i { transition: none; }
}
