/* =============================================================
   BestCareVet – Custom CSS
   Supplements Tailwind classes with component-specific styles
   ============================================================= */

/* ── Font mapping (matches Figma export naming) ── */
@font-face {
  font-family: 'Quicksand:Bold';
  src: local('Quicksand Bold');
  font-weight: 700;
}

@font-face {
  font-family: 'Quicksand:SemiBold';
  src: local('Quicksand SemiBold');
  font-weight: 600;
}

@font-face {
  font-family: 'Dosis:Bold';
  src: local('Dosis Bold');
  font-weight: 700;
}

/* ── Base reset / globals ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #F0F4F4;
  color: #2D5864;
}

/* ── Custom logo sizing override ── */
.custom-logo-link img {
  height: 58px;
  width: auto;
  display: block;
}

/* ── Navigation: dropdown on hover ── */
#primary-navigation li.relative:hover>.dropdown-menu,
#primary-navigation li.relative:focus-within>.dropdown-menu {
  display: block;
}

.dropdown-menu {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ── Hamburger / mobile menu animation ── */
#mobile-menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── WordPress core alignments ── */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
  text-align: center;
}

.alignwide {
  max-width: 110%;
  margin-left: -5%;
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
}

/* ── WordPress wp_link_pages / comments ── */
.page-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* ── Prose overrides for content areas ── */
.prose img {
  border-radius: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: #2D5864;
}

.prose a {
  color: #058C8C;
  font-weight: 600;
}

.prose a:hover {
  color: #2D5864;
}

/* ── Line-clamp utility (fallback for older browsers) ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Sticky header shadow transition ── */
#site-header {
  transition: box-shadow 0.25s ease;
}

/* ── Smooth image loading ── */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ── Pagination styling ── */
.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2D5864;
  background: white;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.pagination .page-numbers:hover {
  border-color: #058C8C;
  color: #058C8C;
}

.pagination .page-numbers.current {
  background: #058C8C;
  color: white;
}