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

:root {
  --cream: #f7f3ee; --cream2: #efe9e0; --ink: #1a130b; --ink2: #3d3028;
  --muted: #9a8a78; --border: rgba(26,19,11,.1); --wine: #1b3f73;
  --gold: #40a8d8; --white: #ffffff;
  --font-d: 'Plus Jakarta Sans', sans-serif; --font-b: 'DM Sans', sans-serif;
  --radius-md: 14px; --radius-lg: 18px; --radius-xl: 22px;
  --shadow-soft: 0 10px 28px rgba(26,19,11,.07);
  --shadow-lift: 0 16px 42px rgba(26,19,11,.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream); color: var(--ink); font-family: var(--font-b);
  overflow-x: hidden; line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--wine); border-radius: 2px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,243,238,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.logo { display: flex; align-items: center; text-decoration: none; position: relative; z-index: 105; }
.nav-links { display: flex; align-items: center; gap: 32px; transition: transform 0.3s ease; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px;
  border-radius: 8px; background: var(--wine); color: #fff !important;
  font-weight: 600; font-size: 13px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-nav:hover { background: var(--ink); transform: translateY(-1px); }

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 105;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  position: absolute; left: 0; transition: 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* HERO */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -25px); }
  66% { transform: translate(-20px, 20px); }
}

.hub-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 28px 60px; text-align: center; position: relative; overflow: hidden;
}
.hub-hero::before {
  content: ''; position: absolute; top: -120px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(64,168,216,.12) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: float-orb 12s ease-in-out infinite;
}
.hub-hero::after {
  content: ''; position: absolute; bottom: -100px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(27,63,115,.08) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: float-orb 15s ease-in-out infinite reverse;
}

.hub-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wine); border: 1px solid rgba(27,63,115,.22);
  background: rgba(27,63,115,.08); padding: 6px 14px; border-radius: 100px;
  margin-bottom: 32px; position: relative; z-index: 2;
}
.hub-tag::before {
  content: ''; width: 6px; height: 6px; background: var(--wine);
  border-radius: 50%; animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.hub-title {
  font-family: var(--font-d); font-size: clamp(36px, 7vw, 68px);
  line-height: 1.02; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: 18px; max-width: 800px; position: relative; z-index: 2;
}
.hub-title em { font-style: italic; color: var(--wine); }

.hub-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--muted);
  max-width: 560px; margin-bottom: 56px; line-height: 1.65; font-weight: 400;
  position: relative; z-index: 2;
}

/* CARDS */
.hub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; width: 100%; position: relative; z-index: 2;
}

.hub-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: #fff; text-align: center;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s;
  box-shadow: var(--shadow-lift);
}
.hub-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 64px rgba(26,19,11,.2);
}

.hub-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s; z-index: 0;
}
.hub-card:hover .hub-card-img { transform: scale(1.06); }

.hub-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.7) 100%);
}

.hub-card-content {
  position: relative; z-index: 2; padding: 32px;
  display: flex; flex-direction: column; align-items: center;
}
.hub-card-icon {
  font-size: 36px; margin-bottom: 12px;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.hub-card-title {
  font-family: var(--font-d); font-size: 26px; margin-bottom: 8px; line-height: 1.15;
}
.hub-card-desc {
  font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.55; margin-bottom: 18px;
}
.hub-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
  transition: background .2s, transform .2s;
}

.hub-card.retail .hub-card-btn { background: var(--wine); color: #fff; }
.hub-card.retail:hover .hub-card-btn { background: #244f8a; }

.hub-card.vet .hub-card-btn { background: #2d8c55; color: #fff; }
.hub-card.vet:hover .hub-card-btn { background: #35a065; }

.hub-card.dental .hub-card-btn { background: var(--gold); color: var(--ink); }
.hub-card.dental:hover .hub-card-btn { background: #5bbde3; }

/* TRUST */
.hub-trust {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  margin-top: 56px; position: relative; z-index: 2;
}
.hub-trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.hub-trust-dot { width: 6px; height: 6px; border-radius: 50%; background: #2d8c55; }

/* FOOTER MINI */
.hub-footer {
  text-align: center; padding: 28px; margin-top: auto;
  border-top: 1px solid var(--border);
}
.hub-footer p { font-size: 13px; color: var(--muted); }
.hub-footer a { color: var(--wine); text-decoration: none; }

/* FAB WhatsApp */
.fab-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: #25d366; color: white; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.fab-wa:hover { transform: scale(1.08); box-shadow: 0 12px 48px rgba(37,211,102,.55); }
.fab-wa svg { width: 26px; height: 26px; }

/* ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94), transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

.hero-animate {
  opacity: 0; transform: translateY(20px);
  animation: fadeUpHero .7s cubic-bezier(.25,.46,.45,.94) forwards;
}
.hero-tag { animation-delay: .05s; }
.hero-title { animation-delay: .15s; }
.hero-sub { animation-delay: .25s; }

@keyframes fadeUpHero {
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--cream); flex-direction: column; justify-content: center;
    gap: 40px; transform: translateY(-100%); transition: transform 0.4s ease;
    z-index: 104;
  }
  nav.menu-open .nav-links { transform: translateY(0); }
  .nav-links a { font-size: 20px; }

  .hub-grid { grid-template-columns: 1fr; gap: 18px; }
  .hub-card { min-height: 300px; }
  .hub-hero { padding: 100px 18px 40px; }

  .hub-hero::before {
    width: 320px; height: 320px; top: -50px; right: -50px;
  }
  .hub-hero::after {
    width: 280px; height: 280px; bottom: -20px; left: -50px;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-card:last-child { grid-column: span 2; max-width: 540px; margin: 0 auto; width: 100%; }
}

/* text gradients for H1 headers */
.text-gradient-retail {
  background: linear-gradient(135deg, #1b3f73 0%, #40a8d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  vertical-align: bottom;
}

.text-gradient-vet {
  background: linear-gradient(135deg, #2d8c55 0%, #6ab78e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  vertical-align: bottom;
}

.text-gradient-dental {
  background: linear-gradient(135deg, #1b3f73 0%, #40a8d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  vertical-align: bottom;
}
