/* Bear Paws — responsive overrides */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f6f5ef;
}

.site-nav {
  position: relative;
}

.site-logo {
  min-width: 0;
}

.site-logo img:last-child {
  max-width: min(180px, 46vw);
  height: auto !important;
  max-height: 44px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #2f322e;
  border-radius: 12px;
  background: transparent;
  color: #2f322e;
  cursor: pointer;
  flex: none;
}

.nav-toggle:focus-visible {
  outline: 3px solid #3f5341;
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-header.is-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-links a {
  -webkit-tap-highlight-color: transparent;
}

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-call-icon {
  display: block;
  flex: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px !important;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .site-nav {
    padding: 12px 16px !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .nav-links,
  .site-header .nav-links.hero-ctas {
    display: none !important;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
    padding: 8px 16px 20px !important;
    background: #f6f5ef;
    border-bottom: 1px solid #e2e4d8;
    box-shadow: 0 16px 28px rgba(47, 50, 46, 0.08);
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-links.hero-ctas {
    display: flex !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(47, 50, 46, 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  .site-header {
    z-index: 100;
  }

  .nav-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 12px !important;
    border-bottom: 1px solid #e8eadf;
    font-size: 17px !important;
    text-align: center !important;
  }

  .nav-links a:has(+ .nav-cta),
  .nav-links .nav-cta {
    border-bottom: 0 !important;
  }

  .nav-links .nav-cta {
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px !important;
  }

  .nav-links a:not(.nav-cta) + .nav-cta,
  .nav-links .nav-cta + .nav-cta {
    margin-top: 12px;
  }

  .site-logo {
    gap: 10px !important;
  }

  .site-logo img:first-child {
    height: 40px !important;
  }
}

/* Hero: desktop shows full copy; mobile swaps to short lines */
.hero-title-short,
.hero-lede-short {
  display: none;
}

/* ----- Shared mobile rhythm ----- */
@media (max-width: 720px) {
  section[style*="padding: 72px"],
  section[style*="padding: 96px"],
  section[style*="padding: 104px"],
  div[style*="padding: 72px"],
  div[style*="padding: 96px"],
  div[style*="padding: 104px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  section[style*="padding: 72px 24px 88px"] {
    padding: 40px 16px 48px !important;
    gap: 36px !important;
  }

  section[style*="padding: 72px 24px 24px"] {
    padding: 40px 16px 16px !important;
  }

  section[style*="padding: 32px 24px 96px"] {
    padding: 20px 16px 64px !important;
    gap: 28px !important;
  }

  section[style*="padding: 96px 24px"],
  section[style*="padding: 104px 24px"],
  section[style*="padding: 96px 24px 40px"],
  section[style*="padding: 40px 24px 96px"],
  div[style*="padding: 96px 24px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  footer div[style*="padding: 72px 24px 40px"] {
    padding: 48px 16px 28px !important;
    gap: 28px !important;
  }

  /* Force single-column where min tracks are too wide */
  [style*="minmax(320px"],
  [style*="minmax(280px"],
  [style*="minmax(240px"],
  [style*="minmax(220px"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero: photos first, lean copy below */
  .hero,
  section[style*="padding: 72px 24px 88px"],
  section[style*="padding: 40px 16px 48px"] {
    flex-direction: column !important;
    gap: 22px !important;
    padding-top: 28px !important;
    padding-bottom: 36px !important;
  }

  .hero-collage {
    order: -1;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-copy {
    gap: 12px !important;
  }

  .hero-eyebrow {
    display: none;
  }

  .hero-title {
    font-size: clamp(32px, 8.5vw, 40px) !important;
    line-height: 1.05 !important;
  }

  .hero-title-full,
  .hero-lede-full {
    display: none;
  }

  .hero-title-short,
  .hero-lede-short {
    display: inline;
  }

  .hero-lede {
    font-size: 16px !important;
    line-height: 1.4 !important;
    max-width: none !important;
  }

  .hero-cta-secondary,
  .hero-meta {
    display: none !important;
  }

  /* Hero collage: keep proportions, just tighten gap */
  .hero-collage,
  div[style*="grid-template-rows: 150px 150px 150px 110px"] {
    grid-template-rows: minmax(120px, 28vw) minmax(120px, 28vw) minmax(120px, 28vw) minmax(72px, 16vw) !important;
    gap: 10px !important;
    width: 100%;
  }

  .hero-collage > div[aria-hidden="true"],
  div[style*="grid-template-rows: 150px 150px 150px 110px"] > div[aria-hidden="true"] {
    inset: 24px -12px -12px 36px !important;
    border-radius: 32px 100px 32px 100px !important;
  }

  /* CTA buttons: full width stacks */
  .hero-ctas,
  div[style*="padding-top: 4px"] > a.nav-book,
  div[style*="padding-top: 4px"] > a[href*="book.squareup.com"],
  a[style*="padding: 16px 28px"],
  a[style*="padding: 15px 26px"] {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-ctas:not(.nav-links) {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
    padding-top: 2px !important;
  }

  .hero-ctas:not(.nav-links) a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 15px 22px !important;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Meet Emily photo grid */
  div[style*="grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  div[style*="grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px"] > img:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 5;
    height: auto !important;
  }

  div[style*="grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px"] > img:last-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 10;
    height: auto !important;
  }

  /* Reviews / size cards keep readable type */
  h1 {
    font-size: clamp(34px, 9vw, 48px) !important;
  }

  h2 {
    font-size: clamp(28px, 7vw, 40px) !important;
  }

  /* Booking stepper: compact chips */
  ol[aria-label="Booking steps"] {
    gap: 8px !important;
  }

  ol[aria-label="Booking steps"] li {
    padding: 6px 12px 6px 6px !important;
    font-size: 13px !important;
  }

  /* Day picker denser on phones */
  [style*="minmax(88px"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  /* Gallery lightbox close spacing */
  [style*="aspect-ratio: 3 / 4"] {
    border-radius: 20px !important;
  }

  /* Green CTA band */
  div[style*="border-radius: 32px"][style*="background: #3F5341"] {
    border-radius: 24px !important;
    padding: 28px 20px !important;
  }
}

@media (max-width: 480px) {
  .site-logo img:last-child {
    max-width: 140px;
  }

  [style*="minmax(180px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="minmax(88px"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Before/after thumb cards: stack previews better */
  div[style*="grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px"] {
    min-height: 72px;
  }

  /* Trust strip icons */
  div[style*="padding: 36px 24px"] {
    padding: 28px 16px !important;
    gap: 20px !important;
  }
}

/* ----- Reviews carousel ----- */
.reviews-carousel {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.reviews-slide {
  min-width: 0;
  margin: 0;
  background: #f6f5ef;
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

.reviews-slide p {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  line-height: 1.45;
  color: #2f322e;
}

.reviews-slide footer {
  margin-top: auto;
  font-size: 15px;
  color: #5f635c;
  font-weight: 600;
  font-style: normal;
  font-family: Figtree, system-ui, sans-serif;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.reviews-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5d9cb;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.reviews-dot.is-active {
  background: #3f5341;
  transform: scale(1.2);
}

.reviews-dot:focus-visible {
  outline: 3px solid #3f5341;
  outline-offset: 3px;
}

/* ----- Sizes ----- */
.sizes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .sizes-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .size-tile img {
    aspect-ratio: 16 / 11 !important;
  }
}

/* ----- Services ----- */
.svc {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.svc-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px 64px;
  align-items: start;
}

.svc-eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5f635c;
  font-weight: 600;
}

.svc-title {
  margin: 0 0 14px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  color: #2f322e;
}

.svc-lede {
  margin: 0;
  max-width: 360px;
  color: #4c504a;
  font-size: 17px;
  line-height: 1.55;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #daddd2;
}

.svc-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 12px 24px;
  padding: 18px 0;
  border-bottom: 1px solid #daddd2;
}

.svc-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2f322e;
}

.svc-desc {
  margin: 0;
  color: #5f635c;
  font-size: 15px;
  line-height: 1.5;
}

.svc-cta {
  display: inline-flex;
  margin-top: 28px;
  text-decoration: none;
  background: #3f5341;
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  grid-column: 1 / -1;
  justify-self: start;
}

.svc-cta:hover {
  color: #fff;
  background: #2b3a2d;
}

@media (max-width: 860px) {
  .svc {
    padding: 28px 16px 64px;
  }

  .svc-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .svc-lede {
    max-width: none;
    font-size: 16px;
  }

  .svc-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .svc-name {
    font-size: 17px;
  }

  .svc-desc {
    font-size: 14px;
  }

  .svc-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ----- Cookies banner ----- */
.cookies-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #2f322e;
  color: #e6ebdd;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(47, 50, 46, 0.28);
  font-family: Figtree, system-ui, sans-serif;
}

.cookies-banner-text {
  margin: 0;
  flex: 1 1 240px;
  font-size: 14px;
  line-height: 1.5;
  color: #c9cfc0;
}

.cookies-banner-text a {
  color: #fff;
  font-weight: 600;
}

.cookies-banner-btn {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #e6ebdd;
  color: #2f322e;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
}

.cookies-banner-btn:hover {
  background: #fff;
}

.cookies-banner-btn:focus-visible {
  outline: 3px solid #aebba9;
  outline-offset: 3px;
}

body:has(.cookies-banner) .wa-widget {
  bottom: 110px;
}

/* ----- WhatsApp widget ----- */
.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(47, 50, 46, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(47, 50, 46, 0.2);
}

.wa-widget:focus-visible {
  outline: 3px solid #128c7e;
  outline-offset: 3px;
}

.wa-widget svg {
  display: block;
  flex: none;
}

.wa-widget-label {
  line-height: 1;
}

@media (max-width: 520px) {
  .cookies-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 12px 12px 14px;
    gap: 10px;
  }

  .cookies-banner-text {
    font-size: 12px;
    line-height: 1.4;
  }

  .cookies-banner-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  body:has(.cookies-banner) .wa-widget {
    bottom: 118px;
  }

  .wa-widget {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .wa-widget-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .g-tile img {
    transition: none !important;
  }

  .reviews-track {
    transition: none;
  }

  .wa-widget {
    transition: none;
  }
}
