/* Middleboro Animal Clinic — custom styles */

:root {
  --mac-forest: #2f4a3c;
  --mac-forest-dark: #203329;
  --mac-cream: #faf5ec;
  --mac-cream-deep: #f1e9d8;
  --mac-terracotta: #c1633d;
  --mac-terracotta-dark: #a34f2f;
  --mac-charcoal: #2b2620;
  --mac-muted: #6b6459;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--mac-charcoal);
  background-color: var(--mac-cream);
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
}

a {
  color: var(--mac-forest);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--mac-terracotta);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-weight: 600;
  color: var(--mac-forest-dark);
  margin-bottom: 1rem;
}

.section-pad {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.bg-cream-deep {
  background-color: var(--mac-cream-deep);
}

.btn-terracotta {
  background-color: var(--mac-terracotta);
  border-color: var(--mac-terracotta);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}
.btn-terracotta:hover {
  background-color: var(--mac-terracotta-dark);
  border-color: var(--mac-terracotta-dark);
  color: #fff;
}

.btn-outline-forest {
  border-color: var(--mac-forest);
  color: var(--mac-forest);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}
.btn-outline-forest:hover {
  background-color: var(--mac-forest);
  color: #fff;
}

/* Navbar */
.navbar-mac {
  background-color: var(--mac-forest-dark);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-brand-mac {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff !important;
  line-height: 1.15;
}

.navbar-brand-mac small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfd9c9;
}

.navbar-mac .nav-link {
  color: #eef1e9 !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 0.35rem;
  margin-right: 0.35rem;
}

.navbar-mac .nav-link:hover {
  color: #fff !important;
}

.navbar-mac .btn-portal {
  background-color: var(--mac-terracotta);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
}
.navbar-mac .btn-portal:hover {
  background-color: var(--mac-terracotta-dark);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center 60% / cover no-repeat;
  clip-path: ellipse(140% 100% at 50% 0%);
  margin-top: -1px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(20, 40, 30, 0.55) 0%, rgba(20, 40, 30, 0.15) 100%),
    linear-gradient(to bottom, rgba(32, 51, 41, 0.55) 0%, rgba(47, 74, 60, 0.35) 45%, rgba(20, 32, 25, 0.65) 100%),
    linear-gradient(160deg, rgba(47, 74, 60, 0.55), rgba(193, 99, 61, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  padding: 2.25rem 2rem;
  background: rgba(20, 32, 25, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 18px;
}

.hero-eyebrow {
  color: #f3e8d8;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: #f6f2e8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
  margin-bottom: 1.75rem;
}

.hero-tagline {
  color: #e9e2d2;
  font-size: 0.95rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
  margin-top: 1.25rem;
}

/* Services grid */
.service-tile {
  background: #fff;
  border: 1px solid rgba(47, 74, 60, 0.1);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(47, 74, 60, 0.12);
}
.service-tile .bi {
  font-size: 1.5rem;
  color: var(--mac-terracotta);
  margin-bottom: 0.6rem;
  display: block;
}
.service-tile h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--mac-forest-dark);
  margin-bottom: 0;
}

.service-tile.tile-cta {
  background: var(--mac-forest);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-tile.tile-cta .bi {
  color: #f3e8d8;
}
.service-tile.tile-cta h3 {
  color: #fff;
}
.service-tile.tile-cta a {
  color: #f3e8d8;
  text-decoration: underline;
}

/* Team */
.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 20px rgba(47, 74, 60, 0.08);
}
.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.team-avatar-fallback {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mac-forest), var(--mac-forest-dark));
  color: #f3e8d8;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
}
.team-card .team-body {
  padding: 1.1rem 1.25rem 1.35rem;
}
.team-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  color: var(--mac-forest-dark);
}
.team-card .role {
  color: var(--mac-terracotta);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}
.team-card p.bio {
  font-size: 0.9rem;
  color: var(--mac-muted);
  margin-bottom: 0;
}

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 320px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to top, rgba(20, 32, 25, 0.85), transparent);
  color: #fff;
  font-weight: 600;
}

/* Care resources */
.care-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(47, 74, 60, 0.15);
  color: var(--mac-forest-dark);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.3rem;
}

.portal-callout {
  background: var(--mac-forest);
  color: #fff;
  border-radius: 18px;
  padding: 2.25rem;
}
.portal-callout h3 {
  color: #fff;
}
.portal-callout p {
  color: #d9e2d3;
}

/* Contact / Location */
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(47, 74, 60, 0.08);
}
.contact-card .bi {
  color: var(--mac-terracotta);
  margin-right: 0.6rem;
}
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

/* Footer */
footer.site-footer {
  background: var(--mac-forest-dark);
  color: #d9e2d3;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}
footer.site-footer h5 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 1rem;
}
footer.site-footer a {
  color: #d9e2d3;
  text-decoration: none;
}
footer.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
footer.site-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin-right: 0.5rem;
}
.footer-powered {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #a9b6a2;
}
.footer-powered a {
  color: #f3e8d8;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .hero { min-height: 92vh; clip-path: ellipse(180% 100% at 50% 0%); }
  .section-pad { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .team-card img, .team-avatar-fallback { height: 240px; }
  .gallery-item { height: 260px; }
}

@media (max-width: 575.98px) {
  .hero-content { padding: 1.5rem 1.25rem; }
  .service-tile { padding: 1.25rem 1rem; }
}
