/* Stafford Veterinary Hospital - Custom Styles */
:root {
  --navy: #0A2540;
  --deep-navy: #061628;
  --teal: #1FA8B8;
  --teal-dark: #178A97;
  --light-teal: #7EDCE8;
  --soft-bg: #F0F9FB;
  --white: #FFFFFF;
  --gray-100: #F8FAFC;
  --gray-200: #E2E8F0;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --accent: #2BB8C9;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 10px 40px rgba(10, 37, 64, 0.12);
  --radius: 12px;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 70px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 16px;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: var(--soft-bg);
  color: var(--teal);
}

.nav .btn-pharmacy {
  background: var(--teal);
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  position: relative;
}

.nav .btn-pharmacy:hover {
  background: var(--teal-dark);
}

/* Header pharmacy save badge */
.nav-pharmacy-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.nav-save-badge {
  background: #FFF3CD;
  color: #856404;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #F5C518;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--soft-bg) 0%, #E0F4F7 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-text h1 span {
  color: var(--teal);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.pharmacy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  /* Keep the Online Pharmacy button + coupon bubble together as one unit */
}

/* On larger screens keep the two main buttons side-by-side */
@media (min-width: 520px) {
  .hero-buttons {
    flex-wrap: nowrap;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 168, 184, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: white;
}

.hero-logo {
  text-align: center;
}

.hero-logo img {
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 25px rgba(10, 37, 64, 0.15));
}

/* ========== QUICK INFO BAR ========== */
.quick-info {
  background: var(--navy);
  color: white;
  padding: 18px 0;
}

.quick-info-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
  text-align: center;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.quick-item strong {
  color: var(--light-teal);
}

/* ========== SECTIONS ========== */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.bg-soft {
  background: var(--soft-bg);
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--light-teal);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--soft-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
  color: var(--teal);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ========== ABOUT PREVIEW ========== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-text .btn {
  margin-top: 10px;
}

.about-highlight {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--teal);
}

.about-highlight h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0D3A5C 100%);
  color: white;
  padding: 55px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.contact-card h3 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--soft-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.hours-table .closed {
  color: #DC2626;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--deep-navy);
  color: #CBD5E1;
  padding: 50px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 16px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--light-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0D3A5C 100%);
  color: white;
  padding: 50px 0 45px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-photo {
  height: 220px;
  background: linear-gradient(135deg, var(--soft-bg), #D6F0F4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--teal);
}

.team-info {
  padding: 24px;
}

.team-info h3 {
  color: var(--navy);
  margin-bottom: 4px;
}

.team-info .role {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.team-info p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content,
  .about-preview,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .logo-img {
    height: 58px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 50px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quick-info-inner {
    gap: 16px 30px;
  }
}

/* ========== PHARMACY PROMO CALLOUT ========== */
.pharmacy-promo-wrap {
  position: relative;
  display: inline-block;
}

.pharmacy-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF8E6;
  border: 2px solid #F5C518;
  color: #7A5C00;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 30px;
  margin-top: 14px;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.25);
  animation: gentle-pulse 2.5s ease-in-out infinite;
}

.pharmacy-promo .promo-icon {
  font-size: 1.15rem;
}

.pharmacy-promo a {
  color: #7A5C00;
  text-decoration: underline;
  font-weight: 700;
}

.pharmacy-promo a:hover {
  color: var(--teal-dark);
}

/* Speech-bubble style version (used near buttons) */
.promo-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFF8E6;
  border: 2px solid #F5C518;
  color: #5C4500;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  margin-top: 12px;
  max-width: 280px;
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.3);
  line-height: 1.3;
}

.promo-bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 40px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #F5C518;
}

.promo-bubble::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 42px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #FFF8E6;
}

.promo-bubble img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.promo-bubble strong {
  color: #B8860B;
  display: block;
  margin-bottom: 1px;
  font-size: 0.95rem;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* CTA section promo */
.cta-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 248, 230, 0.95);
  color: #5C4500;
  font-weight: 600;
  padding: 8px 18px 8px 10px;
  border-radius: 30px;
  margin-bottom: 22px;
  border: 2px solid #F5C518;
  font-size: 0.95rem;
}

.cta-promo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

/* Floating mobile call button */
.float-call {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 9999;
  background: var(--teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(31, 168, 184, 0.45);
  text-decoration: none !important;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.float-call:hover {
  background: var(--teal-dark);
  color: #fff !important;
}
@media (max-width: 768px) {
  .float-call { display: inline-flex; }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.55;
}
.faq-item .faq-answer p { margin: 0; }
