/* ============================================================
   ROVER VETERINARY HOSPITAL - Design System & Styles
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Primary Colors */
  --clr-primary: #1a6db5;
  --clr-primary-dark: #12548a;
  --clr-primary-light: #e8f2fa;

  /* Navy / Dark */
  --clr-navy: #0a1628;
  --clr-navy-light: #152238;
  --clr-navy-stat: #112240;

  /* Accent */
  --clr-accent: #f0a500;
  --clr-accent-light: #fff3d6;

  /* Neutrals */
  --clr-white: #ffffff;
  --clr-off-white: #f8f9fa;
  --clr-gray-100: #f1f3f5;
  --clr-gray-200: #e9ecef;
  --clr-gray-300: #dee2e6;
  --clr-gray-500: #6c757d;
  --clr-gray-700: #495057;
  --clr-gray-900: #212529;

  /* Text */
  --clr-text: #333333;
  --clr-text-light: #6c757d;
  --clr-text-on-dark: #e0e0e0;

  /* Status */
  --clr-success: #28a745;
  --clr-emergency: #dc3545;

  /* Typography */
  --ff-heading: 'Poppins', sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 50px;

  /* Container */
  --container-max: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding) 0;
}

.section-sm {
  padding: 40px 0;
}

.section-bg {
  background: var(--clr-off-white);
}

.section-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.section-navy {
  background: var(--clr-navy);
  color: var(--clr-text-on-dark);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--clr-white);
}

/* Stats section variant - different shade from footer */
.section-navy-alt {
  background: var(--clr-navy-stat);
  color: var(--clr-text-on-dark);
}

.section-navy-alt h2,
.section-navy-alt h3,
.section-navy-alt h4 {
  color: var(--clr-white);
}

.section-navy-alt .stat-item .stat-label {
  color: rgba(255,255,255,0.65);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  margin-bottom: 16px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--clr-accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--clr-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.btn-outline:hover {
  background: var(--clr-white);
  color: var(--clr-navy);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--clr-accent);
  color: var(--clr-navy);
  border-color: var(--clr-accent);
}

.btn-accent:hover {
  background: #d89400;
  border-color: #d89400;
  color: var(--clr-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--clr-navy);
  color: var(--clr-white);
  padding: 8px 0;
  font-size: 0.88rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar .emergency-info {
  background: var(--clr-emergency);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.top-bar .location-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.top-bar .icon-sm {
  width: 18px;
  height: 18px;
}

.top-bar a {
  color: var(--clr-white);
  font-weight: 500;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--clr-white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar .logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--clr-navy);
  font-weight: 500;
  font-family: var(--ff-heading);
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.nav-menu a.active {
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 60%, var(--clr-primary) 100%);
  color: var(--clr-white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--clr-white);
  margin-bottom: 8px;
}

.page-header .breadcrumb {
  color: var(--clr-text-on-dark);
  font-size: 0.9rem;
}

.page-header .breadcrumb a {
  color: var(--clr-accent);
}

/* ---------- Hero / Slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--clr-navy);
}

.hero-slider .slide {
  display: none;
  position: relative;
  height: 500px;
}

.hero-slider .slide.active {
  display: block;
  animation: fadeSlide 0.75s ease;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.15) 100%);
  display: flex;
  align-items: flex-end;
  padding: 60px;
}

.hero-slider .slide-overlay .container {
  width: 100%;
}

.hero-slider .slide-overlay h2 {
  color: var(--clr-white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 650px;
  margin-bottom: 16px;
}

.hero-slider .slide-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 24px;
}

.hero-slider .slider-controls {
  display: none;
}

.hero-slider .slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-slider .slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-slider .slider-dots button.active {
  background: var(--clr-white);
  border-color: var(--clr-white);
  transform: scale(1.2);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Emergency Bar ---------- */
.emergency-bar {
  background: var(--clr-accent);
  color: var(--clr-navy);
  padding: 16px 0;
  text-align: center;
  font-weight: 600;
  font-family: var(--ff-heading);
}

.emergency-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.emergency-bar .emergency-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-bar .emergency-icon {
  font-size: 1.5rem;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--clr-gray-200);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary);
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .card-icon img {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--clr-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Navy background variant */
.section-navy .service-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--clr-text-on-dark);
}

.section-navy .service-card h3,
.section-navy .service-card .card-title {
  color: var(--clr-white);
}

.section-navy .service-card p {
  color: rgba(255,255,255,0.75);
}

.section-navy .service-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--clr-accent);
}

.section-navy .service-card .card-icon {
  background: rgba(255,255,255,0.1);
}

/* ---------- Service Detail Row (Services page) ---------- */
.service-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--clr-gray-200);
}

.service-detail-row:last-child {
  border-bottom: none;
}

.service-detail-row .service-icon {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-detail-row .service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-row h3 {
  color: var(--clr-primary);
  margin-bottom: 10px;
}

.service-detail-row p {
  color: var(--clr-text-light);
  line-height: 1.7;
}

/* Alternative background rows */
.service-detail-row:nth-child(even) {
  background: var(--clr-off-white);
  margin: 0 -40px;
  padding: 32px 40px;
  border-radius: var(--radius-md);
  border-bottom: none;
}

/* ---------- Why Choose Us ---------- */
.why-list {
  list-style: none;
  display: grid;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item .why-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--clr-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item .why-icon img {
  width: 28px;
  height: 28px;
}

.why-item strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--ff-heading);
  color: var(--clr-navy);
}

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col .col-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.two-col .col-image .image-caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--clr-text-light);
  text-align: center;
  font-style: italic;
}

/* ---------- Stats Counter ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--ff-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1.1;
}

.stat-item .stat-label {
  color: var(--clr-text-light);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ---------- Team Cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
  padding-bottom: 28px;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card .team-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  margin: 28px auto 16px;
  overflow: hidden;
  border: 4px solid var(--clr-primary-light);
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  color: var(--clr-primary);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.88rem;
  color: var(--clr-text-light);
  margin-bottom: 12px;
}

.team-card .team-bio {
  font-size: 0.9rem;
  color: var(--clr-text-light);
  padding: 0 24px;
  line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-grid a:hover img {
  transform: scale(1.08);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 520px;
  height: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 520px;
}

.contact-info-list {
  list-style: none;
  display: grid;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--clr-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--clr-primary);
}

.contact-info-item strong {
  display: block;
  font-family: var(--ff-heading);
  color: var(--clr-navy);
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.contact-info-item p {
  color: var(--clr-text-light);
  font-size: 0.95rem;
}

/* ---------- Hours Sidebar ---------- */
.hours-card {
  background: var(--clr-navy);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 28px;
}

.hours-card h3 {
  color: var(--clr-white);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

/* ---------- Vision/Mission Block ---------- */
.blockquote-card {
  background: var(--clr-white);
  padding: 28px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  border-top: 4px solid var(--clr-accent);
}

.blockquote-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: var(--ff-heading);
  font-size: 5rem;
  color: var(--clr-accent-light);
  line-height: 1;
  opacity: 0.6;
  pointer-events: none;
}

.blockquote-card .dropcap {
  float: left;
  font-family: var(--ff-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-right: 10px;
  margin-top: -2px;
}

.blockquote-card p {
  color: var(--clr-text);
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: var(--clr-white);
  text-align: center;
  padding: 50px 0;
  border-radius: var(--radius-lg);
  margin: 0 24px;
}

.cta-banner h2 {
  color: var(--clr-white);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--clr-navy);
  color: var(--clr-text-on-dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h3 {
  color: var(--clr-white);
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--clr-accent);
}

.footer-col p, .footer-col address {
  font-size: 0.92rem;
  line-height: 1.8;
  font-style: normal;
}

.footer-col .footer-contact p {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .copyright {
  font-size: 0.88rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: var(--clr-white);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--clr-accent);
  color: var(--clr-navy);
  transform: translateY(-2px);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: var(--clr-white);
  z-index: 2001;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

.mobile-menu-panel .close-btn {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--clr-navy);
}

.mobile-menu-panel ul {
  list-style: none;
  margin-top: 24px;
}

.mobile-menu-panel ul a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--clr-gray-200);
  color: var(--clr-navy);
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 1rem;
}

.mobile-menu-panel ul a:hover,
.mobile-menu-panel ul a.active {
  color: var(--clr-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .two-col .col-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 350px;
    height: 350px;
  }

  .contact-map iframe {
    min-height: 350px;
  }

  .service-detail-row {
    grid-template-columns: 100px 1fr;
    gap: 20px;
  }

  .service-detail-row:nth-child(even) {
    margin: 0 -16px;
    padding: 20px 16px;
  }

  .hero-slider .slide {
    height: 380px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-banner {
    margin: 0 12px;
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-slider .slide {
    height: 320px;
  }

  .hero-slider .slide-overlay {
    padding: 30px;
  }

  .service-detail-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 24px 0;
  }

  .service-detail-row .service-icon {
    margin: 0 auto;
    width: 100px;
    height: 100px;
  }

  .service-detail-row:nth-child(even) {
    margin: 0;
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }

  .emergency-bar .container {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* CTA banner mobile */
  .cta-banner {
    margin: 0 8px;
    padding: 36px 20px;
    border-radius: var(--radius-md);
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .cta-banner .btn {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: 0 0 12px 0 !important;
  }

  /* Button pairs stack on mobile */
  .two-col .btn + .btn,
  .section-bg .btn + .btn,
  .section .btn + .btn {
    margin-left: 0 !important;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Service cards tighter */
  .service-card {
    padding: 24px 18px;
  }

  .service-card .card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }

  /* Blockquote mobile */
  .blockquote-card {
    padding: 20px;
  }

  .blockquote-card .dropcap {
    font-size: 2.2rem;
    margin-right: 6px;
  }

  .blockquote-card::before {
    font-size: 3.5rem;
    top: 4px;
    right: 12px;
  }

  /* Contact info */
  .contact-info-list {
    gap: 14px;
  }

  .contact-info-item {
    gap: 12px;
  }

  /* Team cards */
  .team-card .team-photo {
    width: 110px;
    height: 110px;
    margin: 20px auto 12px;
  }

  .team-card .team-bio {
    padding: 0 16px;
    font-size: 0.85rem;
  }

  .team-card {
    padding-bottom: 20px;
  }

  /* Why items */
  .why-item {
    gap: 12px;
  }

  .why-item .why-icon {
    width: 40px;
    height: 40px;
  }

  .why-item .why-icon img {
    width: 22px;
    height: 22px;
  }

  /* Hours card */
  .hours-card {
    padding: 20px;
  }

  /* Top bar */
  .top-bar .container {
    justify-content: center;
    gap: 12px;
  }

  .top-bar {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider .slide {
    height: 250px;
  }

  .hero-slider .slide-overlay {
    padding: 20px;
  }

  .hero-slider .slide-overlay h2 {
    font-size: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .stat-item .stat-label {
    font-size: 0.82rem;
  }

  /* Tighter everything */
  .cta-banner {
    margin: 0 4px;
    padding: 28px 16px;
    border-radius: var(--radius-sm);
  }

  .cta-banner h2 {
    font-size: 1.2rem;
  }

  .cta-banner p {
    font-size: 0.88rem;
  }

  .service-card {
    padding: 20px 14px;
  }

  .blockquote-card {
    padding: 16px;
  }

  .blockquote-card .dropcap {
    font-size: 1.8rem;
  }

  .blockquote-card::before {
    font-size: 2.5rem;
    top: 2px;
    right: 8px;
  }

  .service-detail-row {
    padding: 18px 0;
  }

  .service-detail-row:nth-child(even) {
    padding: 18px 12px;
  }

  .contact-info-item .info-icon {
    width: 36px;
    height: 36px;
  }

  .contact-info-item .info-icon i {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .hours-table td {
    padding: 8px 6px;
    font-size: 0.85rem;
  }

  .contact-map {
    min-height: 280px;
    height: 280px;
  }

  .contact-map iframe {
    min-height: 280px;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Icon spacing helpers */
.footer-col address i,
.footer-col p i {
  margin-right: 6px;
  width: 18px;
  text-align: center;
  opacity: 0.7;
}

.emergency-bar .emergency-icon i {
  font-size: 1.2rem;
}

.contact-info-item .info-icon i {
  font-size: 0.95rem;
}

.why-icon i {
  font-size: 1.2rem;
  color: var(--clr-navy);
}

.btn i {
  margin-right: 2px;
}
