/* =====================================================
   Sterling at San Marco — Stylesheet v2 (Responsive)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ─── PROMO BAR ─── */
:root {
  --promo-bar-h: 0px;
  --nav-h: 72px;
}

.promo-bar {
  position: fixed;
  top: var(--nav-h, 72px);
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, #bf5800 0%, #d96d0a 45%, #e8941c 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  /* Force GPU layer without the side-effects of will-change:top */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  padding: 9px clamp(12px, 4vw, 24px);
  max-width: 1320px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.promo-bar-text {
  font-size: clamp(.8rem, 2.2vw, .95rem);
  text-align: center;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}
.promo-bar-text strong { color: #fff; }
.promo-bar-btn {
  flex-shrink: 0;
  display: inline-block;
  background: #fff;
  color: #bf5800;
  font-weight: 800;
  font-size: clamp(.75rem, 1.8vw, .85rem);
  letter-spacing: .3px;
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.promo-bar-btn:hover  { background: var(--navy, #1b2d3e); color: #fff; transform: translateY(-1px); }
.promo-bar-btn:active { transform: translateY(0); }

/* Push page content below bar on inner pages and hero */
.page-hero {
  padding-top: calc(clamp(110px, 16vw, 150px) + var(--promo-bar-h, 0px));
}
.hero-content {
  margin-top: calc(clamp(60px, 8vh, 90px) + var(--promo-bar-h, 0px));
}

/* Reduced-motion: skip bar transition */
@media (prefers-reduced-motion: reduce) {
  .promo-bar { transition: none; }
  .promo-bar-btn { transition: none; }
}

@media (max-width: 400px) {
  .promo-bar-inner { padding: 8px 10px; gap: 8px; }
  .promo-bar-btn   { padding: 5px 12px; }
}

/* ─── CSS Custom Properties ─── */
:root {
  --primary:      #00B4C5;
  --primary-dark: #0099A8;
  --accent:       #F5A623;
  --accent-dark:  #D98D15;
  --dark:         #1B2D3E;
  --navy:         #1B2D3E;   /* alias used by chat widget + price display */
  --mid:          #3A536A;
  --white:        #FFFFFF;
  --light-bg:     #F7FBFE;
  --grey:         #EEF3F8;
  --text:         #4D6070;
  --text-light:   #8FA3B4;   /* muted / de-emphasised text */
  --border:       #D4E0EC;

  /* Shadows */
  --shadow:    0 4px 24px rgba(27,45,62,.10);
  --shadow-lg: 0 10px 40px rgba(27,45,62,.16);

  /* Misc */
  --radius:    10px;
  --ease:      0.3s ease;

  /* Fluid type scale — scales between mobile and desktop */
  --text-xs:   clamp(.75rem,  1.8vw, .82rem);
  --text-sm:   clamp(.85rem,  2vw,   .95rem);
  --text-base: clamp(.95rem,  2.2vw, 1.05rem);
  --text-lg:   clamp(1.05rem, 2.5vw, 1.15rem);
  --text-xl:   clamp(1.2rem,  3vw,   1.45rem);
  --text-2xl:  clamp(1.5rem,  3.5vw, 1.9rem);
  --text-3xl:  clamp(1.7rem,  4vw,   2.4rem);
  --text-4xl:  clamp(1.9rem,  4.5vw, 3rem);
  --text-hero: clamp(1.9rem,  5.5vw, 3.8rem);

  /* Fluid spacing */
  --sp-xs:  clamp(8px,  2vw, 12px);
  --sp-sm:  clamp(12px, 3vw, 18px);
  --sp-md:  clamp(20px, 4vw, 30px);
  --sp-lg:  clamp(36px, 6vw, 60px);
  --sp-xl:  clamp(50px, 8vw, 90px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden; /* prevent horizontal scroll on all devices */
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; transition: var(--ease); }
h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.25;
}

/* ─── Layout Utilities ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}
.section-pad { padding: var(--sp-xl) 0; }
.text-center { text-align: center; }

/* ─── Section Headers ─── */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 14px;
}
.section-sub {
  font-size: var(--text-base);
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}
.divider {
  width: 55px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  min-height: 48px; /* touch-friendly */
  border-radius: 5px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--ease);
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary  { background: var(--primary);  color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; transform: translateY(-2px); }
.btn-accent   { background: var(--accent);  color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost    { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-dark     { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: var(--mid); border-color: var(--mid); transform: translateY(-2px); }

/* ─── HEADER / NAV ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(27,45,62,.09);
  transition: var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 32px);
  max-width: 1320px;
  margin: 0 auto;
  gap: 16px;
}
.logo { flex-shrink: 0; }
.logo img {
  height: clamp(42px, 6vw, 60px);
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  font-size: clamp(.76rem, 1.2vw, .84rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Desktop CTA */
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.nav-phone {
  font-weight: 700;
  color: var(--dark);
  font-size: clamp(.78rem, 1.5vw, .92rem);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-phone:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--ease);
}
/* Hamburger → X animation */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─────────────────────────
   Always in DOM; off-screen by default.
   Uses transform (not display:none) so
   CSS transitions work correctly.
───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 6vw, 2rem);
  color: var(--dark);
  font-weight: 700;
  min-height: 56px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--dark);
  background: none;
  border: none;
  line-height: 1;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
}
.mobile-cta .btn { width: 100%; }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — fixes iOS address bar */
  min-height: 560px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(27,45,62,.76) 0%,
    rgba(27,45,62,.45) 55%,
    rgba(0,180,197,.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
  padding: 0 clamp(20px, 6vw, 40px);
  margin-left: clamp(0px, 5vw, 80px);
  margin-top: clamp(60px, 8vh, 90px);
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.hero h1 {
  color: #fff;
  font-size: var(--text-hero);
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  margin-bottom: 16px;
  line-height: 1.18;
}
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: clamp(.95rem, 2.2vw, 1.12rem);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: clamp(20px, 4vh, 34px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slide-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.slide-dots span.active { background: #fff; transform: scale(1.35); }

/* ─── QUICK INFO BAR ─── */
.info-bar { background: var(--primary); }
.info-bar-inner {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(14px,3vw,22px) clamp(12px,2vw,18px);
  flex: 1 1 200px;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,.22);
  min-width: 0;
}
.info-item:last-child { border-right: none; }
.info-icon { font-size: clamp(1.5rem,3vw,1.9rem); flex-shrink: 0; }
.info-text { min-width: 0; }
.info-text strong {
  display: block;
  font-size: clamp(.8rem,2vw,.94rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-text span {
  font-size: clamp(.72rem,1.8vw,.82rem);
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}

/* ─── WELCOME SECTION ─── */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}
.welcome-imgs { position: relative; }
.welcome-main {
  width: 100%;
  height: clamp(280px, 45vw, 490px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.welcome-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: clamp(120px, 18vw, 200px);
  height: clamp(100px, 14vw, 165px);
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.welcome-text p {
  margin-bottom: 16px;
  font-size: var(--text-base);
}
.feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0 28px;
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(.85rem, 2vw, .95rem);
  font-weight: 700;
  color: var(--dark);
}
.feat-list li::before { content: '✓'; color: var(--primary); font-weight: 900; }

/* ─── AMENITIES ─── */
.amenities-section { background: var(--light-bg); }
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 26px);
  margin-top: clamp(36px, 6vw, 52px);
}
.amenity-card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px) clamp(18px, 3vw, 26px);
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: var(--ease);
  border-top: 3px solid transparent;
}
.amenity-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}
.amenity-icon { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 14px; }
.amenity-card h3 { font-size: var(--text-xl); margin-bottom: 9px; }
.amenity-card p  { font-size: var(--text-sm); line-height: 1.65; }

/* ─── FLOOR PLANS PREVIEW ─── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 32px);
  margin-top: clamp(36px, 6vw, 50px);
}
.plan-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
  transition: var(--ease);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-img { width: 100%; height: clamp(180px, 25vw, 255px); object-fit: cover; }
.plan-body { padding: clamp(18px, 3vw, 28px); }
.plan-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.plan-body h3 { font-size: var(--text-2xl); margin-bottom: 8px; }
.plan-specs {
  display: flex;
  gap: 14px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.plan-spec { display: flex; align-items: center; gap: 5px; font-size: var(--text-sm); }
.plan-body p { font-size: var(--text-sm); margin-bottom: 20px; line-height: 1.7; }
.plan-btns  { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── TESTIMONIALS ─── */
.testimonials-section {
  background: linear-gradient(140deg, var(--dark) 0%, #26415A 100%);
}
.testimonials-section .section-title { color: #fff; }
.testimonials-section .section-label { color: var(--accent); }
.testimonials-section .divider       { background: var(--accent); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 26px);
  margin-top: clamp(36px, 6vw, 50px);
}
.review-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 30px) clamp(18px, 3vw, 26px);
  transition: var(--ease);
}
.review-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.stars { color: var(--accent); font-size: 1.05rem; margin-bottom: 13px; letter-spacing: 2px; }
.review-card blockquote {
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.75;
  color: rgba(255,255,255,.87);
  margin-bottom: 18px;
}
.reviewer strong { color: #fff; font-size: var(--text-sm); display: block; }
.reviewer span   { color: rgba(255,255,255,.55); font-size: var(--text-xs); }

/* ─── GALLERY STRIP ─── */
.gallery-strip { background: var(--grey); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 210px 210px;
  gap: 10px;
  margin-top: clamp(28px, 5vw, 40px);
}
.gallery-item { overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ─── NEIGHBORHOOD ─── */
.hood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 60px);
  align-items: center;
  margin-top: clamp(36px, 6vw, 50px);
}
.hood-list { list-style: none; margin-top: 16px; }
.hood-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-base);
}
.hood-list li:last-child { border-bottom: none; }
.hood-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.map-embed  { width: 100%; height: clamp(280px, 40vw, 420px); border: none; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ─── CTA BAND ─── */
.cta-band { background: var(--primary); padding: clamp(48px, 8vw, 70px) 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--text-3xl); margin-bottom: 12px; }
.cta-band p  {
  color: rgba(255,255,255,.88);
  font-size: var(--text-base);
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACT SNIPPET ─── */
.contact-snippet { background: var(--light-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 50px);
  margin-top: clamp(36px, 6vw, 50px);
}
.contact-info h3 { font-size: var(--text-xl); margin-bottom: 20px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.cd-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.cd-text p     { font-size: var(--text-base); margin: 0; }
.cd-text strong {
  display: block;
  color: var(--dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.hours-box {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3.5vw, 26px);
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  margin-top: 22px;
}
.hours-box h4 {
  font-size: var(--text-sm);
  margin-bottom: 13px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 700; color: var(--dark); }

/* ─── CONTACT FORM ─── */
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 2px 22px rgba(0,0,0,.09);
}
.contact-form h3 { font-size: var(--text-xl); margin-bottom: 22px; }
.contact-form p  { font-size: var(--text-sm); color: var(--text); margin-bottom: 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: .3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: var(--text-base);
  color: var(--dark);
  transition: var(--ease);
  background: #fff;
  min-height: 48px; /* touch-friendly */
  -webkit-appearance: none;
  appearance: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,180,197,.13);
}
.form-success {
  display: none;
  background: #e8f9f8;
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 13px 17px;
  margin-top: 13px;
  font-weight: 700;
  font-size: var(--text-sm);
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: clamp(48px, 8vw, 65px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(40px, 6vw, 55px);
}
.footer-brand img {
  height: clamp(40px, 6vw, 52px);
  margin-bottom: 14px;
  /* logo_dark.png is designed for dark backgrounds — no filter needed */
}
.footer-brand p { font-size: var(--text-sm); line-height: 1.75; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.social-link:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h4 {
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a  { font-size: var(--text-sm); color: rgba(255,255,255,.63); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.fc-item {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
  font-size: var(--text-sm);
  align-items: flex-start;
}
.fc-item span:first-child { color: var(--primary); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.45); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ─── PAGE HERO (Inner Pages) ─── */
.page-hero {
  background: linear-gradient(140deg, var(--dark) 0%, #2A4158 100%);
  padding: clamp(110px, 16vw, 150px) 0 clamp(50px, 8vw, 75px);
  text-align: center;
}
.page-hero h1  { color: #fff; font-size: var(--text-4xl); margin-bottom: 12px; }
.page-hero p   { color: rgba(255,255,255,.8); font-size: var(--text-base); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── GALLERY PAGE ─── */
.gallery-masonry {
  columns: 3;
  column-gap: 14px;
  margin-top: clamp(30px, 5vw, 50px);
}
.gm-item {
  break-inside: avoid;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gm-item img { width: 100%; height: auto; display: block; transition: transform .42s ease; }
.gm-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.8rem);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

/* ─── ABOUT PAGE ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 65px);
  align-items: start;
}
.about-img {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-text p { margin-bottom: 16px; font-size: var(--text-base); }
.stat-row {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  margin: 26px 0;
  flex-wrap: wrap;
}
.stat-box {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px) clamp(18px, 4vw, 26px);
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: var(--text-2xl); font-weight: 700; color: var(--primary); }
.stat-lbl { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--dark); margin-top: 4px; }

/* ─── FLOOR PLANS PAGE ─── */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 38px);
  margin-top: clamp(36px, 6vw, 50px);
}
.fp-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 18px rgba(0,0,0,.09); }
.fp-img  { width: 100%; height: clamp(200px, 28vw, 280px); object-fit: contain; background: var(--light-bg); padding: 16px; }
.fp-body { padding: clamp(20px, 4vw, 30px); }
.fp-title { font-size: var(--text-2xl); margin-bottom: 8px; }
.fp-price { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: 6px 0 14px; }
.fp-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

/* ─── Strikethrough + special price ─── */
.fp-price-wrap { margin: 6px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fp-price-orig {
  font-size: 1.1rem; font-weight: 500;
  color: var(--text-light);
  text-decoration: line-through;
}
.fp-price-special {
  font-size: 1.9rem; font-weight: 800; color: #bf5800; line-height: 1;
}
.fp-price-special span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.fp-price-badge {
  display: inline-block;
  background: #fff3e0; color: #bf5800;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid #f5d5a0;
}

/* ─── AI Chat Widget ─── */
.chat-widget {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 28px rgba(27,45,62,.12);
  overflow: hidden;
  height: 560px;
}
.chat-header {
  background: linear-gradient(135deg, var(--navy) 0%, #2a4158 100%);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.chat-avatar img { width: 32px; height: auto; filter: brightness(0) invert(1); }
.chat-header-info h3 { color: #fff; font-size: 1rem; margin: 0 0 2px; }
.chat-status { font-size: .78rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; }
.chat-status::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
}
.chat-messages {
  flex: 1 1 auto;
  min-height: 0;          /* Chrome/Firefox fix: flex children must opt-in to shrinking */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
  padding: 18px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  overscroll-behavior: contain; /* prevent scroll chaining on mobile */
}
.chat-msg { display: flex; gap: 8px; max-width: 88%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: .92rem; line-height: 1.55;
}
.chat-msg.bot  .chat-bubble { background: #f1f5f9; color: var(--dark); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.chat-typing span {
  width: 7px; height: 7px; background: #94a3b8;
  border-radius: 50%; display: inline-block;
  animation: typingBounce .9s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}
.chat-suggestions {
  padding: 8px 14px 4px; flex-shrink: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
  border-top: 1px solid #f1f5f9;
}
.chat-suggestions button {
  background: #f1f5f9;
  color: var(--navy);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 13px;       /* slightly taller for easier tapping */
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  touch-action: manipulation;          /* prevent iOS double-tap zoom delay */
  -webkit-tap-highlight-color: transparent;
  min-height: 34px;                    /* accessible touch target */
  font-family: inherit;                /* Chrome doesn't inherit font on buttons */
  line-height: 1.3;
}
.chat-suggestions button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-input-area {
  display: flex; align-items: flex-end;
  gap: 8px; padding: 10px 14px 12px;
  border-top: 1px solid #e2e8f0; flex-shrink: 0;
  background: #fff;
}
#chat-input {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  resize: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 1rem;          /* MUST be >= 16px to prevent iOS auto-zoom on focus */
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: border-color .2s;
  -webkit-appearance: none; /* remove iOS default input styling */
  appearance: none;
  background: #fff;         /* explicit bg — some Android browsers render grey */
  color: var(--dark);
  box-sizing: border-box;
}
#chat-input:focus { border-color: var(--primary); }
#chat-send {
  width: 44px;              /* 44px = minimum accessible touch target (WCAG) */
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  transition: background .2s, -webkit-transform .15s;
  transition: background .2s, transform .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#chat-send:hover { background: var(--primary-dark); -webkit-transform: scale(1.08); transform: scale(1.08); }
#chat-send:disabled { background: #cbd5e1; cursor: not-allowed; -webkit-transform: none; transform: none; }
.chat-error { color: #dc2626; font-size: .82rem; padding: 4px 0; }
/* Chat widget responsive heights */
@media (max-width: 600px) {
  .chat-widget { height: 480px; }
  .chat-suggestions { gap: 5px; padding: 6px 10px 3px; }
  .chat-suggestions button { padding: 5px 10px; font-size: .74rem; }
}
@media (max-width: 400px) {
  /* On very small phones clamp to viewport so it never overflows */
  .chat-widget { height: min(460px, calc(100svh - 220px)); }
}
.fp-specs { display: flex; gap: 16px; margin: 12px 0 16px; flex-wrap: wrap; }
.fp-spec  { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); }
.fp-features {
  list-style: none;
  columns: 2;
  column-gap: 10px;
  margin: 12px 0 20px;
}
.fp-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  padding: 3px 0;
  break-inside: avoid;
}
.fp-features li::before { content: '✓'; color: var(--primary); font-weight: 900; }
.fp-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── CONTACT PAGE ─── */
.cp-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(32px, 5vw, 55px);
  margin-top: clamp(36px, 6vw, 50px);
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

/* ── 1200px – large desktop ── */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .footer-grid > .footer-brand {
    grid-column: span 3;
    max-width: 500px;
  }
  .footer-grid > .footer-brand .footer-brand-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
  }
}

/* ── 1024px – small desktop / large tablet ── */
@media (max-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr; }
  .about-img     { height: clamp(250px, 50vw, 400px); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > .footer-brand { grid-column: span 2; max-width: none; }
  .nav-cta .btn:not(:last-child) { display: none; } /* hide Pay Rent on small desktop */
}

/* ── 900px – tablet ── */
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-accent { display: none; } /* avoid overflow on stacked layout */
  .welcome-main { height: clamp(250px, 55vw, 400px); }

  .hood-grid    { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cp-grid      { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr 1fr; }

  .amenity-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; height: 220px; }

  .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .fp-grid    { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ── 768px – mobile nav threshold ── */
@media (max-width: 768px) {
  /* Switch to hamburger menu */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }

  /* Show phone number alone */
  .nav-inner::after {
    content: attr(data-phone);
  }

  /* Info bar: 2×2 grid on tablet */
  .info-bar-inner { flex-wrap: wrap; }
  .info-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
  .info-item:nth-child(1),
  .info-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .info-item:nth-child(3),
  .info-item:nth-child(4) { border-bottom: none; }

  /* Reviews: single column */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Gallery strip: 2 columns */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
  }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; height: 180px; }

  /* Gallery masonry: 2 columns */
  .gallery-masonry { columns: 2; }

  /* Collapse form rows */
  .form-row { grid-template-columns: 1fr; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Hero tweaks */
  .hero-btns { gap: 10px; }

  /* Amenities: 2 col on tablet */
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stat row wrap */
  .stat-row { gap: 12px; }
  .stat-box  { min-width: 90px; }

  /* Floor plan features: single column */
  .fp-features { columns: 1; }
}

/* ── 600px – large phones ── */
@media (max-width: 600px) {
  /* Stack info bar to 2×2 with bigger items */
  .info-item { flex: 1 1 100%; justify-content: flex-start; padding: 14px 20px; }
  .info-item:nth-child(1),
  .info-item:nth-child(2),
  .info-item:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,.2); }

  /* Gallery strip: single column */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-column: span 1; grid-row: span 1; height: 240px; }
  .gallery-item { height: 200px; }

  /* Amenities: single column */
  .amenity-grid { grid-template-columns: 1fr; }

  /* Floor plans: ensure single col */
  .plans-grid { max-width: 100%; }
  .fp-grid    { max-width: 100%; }

  /* CTA band buttons: stack */
  .cta-btns { flex-direction: column; align-items: center; gap: 10px; }
  .cta-btns .btn { width: 100%; max-width: 300px; }

  /* Welcome buttons: stack */
  .plan-btns { flex-direction: column; }
  .plan-btns .btn { width: 100%; }

  /* About stat row: 3 boxes in a row still */
  .stat-box { padding: 14px 16px; }
}

/* ── 480px – standard phones ── */
@media (max-width: 480px) {
  /* Shrink plan images */
  .plan-img { height: 200px; }
  .fp-img   { height: 200px; }

  /* Gallery masonry: single column */
  .gallery-masonry { columns: 1; }

  /* Floor plan feature list single col */
  .fp-features { columns: 1; }

  /* Feat list: single col */
  .feat-list { grid-template-columns: 1fr; }

  /* Hero badge might wrap */
  .hero-badge { font-size: .7rem; padding: 5px 12px; }

  /* Nav logo smaller */
  .logo img { height: 38px; }

  /* Contact form padding */
  .contact-form { padding: 20px 16px; }
  .fp-body { padding: 18px 16px; }
  .plan-body { padding: 16px; }

  /* Tighten hero content */
  .hero-content { margin-top: clamp(50px, 10vh, 80px); }

  /* About stat row: 3 up, smaller */
  .stat-row { gap: 8px; }
}

/* ── 375px – small phones (iPhone SE, older Androids) ── */
@media (max-width: 375px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; max-width: 260px; }

  .plan-badge { font-size: .68rem; }

  .footer-brand img { height: 36px; }

  .contact-detail { gap: 10px; }
  .cd-icon { font-size: 1.2rem; }

  /* Ensure no overflow on very small screens */
  .nav-inner { padding: 10px 14px; }
  .logo img  { height: 34px; }
}

/* ─── REDUCED MOTION — respect user OS preference ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior:      auto !important;
  }
  .hero-slide       { transition: none; }
  .gallery-item img { transition: none; }
  .gm-item img      { transition: none; }
  .amenity-card,
  .plan-card,
  .review-card,
  .fp-card          { transition: none; }
  .reveal           { opacity: 1 !important; transform: none !important; }
}

/* ─── PRINT STYLES ─── */
@media print {
  header, footer, .cta-band, .hero-btns, .hero-indicators, .slide-dots { display: none; }
  .hero { height: auto; min-height: 0; padding: 40px 20px; }
  .hero-overlay { display: none; }
  .hero h1 { color: var(--dark); }
}

/* ─── FOCUS / ACCESSIBILITY ─── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
