/* Mobile improvements for iPhone-sized layouts */
.service-accordion > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.service-accordion > summary::-webkit-details-marker {
  display: none;
}

.service-accordion > summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.service-accordion[open] > summary::after {
  content: "-";
}

.service-accordion .service-content {
  padding-top: 12px;
}

[data-show-more-gallery] {
  display: none;
}

@media (max-width: 768px) {
  /* --- Global spacing: reduce scroll without feeling cramped --- */
  :root {
    --m-section-py: 28px;
    --m-card-p: 16px;
    --m-gap: 12px;
    --m-radius: 16px;
  }

  html {
    font-size: 16px;
  }

  body {
    padding-bottom: 76px;
  }

  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: var(--m-section-py);
    padding-bottom: var(--m-section-py);
  }

  .surface {
    padding-top: var(--m-section-py);
    padding-bottom: var(--m-section-py);
  }

  .card {
    padding: var(--m-card-p);
    border-radius: var(--m-radius);
  }

  .grid,
  .grid-2,
  .grid-3 {
    gap: var(--m-gap) !important;
  }

  /* Stack any multi-column grids */
  .grid-2,
  .grid.grid-2,
  .grid-3,
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* --- Hero: reduce height + reduce typography + prevent collage bloat --- */
  .hero {
    padding: 26px 0;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.15;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-copy {
    max-width: 100%;
  }

  /* If a hero collage exists, keep it minimal on mobile */
  .hero-collage {
    display: none !important;
  }

  /* --- Header: reduce height and simplify (sticky CTA takes over) --- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-shell {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-self: end;
    align-self: center;
    width: auto;
    max-width: none;
    z-index: auto;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    font-size: clamp(0.82rem, 3.8vw, 0.98rem);
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-tagline {
    display: none !important;
  }

  .header-meta .btn[data-book-link] {
    display: none !important;
  }

  .social-inline {
    display: none !important;
  }

  /* --- Nav: make menu easier on mobile --- */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
  }

  .site-nav-links {
    width: min(92vw, 21rem);
    min-height: min(68vh, 28rem);
    padding: 16px 14px;
    gap: 8px;
  }

  .site-nav-links a {
    min-height: 44px;
    padding: 12px;
    font-size: clamp(0.95rem, 3.8vw, 1.02rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* --- Hide repeated in-page CTA bands on mobile (sticky CTA replaces them) --- */
  .cta-band,
  .hero-actions,
  .hero .btn-group,
  .cta-row,
  .cta-buttons {
    display: none !important;
  }

  /* --- Forms: improve tap targets --- */
  input,
  select,
  textarea,
  button {
    min-height: 44px;
  }

  .form-fields .field input,
  .form-fields .field select,
  .form-fields .field textarea {
    width: 100%;
    padding: 12px 12px;
    font-size: 16px;
    border-radius: 12px;
  }

  .form-fields .btn {
    width: 100%;
  }

  /* --- Gallery grids: 2 columns on mobile for thumbnails --- */
  .image-grid,
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .gallery-tile img,
  .image-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
  }

  .mobile-gallery-crop {
    max-height: 820px;
    overflow: hidden;
  }

  .mobile-gallery-crop.is-expanded {
    max-height: none;
  }

  [data-show-more-gallery] {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }

  /* --- Footer: reduce scroll and keep tidy --- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .footer-links a {
    padding: 10px 0;
  }

  html.has-horizontal-overflow * {
    outline: 1px solid rgba(255, 0, 0, 0.15);
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: clamp(0.78rem, 3.9vw, 0.9rem);
  }

  .site-nav-links {
    width: min(94vw, 20rem);
    min-height: min(72vh, 27rem);
    padding: 14px 12px;
  }
}

/* Sticky bottom CTA bar (mobile only via media query below) */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 10px 12px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sticky-cta .btn {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    font-size: 15px;
  }
}

body.no-scroll {
  overflow: hidden;
}

.nav-close {
  display: none;
}

@media (max-width: 768px) {
  #mobileNavToggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10001;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 999px;
  }

  #mobileNavOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 9999;
  }

  #mobileNavOverlay[data-open="true"] {
    display: block;
  }

  #mobileNavPanel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 420px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 2rem) !important;
    overflow: auto;
    border-radius: 16px;
    padding: 18px;
    background: var(--card, #fff);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    display: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
  }

  #mobileNavPanel[data-open="false"] {
    display: none !important;
  }

  #mobileNavPanel[data-open="true"] {
    display: flex !important;
  }

  #mobileNavClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    min-height: 44px;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 20%);
    background: color-mix(in srgb, var(--card), white 8%);
    font-weight: 700;
  }

  #mobileNavPanel a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 14px 16px;
    font-size: 16px;
    text-align: center;
    border-radius: 12px;
  }
}

@media (min-width: 769px) {
  #mobileNavToggle {
    display: none !important;
  }

  #mobileNavOverlay {
    display: none !important;
  }

  #mobileNavPanel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0.35rem 0.5rem !important;
    border-radius: 999px !important;
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }
}
