:root {
  --space-1: 0.5rem;  /* 8px */
  --space-2: 1rem;    /* 16px */
  --space-3: 1.5rem;  /* 24px */
  --space-4: 2rem;    /* 32px */
  --space-5: 3rem;    /* 48px */
}

.header-tagline {
  display: none;
}

@media (min-width: 769px) {
  .main-header.shrunk .header-tagline {
    display: block;
  }
}

.main-header.shrunk .header-tagline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  color: #181818;
  white-space: nowrap;
}
body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    background: #f0ede9;
    color: #181818;
  }

/* Utility: center text */
.center-text { text-align: center; }

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
  width: auto;
  height: auto;
  padding: 0.5em 0.75em;
  background: #181818;
  color: #fff;
  border-radius: 6px;
  z-index: 1100;
}
  
.header-contact a {
  color: #181818;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.header-contact a:hover {
  text-decoration: underline;
}
  
  
  .hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Split hero: two images side by side filling the hero */
  .hero-split {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .hero-split .tile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }


  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding-top: 0;
    width: 100%; /* allow gradient band to span hero */
  }
  /* Subtle center gradient band behind the hero heading */
  .hero-content::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: clamp(3rem, 10vw, 5rem);
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0; /* hidden by default, revealed after images load */
    transition: opacity 180ms ease;
  }
  .hero.hero-heading-enhanced .hero-content::before { opacity: 1; }
  
  .hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5em;
    display: inline-block;
    max-width: 90vw;
    position: relative;
    z-index: 2; /* above gradient band */
    /* text shadow applied once hero is ready */
  }
  /* Desktop defaults: show separators; mobile-only breaks hidden by default */
  br.mobile-only { display: none; }
  .hero.hero-heading-enhanced .hero-content h1 { text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
  
  .hero-btn {
    background: #968c75;
    color: white;
    padding: 0.8em 2em;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
  }

  .hero-actions { margin-top: 1rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

  /* Unified button styles */
  .btn { display: inline-block; font-weight: 600; text-decoration: none; border-radius: 10px; padding: 0.7em 1.2em; border: 1px solid transparent; transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: #968c75; color: #fff; }
  .btn-primary:hover { filter: brightness(0.95); }
  /* Semi-solid ghost: always visible on bright imagery */
  .btn-ghost { background: rgba(0,0,0,0.25); color: #fff; border-color: rgba(255,255,255,0.2); }
  .btn-ghost:hover, .btn-ghost:focus { background: rgba(0,0,0,0.6); border-color: rgba(0,0,0,0.6); filter: none; }
  
.main-content {
  padding: var(--space-5) var(--space-4);
  max-width: 1200px;
  margin: auto;
  background-color: #f0ede9;
}
@media (max-width: 768px) {
  .main-content { padding: var(--space-4) var(--space-2); }
}
  
.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  background: #fff;
  border-radius: 14px;
  padding: var(--space-4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
  .content-row {
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: var(--space-4);
  }
}
  
  .content-row.reverse {
    flex-direction: row-reverse;
  }
  
  .content-img {
    flex: 1;
    min-width: 280px;
  }
  

.content-img img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Perfect For 2×2 seamless image grid */
.perfect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden; /* apply radius once to avoid inner seams */
  background: #000; /* black gutter lines */
}
.perfect-grid .tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0 !important; /* override global img radius */
}

  /* Ensure Perfect For image matches text height on desktop */
@media (min-width: 769px) {
  .content-row { align-items: stretch; }
  .content-row.reverse .content-img img {
    height: 100%;
    aspect-ratio: auto; /* override global ratio to allow full height */
  }
  .content-row.reverse .content-img .perfect-grid {
    height: 100%;
    aspect-ratio: auto;
  }
  .content-row:not(.reverse) .content-img img {
    height: 100%;
    aspect-ratio: auto; /* match text height for Our Spaces */
  }
  /* Vertically center the Our Spaces text block while keeping bullets aligned */
  .content-row:first-of-type .content-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* horizontally center contents */
  }
}
  
.content-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .content-text { font-size: 1rem; line-height: 1.55; }
}

  .content-text p {
    margin-bottom: 1em;
  }

  .content-text ul {
    /* Center the list block while keeping bullets aligned */
    display: table;            /* shrink-to-fit width */
    margin: 0.5em auto 0;      /* horizontally center */
    text-align: left;          /* left-align text so bullets line up */
    list-style: disc outside;  /* classic bullets with hanging indent */
    padding-left: 1.2em;       /* gutter for bullets */
  }

  .content-text li {
    margin-bottom: 0.5em;
  }
  
  .content-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: var(--space-2);
    text-align: center;
  }
  
  .reviews-section {
    position: relative;
    background: #222;
    color: white;
    padding: 5em 1.5em; /* more generous breathing room */
    text-align: center;
  }
  
  .reviews-bg {
    background: url('https://img1.wsimg.com/isteam/ip/a37cd0c6-e549-4c6c-a11a-8f8e23c58ee8/WhatsApp%20Image%202025-05-27%20at%2010.46.59_41f2cd69.jpg/:/cr=t:0%25,l:0%25,w:100%25,h:100%25/rs=w:2046,m') center/cover no-repeat;
    opacity: 0.2;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
  }
  
  .reviews-content {
    position: relative;
    z-index: 2;
    max-width: 1200px; /* keep content line-length elegant */
    margin: 0 auto;
  }
  
  .footer {
    background: #303030;
    color: white;
    text-align: center;
    padding: 1.5em;
  }
  
  .perfect-for {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .perfect-for ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .perfect-for li {
    margin: 0.4em 0;
  }
  
/* .header-logo-contact: make it flex column, align center, relative for absolute positioning */
.header-logo-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  padding-bottom: 0;
}

/* .header-contact: absolutely positioned top right in header area */
.header-contact {
  position: absolute;
  top: 0;
  right: 1.5em;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  align-items: flex-end;
}
  
/* .header-contact div: retain font styles, align right for inner text */
.header-contact div {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  text-align: right;
  line-height: 1;
  margin: 0;
}

/* Desktop (unshrunk) header: larger contact text only on desktop and only when not collapsed */
@media (min-width: 769px) {
  .main-header:not(.shrunk) .header-contact div {
    font-size: 1.15rem;
    line-height: 1.15;
  }
}
  
  .main-header {
    background: #f0ede9;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .main-header.shrunk {
    padding: 0.3em 1em;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  }

  .main-header.shrunk .header-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    padding: 0 1.5em;
    max-width: 1200px;
    margin: auto;
  }

  .header-logo-link {
    display: block;
    margin-right: 1em;
    cursor: pointer;
    width: 160px;
    transition: all 0.4s ease;
  }
  
  .header-logo {
    height: 160px;
    transform-origin: left top;
  }

  .main-header.shrunk .header-logo {
    height: 60px;
    max-height: 60px;
    margin-bottom: 0;
    transform: translateX(0);
  }

  .main-header.shrunk .header-logo-link {
    width: 80px;
  }

  .main-header.shrunk .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .main-header.shrunk .header-logo-contact {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2em;
  }

  .main-header.shrunk .header-contact {
    position: static;
    flex-direction: row;
    gap: 1em;
    text-align: right;
    justify-content: flex-end;
    align-items: center;       /* vertically align phone and email */
    white-space: nowrap;       /* keep them on one line on desktop */
  }

  /* Ensure both contact items share the same vertical alignment/height when collapsed */
  .main-header.shrunk .header-contact div {
    display: flex;
    align-items: center;
    line-height: 18px; /* matches WhatsApp icon height for perfect centering */
  }
  .main-header.shrunk .header-contact a {
    display: inline-flex;
    align-items: center;
    line-height: 1; /* avoid extra baseline space inside links */
  }

  
@media (max-width: 768px) {
  .header-content { text-align: center; }
  .header-logo-contact { flex-direction: column; }
  .header-contact { position: static; margin-top: 0.4em; text-align: center; }

  .main-header { padding: 0.3em 1em; box-shadow: 0 1px 6px rgba(0,0,0,0.12); }
  .main-header .header-content { flex-direction: row; justify-content: space-between; align-items: center; }
  .main-header .header-logo-contact { flex-direction: row !important; align-items: flex-start; justify-content: flex-start; width: 100%; gap: 1em; }
  .main-header .header-contact,
  .main-header.shrunk .header-contact { position: static; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.3em; white-space: normal; }
  .main-header .header-contact a { word-break: normal; }

  .hero-split { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .hero-split .tile.right { display: none; }

  .hero { 
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0; 
    /* Show full image width on mobile; height follows aspect ratio */
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .hero-split { border-radius: 0; }
  /* Ensure the landscape image edges align with screen sides */
  .hero-split .tile { display: block; width: 100%; height: 100%; object-fit: contain; }

  /* Mobile: show forced breaks, hide separators to stack lines */
  br.mobile-only { display: inline; }
  .hero-content h1 .sep { display: none; }
  /* Keep this phrase on a single line on mobile */
  .hero-content h1 .nowrap { white-space: nowrap; }
  /* Make hero heading 20% smaller on mobile (2.2rem -> 1.76rem) */
  .hero-content h1 {
    font-size: 1.76rem;
    color: #fff;
    -webkit-text-stroke: 0;            /* disable stroke that bleeds into glyphs */
    -webkit-text-fill-color: #fff;      /* keep solid white fill */
    /* Soft halo for legibility on complex imagery */
    text-shadow:
      0 1px 2px rgba(0,0,0,0.65),
      0 2px 8px rgba(0,0,0,0.45);
  }
}

  .main-nav a,
  .mobile-nav a {
    color: #181818;
    text-decoration: none;
  }

  .main-nav a:hover,
  .mobile-nav a:hover {
    color: #000;
  }

.custom-reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.6em;
  margin-top: 2em;
  max-width: 1100px;
  margin-inline: auto;
}

.review-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 1.6em;
  text-align: left;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8em;
}

.review-stars {
  color: #ffcc00;
  font-size: 1.1rem;
}

.review-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.review-card.featured {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .custom-reviews {
    grid-template-columns: 1fr;
  }

  .review-card.featured {
    grid-column: auto;
  }
}

.carousel-section {
  background: #f0ede9;
  padding: var(--space-5) var(--space-3);
  margin: var(--space-4) 0; /* consistent outer spacing */
  text-align: center;
}

.map-section {
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: center;
  color: inherit;
}

.map-reviews-split {
  display: grid;
  grid-template-columns: 13fr 7fr;
  gap: var(--space-5); /* air between columns */
  align-items: stretch; /* equal visual height */
}
/* Tidy spacing when map sits next to reviews */
.map-reviews-split .custom-reviews { margin-top: 0; }

/* Make the map panel feel like a card over the background */
.split-right .map-section {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: var(--space-4);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.split-right .map-section h2 { margin: 0 0 var(--space-2); font-family: 'Montserrat', sans-serif; }
.split-right .map-section .address-card { margin: 0 0 var(--space-2); font-weight: 500; }
.split-right .map-section .map-embed { max-width: none; margin: var(--space-2) 0 0; position: relative; height: 100%; }
.split-right .map-section .map-embed::before { content: none; padding-top: 0; }
.split-right .map-section .map-embed iframe { height: 100%; }
.split-left, .split-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .map-reviews-split {
    grid-template-columns: 1fr;
  }
  .map-reviews-split > .split-right { margin-top: var(--space-4); }
  .split-right .map-section { padding: var(--space-3); }

  /* Mobile polish for reviews + map */
  .reviews-section { padding: 3.5em 1.25em; }
  .map-reviews-split { gap: var(--space-3); }
  .custom-reviews { gap: 1.2em; margin-top: 1.25em; }
  .review-card { padding: 1.3em; }
  .split-right .map-section { padding: var(--space-3); border-radius: 12px; }
  .split-right .map-section h2 { text-align: center; }
  .split-right .map-section .address-card { text-align: center; }
  .split-right .map-section .map-embed { margin-top: var(--space-2); }
}

@media (max-width: 900px) {
  .split-right .map-section { height: auto; }
  .split-right .map-section .map-embed { height: auto; }
  .split-right .map-section .map-embed::before { content: ""; display: block; padding-top: 56.25%; }
}
.address-card { font-style: normal; margin: 0 0 0.75rem; line-height: 1.4; }
.address-card .addr-line { display: inline-block; }
.map-embed {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.map-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 responsive ratio */
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.carousel-wrapper {
  position: relative;
  max-width: 1300px; /* 30% wider to show more images */
  margin: auto;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  padding: var(--space-3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Soft edge fades to hint scrollable content */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: var(--space-3);
  bottom: var(--space-3);
  width: 44px;
  pointer-events: none;
  z-index: 5;
}
.carousel-wrapper::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.carousel-wrapper::after  { right: 0; background: linear-gradient(to left,  rgba(255,255,255,1), rgba(255,255,255,0)); }

#carousel-track {
  display: flex;
  scroll-behavior: smooth;
  overflow-x: auto;
  gap: 1em;
  min-height: 300px;
  background: transparent;
  border: 0;
  /* Disable CSS snap; we use scripted centring */
  scroll-snap-type: none;
  padding: 0.25em;
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}
#carousel-track::-webkit-scrollbar { display: none; }

 /* Slide wrapper ensures stable layout with a placeholder width */
 .carousel-slide {
   flex: 0 0 auto;
   display: flex;
   align-items: center;
   justify-content: center;
   height: clamp(220px, 50vh, 520px);
   width: clamp(260px, 60vw, 780px); /* intrinsic placeholder width */
   background: #f7f6f4;
   border: 1px solid #eee;
   border-radius: 12px;
   box-shadow: 0 4px 14px rgba(0,0,0,0.08);
   overflow: hidden;
   position: relative;
 }
 .carousel-slide::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
   pointer-events: none;
 }
 #carousel-track img {
   height: 100%;
   width: auto;
   max-width: 100%;
   object-fit: contain;
   border-radius: 0;
   background: #fafafa;
   filter: blur(8px);
   transition: filter 240ms ease, opacity 240ms ease;
   opacity: 0.7;
 }
 #carousel-track img.loaded {
   filter: none;
   opacity: 1;
 }
 #carousel-track img:first-child { scroll-snap-align: start; }
 #carousel-track img:last-child { scroll-snap-align: end; }
 #carousel-track img:not(:first-child):not(:last-child) { scroll-snap-align: center; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.95);
  color: #181818;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.carousel-btn:hover { background: #968c75; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.14); transform: translateY(-50%) translateY(-1px); }
.carousel-btn:active { transform: translateY(-50%) translateY(0); }
.carousel-btn:disabled, .carousel-btn[aria-disabled="true"] { opacity: 0.45; cursor: default; }

#carousel-left { left: var(--space-4); }
#carousel-right { right: var(--space-4); }

/* (Mobile overrides removed: mobile now mirrors desktop carousel visuals) */

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
  gap: 0.5em;
}

/* Remove progress badge from all views for now */
.carousel-progress { display: none; }

/* Mobile: show x/y badge and hide dots */
@media (max-width: 768px) {
  .carousel-dots { display: none; }
  .carousel-progress {
    display: inline-block;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 9999px;
    font-size: 12px;
    line-height: 1;
    z-index: 8;
    backdrop-filter: saturate(120%) blur(2px);
    white-space: nowrap;
  }
}

.carousel-dot {
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  background: #d7d3cb;
  border: 1px solid #e6e2db;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: #968c75;
  border-color: #968c75;
  transform: scale(1.05);
}

/* Mobile-only carousel improvements: larger tap targets, softer shadows */
@media (max-width: 768px) {
  /* Flush to screen edges on mobile without causing overflow */
  .carousel-section { padding-left: 0; padding-right: 0; overflow-x: hidden; }
  .carousel-wrapper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box; /* include padding in width to avoid off-screen overflow */
  }

  .carousel-wrapper { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
  .carousel-slide { box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
  /* Make slides visually wider on mobile */
  .carousel-slide { width: clamp(300px, 88vw, 780px); }

  .carousel-btn {
    width: 52px;
    height: 52px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .carousel-dots { gap: 0.7rem; }
  .carousel-dot { width: 14px; height: 14px; }

  /* Make slide height follow each image on mobile to avoid letterboxing */
  #carousel-track { min-height: 0; }
  .carousel-slide { height: auto; }
  #carousel-track img { width: 100%; height: auto; object-fit: contain; }
}

/* Perfect For grid: 3 across + full-width row */
.perfect-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em 1.2em;
  min-width: 0;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: start;
}

.perfect-columns > div { min-width: 0; text-align: left; }
.perfect-columns > .flexible-hire { grid-column: 1 / -1; }

.perfect-columns ul { list-style: none; padding: 0; margin: 0.5em 0 0 0; }
.perfect-columns li { margin-bottom: 0.4em; }
.flexible-hire li { opacity: 0.9; }

/* Mobile layout for Perfect For */
@media (max-width: 768px) {
  .perfect-columns {
    grid-template-columns: 1fr;
    gap: 1rem 0.75rem;
    max-width: 640px;
    justify-items: stretch;
  }
  .perfect-columns > div strong { display: block; margin-bottom: 0.25rem; }
}

/* Stack on small screens */
@media (max-width: 768px) {
  .perfect-columns { grid-template-columns: 1fr; gap: 1.2em; }
}


.lazy-image {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.content-combined {
  align-items: flex-start;
  
}

.about-img {
  width: auto;
  height: auto;
  border-radius: 12px;
  max-width: 240px;
}

.content-combined .content-text p:last-child {
  margin-bottom: 0;
}

.about-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* Center the first content block (Our Spaces) */
.content-row:first-of-type .content-text {
  text-align: center;
}

/* Center the "Want to see it for yourself?" line */
.content-row:first-of-type .content-text p:last-of-type {
  text-align: center;
  display: table;          /* shrink-to-fit block */
  margin: 0.5em auto 0;    /* horizontally center */
}

/* Keep the block centered, but align bullets flush-left inside it */
.content-row:first-of-type .content-text ul {
  margin: 0.5em auto 0;       /* center the list block */
  display: inline-block;      /* shrink to content width */
  text-align: left;           /* left-align text for clean bullet column */
  list-style-position: outside;/* standard bullet alignment */
  padding-left: 1.1em;        /* create proper gutter for bullets */
  align-self: center;         /* keep centered within flex container */
}

.content-row:first-of-type .content-text li {
  text-align: left;           /* ensure all items align */
}

/* About + Brought two-column layout */
.about-brought {
  display: grid;
  grid-template-columns: 3fr 2fr; /* About Us ~60%, Partners ~40% */
  gap: var(--space-4);
  align-items: stretch;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
  background: #fff;
  border-radius: 14px;
  padding: var(--space-4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .about-brought { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-brought {
    padding: var(--space-3);
    border-radius: 12px;
    gap: var(--space-3);
  }
  .about-logo { max-height: 72px; }
  .about-logo,
  .about-img {
    max-height: 65px; /* 10% smaller than 72px */
    height: auto;
    width: auto;
  }
}

/* Improve headings and alignment inside about/brought section */
.about-brought .content-text h2 { text-align: center; }

.about-brought .content-text p {
  text-align: left;
}

/* Desktop: subtle divider and left-align partners */
@media (min-width: 901px) {
  /* Vertically center About Us content within its grid cell */
  .about-brought .content-combined { align-self: center; justify-self: center; max-width: 700px; }
  .about-brought .brought-to-you {
    text-align: left;
    border-left: 1px solid #e6e6e6;
    padding-left: var(--space-4);
    display: flex;
    justify-content: center; /* vertical centering in grid cell */
    align-items: center;      /* horizontal centering of inner content */
  }
  .about-brought .brought-to-you .brought-inner { display: inline-block; text-align: left; }
  .about-brought .about-logo-row { justify-content: flex-start; }
}

/* Consistent logo sizing and gentle hover effect */
.about-logo {
  max-height: 90px;
  height: auto;
  width: auto;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.about-logo:hover {
  transform: translateY(-1px);
}

/* Simple CTA button to drive enquiries */
.cta-btn {
  display: inline-block;
  background: #968c75;
  color: #fff;
  padding: 0.7em 1.1em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.cta-btn:hover { filter: brightness(0.95); }

/* Focus states */
a:focus-visible, button:focus-visible { outline: 2px solid #968c75; outline-offset: 2px; border-radius: 6px; }

/* Center the About Us CTA only */
.about-brought .content-text .cta-btn {
  display: table;
  margin: 0.5em auto 0;
}

/* Desktop line breaks for partners text */
.partners-line { display: inline; }
@media (min-width: 901px) {
  .partners-line { display: block; }
  .partners-sub { margin-top: 0.2em; }
}


/* Mobile: force two clean lines for partners and centre text */
@media (max-width: 900px) {
  /* Stack lines exactly as:
     "Venue With A View and Horizons Conference"
     "in partnership with Barry Aaron & Associates" */
  .partners-line { display: block; }
  .about-brought .brought-to-you p { text-align: center; }
}

/* Mobile: add horizontal divider above Brought to you by */
@media (max-width: 900px) {
  .about-brought .brought-to-you {
    border-top: 1px solid #e6e6e6;
    padding-top: var(--space-3);
    margin-top: var(--space-2);
  }
}

/* Center the "Brought to you by:" heading only */
.about-brought .brought-to-you h3 { text-align: center; margin: 0 0 var(--space-1); }
.about-brought .brought-to-you p { margin: 0 0 var(--space-2); }


.header-contact .whatsapp-link { display: inline-flex; align-items: center; gap: 0.4em; line-height: 1; }
.header-contact .whatsapp-icon svg { width: 16px; height: 16px; display: block; }
.header-contact .whatsapp-number { line-height: 1; }
.header-contact .whatsapp-link { text-decoration: none; }
.header-contact .whatsapp-link:hover { text-decoration: underline; }
.content-row .content-text a[href^="mailto"],
.content-row .content-text a[href^="https://wa.me"] {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.content-row .content-text a[href^="mailto"]:hover,
.content-row .content-text a[href^="https://wa.me"]:hover {
  text-decoration: underline;
}
