/* Our Home Page Specific Styles */

/* Hero Section Override for Our Home Page */
.hero-overlay {
  background: linear-gradient(to right, #12A89C 0%, rgba(18,168,156,0.7) 40%, rgba(18,168,156,0.15) 70%, rgba(18,168,156,0) 100%);
  opacity: 1;
  z-index: 2;
}

/* Our Home hero — lock bg/overlay to hero container (overrides shared min-height: 100vh) */
.hero {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-bg,
.hero-overlay {
  min-height: 0;
  height: 100%;
  width: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center center;
}

#our-home {
  scroll-margin-top: clamp(100px, 12vh, 150px);
}

/* Image Gallery Section
   Stay in-flow (width 100%, no 100vw breakout). html/body use overflow-x: hidden,
   so left:50% + margin-left:-50vw can paint the three cards off-screen while the
   85vh section still occupies space — the carousel looks like empty white.
   Side cards still peek; overflow clips them inside this section instead. */
.image-gallery-section {
  background-color: #fff;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 85vh;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  position: relative;
}

.gallery-card-left,
.gallery-card-right {
  width: 35.75vw;
  height: 60vh;
  filter: blur(3px);
  opacity: 0.7;
  transform: scale(0.8);
  z-index: 1;
}

.gallery-card-main {
  width: 70vw;
  height: 75vh;
  position: relative;
  transform: scale(1);
  margin: 0 -2vw;
  z-index: 2;
  border-radius: 24px;
}

/* The frame crops the photograph (object-fit: cover) and the CMS focal point
   decides what stays in view while it does. --space-focus-x / --space-focus-y
   are written onto each <img> by ourhome.php on the server, so the first paint
   is already correct; the fallbacks keep the historic centre crop for any
   image rendered without them. */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--space-focus-x, 50%) var(--space-focus-y, 50%);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2vw;
  pointer-events: none;
  z-index: 10;
}

.gallery-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(13, 148, 138, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  color: white;
}

.gallery-nav-btn:hover {
  background: rgba(13, 148, 138, 1);
  transform: scale(1.1);
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
}



/* Comfort and Connection Section */
.comfort-section {
  padding: 80px 0;
  background: #D2FFFB;
  scroll-margin-top: clamp(100px, 12vh, 150px);
}

.comfort-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.comfort-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.comfort-content h2 {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Amatic SC', cursive;
  font-size: 3rem;
  color: #0D948A;
  margin-bottom: 24px;
  line-height: 1.2;
}

.comfort-content p:first-of-type {
  grid-column: 1;
  grid-row: 2;
}

.comfort-content p:nth-of-type(2) {
  grid-column: 1;
  grid-row: 3;
}

.comfort-content .comfort-image {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
}

.comfort-content p:last-of-type {
  grid-column: 1;
  grid-row: 4;
}

.comfort-section .gallery-btn {
  grid-column: 1;
  grid-row: 5;
}

/*
 * Body copy: match site standard content typography (.zain-font / Get to Know Us).
 * Previously inherited system UI font and used gray #666 instead of near-black #222.
 */
.comfort-section .comfort-content p {
  font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 16px;
}

.gallery-btn {
  background: #12A89C;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 24px;
  text-decoration: none;
  display: inline-block;
}

.gallery-btn:hover {
  background: #0D948A;
}

.comfort-image {
  position: relative;
}

.comfort-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.comfort-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Each slide carries its own focal point, set on the element by ourhome.php.
     The comfort carousel never swaps a src, so this is the only place the
     value has to be applied. */
  object-position: var(--space-focus-x, 50%) var(--space-focus-y, 50%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.comfort-img.active {
  opacity: 1;
}

.comfort-indicators {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The indicators are real <button> elements: they change what is shown, so
   they must be reachable and operable from the keyboard. The reset below keeps
   the dot exactly as it looked when it was a <div>. */
.indicator {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.indicator.active {
  background: #0D948A;
}

.indicator:hover {
  background: #9aa5a4;
}

.indicator.active:hover {
  background: #0D948A;
}

/* A visible focus ring, offset so it clears the 12px dot rather than sitting
   on top of it. */
.indicator:focus-visible {
  outline: 3px solid #0D948A;
  outline-offset: 3px;
}

.gallery-nav-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ── CMS empty states ──────────────────────────────────────────────────────
   Shown when an administrator has published no image for a carousel. The
   carousel component is replaced by a short explanatory line; the rest of the
   page is unaffected, and no empty frame or broken image is left behind. */
.image-gallery-section--empty {
  min-height: auto;
  padding: 48px 20px;
}

.gallery-empty,
.comfort-empty {
  margin: 0;
  padding: 28px 24px;
  border: 1px dashed #c9d3d2;
  border-radius: 16px;
  background: #f6f9f9;
  color: #4a5a59;
  font-size: 1.05rem;
  text-align: center;
  max-width: 640px;
}

.comfort-image--empty {
  margin-top: 24px;
}

/* Movement is a decoration here, not information: a visitor who has asked for
   reduced motion gets the first slide, held still. The arrows and indicators
   still work - the JavaScript simply starts no timer. */
@media (prefers-reduced-motion: reduce) {
  .comfort-img,
  .gallery-card,
  .gallery-img {
    transition: none !important;
  }
}

/* Visit Us Section */
.visit-section {
  padding: 80px 0;
  background: #fff;
  scroll-margin-top: clamp(100px, 12vh, 150px);
}

.visit-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 0 24px;
}

.visit-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  height: 600px;
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transition: none !important;
}

.visit-content h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 3rem;
  color: #0D948A;
  margin-bottom: 24px;
  line-height: 1.2;
}

.visit-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
}

.contact-details {
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0D948A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: #fff;
}

.contact-item span {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

.visit-section .contact-details a {
  color: #333;
  font-size: inherit;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.visit-section .contact-details a:hover,
.visit-section .contact-details a:focus-visible {
  color: #0c9d92;
  text-decoration: none;
}

.visit-section .contact-details a:focus-visible {
  outline: 2px solid rgba(13, 148, 138, 0.4);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero CTA Button */
.hero-cta {
  background: #FF9801;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 24px;
}

.hero-cta:hover {
  background: #ffb300;
}

/* ============== OUR SPACE HERO CONTENT RESPONSIVE FIX ============== */
/* Desktop: original left alignment. Tablet/mobile: centered. */

.hero-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 18px);
  width: 100%;
}

.hero-content h1 {
  text-wrap: balance;
  margin: 0;
}

.hero-content p {
  margin: 0;
  max-width: 52ch;
}

.hero-content p:last-of-type {
  margin-bottom: 0;
}

.hero-cta {
  align-self: flex-start;
  margin-top: clamp(8px, 1.2vh, 16px);
  margin-bottom: 0;
  white-space: nowrap;
}

/* Desktop — original left placement */
@media (min-width: 1025px) {
  .hero-content {
    max-width: min(600px, 44vw);
    margin-left: clamp(28px, 7vw, 96px);
    margin-right: clamp(20px, 4vw, 48px);
    padding-bottom: clamp(24px, 4vh, 40px);
  }

  .hero-content h1 {
    font-size: clamp(2.75rem, 1.6rem + 1.8vw, 3.2rem);
    line-height: 1.1;
  }

  .hero-content p {
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.12rem);
    line-height: 1.5;
  }

  .hero-cta {
    padding: clamp(14px, 1.2vh, 16px) clamp(28px, 2.5vw, 32px);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  }
}

/* Tablet landscape — center content */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(720px, 88vw) !important;
    padding: 0 24px clamp(16px, 2.5vh, 24px) !important;
    text-align: center !important;
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(2.15rem, 1.6rem + 1.4vw, 2.5rem) !important;
    line-height: 1.12 !important;
    text-align: center !important;
  }

  .hero-content p {
    font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.05rem) !important;
    line-height: 1.5 !important;
    max-width: 46ch;
    text-align: center !important;
  }

  .hero-cta {
    align-self: center;
    margin-top: clamp(12px, 1.5vh, 18px);
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Tablet portrait — center content */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    padding-top: clamp(104px, 11vh, 124px);
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-content {
    margin: 0 auto !important;
    max-width: min(520px, 88vw) !important;
    padding-bottom: clamp(8px, 1.5vh, 16px) !important;
    text-align: center !important;
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.45rem) !important;
    line-height: 1.14 !important;
    text-align: center !important;
  }

  .hero-content p {
    font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.05rem) !important;
    line-height: 1.5 !important;
    max-width: 48ch;
    text-align: center !important;
  }

  .hero-cta {
    align-self: center;
    margin-top: clamp(14px, 2vh, 20px);
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Mobile — center content */
@media (max-width: 768px) {
  .hero-content {
    margin: 0 auto !important;
    max-width: min(92vw, 480px) !important;
    padding-bottom: clamp(12px, 2.5vh, 20px) !important;
    text-align: center !important;
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 1.1rem + 3.6vw, 2.3rem) !important;
    line-height: 1.16 !important;
    text-align: center !important;
  }

  .hero-content p {
    font-size: clamp(0.9rem, 0.84rem + 0.5vw, 1.02rem) !important;
    line-height: 1.48 !important;
    max-width: 44ch;
    text-align: center !important;
  }

  .hero-cta {
    align-self: center;
    padding: clamp(12px, 1.1vh, 14px) clamp(22px, 5vw, 28px);
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1rem);
    margin-top: clamp(12px, 1.8vh, 18px);
  }
}

@media (max-width: 480px) {
  .hero-content {
    margin: 0 auto !important;
    max-width: min(94vw, 400px) !important;
  }

  .hero-content h1 {
    font-size: clamp(1.55rem, 1rem + 4vw, 1.95rem) !important;
    line-height: 1.15 !important;
  }

  .hero-content p {
    font-size: clamp(0.86rem, 0.82rem + 0.45vw, 0.94rem) !important;
    line-height: 1.45 !important;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.95rem;
    margin-top: clamp(10px, 1.6vh, 16px);
  }
}

/* Narrow phones — 384px and 360px widths */
@media (max-width: 390px) {
  .hero-content {
    margin: 0 auto !important;
    max-width: min(94vw, 360px) !important;
    gap: clamp(8px, 1.4vh, 14px);
  }

  .hero-content h1 {
    font-size: clamp(1.45rem, 1.1rem + 3.8vw, 1.65rem) !important;
    line-height: 1.14 !important;
  }

  .hero-content p {
    font-size: clamp(0.84rem, 0.8rem + 0.35vw, 0.9rem) !important;
    line-height: 1.42 !important;
  }

  .hero-cta {
    padding: 12px 22px;
    font-size: 0.92rem;
    margin-top: clamp(10px, 1.5vh, 14px);
  }
}

@media (max-width: 360px) {
  .hero-content {
    margin: 0 auto !important;
    max-width: min(94vw, 340px) !important;
    gap: 10px;
    padding-bottom: 10px !important;
  }

  .hero-content h1 {
    font-size: clamp(1.38rem, 1.05rem + 3.5vw, 1.52rem) !important;
    line-height: 1.13 !important;
  }

  .hero-content p {
    font-size: clamp(0.82rem, 0.78rem + 0.3vw, 0.88rem) !important;
    line-height: 1.4 !important;
  }

  .hero-cta {
    padding: 11px 20px;
    font-size: 0.9rem;
    margin-top: 12px;
  }
}

/* ============== OUR HOME HERO RESPONSIVE ============== */

/* Tablet and below: reinforce bg/overlay bounds */
@media (max-width: 1024px) {
  .hero-bg,
  .hero-overlay {
    min-height: 0 !important;
    height: 100% !important;
    width: 100%;
  }

  .hero-bg {
    object-fit: cover !important;
  }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    min-height: clamp(480px, 62vh, 640px);
    padding-top: 130px;
    padding-bottom: 60px;
    border-radius: 0 0 32px 32px;
    align-items: center;
    justify-content: center;
  }

  .hero-bg,
  .hero-overlay {
    border-radius: 0 0 32px 32px;
  }

  .hero-bg {
    object-position: center center !important;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      #12A89C 0%,
      rgba(18, 168, 156, 0.78) 42%,
      rgba(18, 168, 156, 0.22) 68%,
      rgba(18, 168, 156, 0) 100%
    ) !important;
  }
}

/* Mobile / tablet portrait */
@media (max-width: 768px) {
  .hero {
    z-index: 999 !important;
    min-height: clamp(400px, 60vh, 540px);
    padding-top: 92px;
    padding-bottom: 44px;
    border-radius: 0 0 24px 24px;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      120deg,
      #12A89C 0%,
      rgba(18, 168, 156, 0.88) 52%,
      rgba(18, 168, 156, 0.35) 100%
    );
  }

  .hero-bg,
  .hero-overlay {
    border-radius: 0 0 24px 24px;
  }

  .hero-bg {
    object-position: center center !important;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      #12A89C 0%,
      rgba(18, 168, 156, 0.85) 48%,
      rgba(18, 168, 156, 0.28) 75%,
      rgba(18, 168, 156, 0) 100%
    ) !important;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: clamp(360px, 56vh, 480px);
    padding-top: 84px;
  }

  .hero-bg {
    object-position: center 40% !important;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: clamp(340px, 54vh, 450px);
    padding-top: 80px;
  }

  .hero-bg {
    object-position: center 38% !important;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: clamp(320px, 52vh, 420px);
    padding-top: 76px;
  }

  .hero-bg {
    object-position: center 36% !important;
  }
}

/* Our Space hero content — bottom/side clearance (cascade after bg lock) */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: clamp(56px, 7vh, 80px) !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    align-items: center !important;
    padding-bottom: clamp(40px, 6vh, 52px) !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: clamp(44px, 7vh, 56px) !important;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-bottom: clamp(48px, 8vh, 60px) !important;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-bottom: clamp(52px, 8.5vh, 64px) !important;
  }
}

/* OUR SPACE HERO — tablet/mobile center content only (desktop left preserved above) */

@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    align-items: center !important;
    justify-content: center !important;
    padding-top: clamp(120px, 15vh, 138px) !important;
    padding-bottom: clamp(52px, 7vh, 68px) !important;
  }

  .hero-content {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 24px clamp(8px, 1.5vh, 16px) !important;
    max-width: min(720px, 88vw) !important;
    gap: clamp(12px, 1.8vh, 18px);
    align-items: center;
  }

  .hero-content h1,
  .hero-content p {
    text-align: center !important;
  }

  .hero-content p {
    margin-bottom: 0 !important;
  }

  .hero-cta {
    align-self: center;
    margin-top: clamp(12px, 1.8vh, 18px) !important;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: clamp(100px, 12vh, 116px) !important;
    padding-bottom: clamp(42px, 6.5vh, 58px) !important;
  }

  .hero-content {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: min(92vw, 480px) !important;
    padding: 0 16px !important;
    gap: clamp(10px, 1.6vh, 16px);
    width: 100%;
    align-items: center;
  }

  .hero-content h1 {
    text-align: center !important;
    font-size: clamp(1.68rem, 1.1rem + 3.2vw, 2.3rem) !important;
    line-height: 1.14 !important;
  }

  .hero-content p {
    text-align: center !important;
    font-size: clamp(0.9rem, 0.84rem + 0.45vw, 1.02rem) !important;
    line-height: 1.5 !important;
    max-width: 44ch;
    margin-bottom: 0 !important;
  }

  .hero-cta {
    align-self: center;
    margin-top: clamp(10px, 1.6vh, 16px) !important;
    padding: clamp(12px, 1.2vh, 14px) clamp(22px, 5vw, 30px) !important;
    font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1rem) !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: clamp(92px, 11.5vh, 104px) !important;
    padding-bottom: clamp(38px, 6vh, 50px) !important;
  }

  .hero-content {
    margin: 0 auto !important;
    max-width: min(94vw, 400px) !important;
    gap: clamp(9px, 1.5vh, 14px);
  }

  .hero-content h1 {
    font-size: clamp(1.55rem, 1rem + 4vw, 1.9rem) !important;
  }

  .hero-content p {
    font-size: clamp(0.88rem, 0.82rem + 0.4vw, 0.96rem) !important;
    line-height: 1.48 !important;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-top: clamp(88px, 11vh, 98px) !important;
    padding-bottom: clamp(36px, 5.8vh, 48px) !important;
  }

  .hero-content {
    margin: 0 auto !important;
    max-width: min(94vw, 360px) !important;
  }

  .hero-content h1 {
    font-size: clamp(1.48rem, 1.08rem + 3.5vw, 1.68rem) !important;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-top: clamp(84px, 10.5vh, 94px) !important;
    padding-bottom: clamp(34px, 5.5vh, 44px) !important;
  }

  .hero-content {
    margin: 0 auto !important;
    max-width: min(94vw, 340px) !important;
    gap: clamp(8px, 1.4vh, 12px);
  }

  .hero-content h1 {
    font-size: clamp(1.4rem, 1.02rem + 3.8vw, 1.58rem) !important;
    line-height: 1.13 !important;
  }

  .hero-content p {
    font-size: clamp(0.86rem, 0.8rem + 0.35vw, 0.92rem) !important;
  }

  .hero-cta {
    padding: 11px 22px !important;
    font-size: 0.92rem !important;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .gallery-card-main {
    transform: none;
    width: 100%;
    max-width: 400px;
  }
  
  .gallery-card-left,
  .gallery-card-right {
    width: 100%;
    max-width: 300px;
  }
  .comfort-container,
  .visit-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .comfort-indicators {
    display: none;
  }
}

@media (max-width: 768px) {
  .image-gallery-section,
  .comfort-section,
  .visit-section {
    padding: 60px 0;
  }
  
  .gallery-container,
  .comfort-container,
  .visit-container {
    padding: 0 16px;
  }
  .comfort-content h2,
  .visit-content h2 {
    font-size: 2.5rem;
  }
  .comfort-img {
    height: 300px;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-card-main {
    height: 240px;
  }
  
  .gallery-card-left,
  .gallery-card-right {
    height: 160px;
  }
  .comfort-content h2,
  .visit-content h2 {
    font-size: 2rem;
  }
  .comfort-img {
    height: 250px;
  }
}

/* ============== OUR SPACE IMAGE GALLERY RESPONSIVE CONTROLS FIX ============== */
/* Tablet/mobile: vertical stack + top/bottom nav. Desktop left/right unchanged. */

@media (max-width: 1024px) {
  .image-gallery-section .gallery-container {
    flex-direction: column;
    gap: clamp(12px, 2vh, 16px);
    height: auto;
  }

  .image-gallery-section .gallery-card-main {
    transform: none;
    width: 100%;
    max-width: min(400px, 92vw);
    height: clamp(240px, 38vh, 360px);
    margin: 0;
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    width: 100%;
    max-width: min(300px, 80vw);
    height: clamp(130px, 20vh, 190px);
    transform: scale(0.92);
  }

  .image-gallery-section .gallery-nav {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: auto;
    height: 100%;
    transform: translateX(-50%);
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 1.8vh, 14px) 0;
    pointer-events: none;
  }

  .image-gallery-section .gallery-nav-btn {
    min-width: 44px;
    min-height: 44px;
    width: clamp(44px, 11vw, 52px);
    height: clamp(44px, 11vw, 52px);
    pointer-events: auto;
  }

  .image-gallery-section .gallery-nav-btn:hover {
    transform: scale(1.08);
  }

  .image-gallery-section .gallery-nav-left svg {
    transform: rotate(-90deg);
  }

  .image-gallery-section .gallery-nav-right svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .image-gallery-section {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding: clamp(28px, 5vh, 44px) 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .image-gallery-section .gallery-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(12px, 3vw, 16px);
    box-sizing: border-box;
  }

  .image-gallery-section .gallery-card-main {
    max-width: min(400px, 94vw);
    height: clamp(220px, 40vw, 300px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    max-width: min(280px, 82vw);
    height: clamp(110px, 24vw, 165px);
  }
}

@media (max-width: 480px) {
  .image-gallery-section {
    padding: clamp(22px, 4vh, 32px) 0;
  }

  .image-gallery-section .gallery-container {
    gap: clamp(8px, 1.6vh, 12px);
  }

  .image-gallery-section .gallery-card-main {
    max-width: min(360px, 92vw);
    height: clamp(200px, 52vw, 240px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    max-width: min(250px, 76vw);
    height: clamp(96px, 22vw, 140px);
    transform: scale(0.9);
  }

  .image-gallery-section .gallery-nav {
    padding: clamp(6px, 1.2vh, 10px) 0;
  }

  .image-gallery-section .gallery-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .image-gallery-section .gallery-nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 390px) {
  .image-gallery-section {
    padding: clamp(20px, 3.5vh, 28px) 0;
  }

  .image-gallery-section .gallery-container {
    gap: 8px;
    padding: 0 14px;
  }

  .image-gallery-section .gallery-card-main {
    height: clamp(190px, 50vw, 220px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    height: clamp(88px, 20vw, 120px);
  }

  .image-gallery-section .gallery-nav {
    padding: 5px 0;
  }
}

/* OUR SPACE IMAGE GALLERY ARROW + TABLET SIZE REFINEMENT */
/* Left chevron → rotate(90deg) = UP; right chevron → rotate(90deg) = DOWN (CSS Y-down coords) */

@media (max-width: 1024px) {
  .image-gallery-section .gallery-nav-left svg {
    transform: rotate(90deg);
  }

  .image-gallery-section .gallery-nav-right svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .image-gallery-section .gallery-card-main {
    width: min(84vw, 560px);
    max-width: min(84vw, 560px);
    height: clamp(300px, 42vh, 400px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    max-width: min(68vw, 380px);
    height: clamp(140px, 20vh, 200px);
  }
}

@media (max-width: 768px) {
  .image-gallery-section .gallery-card-main {
    width: min(92vw, 520px);
    max-width: min(92vw, 520px);
    height: clamp(280px, 52vw, 380px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    max-width: min(78vw, 340px);
    height: clamp(120px, 22vw, 170px);
  }
}

@media (max-width: 480px) {
  .image-gallery-section .gallery-card-main {
    width: 100%;
    max-width: min(360px, 92vw);
    height: clamp(200px, 52vw, 240px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    max-width: min(250px, 76vw);
    height: clamp(96px, 22vw, 140px);
  }
}

@media (max-width: 390px) {
  .image-gallery-section .gallery-card-main {
    width: 100%;
    max-width: min(340px, 90vw);
    height: clamp(190px, 50vw, 220px);
  }

  .image-gallery-section .gallery-card-left,
  .image-gallery-section .gallery-card-right {
    max-width: min(230px, 74vw);
    height: clamp(88px, 20vw, 120px);
  }
}

/* OUR SPACE IMAGE GALLERY MAIN IMAGE VISIBILITY FIX */
/* Tablet/mobile: landscape aspect-ratio + auto height prevents cover side-cropping */

@media (max-width: 1024px) {
  .image-gallery-section .gallery-card-main {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .image-gallery-section .gallery-card-main .gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Was a hardcoded "center center", which silently overrode the CMS focal
       point on every tablet and phone. The 16:9 frame here crops differently
       from the desktop cards, which is exactly when the saved focal point
       matters most. */
    object-position: var(--space-focus-x, 50%) var(--space-focus-y, 50%);
  }
}


/*lll*/
/* Mental Health Section */
.mental-health-section {
  background: #FFFFFF;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.mental-health-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.mental-health-section,
.mental-illness-section,
.cafs-help-section,
.we-provide-section,
.book-appointment-section,
.our-therapists-section {
  position: relative !important;
  z-index: 5 !important;
}

.mental-health-content {
  flex: 1;
  text-align: center;
  padding: 0 60px;
  z-index: 10;
  position: relative;
}
.mental-health-content {
  text-align: center;
}

.mental-health-content h2 {
  font-family: 'Zeyada', cursive;
  font-size: 3.5rem;
  color: #12A89C;
  margin-bottom: 24px;
  line-height: 1.2;
}

.mental-health-content p {
  font-family: 'Zain', cursive;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .mental-health-container,
  .mental-illness-container,
  .cafs-help-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
} 

@media (max-width: 768px) {
  .mental-health-container,
  .mental-illness-container,
  .cafs-help-container,
  .we-provide-container,
  .book-appointment-container,
  .our-therapists-container {
    padding: 0 24px;
  }
  
  .mental-health-content h2,
  .mental-illness-content h2,
  .cafs-help-content h2,
  .our-therapists-container h2 {
    font-size: 2.5rem;
  }
}

.mental-health-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.3s;
}

.mental-health-content.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Additional visual enhancements */
.mental-health-section,
.mental-illness-section,
.cafs-help-section,
.we-provide-section,
.book-appointment-section,
.our-therapists-section {
  position: relative;
  overflow: hidden;
}

/* Parallax-like effect for background elements */
.mental-health-section::before,
.mental-illness-section::before,
.cafs-help-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(18, 168, 156, 0.02) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s ease-out;
  pointer-events: none;
  z-index: 1;
}

.mental-health-section.animated::before,
.mental-illness-section.animated::before,
.cafs-help-section.animated::before {
  transform: translateX(100%);
}

/* Comprehensive Responsive Design for Services Page */

/* Large Desktop */
@media (max-width: 1600px) {
  .mental-health-container{
    max-width: 95vw;
    padding: 0 20px;
  }
   
  .mental-health-content {
    width: 50%;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .mental-health-container{
    max-width: 98vw;
    padding: 0 16px;
  }
  
  
  .mental-health-content {
    width: 55%;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .mental-health-content p{
    font-size: 1rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .mental-health-container{
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }
  

  .mental-health-content {
    width: 100%;
    order: 1;
  }
  .section-title {
    font-size: 2.4rem;
  }
}
/*----*/
/* Mobile Large */
@media (max-width: 768px) {
  .mental-health-section{
    padding: 48px 0 32px 0;
  }
  
  .mental-health-container{
    padding: 0 12px;
    gap: 24px;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  
  .mental-health-content p,
  .mental-illness-content p,
  .how-can-cafs-help-content p,
  .we-provide-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
}

/* Mobile Medium */
@media (max-width: 480px) {
  .mental-health-section{
    padding: 32px 0 24px 0;
  }
  
  .mental-health-container{
    padding: 0 8px;
    gap: 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .mental-health-content p{
    font-size: 0.9rem;
    line-height: 1.5;
  }
}


/* Mobile Small */
@media (max-width: 360px) {
  .mental-health-container{
    padding: 0 6px;
    gap: 16px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .mental-health-content p{
    font-size: 0.85rem;
  }

}

/* ============== OUR SPACE MENTAL-HEALTH-SECTION RESPONSIVE FIX ============== */
/* Intro block only — tighter vertical rhythm into image-gallery-section */

.mental-health-section {
  min-height: 0;
  align-items: flex-start;
  padding: clamp(12px, 1.8vh, 20px) 0 clamp(6px, 1vh, 12px);
}

.mental-health-section .mental-health-content {
  width: 100%;
  max-width: min(720px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 60px);
  box-sizing: border-box;
}

.mental-health-section .mental-health-content h2,
.mental-health-section .section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.15;
}

.mental-health-section .mental-health-content p {
  font-size: clamp(0.88rem, 0.82rem + 0.35vw, 1.2rem);
  line-height: 1.55;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.mental-health-section .mental-health-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .mental-health-section {
    padding: clamp(10px, 1.5vh, 16px) 0 clamp(4px, 0.8vh, 10px);
  }

  .mental-health-section .mental-health-content {
    max-width: min(640px, 90vw);
    padding: 0 clamp(20px, 4.5vw, 40px);
  }

  .mental-health-section .mental-health-content h2,
  .mental-health-section .section-title {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .mental-health-section {
    padding: clamp(8px, 1.2vh, 14px) 0 clamp(4px, 0.7vh, 8px);
  }

  .mental-health-section .mental-health-content {
    max-width: min(580px, 92vw);
    padding: 0 clamp(20px, 5vw, 32px);
  }

  .mental-health-section .mental-health-content h2,
  .mental-health-section .section-title {
    font-size: clamp(1.65rem, 1.15rem + 2.2vw, 2.25rem);
    margin-bottom: 0;
  }

  .mental-health-section .mental-health-content p {
    font-size: clamp(0.9rem, 0.84rem + 0.3vw, 0.98rem);
    line-height: 1.5;
    margin-bottom: clamp(8px, 1vh, 12px);
  }
}

@media (max-width: 480px) {
  .mental-health-section {
    padding: clamp(8px, 1.1vh, 12px) 0 clamp(4px, 0.6vh, 8px);
  }

  .mental-health-section .mental-health-content {
    padding: 0 clamp(18px, 5vw, 28px);
  }

  .mental-health-section .mental-health-content h2,
  .mental-health-section .section-title {
    font-size: clamp(1.5rem, 1.1rem + 2.5vw, 1.85rem);
    margin-bottom: 0;
  }

  .mental-health-section .mental-health-content p {
    font-size: clamp(0.86rem, 0.82rem + 0.25vw, 0.92rem);
    line-height: 1.48;
    margin-bottom: clamp(6px, 0.9vh, 10px);
  }
}

@media (max-width: 390px) {
  .mental-health-section {
    padding: clamp(8px, 1vh, 12px) 0 clamp(4px, 0.6vh, 8px);
  }

  .mental-health-section .mental-health-content {
    padding: 0 clamp(18px, 5.5vw, 24px);
  }
}

@media (max-width: 360px) {
  .mental-health-section {
    padding: clamp(6px, 0.9vh, 10px) 0 clamp(4px, 0.5vh, 6px);
  }

  .mental-health-section .mental-health-content {
    padding: 0 18px;
  }

  .mental-health-section .mental-health-content h2,
  .mental-health-section .section-title {
    font-size: clamp(1.4rem, 1.05rem + 2.2vw, 1.6rem);
  }

  .mental-health-section .mental-health-content p {
    font-size: clamp(0.84rem, 0.8rem + 0.2vw, 0.88rem);
    line-height: 1.45;
  }
}

/* OUR SPACE GARDEN + COMFORT RESPONSIVE FIX */
/* Continuous light-cyan block: balanced spacing, readable type, CTA clears floating buttons */

@media (min-width: 1025px) {
  .comfort-container {
    max-width: min(1200px, 92vw);
    padding-inline: clamp(20px, 2.5vw, 32px);
  }

}

@media (max-width: 1024px) {
  .comfort-section {
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .comfort-section {
    padding-top: clamp(20px, 3.5vh, 36px);
    padding-bottom: clamp(80px, 11vh, 104px);
  }
  .comfort-container {
    gap: clamp(28px, 5vh, 44px);
    padding-inline: clamp(18px, 4.5vw, 24px);
    box-sizing: border-box;
  }
  .comfort-content {
    text-align: left;
  }
  .comfort-content h2 {
    font-size: clamp(1.85rem, 1.35rem + 2.4vw, 2.5rem);
    margin-bottom: clamp(14px, 2.5vh, 22px);
    line-height: 1.15;
  }

  .comfort-section .comfort-content p {
    font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    line-height: 1.6;
    color: #222;
    margin-bottom: clamp(12px, 2vh, 16px);
  }

  .comfort-section .gallery-btn {
    margin-top: clamp(18px, 3.5vh, 28px);
    margin-bottom: clamp(4px, 1vh, 8px);
    padding: clamp(12px, 2.5vw, 16px) clamp(22px, 5vw, 32px);
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  }
  .comfort-image-container {
    height: clamp(240px, 42vw, 360px);
  }
}

@media (max-width: 768px) {

  .comfort-section {
    padding-top: clamp(16px, 2.8vh, 24px);
    padding-bottom: clamp(104px, 14vh, 132px);
  }
  .comfort-container {
    gap: clamp(24px, 4.5vh, 36px);
  }
}

@media (max-width: 480px) {

  .comfort-section {
    padding-top: clamp(12px, 2.2vh, 18px);
    padding-bottom: clamp(112px, 16vh, 136px);
  }
  .comfort-content h2 {
    font-size: clamp(1.65rem, 1.2rem + 3vw, 2rem);
  }
  .comfort-image-container {
    height: clamp(210px, 52vw, 280px);
  }
}

@media (max-width: 390px) {
  .comfort-container {
    padding-inline: clamp(18px, 5vw, 22px);
  }

  .comfort-section {
    padding-bottom: clamp(116px, 17vh, 140px);
  }
}

/* OUR SPACE GARDEN IMAGE-BETWEEN-PARAGRAPHS LAYOUT FIX */
/* Mobile/tablet: h2 → p1 → image → p2 (natural DOM). Desktop: image left, text right. */







/* OUR SPACE COMFORT IMAGE-BETWEEN-PARAGRAPHS LAYOUT FIX */
/* Mobile/tablet: h2 → p1 → image → p2 → CTA (natural DOM). Desktop: text left, image right. */

@media (max-width: 1024px) {
  .comfort-container {
    padding-inline: clamp(18px, 4vw, 24px);
  }

  .comfort-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .comfort-content h2,
  .comfort-content p:first-of-type,
  .comfort-content .comfort-image,
  .comfort-content p:last-of-type,
  .comfort-section .gallery-btn {
    grid-column: auto;
    grid-row: auto;
  }

  .comfort-image-container {
    height: clamp(200px, 36vw, 300px);
  }

  .comfort-content .comfort-image {
    margin: clamp(12px, 2.2vh, 18px) 0;
    align-self: stretch;
  }

  .comfort-section .comfort-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .comfort-content h2 {
    margin-top: 0;
    margin-bottom: clamp(10px, 1.6vh, 14px);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
    line-height: 1.12;
  }

  .comfort-section .comfort-content p {
    font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
    line-height: 1.6;
    color: #222;
    margin-bottom: clamp(10px, 1.5vh, 13px);
  }

  .comfort-section .comfort-content p:last-of-type {
    margin-bottom: clamp(10px, 1.5vh, 13px);
  }
}

@media (max-width: 768px) {
  .comfort-image-container {
    height: clamp(190px, 44vw, 250px);
  }

  .comfort-content .comfort-image {
    margin: clamp(10px, 2vh, 16px) 0;
  }

  .comfort-content h2 {
    margin-bottom: clamp(8px, 1.4vh, 12px);
  }

  .comfort-section .comfort-content p {
    font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
    font-weight: 400;
    color: #222;
    line-height: 1.6;
    margin-bottom: clamp(8px, 1.3vh, 11px);
  }
}

@media (max-width: 480px) {
  .comfort-container {
    padding-inline: clamp(18px, 5vw, 22px);
  }

  .comfort-image-container {
    height: clamp(175px, 48vw, 220px);
  }

  .comfort-content h2 {
    font-size: clamp(1.55rem, 1.05rem + 2.6vw, 1.85rem);
    margin-bottom: clamp(8px, 1.2vh, 10px);
  }

  .comfort-section .comfort-content p {
    font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(0.98rem, 0.92rem + 0.35vw, 1.1rem);
    line-height: 1.6;
    color: #222;
    margin-bottom: clamp(8px, 1.2vh, 10px);
  }
}

/* OUR SPACE GARDEN + COMFORT IMAGE SCALE CONSISTENCY FIX */
/* Desktop reference: 536×400px (aspect-ratio 536/400). Tablet/mobile preserve ratio; cap at desktop width when viewport allows. */

@media (min-width: 1025px) {
  .comfort-section .comfort-image-container {
    width: 100%;
    height: 400px;
    aspect-ratio: auto;
  }
  .comfort-section .comfort-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 1024px) {
  .comfort-section .comfort-image {
    width: 100%;
    max-width: min(536px, calc(100vw - clamp(36px, 8vw, 48px)));
    margin-inline: auto;
    align-self: center;
  }
  .comfort-section .comfort-image-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 536 / 400;
    min-height: 0;
  }
  .comfort-section .comfort-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* OUR SPACE COMFORT CTA SPACING FIX */
/* Tighten cyan area below comfort content; keep mobile float clearance for See our gallery */

@media (min-width: 1025px) {
  .comfort-section {
    padding-bottom: clamp(36px, 4.5vh, 48px);
  }

  .comfort-content {
    align-items: start;
    align-content: start;
    column-gap: 64px;
    row-gap: 0;
  }

  .comfort-content .comfort-image {
    grid-row: 1 / span 5;
    align-self: center;
  }

  .comfort-content p:last-of-type {
    margin-bottom: clamp(6px, 1vh, 10px);
    align-self: end;
  }

  .comfort-section .gallery-btn {
    margin-top: clamp(10px, 1.5vh, 16px);
    margin-bottom: 0;
    align-self: start;
  }
}

@media (max-width: 1024px) {
  .comfort-section {
    padding-bottom: clamp(48px, 7vh, 64px);
  }

  .comfort-content p:last-of-type {
    align-self: auto;
    margin-bottom: clamp(8px, 1.2vh, 12px);
  }

  .comfort-section .gallery-btn {
    margin-top: clamp(12px, 2.5vh, 18px);
    margin-bottom: clamp(4px, 0.8vh, 6px);
  }
}

@media (max-width: 768px) {
  .comfort-section {
    padding-bottom: clamp(88px, 12vh, 108px);
  }

  .comfort-section .gallery-btn {
    margin-top: clamp(12px, 2.2vh, 16px);
  }
}

@media (max-width: 480px) {
  .comfort-section {
    padding-bottom: clamp(96px, 13vh, 116px);
  }
}

@media (max-width: 390px) {
  .comfort-section {
    padding-bottom: clamp(100px, 14vh, 120px);
  }
}

/* OUR SPACE COMFORT PARAGRAPH + CTA TIGHTENING FIX */
/* Desktop: natural paragraph rhythm + compact See our gallery pill; mobile/tablet: compact CTA preserved */

@media (min-width: 1025px) {
  .comfort-content {
    position: relative;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 0;
    grid-template-rows: repeat(5, auto);
    align-items: start;
    align-content: start;
  }

  .comfort-content .comfort-image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: calc((100% - 64px) / 2);
    max-width: 536px;
    grid-column: unset;
    grid-row: unset;
    margin: 0;
    align-self: auto;
  }

  .comfort-content h2 {
    margin-bottom: clamp(14px, 2vh, 20px);
    grid-column: 1;
    grid-row: 1;
  }

  .comfort-content p:first-of-type {
    margin-bottom: clamp(8px, 1.2vh, 12px);
    align-self: start;
    grid-column: 1;
    grid-row: 2;
  }

  .comfort-content p:nth-of-type(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .comfort-content p:last-of-type {
    margin-bottom: clamp(6px, 1vh, 10px);
    align-self: start;
    grid-column: 1;
    grid-row: 4;
  }

  .comfort-section .gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    align-self: start;
    white-space: nowrap;
    grid-column: 1;
    grid-row: 5;
  }
}

@media (max-width: 1024px) {
  .comfort-section .gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    white-space: nowrap;
  }
}

/* OUR SPACE GARDEN + COMFORT SECTION SPACING BALANCE FIX */
/* Tighten cyan area padding and garden→comfort seam; preserve layouts, images, CTA float clearance */

@media (min-width: 1025px) {

  .comfort-section {
    padding-top: clamp(12px, 1.8vh, 18px);
    padding-bottom: clamp(32px, 4vh, 44px);
  }
  .comfort-container {
    gap: 0;
  }
}

@media (max-width: 1024px) {

  .comfort-section {
    padding-top: clamp(10px, 1.6vh, 14px);
    padding-bottom: clamp(48px, 7vh, 64px);
  }
  .comfort-container {
    gap: 0;
  }
}

@media (max-width: 768px) {

  .comfort-section {
    padding-top: clamp(8px, 1.4vh, 12px);
    padding-bottom: clamp(80px, 11vh, 100px);
  }
}

@media (max-width: 480px) {

  .comfort-section {
    padding-top: clamp(8px, 1.2vh, 10px);
    padding-bottom: clamp(88px, 12vh, 108px);
  }
}

@media (max-width: 390px) {
  .comfort-section {
    padding-bottom: clamp(92px, 13vh, 112px);
  }
}

/* OUR SPACE DESKTOP GARDEN + COMFORT CONTAINMENT FIX */
/* Restore in-flow two-column grid so images stay inside cyan background. Mobile/tablet unchanged. */

@media (min-width: 1025px) {
  .comfort-section {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .comfort-container {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .comfort-content {
    display: grid;
    position: static;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    column-gap: 64px;
    row-gap: 0;
    align-items: start;
    align-content: start;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .comfort-content .comfort-image {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 536px;
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    margin: 0;
  }

  .comfort-content h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .comfort-content p:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }

  .comfort-content p:nth-of-type(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .comfort-content p:last-of-type {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
  }

  .comfort-section .gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    align-self: start;
    white-space: nowrap;
    grid-column: 1;
    grid-row: 5;
  }
}

/* OUR SPACE VISIT SECTION RESPONSIVE ORDER + SPACING FIX */
/* Mobile/tablet: h2 → map → contact. Desktop: map left, heading + contact right. */

@media (min-width: 1025px) {
  .visit-section {
    padding-top: clamp(56px, 7vh, 80px);
    padding-bottom: clamp(56px, 7vh, 80px);
  }

  .visit-section .visit-container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .visit-section .visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 64px;
    row-gap: 0;
    align-items: start;
    text-align: left;
  }

  .visit-section .visit-content .visit-map {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    height: clamp(480px, 42vw, 600px);
    margin: 0;
  }

  .visit-section .visit-content .visit-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
  }

  .visit-section .visit-content .visit-details-panel {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: clamp(150px, 11vw, 175px);
  }

  .visit-section .visit-content .visit-details-panel h2 {
    margin-top: 0;
    margin-bottom: 0;
  }

  .visit-section .visit-content .visit-details-panel .contact-details {
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  .visit-section {
    padding-top: clamp(40px, 6vh, 56px);
    padding-bottom: clamp(64px, 9vh, 88px);
  }

  .visit-section .visit-container {
    display: block;
    padding-inline: clamp(18px, 4vw, 24px);
    gap: 0;
    text-align: left;
  }

  .visit-section .visit-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
  }

  .visit-section .visit-content .visit-details-panel {
    display: contents;
  }

  .visit-section .visit-content h2 {
    order: 1;
    margin-top: 0;
    margin-bottom: clamp(10px, 1.6vh, 14px);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
    line-height: 1.12;
  }

  .visit-section .visit-content .visit-map {
    order: 2;
    width: 100%;
    max-width: 100%;
    height: clamp(260px, 34vh, 360px);
    aspect-ratio: auto;
    margin: clamp(12px, 2.2vh, 18px) 0;
    align-self: stretch;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  }

  .visit-section .visit-content .visit-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 16px;
  }

  .visit-section .visit-content .contact-details {
    order: 3;
    margin-top: clamp(12px, 2vh, 20px);
  }

  .visit-section .contact-item {
    flex-direction: row;
    align-items: center;
    gap: clamp(10px, 2vw, 14px);
    margin-bottom: clamp(14px, 2vh, 18px);
  }

  .visit-section .contact-icon {
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .visit-section {
    padding-top: clamp(36px, 5.5vh, 44px);
    padding-bottom: clamp(72px, 10vh, 96px);
  }

  .visit-section .visit-content .visit-map {
    height: clamp(260px, 32vh, 340px);
  }
}

@media (max-width: 480px) {
  .visit-section .visit-container {
    padding-inline: clamp(18px, 5vw, 22px);
  }

  .visit-section .visit-content h2 {
    font-size: clamp(1.55rem, 1.05rem + 2.6vw, 1.85rem);
    margin-bottom: clamp(8px, 1.2vh, 10px);
  }

  .visit-section .visit-content .visit-map {
    height: clamp(200px, 34vh, 260px);
    margin: clamp(10px, 2vh, 16px) 0;
  }

  .visit-section {
    padding-bottom: clamp(80px, 11vh, 100px);
  }
}

@media (max-width: 390px) {
  .visit-section {
    padding-bottom: clamp(88px, 12vh, 108px);
  }
}

/* ============== OUR SPACE FULL PAGE RESPONSIVE FINAL QA FIX ============== */
/* Small phones: ensure Our Home intro text keeps safe side insets (>= 18px). */

@media (max-width: 480px) {
  .mental-health-section .mental-health-container {
    padding-inline: 18px;
  }

  .mental-health-section .mental-health-content {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }
}

/* ============== OUR SPACE VISIT CONTACT MOBILE READABILITY FIX ============== */
/* Phones only: title → map → contact details; cap map height; desktop/tablet (>=768px) unchanged. */

@media (max-width: 767px) {
  .visit-section .visit-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .visit-section .visit-content .visit-details-panel {
    display: contents;
  }

  .visit-section .visit-content h2 {
    order: 1;
    margin-bottom: clamp(10px, 1.8vh, 14px);
  }

  .visit-section .visit-content .visit-map {
    order: 2;
    width: 100%;
    max-width: 100%;
    height: clamp(200px, 34vh, 260px);
    aspect-ratio: auto;
    min-height: 0;
    margin: 0 0 clamp(12px, 2vh, 18px);
    align-self: stretch;
  }

  .visit-section .visit-content .contact-details {
    order: 3;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .visit-section .visit-content .visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .visit-section .contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 2.2vh, 14px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: clamp(16px, 3vh, 22px);
  }

  .visit-section .contact-icon {
    flex-shrink: 0;
    width: clamp(40px, 11vw, 44px);
    height: clamp(40px, 11vw, 44px);
  }

  .visit-section .contact-item span,
  .visit-section .contact-item a {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
    color: #333;
    font-weight: 500;
    text-decoration: none;
  }

  .visit-section {
    padding-bottom: clamp(104px, 15vh, 132px);
  }
}

@media (max-width: 390px) {
  .visit-section {
    padding-bottom: clamp(112px, 16vh, 140px);
  }
}

@media (max-width: 360px) {
  .visit-section .visit-container {
    padding-inline: 18px;
  }

  .visit-section {
    padding-bottom: clamp(116px, 17vh, 144px);
  }
}
