/* Hero content ordering: Logo → Title → Book Button → Description */
.hero-section-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section-contents > .hero-logo-and-paws { order: 1; }
.hero-section-contents > h1 { order: 2; }
.hero-section-contents > .primary-button { order: 3; margin-top: 1rem; margin-bottom: 1rem; }
.hero-section-contents > p { order: 4; }

/* Blog section hidden until blog is ready (remove .is-hidden to show) */
.our-blog-section.is-hidden {
  display: none !important;
}

/* Single-page smooth scroll and section offset for fixed header */
html {
  scroll-behavior: smooth;
}
#hero,
#services,
#about-us,
#testimonials,
#pricing {
  scroll-margin-top: 4rem;
}

/* Reduce header and footer vertical padding by 50% */
.header-section {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.footer {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.footer-contents {
  padding-top: 0;
  padding-bottom: 0;
}

/* Footer: column titles and links use CSS variables (controllable via admin panel) */
.footer .footer-column-header h5 {
  color: var(--footer-heading, #ffffff) !important;
}

.footer .footer-lists .caption,
.footer .footer-lists a.caption {
  color: var(--footer-link, #ffffff) !important;
}

.footer .footer-lists a.caption:hover {
  opacity: 0.8;
}

/* Camera icon in navbar: role-based carousel photo upload (visible when body has .user-can-upload-photos) */
body.user-can-upload-photos #hero-carousel-upload-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-right: 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  vertical-align: middle;
}
body.user-can-upload-photos #hero-carousel-upload-btn:hover {
  background: rgba(255,255,255,0.15);
}
body.user-can-upload-photos #hero-carousel-upload-btn .icon {
  color: inherit;
}
/* Hide the Book button from desktop navbar */
.header-button-wrapper {
  display: none !important;
}

.header-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}


/* Login link in header — matches .header-navigations-item-wrapper pattern */
.header-login-link {
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  color: #fff;
  white-space: nowrap;
  border-radius: 3.125rem;
  justify-content: flex-start;
  align-items: center;
  padding: .5rem;
  display: inline-flex;
  text-decoration: none;
  font-family: var(--font-ui, 'Nunito Sans', 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.75rem;
  transition: background 0.2s;
  margin-right: 0.25rem;
}
.header-login-link:hover {
  background: rgba(255, 255, 255, 0.12);
}
/* Icon circle — matches .header-button-icon-wrapper */
.header-login-link .header-login-icon {
  background-color: transparent;
  border-radius: 3.125rem;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  display: flex;
  flex-shrink: 0;
}
.header-login-link .header-login-icon svg {
  color: #fff;
  width: 1.125rem;
  height: 1.125rem;
}
/* Text wrapper — matches .button-texts-wrapper */
.header-login-link .header-login-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.75rem;
  padding-right: 0.5rem;
}

/* Why Us: two independent cards side by side */
.whyus-tab {
  background-image: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
.whyus-tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.whyus-card {
  background-color: #fef8ef;
  border-radius: 12px;
  overflow: hidden;
}
.whyus-card-img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.whyus-card--text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.whyus-card--text h3 {
  color: #f88e24 !important;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}
.whyus-card--text .paragraph-no-margin {
  color: #444 !important;
}
.whyus-tab .tab-contents-background {
  display: none !important;
}
@media (max-width: 767px) {
  .whyus-tab-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide entire animals-wrapper section (stock circular dog/cat overflow into adjacent sections) */
.animals-wrapper {
  display: none !important;
}

/* Hide stock Doberman CTA section */
.call-to-action-section {
  display: none !important;
}

@media (max-width: 991px) {
  .header-login-link {
    display: none;
  }

  /* Services cards: stack to single column on mobile */
  .our-services-section .services-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    grid-template-columns: 1fr !important;
  }
  .our-services-section .services-wrapper > .services-box {
    width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
  }

  /* Mobile nav: increase icon size 20% */
  .mobile-menu-wrapper .icon {
    width: 24px !important;
    height: 24px !important;
  }
  .mobile-menu-wrapper .icon svg,
  .mobile-menu-wrapper .icon img {
    width: 24px !important;
    height: 24px !important;
  }

  /* Footer: hide Links column (nav duplicated in mobile FAB bar) */
  footer.footer .footer-column[data-footer-col="1"] {
    display: none !important;
  }

  /* Footer: stack remaining columns vertically */
  footer.footer .w-layout-grid.footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
  }

  /* Center footer columns and all their children */
  footer.footer .footer-column {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  footer.footer .footer-column-header {
    justify-content: center !important;
  }
  footer.footer .footer-lists {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  footer.footer .footer-info-item {
    justify-content: center !important;
  }

  /* Social icons row — keep horizontal when centered */
  footer.footer .footer-social-list {
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  /* Move the contact FAB button down into the mobile nav bar */
  .mobile-contact-wrapper {
    position: relative !important;
    top: 0px !important;
  }
}

/* Prevent old Webflow nav icon SVGs from flashing before replacement */
.header-navigations-item-wrapper .icon.w-embed > svg {
  visibility: hidden;
}

/* Hide Home nav item on desktop (visible in mobile via FAB bar) */
.nav-home-link {
  display: none !important;
}

/* Navbar: increase icon size 20% */
.header-navigations-item-wrapper .icon {
  width: 24px !important;
  height: 24px !important;
}
.header-navigations-item-wrapper .icon svg {
  width: 24px !important;
  height: 24px !important;
}
.header-navigations-item-wrapper .icon img {
  width: 24px !important;
  height: 24px !important;
}
.header-login-link .header-login-icon svg {
  width: 24px !important;
  height: 24px !important;
}

/* Navbar: rolling text hover animation on all items */
.header-navigations-item-wrapper .navigation-texts-wrapper {
  overflow: hidden !important;
  position: relative !important;
}
.header-navigations-item-wrapper .navigation-item-text {
  transition: transform 0.3s ease !important;
}
.header-navigations-item-wrapper .navigation-item-text.is-active {
  transform: translateY(0%) !important;
}
.header-navigations-item-wrapper .navigation-item-text.is-hover {
  transform: translateY(120%) !important;
}
.header-navigations-item-wrapper:hover .navigation-item-text.is-active {
  transform: translateY(-120%) !important;
}
.header-navigations-item-wrapper:hover .navigation-item-text.is-hover {
  transform: translateY(0%) !important;
}

/* Spread navbar items across the full width */
.header-navigations-wrapper {
  flex: 1 !important;
  justify-content: space-evenly !important;
}
.header-cta-wrapper {
  display: none !important;
}

/* Book button icon: transparent background so white paw is visible on orange */
.primary-button .primary-button-icon-wrapper {
  background-color: transparent !important;
}
/* Book button text: larger, uppercase, white + rolling hover animation */
.primary-button .primary-button-text {
  font-size: 1.2em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  transition: transform 0.3s ease !important;
}
.primary-button .primary-button-text.is-active {
  transform: translateY(0%) !important;
}
.primary-button .primary-button-text.is-hover {
  transform: translateY(120%) !important;
}
.primary-button:hover .primary-button-text.is-active {
  transform: translateY(-120%) !important;
}
.primary-button:hover .primary-button-text.is-hover {
  transform: translateY(0%) !important;
}

/* Contact form card: match warm cream background of other sections */
.contactus-from-column {
  background-color: #fef8ef !important;
  border-radius: 12px !important;
  padding: 2rem !important;
}

/* Follow Us gallery: force square aspect ratio 2x2 */
.followus-section .gallery-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}
.followus-section .gallery-item {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  height: auto !important;
  width: 100% !important;
  padding-bottom: 0 !important;
}
.followus-section .gallery-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}
.followus-section .gallery-item {
  position: relative !important;
}

/* Hide mobile-only line break on desktop */
.mobile-br { display: none; }

/* ─── Hero: shrink logo and paws on narrow screens ─── */
@media (max-width: 600px) {
  .hero-logo-and-paws {
    transform: scale(0.6);
    transform-origin: center center;
    margin-bottom: -6rem;
    margin-top: -0.5rem;
  }
  #hero,
  .hero-section {
    padding-top: 1rem !important;
  }
  .mobile-br {
    display: block !important;
  }
}

/* ─── Footer link items: icon / text / both display modes ─── */

.footer-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--footer-link, #ffffff) !important;
  transition: opacity 0.2s;
  position: relative;
}
.footer-link-item:hover {
  opacity: 0.8;
}

.footer-link-icon {
  display: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.footer-link-icon svg {
  width: 100%;
  height: 100%;
  color: var(--footer-link, #ffffff);
  fill: var(--footer-link, #ffffff);
}

/* Info items (col 3) — same structure */
.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-info-item .footer-link-icon {
  width: 20px;
  height: 20px;
}

/* Social column: icon-only → horizontal row */
.footer-social-list.footer-col-icon-only {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-social-list.footer-col-icon-only .footer-list-wrapper {
  margin-bottom: 0;
}
.footer-social-list.footer-col-icon-only .footer-link-icon {
  width: 28px;
  height: 28px;
}

/* Icon-only mode: show icon, hide text, add tooltip on hover */
.footer-col-icon-only .footer-link-icon {
  display: inline-flex;
}
.footer-col-icon-only .footer-link-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}
.footer-col-icon-only .footer-link-item:hover .footer-link-text {
  opacity: 1;
}

/* Text-only mode (default): hide icon, show text normally */
.footer-col-text-only .footer-link-icon {
  display: none;
}
.footer-col-text-only .footer-link-text {
  position: static;
  opacity: 1;
  background: none;
  padding: 0;
  transform: none;
  color: inherit;
  font-size: inherit;
}

/* Both mode: show icon and text inline */
.footer-col-both .footer-link-icon {
  display: inline-flex;
}
.footer-col-both .footer-link-text {
  position: static;
  opacity: 1;
  background: none;
  padding: 0;
  transform: none;
  color: inherit;
  font-size: inherit;
}
