/* Responsive layer: loaded last. Compact header up to 1100px, announcement bar fix, safe areas. */
:root{--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px)}
.site-header{padding-left:max(24px,var(--safe-l));padding-right:max(24px,var(--safe-r))}
@media (max-width:1100px){
  .desktop-nav,.header-contact{display:none!important}
  .site-header,.site-header.solid,body[data-page="home"] .site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-template-columns:none}
  body[data-page="home"] .site-header{height:58px;padding:0 max(20px,var(--safe-l))}
  .site-header.solid{height:56px;padding:0 max(22px,var(--safe-l))}
  .menu-toggle{display:flex;background:transparent;border:0;padding:8px;flex-direction:column;gap:5px;flex:none}
  .menu-toggle span{width:22px;height:1.5px;background:var(--ink)!important;transition:transform .3s}
  body.nav-open .menu-toggle span:first-child{transform:translateY(3.25px) rotate(45deg)}
  body.nav-open .menu-toggle span:last-child{transform:translateY(-3.25px) rotate(-45deg)}
  .mobile-nav{display:flex;opacity:0;pointer-events:none;transition:opacity .3s;position:fixed;z-index:19;inset:0;background:var(--paper);color:var(--ink);padding:76px max(22px,var(--safe-l)) 40px;flex-direction:column;gap:0;overflow-y:auto}
  body[data-page="home"] .mobile-nav{top:var(--ha-h,28px)}
  .mobile-nav.open{opacity:1;pointer-events:auto}
  .mobile-nav a{font-size:clamp(22px,4vw,30px);font-weight:600;letter-spacing:-.025em;padding:14px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
  .mobile-nav .mobile-booking-link{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-top:22px;padding:13px 16px;border:0;border-radius:8px;background:var(--ink);color:var(--paper);font-size:14px;font-weight:600}
  body[data-page="home"] .home-search{margin-left:auto;width:40px;height:40px;padding:0;font-size:12px}
  body[data-page="home"] .home-search:focus-within,body[data-page="home"] .home-search.search-active{position:absolute;top:100%;left:12px;right:12px;width:auto;min-height:46px;margin-top:8px;padding-left:16px;background:#fff;border:1px solid rgba(37,33,31,.14);border-radius:999px;box-shadow:0 12px 28px rgba(37,33,31,.18);z-index:45;flex-wrap:wrap}
  body[data-page="home"] .home-search:focus-within input,body[data-page="home"] .home-search.search-active input{width:auto;flex:1 1 auto;height:44px;opacity:1}
  body[data-page="home"] .search-results{position:static;flex:1 1 100%;width:100%;margin-top:4px;border-top:0;padding:7px 16px 12px;box-shadow:none;max-height:60vh;overflow-y:auto}
}
/* Short landscape screens: never let content depend on tall viewports */
@media (max-height:540px) and (orientation:landscape){
  .contact-page{display:block;min-height:0}
  .contact-page-copy,.contact-panel{padding:88px max(24px,var(--safe-l)) 40px}
  .contact-page-copy{min-height:0}
  .contact-page h1{font-size:clamp(40px,8vw,72px);margin:20px 0}
  .contact-details{margin-top:28px;flex-wrap:wrap;gap:20px 40px}
  .page-hero{min-height:0}
  .service-lightbox figure{padding-top:44px;padding-bottom:60px}
}
/* Very large screens: keep long-form content readable */
@media (min-width:1800px){
  .section-pad{padding-left:max(5vw,calc((100vw - 1700px)/2));padding-right:max(5vw,calc((100vw - 1700px)/2))}
}

/* Very tall wrappers must never wait on a scroll trigger */
.service-showcase.reveal,.process.reveal,.contact-panel.reveal,.contact-page-copy.reveal{opacity:1;transform:none}

/* Contact page: stack below 1100px so the form is never pushed off-screen */
.contact-page > *{min-width:0}
.contact-details{flex-wrap:wrap;gap:24px 48px}
@media (max-width:1100px){
  .contact-page{display:block;min-height:0}
  .contact-page-copy,.contact-panel{padding:100px max(24px,5vw) 55px}
  .contact-page-copy{min-height:0}
  .contact-details{margin-top:36px}
  .contact-page h1{font-size:clamp(48px,10vw,96px)}
}

/* Footer social links */
.footer-end{display:grid;gap:14px;justify-items:start;align-content:start}
.footer-social,.site-footer .footer-social{display:flex;flex-wrap:wrap;gap:6px 18px}
.footer-social a{text-decoration:none;color:inherit;font-weight:600;letter-spacing:.02em}
.footer-social a:hover{opacity:.7}
.seo-faq p a{text-decoration:underline;text-underline-offset:3px;color:inherit;font-weight:600}

/* Contact details: let the three items wrap instead of overflowing their column */
.contact-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:22px 32px}
.contact-detail{min-width:0;overflow-wrap:anywhere}

/* Swipeable lightbox */
.service-lightbox figure{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.service-lightbox figure:active{cursor:grabbing}
.service-lightbox figure img{-webkit-user-drag:none;user-drag:none;will-change:transform;pointer-events:none}
.gallery-thumbnails{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.gallery-thumbnails button{scroll-snap-align:center}
@media (pointer:coarse){.gallery-prev,.gallery-next{opacity:.55;width:36px!important;height:36px!important}}

/* Home: service tags with pictures */
.svc-tags{gap:10px;justify-content:center}
.svc-tags a{display:inline-flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border-radius:999px;font-weight:500}
.svc-tags img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;display:block}
.svc-tags span{white-space:nowrap}
@media (max-width:520px){
  .svc-tags{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .svc-tags a{padding:5px 10px 5px 5px;gap:8px;min-width:0}
  .svc-tags img{width:38px;height:38px}
  .svc-tags span{white-space:normal;line-height:1.2;font-size:13px}
  .svc-tags a:last-child:nth-child(odd){grid-column:1 / -1;justify-self:center}
}

/* ==========================================================================
   Home search bar: colour + layout fix (light and dark mode)
   --------------------------------------------------------------------------
   Problem: at <=1100px the expanded search pill was forced to a white
   background, but in dark mode its text colour is near-white, so the typed
   text was invisible. Also, the pill kept a fixed height, so the results
   list spilled out below it onto a translucent dark panel with the page text
   showing through. These rules load last, so they win over pro.css.
   ========================================================================== */

/* Typed text and caret always use the theme ink colour. */
body[data-page="home"] .home-search input {
  color: var(--home-ink);
  caret-color: var(--home-accent);
}

/* Results list: solid background so page text never shows through. */
body[data-page="home"] .search-results { background: #fff; }

@media (max-width: 1100px) {
  /* Let the expanded pill grow to hold the results list. */
  body[data-page="home"] .home-search:focus-within,
  body[data-page="home"] .home-search.search-active {
    height: auto;
    overflow: hidden;
    background: #fff;
    color: var(--home-ink);
  }
  body[data-page="home"] .home-search.has-results { border-radius: 24px; }
  /* Results sit inside the pill, so they share its background. */
  body[data-page="home"] .search-results { background: transparent; }
}

@media (prefers-color-scheme: dark) {
  body[data-page="home"] .search-results { background: #211e1d; }

  body[data-page="home"] .home-search:focus-within,
  body[data-page="home"] .home-search.search-active {
    background: #2b2422;
    border-color: rgba(245, 239, 234, .22);
    color: var(--home-ink);
  }
  body[data-page="home"] .home-search input { color: #f5efea; }
  body[data-page="home"] .home-search input::placeholder { color: #aa9f99; }
  body[data-page="home"] .home-search button { color: #f5efea; }

  @media (max-width: 1100px) {
    body[data-page="home"] .search-results { background: transparent; }
    body[data-page="home"] .home-search.has-results .search-results {
      border-top: 1px solid rgba(245, 239, 234, .16);
    }
  }
}

/* ==========================================================================
   Home announcement bar: fluid, wraps instead of truncating, any aspect ratio
   --------------------------------------------------------------------------
   Was: fixed 8-9px type, white-space:nowrap + overflow:hidden, so on narrow or
   split-screen widths the email/phone were clipped. Now: fluid type, content
   is split into items that wrap onto a second line, height follows content,
   and safe-area insets are respected (notches / landscape phones / foldables).
   ========================================================================== */
body[data-page="home"] .home-announcement{
  display:block;
  height:auto;
  min-height:0;
  overflow:visible;
  white-space:normal;
  padding:.55em max(14px,var(--safe-r)) .55em max(14px,var(--safe-l));
  font-size:clamp(9.5px,.28vw + 8.4px,12px);
  line-height:1.5;
  letter-spacing:.07em;
  text-align:center;
  text-wrap:balance;
}
body[data-page="home"] .home-announcement .ha-inner{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:.1em 2.2em;
  max-width:1700px;
  margin-inline:auto;
}
body[data-page="home"] .home-announcement .ha-item,
body[data-page="home"] .home-announcement .ha-tag{min-width:0;overflow-wrap:anywhere}
/* Bullet separators (wide screens, where everything sits on one row) */
body[data-page="home"] .home-announcement .ha-inner > * + *{position:relative}
body[data-page="home"] .home-announcement .ha-inner > * + *::before{
  content:"\2022";
  position:absolute;
  left:-1.25em;
  width:.3em;
  text-align:center;
  opacity:.75;
  text-decoration:none;
}
/* Narrower than a one-line fit: tagline gets its own line, details wrap beneath */
@media (max-width:719px){
  body[data-page="home"] .home-announcement .ha-tag{flex:1 1 100%}
  body[data-page="home"] .home-announcement .ha-inner{gap:.15em 1.4em}
  body[data-page="home"] .home-announcement .ha-inner > * + *::before{display:none}
}
/* Very small phones / split-screen: tighter tracking so nothing breaks mid-word */
@media (max-width:360px){
  body[data-page="home"] .home-announcement{letter-spacing:.04em}
}
/* Short landscape screens: keep the bar slim */
@media (max-height:500px) and (orientation:landscape){
  body[data-page="home"] .home-announcement{padding-top:.35em;padding-bottom:.35em}
}
/* Ultra-wide */
@media (min-width:1800px){
  body[data-page="home"] .home-announcement{font-size:13px}
}

/* Header brand: single "InspiredHome" wordmark + ® (matches the home page on every page) */
.header-brand{gap:0;font-size:17px;letter-spacing:-.055em}
.header-brand span{font-weight:400}
.header-brand i{font-style:normal;color:var(--home-accent,#b47058);font-size:8px;vertical-align:top;margin-left:2px}

/* Gallery zoom controls */
.gallery-zoom{position:absolute;z-index:2;top:20px;left:24px;display:flex;align-items:center;gap:4px;padding:3px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(0,0,0,.3);color:#fff}
.gallery-zoom button{display:grid;place-items:center;min-width:36px;height:36px;padding:0 6px;border:0;border-radius:999px;color:#fff;background:transparent;font:inherit;font-size:20px;line-height:1;cursor:pointer}
.gallery-zoom button:hover{background:rgba(255,255,255,.16)}
.gallery-zoom button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.gallery-zoom .zoom-reset{font-size:12px;font-weight:600;letter-spacing:.02em;min-width:52px}
.service-lightbox figure img{transform-origin:center center}
.service-lightbox.is-zoomed figure{cursor:grab}
@media (max-width:640px){
  .gallery-zoom{top:12px;left:12px}
  .gallery-zoom button{min-width:32px;height:32px}
  .gallery-zoom .zoom-reset{min-width:46px}
}
