/* ==========================================================================
   PetSmart design system — customer pages, small-screen layer
   Loaded LAST (after responsive-*.css) so it can refine the existing
   breakpoints for the new look without changing how they reflow.
   ========================================================================== */

/* Undo the wide tracking the older breakpoints add to the hero */
.texth h1,
.texth p {
  letter-spacing: -0.03em;
}
.texth p {
  letter-spacing: 0;
}

/* Mobile menu button (inserted by js/responsive.js) */
header .nav-toggle {
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
  background: var(--ps-surface);
  width: 42px;
  height: 42px;
}
header .nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ps-ink);
}
header.nav-open .nav-toggle {
  background: var(--ps-ink);
  border-color: var(--ps-ink);
}

header.nav-open .nav-toggle span {
  background: #fff;
}

@media (max-width: 1100px) {
  .home-container {
    gap: 32px;
    padding: 32px 28px 40px;
  }
  .texth h1 {
    font-size: 42px;
  }
}

@media (max-width: 900px) {
  body > header,
  header.site-header {
    padding: 10px 20px;
    min-height: 0;
  }
  header nav {
    gap: 2px;
  }
  header nav ul {
    gap: 2px;
    align-items: stretch;
  }
  header.has-toggle.nav-open nav {
    padding: 10px 0 8px;
  }
  header.site-header nav {
    background: var(--ps-surface);
    border-top: 1px solid var(--ps-line);
    box-shadow: 0 16px 28px rgba(16, 48, 46, 0.10);
    padding: 8px 14px 14px;
  }
  header nav a {
    border-radius: var(--ps-r-sm);
    padding: 12px 14px;
  }
  header nav a[href="login.html"] {
    margin: 6px 0 0;
    text-align: center;
  }
  header nav .dropdown > a::after {
    display: none;
  }
  header nav .menu {
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    background: transparent;
  }
  header nav .menu::before {
    display: none;
  }

  .home-container {
    padding: 8px 0 12px;
    gap: 8px;
  }
  .texth {
    padding: 28px 24px 0;
  }
  .texth h1 {
    font-size: 36px;
    max-width: 16ch;
  }
  .imgh {
    padding: 0 24px 28px;
  }

  #why,
  #services,
  .vet-section,
  #contact {
    padding-top: 56px;
    padding-bottom: 60px;
  }
  #why h2,
  #services h2,
  .vet-heading,
  #contact h2 {
    font-size: 28px;
  }
  #why h2 {
    margin-bottom: 28px;
  }
  .why-card {
    width: 100%;
    max-width: 340px;
  }
  .vet-card {
    padding: 14px;
    gap: 4px;
  }
  .vet-info {
    padding: 20px 10px 12px;
  }
  .opening td:last-child {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  body > header,
  header.site-header {
    padding: 8px 14px;
  }
  header .logo,
  header .petsmart .logo {
    width: 36px;
    height: 36px;
  }
  header h1,
  header .petsmart .brand-text {
    font-size: 19px;
  }

  .texth {
    padding: 24px 18px 0;
  }
  .texth h1 {
    font-size: 31px;
    line-height: 1.1;
  }
  .texth p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .btnbook {
    font-size: 16px;
    padding: 13px 20px 13px 22px;
  }
  .imgh {
    padding: 0 18px 24px;
  }

  #why,
  #services,
  .vet-section,
  #contact {
    padding-top: 44px;
    padding-bottom: 48px;
  }
  #why h2,
  #services h2,
  .vet-heading,
  #contact h2 {
    font-size: 25px;
  }
  #services p {
    font-size: 15.5px;
    margin-bottom: 28px;
  }
  .why-card,
  #services .serve {
    max-width: 100%;
    padding: 24px 22px;
  }
  .why-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }
  .why-card h3,
  #services .serve h3 {
    font-size: 18px;
  }
  #services .serve img {
    width: 72px;
    height: 72px;
  }
  #services .serve .serve-btn {
    right: 18px;
    bottom: 20px;
  }
  .vet-name {
    font-size: 23px;
  }
  .vet-bio p {
    font-size: 15px;
  }
  #contact .about-container {
    padding: 10px;
    border-width: 1px;
    border-radius: var(--ps-r-lg);
  }
  .contact {
    padding: 8px;
  }
  .contact h3 {
    font-size: 18px;
  }
  .contact p {
    font-size: 15px;
  }
  .opening td {
    font-size: 14px;
    padding: 8px 2px;
  }

  main:has(> .login-shell) {
    padding: 24px 14px 40px;
  }
  .login-card {
    padding: 28px 20px 24px;
    border-radius: var(--ps-r-lg);
  }
  .card-wrapper {
    padding: 0;
    border-radius: 0;
  }
  .login-card .card-header h2 {
    font-size: 22px;
  }
  .login-card > a:first-child,
  .login-card > .back-btn {
    top: 14px;
    left: 14px;
  }
}

@media (max-width: 420px) {
  .texth h1 {
    font-size: 28px;
  }
  .why-card h3,
  #services .serve h3 {
    font-size: 18px;
  }
}

/* Services dropdown: when hovering a sibling, the current page's item
   steps back (replaces the inline rule on grooming/check-up pages) */
header nav .menu:has(> a:hover) > a.active:not(:hover) {
  background: transparent;
  color: var(--ps-ink-2);
}

/* Service pages */
@media (max-width: 900px) {
  .page-frame {
    padding: 28px 24px 64px;
  }
}
@media (max-width: 600px) {
  .page-frame {
    padding: 20px 14px 48px;
  }
  .service-header h2 {
    font-size: 23px;
  }
  .package-card {
    padding: 22px 18px;
    border-radius: var(--ps-r-lg);
  }
  .package-card h3 {
    font-size: 20px;
  }
  .package-meta h4 {
    font-size: 26px;
  }
  .package-card__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
}

/* Booking */
@media (max-width: 900px) {
  .step-intro {
    margin-left: 0;
  }
  .booking-card {
    padding: 24px 20px 26px;
  }
  .summary-panel {
    top: auto;
  }
}
@media (max-width: 600px) {
  .booking-card {
    padding: 22px 16px 24px;
    border-radius: var(--ps-r-lg);
  }
  .summary-panel {
    border-radius: var(--ps-r-lg);
  }
}

/* Profile */
@media (max-width: 900px) {
  .account-info {
    gap: 24px;
  }
  .account-info .profile + .pets {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--ps-line);
  }
  body:has(.account-info) > main,
  body:has(#petsArchiveList) > main {
    padding: 0 20px 64px;
    margin-top: 20px;
  }
}
@media (max-width: 600px) {
  body:has(.account-info) > main,
  body:has(#petsArchiveList) > main {
    padding: 0 12px 96px;
    gap: 16px;
  }
  #liveApptSection {
    gap: 16px;
  }
  body:has(.account-info) section,
  body:has(#petsArchiveList) section,
  .account-info,
  .schedule,
  .history-card {
    padding: 18px 16px;
    border-radius: var(--ps-r-lg);
  }
  .modal-box {
    padding: 20px 18px 22px;
    border-radius: var(--ps-r-lg);
  }
}

/* Keep the older breakpoints' intent for the vet card and section titles */
@media (max-width: 900px) {
  .vet-card {
    max-width: 640px;
  }
  .vet-name {
    font-size: 25px;
  }
  .vet-heading {
    margin-bottom: 24px;
  }
}
@media (max-width: 600px) {
  .section-title {
    font-size: 17px;
    letter-spacing: -0.01em;
  }
  .vet-name {
    font-size: 23px;
  }
}

/* Printed receipts stay plain */
@media print {
  .receipt-box {
    border: none;
    background: none;
  }
  body {
    background: #fff;
  }
}

/* Mobile menu: full-width rows on every page (landing + sign-in pages
   use bare links instead of a list) */
@media (max-width: 900px) {
  header.has-toggle nav {
    align-items: stretch;
  }
  header nav > a {
    text-align: left;
  }
  header nav > a[href="login.html"] {
    text-align: center;
  }
}
