/**
 * Header / nav and site logo – match home page cream, logo display
 */

/* Header: exact same as body (body uses background-color: var(--color-cream) = #F5F0EB) */
#sbv2-header.sbv2-nav-bar {
  background-color: #F5F0EB !important;
  background: #F5F0EB !important;
  border-bottom: 1px solid #F5F0EB !important;
}

.sbv2-header-scrolled#sbv2-header {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* Push hero and page content down so fixed header does not cover it */
main {
  padding-top: 4cm;
}

/* Big screen: header background doubled (2.24 cm); small screen unchanged */
@media (min-width: 1024px) {
  #sbv2-header .max-w-7xl > div {
    min-height: 2.24cm !important;
    max-height: 2.24cm !important;
    height: 2.24cm !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-right: 0.6cm !important;
    align-items: center !important;
  }
  /* Header logo scaled down so nav fits */
  #sbv2-header .site-logo.site-logo-header.site-logo-mask {
    height: 16rem !important;
    max-height: 16rem !important;
    min-width: 64rem !important;
    width: 64rem !important;
  }
  #sbv2-header .site-logo.site-logo-header {
    height: 16rem !important;
    max-height: 16rem !important;
  }
  /* Reduce logo link clickable area - keep logo size, reduce invisible click radius (big screen) */
  #sbv2-header .sbv2-header-inner > a.flex.items-center.shrink-0 {
    display: block !important;
    width: 64rem !important;
    height: 16rem !important;
    max-width: 64rem !important;
    max-height: 16rem !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    position: relative !important;
    flex: none !important;
    pointer-events: none;
  }
  /* Make only the logo itself clickable, not empty space around it */
  #sbv2-header .sbv2-header-inner > a.flex.items-center.shrink-0 .site-logo {
    display: block !important;
    width: 64rem !important;
    height: 16rem !important;
    pointer-events: auto;
    position: relative;
    z-index: 1;
  }
  /* Allow nav items to wrap instead of overflowing */
  #sbv2-header .sbv2-nav-links {
    flex-wrap: nowrap;
    gap: 0.65rem;
    justify-content: flex-start;
    flex: 1 1 auto;
    margin-left: -25rem;
    margin-right: auto;
  }
  /* Bring content 3 cm closer on desktop, then push down 1 cm */
  main,
  body .site-main,
  main.site-main {
    padding-top: 1.3cm !important;
  }
  /* Home page: pull 2 cm higher */
  body.home main,
  main:has(#sbv2-hero-section) {
    padding-top: calc(1.3cm - 2cm) !important;
  }
}

.sbv2-nav-link {
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark, #1a1a1a);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: color 0.2s ease;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 100;
}

.sbv2-nav-link:hover {
  color: var(--color-accent, #8B7355);
}

.sbv2-nav-cta {
  text-decoration: none;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 100;
}

/* Ensure header nav links are always clickable on desktop */
@media (min-width: 1024px) {
  #sbv2-header .sbv2-nav-links a,
  #sbv2-header .sbv2-nav-cta {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100 !important;
  }
  #sbv2-header {
    z-index: 999 !important;
  }
}

/* Logo display: mask so single-color logo shows in --color-dark (#1a1a1a) on cream */
.site-logo-mask {
  display: block;
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
}
.site-logo.site-logo-header {
  max-height: 17.6rem;
  height: 17.6rem;
  width: 52.8rem;
  background-color: var(--color-dark, #1a1a1a);
}
.site-logo.site-logo-header.site-logo-mask {
  height: 17.6rem;
  width: 52.8rem;
  max-height: 17.6rem;
  min-width: 44rem;
}
/* Footer: same mask but white on dark background */
.site-logo.site-logo-footer.site-logo-mask {
  display: block;
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  max-height: 15.4rem;
  height: 15.4rem;
  min-width: 39.6rem;
  width: 52.8rem;
  background-color: #fff;
}
.site-logo.site-logo-footer.site-logo-mask-light {
  background-color: #fff;
}
@media (max-width: 1023px) {
  /* Pull entire site up by 1cm on mobile (3cm - 1cm = 2cm) */
  main {
    padding-top: 2cm !important;
  }
  /* Pull home page positioning on mobile */
  body.home main,
  main:has(#sbv2-hero-section) {
    padding-top: 2cm !important;
  }
  /* Also reduce hero section's own top padding */
  #sbv2-hero-section .pt-24 {
    padding-top: 1.5rem !important;
  }
  /* Header: exact same as body */
  #sbv2-header.sbv2-nav-bar {
    background-color: #F5F0EB !important;
    background: #F5F0EB !important;
    border-bottom: 1px solid #F5F0EB !important;
  }
  /* Override Tailwind padding classes on header container */
  #sbv2-header .max-w-7xl {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
  }
  /* Header frame: reduce height significantly */
  #sbv2-header .max-w-7xl > div,
  #sbv2-header .max-w-7xl > div.sbv2-header-inner,
  #sbv2-header nav .max-w-7xl > div {
    min-height: 0.075cm !important;
    max-height: none !important;
    height: auto !important;
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
  }
  /* Force remove all padding from header inner on mobile */
  #sbv2-header .sbv2-header-inner {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
  }
  /* Remove any spacing from logo container */
  #sbv2-header .sbv2-header-inner > a {
    padding: 0rem !important;
    margin: 0rem !important;
  }
  /* Remove gap from flex container */
  #sbv2-header .sbv2-header-inner {
    gap: 0rem !important;
  }
  /* Override Tailwind classes on header inner */
  #sbv2-header .sbv2-header-inner {
    min-height: auto !important;
    height: auto !important;
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
  }
  /* Ensure mobile menu button is visible */
  #sbv2-mobile-menu-btn {
    z-index: 60 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
  }
  /* Mobile menu: compact dropdown below header menu button, 90% transparent */
  #sbv2-mobile-menu,
  #sbv2-mobile-menu.sbv2-mobile-menu,
  div#sbv2-mobile-menu.sbv2-mobile-menu.lg-hidden {
    top: calc(0.075cm + 2rem) !important;
    left: auto !important;
    right: 0.5rem !important;
    bottom: auto !important;
    width: 37.5vw !important;
    height: auto !important;
    max-height: 67.5vh !important;
    padding: 0.5rem !important;
    margin-top: 0 !important;
    z-index: 9999 !important;
    position: fixed !important;
    background: rgba(245, 240, 235, 0.1) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    overflow-y: auto !important;
  }
  /* Reduce spacing in mobile menu nav */
  #sbv2-mobile-menu.sbv2-mobile-menu nav {
    gap: 0.5rem !important;
  }
  /* Reduce mobile menu link sizes - 30% of original */
  #sbv2-mobile-menu .sbv2-mobile-nav-link,
  #sbv2-mobile-menu a.sbv2-mobile-nav-link {
    font-size: 0.7rem !important;
    padding: 0.25rem 0 !important;
    line-height: 1.3 !important;
  }
  /* Reduce Book Now button size - 30% of original */
  #sbv2-mobile-menu .sbv2-mobile-nav-cta {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.6rem !important;
    margin-top: 0.25rem !important;
  }
  /* Home page hero section: reduce top padding on mobile - push 1cm higher */
  #sbv2-hero-section {
    margin-top: -1cm !important;
  }
  #sbv2-hero-section > div.relative.z-10 {
    padding-top: calc(6rem - 1cm) !important; /* pt-24 (6rem) minus 1cm */
  }
  /* Logo: 20% smaller than desktop, then +10% = 7.92rem etc., reduced by 25% */
  .site-logo.site-logo-header {
    max-height: 5.94rem;
    height: 5.94rem;
    width: 23.76rem;
  }
  .site-logo.site-logo-header.site-logo-mask {
    height: 5.94rem;
    width: 23.76rem;
    max-height: 5.94rem;
    min-width: 15.84rem;
  }
  .site-logo.site-logo-footer.site-logo-mask {
    display: block !important;
    -webkit-mask-image: var(--logo-url) !important;
    mask-image: var(--logo-url) !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: left center !important;
    mask-position: left center !important;
    max-height: 9.24rem;
    height: 9.24rem;
    min-width: 23.76rem;
    width: 31.68rem;
    background-color: #fff !important;
  }
  .site-logo.site-logo-footer.site-logo-mask.site-logo-mask-light {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
    min-width: auto;
  }

  /* Our Services cards – MOBILE ONLY (<= 1023px)
     - Card: 2-column row layout with inner padding and gap
     - LEFT: text content (55%)
     - RIGHT: photo fills column edge-to-edge (45%)
  */
  #services [data-slot="card"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 16px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Remove card's default gap-6 and py-6 */
  #services [data-slot="card"].gap-6 {
    gap: 16px !important;
  }

  /* LEFT: Text content column */
  #services [data-slot="card-content"] {
    flex: 1 1 55% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Tighten text spacing */
  #services [data-slot="card-content"] * {
    margin-top: 0 !important;
  }

  #services [data-slot="card-content"] h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }

  #services [data-slot="card-content"] p {
    font-size: 0.8rem !important;
    margin: 8px 0 0 !important;
  }

  /* Hide tags row */
  #services [data-slot="card-content"] .flex.flex-wrap.gap-2 {
    display: none !important;
  }

  /* Price centered under text */
  #services [data-slot="card-content"] .sbv2-service-price {
    text-align: center !important;
    margin-top: 0.5rem !important;
  }

  /* RIGHT: Photo column - edge-to-edge, no gray */
  #services [data-slot="card"] > .relative {
    flex: 0 0 45% !important;
    align-self: stretch !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 120px !important;
  }

  /* Remove aspect-[4/3] constraint */
  #services [data-slot="card"] > .relative.aspect-\\[4\\/3\\] {
    aspect-ratio: auto !important;
    padding-bottom: 0 !important;
  }

  /* Photo fills column completely */
  #services [data-slot="card"] > .relative img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    min-height: 120px !important;
  }

  /* Hide price badge inside photo */
  #services [data-slot="card"] > .relative .absolute.bottom-4 {
    display: none !important;
  }

  /* Remove gradient overlay if causing gray */
  #services [data-slot="card"] > .relative .absolute.inset-0.bg-gradient-to-t {
    display: none !important;
  }
}
/* Fallback img when not using mask */
.site-logo.site-logo-header:not(.site-logo-mask) {
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Footer logo block – ensure proper sizing on dark background */
.site-logo.site-logo-footer.site-logo-mask.site-logo-mask-light {
  display: block !important;
  -webkit-mask-image: var(--logo-url) !important;
  mask-image: var(--logo-url) !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: left center !important;
  mask-position: left center !important;
  max-width: 220px;
  max-height: 72px;
  width: auto;
  height: auto;
  min-width: auto;
  margin: 0;
  background-color: #fff !important;
}

.sbv2-mobile-menu {
  background: rgba(245, 240, 235, 0.1) !important;
  z-index: 9999 !important;
  position: fixed !important;
  top: calc(0.075cm + 2rem) !important;
  left: auto !important;
  right: 0.5rem !important;
  bottom: auto !important;
  width: 37.5vw !important;
  max-height: 67.5vh !important;
  padding: 0.5rem !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 0.5rem !important;
}
/* Override Tailwind utility classes directly */
#sbv2-mobile-menu.pt-24 {
  padding-top: 1rem !important;
}
#sbv2-mobile-menu.pb-8 {
  padding-bottom: 1rem !important;
}
#sbv2-mobile-menu.px-6 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.sbv2-mobile-nav-link {
  text-decoration: none;
}

.sbv2-mobile-nav-cta {
  text-decoration: none;
}

/* Floating CTAs (footer) */
#sbv2-floating-ctas.sbv2-floating-ctas {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 40 !important;
}

#sbv2-floating-ctas .sbv2-floating-wa,
#sbv2-floating-ctas .sbv2-floating-pickup,
#sbv2-floating-ctas .sbv2-floating-instagram,
#sbv2-floating-ctas .sbv2-floating-tiktok {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.9rem !important;
  height: 2.9rem !important;
  min-width: 2.9rem !important;
  min-height: 2.9rem !important;
  padding: 0 !important;
  border-radius: 50% !important;
  text-decoration: none !important;
}

#sbv2-floating-ctas .sbv2-floating-icon {
  width: 1.125rem !important;
  height: 1.125rem !important;
}

/* Mobile only: hide hero thumbnails when scrolled past "Restoring memories with modern craft" */
@media (max-width: 767px) {
  #sbv2-hero-thumbs-mobile.sbv2-hero-thumbs-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  #sbv2-hero-thumbs-mobile {
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
}

/* Home page – 5 Our Services cards only: remove icon circles (shopping bag, footprints, shirt, palette, sparkles) on photos, all screen sizes */
#services [data-slot="card"] .relative > div[class*="top-4"][class*="right-4"] {
  display: none !important;
}
