/* ============================================================
   SOUTH RIVER VETERINARY HOSPITAL — style.css
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --green-dark:   #1A3D24;
  --green-mid:    #2C6E49;
  --green-accent: #4A9E6C;
  --green-light:  #EBF4EE;
  --cream:        #F7F4EE;
  --cream-dark:   #EDE8DC;
  --gold:         #C4962A;
  --gold-light:   #E8C87A;
  --text-dark:    #1A2B1E;
  --text-mid:     #3E5546;
  --text-light:   #7A9486;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

.section-padding { padding: 88px 0; }
.bg-cream { background-color: var(--cream); }

/* ---------- SECTION HEADERS ---------- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn-green {
  background: var(--green-mid);
  color: var(--white);
  border: 2px solid var(--green-mid);
  padding: 0.6rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.28s ease;
  display: inline-block;
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,61,36,0.28);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.28s ease;
  display: inline-block;
}
.btn-gold:hover {
  background: #a87d22;
  border-color: #a87d22;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,150,42,0.35);
}

/* ---------- NAVBAR ---------- */
#mainNav {
  background: transparent;
  padding: 1.1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
#mainNav.scrolled {
  background: var(--green-dark);
  padding: 0.55rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.28);
}
#mainNav:not(.scrolled) {
  background: rgba(26,61,36,0.55);
}

.navbar-brand {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--gold-light) !important; }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 0.4rem 1.15rem !important;
  font-weight: 600;
  transition: background 0.25s ease;
}
.nav-cta:hover {
  background: #a87d22;
  color: var(--white) !important;
}

/* collapsed mobile menu */
@media (max-width: 991px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: var(--green-dark);
    padding: 0.75rem 1rem 1rem;
    border-radius: 0 0 12px 12px;
    margin-top: 0.5rem;
  }
}

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 90%;
  margin: 80px auto 0;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  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 {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
  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);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  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);
}

.hero-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.76);
  margin-bottom: 0;
  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);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- INFO STRIP ---------- */
.info-strip {
  background: var(--green-dark);
}

.info-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.info-cell:last-child { border-right: none; }

.info-cell .bi {
  font-size: 1.5rem;
  color: var(--gold-light);
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.15rem;
}

.info-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
a.info-value:hover { color: var(--gold-light); }

/* ---------- SERVICES ---------- */
.service-card {
  background: var(--white);
  border: 1px solid rgba(44,110,73,0.13);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-accent);
}

.service-icon {
  font-size: 2rem;
  color: var(--green-mid);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.65;
}

.services-footnote {
  color: var(--text-mid);
  font-size: 0.93rem;
}

/* ---------- PETS BREAK ---------- */
.pets-break { overflow: hidden; }

.pets-col {
  height: 380px;
  overflow: hidden;
  position: relative;
}

.pets-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pets-col:hover .pets-img { transform: scale(1.04); }

/* ---------- ABOUT ---------- */
.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.about-body {
  color: var(--text-mid);
  font-size: 0.97rem;
  margin-bottom: 0.85rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cream-dark);
}

.about-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.about-chip .bi {
  color: var(--green-mid);
  font-size: 1.15rem;
}

.carecredit-note {
  font-size: 0.85rem;
  color: var(--text-mid);
}
.carecredit-note .bi { color: var(--green-accent); }

.about-img-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- TEAM ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  height: 220px;
  overflow: hidden;
  background: var(--cream-dark);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-body { padding: 1.4rem; }
.team-body h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }

.team-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.team-bio {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

.team-more {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green-mid);
  text-align: left;
}
.team-more p { margin: 0; color: var(--text-mid); font-size: 0.93rem; }
.team-more strong { color: var(--text-dark); }

/* ---------- MASCOT BAND ---------- */
.mascot-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 4rem 0;
  color: var(--white);
}

.mascot-img {
  width: 165px;
  height: 165px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.mascot-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.mascot-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.mascot-text {
  color: rgba(255,255,255,0.84);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- GALLERY ---------- */
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- EMERGENCY ---------- */
.emergency-section {
  background: #FFFCF3;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 4rem 0;
}

.emergency-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.emergency-sub {
  color: var(--text-mid);
  font-size: 0.97rem;
  max-width: 600px;
  margin: 0 auto;
}

.emergency-card {
  background: var(--white);
  border: 1px solid rgba(196,150,42,0.22);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.emergency-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.emergency-card p {
  font-size: 0.87rem;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.emergency-phone {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-mid);
}
.emergency-phone:hover { color: var(--gold); }

/* ---------- CONTACT / LOCATION ---------- */
.contact-stack { display: flex; flex-direction: column; gap: 1.4rem; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-row .bi {
  font-size: 1.4rem;
  color: var(--green-mid);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-row strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.3rem;
}
.contact-row p { margin: 0; color: var(--text-dark); font-size: 0.95rem; line-height: 1.6; }
.contact-row a { color: var(--green-mid); font-weight: 500; }
.contact-row a:hover { color: var(--gold); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table td { padding: 0.28rem 0; color: var(--text-dark); }
.hours-table td:first-child { width: 115px; color: var(--text-mid); font-weight: 500; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { display: block; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.72);
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.83rem;
  color: var(--gold-light);
  font-style: italic;
  margin-top: 0.25rem;
}

.footer-address {
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-address a { color: rgba(255,255,255,0.72); }
.footer-address a:hover { color: var(--gold-light); }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.75rem;
}

.footer-emergency-entry {
  font-size: 0.87rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.footer-emergency-entry strong { color: var(--white); }
.footer-emergency-entry a { color: var(--gold-light); }
.footer-emergency-entry a:hover { color: var(--white); }

.social-icons { display: flex; gap: 0.6rem; }
.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  transition: all 0.22s;
}
.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.footer-hr { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.25rem; }

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

.powered-by {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.48);
}
.powered-by strong { color: rgba(255,255,255,0.72); }
.powered-by:hover { color: var(--gold-light); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .section-padding { padding: 60px 0; }
  .pets-col { height: 260px; }
  .about-img { height: 360px; }
  .mascot-img { width: 130px; height: 130px; }
  .mascot-band .row { text-align: center; }
  .info-cell { border-bottom: 1px solid rgba(255,255,255,0.07); border-right: none; }
  .info-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
}

@media (max-width: 767px) {
  .hero-content { padding: 2rem 1.25rem; margin-top: 70px; }
  .hero-title { font-size: clamp(2.3rem, 9vw, 3.5rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }

  .pets-col { height: 200px; }
  .about-img { height: 280px; }
  .team-photo { height: 200px; }

  .section-sub { font-size: 0.97rem; }
}

@media (max-width: 575px) {
  .info-cell { padding: 1rem 1rem; }
  .info-cell .bi { font-size: 1.25rem; }
  .info-label { font-size: 0.6rem; }
  .info-value { font-size: 0.8rem; }
  .service-card { padding: 1.5rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; }
}
