/* ============================================================
   VetPro — layout.css
   Sections: 5. Nav  6. Hero  7. Page Hero  8. Section Head
             9. Trust  13. Featured  22. Footer
             20. Error Page  + Responsive breakpoints
   ============================================================ */

/* ── 5. NAV ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--ease);
}
.nav--scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.nav__logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--clr-primary); display: flex; align-items: center; }
.nav__logo img { height: 40px; width: auto; display: block; }
.nav__logo span { color: var(--clr-secondary); }

.nav__links { display: flex; gap: 24px; align-items: center; }
.nav__link  { font-size: .85rem; font-weight: 500; color: var(--clr-muted); position: relative; padding-bottom: 4px; transition: color var(--ease); }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--clr-primary); transition: width var(--ease); }
.nav__link:hover, .nav__link--active { color: var(--clr-primary); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }

.nav__toggle { display: none; font-size: 1.4rem; color: var(--clr-text); }

/* Search */
.nav__search { position: relative; flex: 1; max-width: 280px; }
.nav__search-input {
  width: 100%; padding: 8px 16px 8px 36px;
  border: 1px solid var(--clr-border); border-radius: 20px;
  font-size: .85rem; background: var(--clr-bg);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.nav__search-input:focus { border-color: var(--clr-secondary); box-shadow: 0 0 0 3px rgba(32,193,245,.2); outline: none; }
.nav__search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--clr-muted); pointer-events: none; }

.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto;
  display: none; z-index: 200;
}
.search-suggestions--open { display: block; }
.search-suggestion { padding: 10px 14px; border-bottom: 1px solid var(--clr-border); cursor: pointer; transition: background var(--ease); }
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover { background: var(--clr-bg); }
.search-suggestion__name { font-weight: 600; font-size: .85rem; }
.search-suggestion__desc { font-size: .78rem; color: var(--clr-muted); }

/* Cart badge */
.nav__cart { position: relative; padding: 6px; }
.nav__cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--clr-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── 6. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 980px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,12,18,.88) 0%,
    rgba(10,12,18,.60) 55%,
    rgba(14,32,56,.78) 100%
  );
}

/* Two-column inner layout */
.hero__inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 48px;
  color: #fff;
}

.hero__content { flex: 1; max-width: 600px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--clr-secondary); font-weight: 700;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}

.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-secondary);
  box-shadow: 0 0 0 3px rgba(32,193,245,.3);
  display: inline-block; flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp .8s .35s forwards;
}

.hero__title-accent { color: var(--clr-secondary); }

.hero__sub {
  font-size: 1.08rem; color: rgba(255,255,255,.82);
  max-width: 500px; margin-bottom: 32px; line-height: 1.7;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}

.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s .65s forwards;
}

/* Badge column (desktop only) */
.hero__badge-col {
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; animation: fadeUp .8s .8s forwards;
  flex-shrink: 0;
}

.hero__badge {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  min-width: 180px;
}

.hero__badge-icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32,193,245,.12);
  border-radius: 8px;
}

.hero__badge-icon-wrap svg { width: 22px; height: 22px; }
.hero__badge span { font-size: .84rem; font-weight: 600; line-height: 1.4; }

/* Stats bar pinned to hero bottom */
.hero__stats {
  position: relative; z-index: 2;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  color: #fff;
}

.hero__stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__stat {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 40px;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  color: var(--clr-secondary);
  line-height: 1;
}

.hero__stat-label {
  font-size: .73rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-top: 5px;
}

.hero__stat-divider {
  width: 1px; height: 44px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 7. PAGE HERO (inner pages) ───────────────────────────── */
.page-hero { background: linear-gradient(135deg,#1a1c23 0%,#2d3039 100%); color: #fff; padding: 56px 0; text-align: center; }
.page-hero__title { font-family: var(--font-display); font-size: 2.4rem; margin-bottom: 8px; }
.page-hero__sub   { color: rgba(255,255,255,.65); font-size: 1.05rem; }

/* ── 8. SECTION HEAD ──────────────────────────────────────── */
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }

.section-head__eyebrow {
  display: block;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--clr-secondary); font-weight: 700;
  margin-bottom: 10px;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.section-head__sub {
  color: var(--clr-muted);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.65;
}

.section-head--center .section-head__sub { margin-inline: auto; }

.section-cta { text-align: center; margin-top: 36px; }

/* ── 9. TRUST BADGES ──────────────────────────────────────── */
.trust {
  padding: 56px 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.trust__item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--clr-border);
}

.trust__icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.trust__icon-wrap--blue { background: rgba(32,193,245,.12); color: var(--clr-secondary-dk); }
.trust__icon-wrap--red  { background: rgba(238,31,41,.1);   color: var(--clr-primary); }
.trust__icon { width: 24px; height: 24px; }

.trust__text { flex: 1; }
.trust__heading { font-size: .95rem; font-weight: 700; margin-bottom: 5px; }
.trust__desc    { color: var(--clr-muted); font-size: .84rem; line-height: 1.55; }

/* ── 13. FEATURED ─────────────────────────────────────────── */
.featured { padding: 72px 0; }

/* ── 22. FOOTER ───────────────────────────────────────────── */
.footer { background: #1a1c23; color: rgba(255,255,255,.65); padding: 48px 0 22px; margin-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand   { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__tagline { font-size: .84rem; }
.footer__col h4  { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer__col a   { display: block; font-size: .84rem; padding: 3px 0; transition: color var(--ease); }
.footer__col a:hover { color: var(--clr-secondary); }
.footer__bottom  { padding-top: 20px; font-size: .78rem; }

/* ── 20. ERROR PAGE ───────────────────────────────────────── */
.error-page        { min-height: 55vh; display: flex; align-items: center; justify-content: center; }
.error-page__inner { text-align: center; }
.error-page__code  { font-family: var(--font-display); font-size: 7rem; font-weight: 700; color: var(--clr-border); line-height: 1; }
.error-page__title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 10px; }
.error-page__text  { color: var(--clr-muted); margin-bottom: 22px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (<= 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__badge-col { display: none; }
  .trust__grid     { grid-template-columns: repeat(2, 1fr); }
  .footer__grid    { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (<= 640px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .nav__links    { display: none; }
  .nav__links--open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 12px;
    box-shadow: var(--shadow-md); gap: 0;
  }
  .nav__toggle { display: block; }
  .nav__search { max-width: 100%; }

  .hero__title { font-size: 2.2rem; }
  .hero__ctas  { flex-direction: column; align-items: flex-start; }

  .hero__stats-grid { flex-wrap: wrap; justify-content: center; gap: 16px 0; }
  .hero__stat       { padding: 0 20px; }
  .hero__stat-divider { display: none; }

  .trust__grid { grid-template-columns: 1fr; gap: 8px; }

  .page-hero        { padding: 36px 0; }
  .page-hero__title { font-size: 1.9rem; }

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