/* ═══════════════════════════════════════════════════════════════════
   PawCare Veterinary Medical Center — Main Stylesheet
   ═══════════════════════════════════════════════════════════════════
   Theme color is controlled entirely by CSS custom properties injected
   from PHP in <head>. To rebrand, change just config.php.

   :root variables are set inline from PHP:
     --brand        (primary color)
     --brand-dark   (hover / darker shade)
     --brand-light  (backgrounds / tints)
     --brand-accent (highlights / CTAs)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: #1a2332;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* ── 2. CSS CUSTOM PROPERTIES (defaults — overridden by PHP inline) ─ */
:root {
  --brand:        #e61a24;
  --brand-dark:   #b81019;
  --brand-light:  #fff1f2;
  --brand-accent: #111113;
  --brand-rgb:    230, 26, 36;

  /* Neutrals */
  --white:    #ffffff;
  --gray-100: #fafafa;
  --gray-200: #f0f0f3;
  --gray-500: #666670;
  --gray-900: #111113;

  /* Typography scale */
  --text-sm:  0.875rem;
  --text-base: 1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;
  --gap:         2rem;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
  --shadow-brand: 0 8px 24px rgba(var(--brand-rgb), .32);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 3. UTILITY ──────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section-pad { padding-block: var(--section-pad); }
.bg-light { background: var(--brand-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: .4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: 1.8;
}

/* ── 4. BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(var(--brand-rgb), .42);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover, .btn-outline-white:focus-visible {
  background: #ffffff;
  color: #111113;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}
.btn-white:hover { background: var(--brand-light); transform: translateY(-2px); }

.btn-nav {
  background: var(--brand);
  color: #fff;
  font-size: var(--text-sm);
  padding: .6rem 1.4rem;
  box-shadow: var(--shadow-brand);
}
.btn-nav:hover { background: var(--brand-dark); transform: translateY(-2px); }

.btn-lg  { padding: 1rem 2.25rem; font-size: var(--text-lg); }
.btn-sm  { padding: .5rem 1.1rem; font-size: var(--text-sm); }
.btn-full { width: 100%; justify-content: center; }

.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #ffa3a8 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 5. SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Scroll-driven animation (modern browsers - progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry) {
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      animation: reveal-entry auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    @keyframes reveal-entry {
      from { opacity: 0; transform: translateY(32px); }
      to   { opacity: 1; transform: none; }
    }
    /* Override the JS-based class since CSS handles it */
    .reveal.visible { opacity: 1; transform: none; }
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ── 6. NAVIGATION ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding-block: 0.85rem;
}

.site-header.scrolled {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding-block: .5rem;
}

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.nav-logo:hover { opacity: .95; }

.nav-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.95);
  border: 3px solid #ffffff;
  flex-shrink: 0;
  transition: width var(--transition), height var(--transition), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled .nav-logo-img {
  width: 58px;
  height: 58px;
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(0,0,0,.15), 0 0 0 2px rgba(230,26,36,.2);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
}

.logo-text strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  display: block;
  transition: color var(--transition);
}
.logo-text small {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}

.site-header.scrolled .logo-text strong { color: var(--gray-900); }
.site-header.scrolled .logo-text small  { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-inline-start: auto;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,.95);
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link:hover, .nav-link.active { color: #fff; }

.site-header.scrolled .nav-link { color: var(--gray-900); }
.site-header.scrolled .nav-link:hover { color: var(--brand); }
.site-header.scrolled .nav-link.active { color: var(--brand); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-inline-start: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.site-header.scrolled .hamburger span { background: var(--gray-900); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 2000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu[aria-hidden="true"] { visibility: hidden; }
.mobile-menu[aria-hidden="false"] { visibility: visible; }

.mobile-close {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--gray-500);
  padding: .25rem .5rem;
  line-height: 1;
}
.mobile-close:hover { color: var(--brand); }

.mobile-menu ul { display: flex; flex-direction: column; gap: .5rem; }
.mobile-link {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-link:hover { background: var(--brand-light); color: var(--brand); }
.mobile-cta { width: 100%; text-align: center; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-overlay.show { opacity: 1; pointer-events: all; }

/* Scroll progress */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand);
  transition: width .1s linear;
}

/* ── 7. HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}
.hero:hover .hero-bg-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 14, 16, 0.90) 0%,
    rgba(var(--brand-rgb), 0.62) 55%,
    rgba(10, 10, 12, 0.90) 100%
  );
}

/* Floating shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: var(--brand);
  animation: float-shape 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 250px; height: 250px; bottom: 20%; left: -80px; animation-delay: 3s; background: #fff; }
.shape-3 { width: 180px; height: 180px; bottom: 10%; right: 15%; animation-delay: 1.5s; }

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 7rem 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(var(--text-3xl), 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  opacity: .9;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Trust indicators */
.hero-trust {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--text-sm);
}
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, var(--text-3xl));
  font-weight: 800;
  line-height: 1;
}
.trust-label { font-size: .7rem; opacity: .8; margin-top: .2rem; letter-spacing: .05em; text-transform: uppercase; }
.trust-divider { width: 1px; background: rgba(255,255,255,.3); align-self: stretch; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-down 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  animation: scroll-wheel 2s ease infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Hero animations */
.animate-fade-up { opacity: 0; transform: translateY(30px); animation: fade-up .8s ease forwards; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
.delay-4 { animation-delay: .8s; }
.delay-5 { animation-delay: 1s; }

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

/* ── 8. SERVICES ─────────────────────────────────────────────────── */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-link { color: #fff; }
.service-card > * { position: relative; z-index: 1; }

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon-wrap { background: rgba(255,255,255,.2); }
.service-icon { font-size: 1.75rem; line-height: 1; }

.service-title { font-size: var(--text-xl); font-weight: 800; margin-bottom: .6rem; color: var(--gray-900); }
.service-desc  { color: var(--gray-500); font-size: var(--text-sm); line-height: 1.7; margin-bottom: 1.25rem; }
.service-link  { color: var(--brand); font-weight: 700; font-size: var(--text-sm); transition: var(--transition); }
.service-link:hover { gap: .5rem; }

/* ── 9. ABOUT ────────────────────────────────────────────────────── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-images {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-img-main img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-img-secondary {
  position: absolute;
  bottom: -2.5rem;
  right: -2rem;
  width: 50%;
}
.about-img-secondary img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-badge-float {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  background: var(--brand);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.badge-num  { font-size: var(--text-xl); font-weight: 900; line-height: 1; }
.badge-text { font-size: .7rem; opacity: .85; letter-spacing: .05em; white-space: nowrap; }

.about-content .section-eyebrow { margin-bottom: .75rem; }
.about-content .section-title   { text-align: left; }
.about-lead {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.about-content p { color: var(--gray-500); margin-bottom: 1rem; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600;
  color: var(--gray-900);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  flex-shrink: 0;
  font-weight: 900;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  background: var(--white);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.stat-suffix { font-size: 1.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label  { font-size: var(--text-sm); color: var(--gray-500); font-weight: 600; }

/* ── 10. TEAM ────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.team-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.team-card:hover .team-img { transform: scale(1.08); }

.team-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,16,.96), rgba(var(--brand-rgb),.88));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.team-card:hover .team-hover-overlay { opacity: 1; }

.team-bio {
  color: rgba(255,255,255,.9);
  font-size: var(--text-sm);
  text-align: center;
  line-height: 1.6;
}

.team-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.team-name     { font-size: var(--text-lg); font-weight: 800; margin-bottom: .2rem; }
.team-title    { font-size: var(--text-sm); color: var(--gray-500); margin-bottom: .5rem; }
.team-specialty {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
}

/* ── 11. TESTIMONIALS ────────────────────────────────────────────── */
.testimonials { background: var(--gray-900); color: #fff; }
.testimonials .section-eyebrow { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.testimonials .section-title   { color: #fff; }
.testimonials .section-subtitle { color: rgba(255,255,255,.7); }

.testimonials-wrapper { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: .5rem;
}

.testimonial-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 760px;
  width: 100%;
  transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,.1); transform: scale(1.01); }

.stars { font-size: 1.1rem; margin-bottom: 1.25rem; }

.testimonial-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.75rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  flex-shrink: 0;
}
.author-name { display: block; font-weight: 800; color: #fff; }
.author-role { display: block; font-size: var(--text-sm); color: rgba(255,255,255,.6); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.2);
}
.carousel-btn:hover { background: var(--brand); border-color: var(--brand); }

.carousel-dots { display: flex; gap: .5rem; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.dot.active { background: var(--brand); transform: scale(1.3); }

.rating-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  max-width: 400px;
  margin: 2.5rem auto 0;
}
.rating-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.rating-stars { font-size: 1rem; margin-bottom: .2rem; }
.rating-text  { font-size: var(--text-sm); color: rgba(255,255,255,.8); }

/* ── 12. GALLERY ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gallery-wide { grid-column: span 2; }

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 100%;
  cursor: pointer;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-img-wrap:hover .gallery-img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--brand-rgb),.82), rgba(14,14,16,.4) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-img-wrap:hover .gallery-overlay { opacity: 1; }
.gallery-zoom { font-size: 2rem; color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--brand); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ── 13. FAQ ─────────────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.faq-header { position: sticky; top: 100px; }
.faq-header .section-eyebrow { margin-bottom: .75rem; }
.faq-header .section-title   { text-align: left; font-size: var(--text-3xl); margin-bottom: 1rem; }
.faq-header p { color: var(--gray-500); margin-bottom: 1.5rem; }

.emergency-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2rem;
}
.emergency-icon { font-size: 2rem; }
.emergency-callout strong { display: block; font-size: var(--text-sm); color: var(--gray-500); }
.emergency-callout a { color: var(--brand); font-weight: 800; font-size: var(--text-lg); }

.faq-item { border-bottom: 1px solid var(--gray-200); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  text-align: left;
  transition: color var(--transition);
  cursor: pointer;
}
.faq-question:hover, .faq-question.active { color: var(--brand); }

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  color: var(--gray-500);
  line-height: 1.8;
  padding-bottom: 1.25rem;
}

/* ── 14. CONTACT ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-card h3   { font-size: var(--text-sm); font-weight: 800; color: var(--brand); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-card a, .contact-card p, .contact-card address { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; }
.contact-card a:hover { color: var(--brand); }

.social-links { display: flex; gap: .75rem; padding: .5rem 0; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}
.social-btn:hover { background: var(--brand); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-brand); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
}
.form-group label span { color: #e53e3e; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-base);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

.form-note {
  font-size: .8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: .25rem;
}

.form-success {
  background: #f0fff4;
  border: 1.5px solid #68d391;
  color: #22543d;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-error {
  background: #fff5f5;
  border: 1.5px solid #fc8181;
  color: #742a2a;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Map */
.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; }

/* ── 15. FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: #0d0d10;
  color: rgba(255,255,255,.8);
  border-top: 3px solid var(--brand);
}

.footer-top { padding-block: 4rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.75rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}
.footer-logo small { font-size: .7rem; opacity: .8; display: block; letter-spacing: .08em; color: var(--brand); }

.footer-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  flex-shrink: 0;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 300px;
}
.footer-rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--brand); padding-left: 4px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.footer-contact a:hover { color: var(--brand); }
.footer-hours { font-size: var(--text-sm); color: rgba(255,255,255,.5); margin-bottom: 1.25rem; line-height: 1.6; }

.footer-cta { margin-top: .5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.5rem;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p   { font-size: var(--text-sm); }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a   { font-size: var(--text-sm); color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--brand); }

/* Back-to-top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  border: none;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* ── 16. RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .about-images     { max-width: 560px; margin-inline: auto; }
  .about-img-secondary { right: 0; }
  .about-badge-float { left: .5rem; }
  .about-content .section-title { text-align: center; }
  .about-content .section-eyebrow { display: block; text-align: center; }

  .faq-layout       { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-header       { position: static; }
  .faq-header .section-title { text-align: center; }

  .contact-layout   { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand     { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(3rem, 7vw, 5rem); }

  .nav-logo-img { width: 56px; height: 56px; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-trust   { flex-direction: row; gap: 1rem; }
  .trust-divider { display: none; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-wide { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-trust { gap: .6rem; }
  .team-grid  { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .stats-bar  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .contact-form-wrap { padding: 1.5rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ── 17. PRINT ───────────────────────────────────────────────────── */
@media print {
  .site-header, .hero-scroll, .back-to-top, .mobile-menu, .lightbox { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  section { break-inside: avoid; }
}
