/* ==========================================================================
   Jacob & Co Beachfront Living by Ohana
   Design System & Master Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --gold:             #BF9B65;
  --gold-lt:          #DFCA9B;
  --gold-dk:          #8E6E3C;
  --gold-glow:        rgba(191, 155, 101, 0.28);
  --gold-grad:        linear-gradient(135deg, #8E6E3C 0%, #BF9B65 50%, #DFCA9B 100%);
  --gold-grad-soft:   linear-gradient(180deg, rgba(191,155,101,0.15) 0%, rgba(191,155,101,0.02) 100%);

  /* Botanical & Coastal Accents */
  --botanical:        #123D33;
  --botanical-dk:     #0A221C;
  --botanical-deep:   #061814;
  --botanical-light:  #1C594B;
  --aqua:             #B5E6DD;
  --aqua-soft:        rgba(181, 230, 221, 0.15);

  /* Light Neutrals */
  --rose-white:       #FCF6F0;
  --ivory:            #E3D9C5;
  --whisper:          #ECE6D8;
  --sand:             #D5C9B3;

  /* Dark Neutrals */
  --ink:              #131313;
  --ink-2:            #1A1A1A;
  --ink-3:            #242424;
  --ink-dark:         #0A0908;
  --ink-glass:        rgba(10, 9, 8, 0.82);

  /* Typography Colors */
  --tx-dark:          #131313;
  --tx-mid:           #524E48;
  --tx-muted:         #7C756B;
  --tx-light:         #FAF6EE;
  --tx-light-2:       rgba(250, 246, 238, 0.72);
  --tx-light-3:       rgba(250, 246, 238, 0.45);

  /* Hairlines & Borders */
  --line-light:       rgba(19, 19, 19, 0.12);
  --line-dark:        rgba(250, 246, 238, 0.12);
  --line-gold:        rgba(191, 155, 101, 0.35);

  /* Typography Families */
  --f-display:        "Cormorant Garamond", "Cinzel", Georgia, serif;
  --f-sans:           "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout Rhythm */
  --gut:              clamp(1.25rem, 4vw, 3.5rem);
  --sec-y:            clamp(5rem, 9vw, 9.5rem);
  --sec-y-sm:         clamp(3.5rem, 6vw, 6rem);
  --maxw:             1340px;
  --maxw-narrow:      960px;
  --radius-sm:        4px;
  --radius-md:        8px;

  /* Header */
  --hdr-h:            86px;

  /* Animation Easings */
  --ease:             cubic-bezier(0.25, 1, 0.35, 1);
  --ease-spring:      cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 860px) {
  :root {
    --hdr-h: 70px;
    --sec-y: clamp(3.75rem, 7vw, 6rem);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Base Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr-h);
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--rose-white);
  color: var(--tx-light);
  font-family: var(--f-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.22vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.015em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

p {
  font-family: var(--f-sans);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll lock for modal and drawer */
html:has(body.is-locked) { overflow: hidden; }
body.is-locked { overflow: hidden; overscroll-behavior: none; }

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Honeypot helper */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 20px;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 20px;
}

/* --------------------------------------------------------------------------
   3. Typography & Badges
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.title-xl {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.15;
}

.title-lg {
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
}

.title-md {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.3;
}

.subtitle {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--tx-light-2);
}

.gold-text {
  color: var(--gold);
}

.gold-line {
  height: 1px;
  background: var(--gold-grad);
  opacity: 0.45;
  width: 100%;
  margin: 1.5rem 0;
}

.spec-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
  border: 1px solid var(--line-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(191, 155, 101, 0.08);
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 2rem;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dark);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.6s var(--ease);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191, 155, 101, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--tx-light);
  border: 1px solid var(--line-gold);
}

.btn--outline:hover {
  background: rgba(191, 155, 101, 0.12);
  color: var(--gold-lt);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(191, 155, 101, 0.15);
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1.25rem;
  font-size: 0.7rem;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 3px;
}

.link-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.link-cta:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   5. Shell / Grid Containers
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.shell--narrow {
  max-width: var(--maxw-narrow);
}

.sec {
  padding-top: var(--sec-y);
  padding-bottom: var(--sec-y);
  position: relative;
}

.sec--sm {
  padding-top: var(--sec-y-sm);
  padding-bottom: var(--sec-y-sm);
}

.sec--rose {
  background: var(--rose-white);
  color: var(--tx-dark);
}
.sec--rose p {
  color: var(--tx-mid);
  font-weight: 400;
}
.sec--rose .eyebrow {
  color: var(--gold-dk);
}
.sec--rose .eyebrow::after {
  background: var(--gold-dk);
}
.sec--rose .title-xl,
.sec--rose .title-lg,
.sec--rose .title-md {
  color: var(--tx-dark);
}
.sec--rose .subtitle {
  color: var(--tx-mid);
  font-weight: 400;
}

.sec--rose .spec-pill {
  color: var(--gold-dk);
}

.sec--rose .gold-text {
  color: var(--gold-dk);
}

.sec--rose.residence-section,
.sec--rose#location,
.sec--rose#developer {
  border-top: 1px solid rgba(19, 19, 19, 0.08);
}

.sec--rose .landmark-card {
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.06);
  border-left: 3px solid #AEDED9;
  box-shadow: 0 12px 28px rgba(19, 19, 19, 0.06);
}

.sec--rose .landmark-card:hover {
  background: #fff;
  border-color: rgba(19, 19, 19, 0.06);
  border-left-color: var(--botanical);
  box-shadow: 0 18px 36px rgba(19, 19, 19, 0.1);
  transform: translateY(-3px);
}

.sec--rose .landmark-card__title {
  color: var(--tx-dark);
}

.sec--rose .landmark-card__time {
  color: var(--botanical);
  background: #AEDED9;
}

.sec--rose .dev-stat__value {
  color: var(--gold-dk);
}

.sec--rose .dev-stat__label {
  color: var(--tx-mid);
}

.sec--rose .reg-form {
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.1);
}

.sec--rose .field-label {
  color: var(--tx-mid);
}

.sec--rose .form-input,
.sec--rose .form-select {
  background: var(--rose-white);
  border: 1px solid rgba(19, 19, 19, 0.15);
  color: var(--tx-dark);
}

.sec--rose .form-input:focus,
.sec--rose .form-select:focus {
  background: #fff;
}

.sec--botanical {
  background: radial-gradient(circle at 50% 20%, var(--botanical) 0%, var(--botanical-dk) 65%, var(--botanical-deep) 100%);
  color: var(--tx-light);
}

.sec--dark {
  background: var(--ink-dark);
  color: var(--tx-light);
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--hdr-h);
  transition: background-color 0.35s var(--ease), height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hdr.is-stuck {
  background-image: linear-gradient(90deg, rgb(241, 249, 246), rgb(196, 235, 227));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 19, 19, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  height: calc(var(--hdr-h) - 10px);
}

.hdr.is-stuck .brand-lockup__logo {
  filter: invert(1) brightness(0.35);
}

.hdr.is-stuck .nav__link {
  color: var(--tx-dark);
}

.hdr.is-stuck .nav__link:hover {
  color: var(--gold-dk);
}

.hdr.is-stuck .nav__link::after {
  background: var(--gold-dk);
}

.hdr.is-stuck .burger span {
  background: var(--tx-dark);
}

.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-lockup__logo {
  height: 58px;
  width: auto;
  transition: opacity 0.25s var(--ease);
}

@media (max-width: 768px) {
  .brand-lockup__logo {
    height: 46px;
  }
}

.brand-lockup__logo:hover {
  opacity: 0.85;
}

.brand-lockup__sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-lockup__ohana {
  height: 24px;
  width: auto;
  opacity: 0.88;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.85rem);
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-light-2);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--tx-light);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Burger Toggle */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--tx-light);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(7.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--ink-dark);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--hdr-h) + 2rem) var(--gut) 3rem;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* The drawer covers the header (and its burger), so it carries its own close */
.drawer__close {
  position: absolute;
  top: calc((var(--hdr-h) - 44px) / 2);
  right: var(--gut);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.drawer__close span {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: var(--tx-light);
  transition: background 0.25s var(--ease);
}

.drawer__close span:first-child { transform: rotate(45deg); }
.drawer__close span:last-child { transform: rotate(-45deg); }

.drawer__close:hover span,
.drawer__close:focus-visible span {
  background: var(--gold);
}

.drawer__link {
  font-family: var(--f-display);
  font-size: 1.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--tx-light);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.75rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.drawer__link:hover {
  color: var(--gold);
  transform: translateX(6px);
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--hdr-h) + 2rem) var(--gut) 4.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__fallback,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__video {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__video.is-ready {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.4) 0%, rgba(10, 9, 8, 0.25) 35%, rgba(10, 9, 8, 0.35) 60%, rgba(10, 9, 8, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo-lockup {
  width: clamp(140px, 16vw, 220px);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}

.hero__title {
  font-family: var(--f-sans);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.375rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 680px;
  margin: 0 auto 1rem;
  color: var(--tx-light);
}

.hero__subtitle {
  font-family: var(--f-sans);
  font-size: clamp(0.92rem, 0.4vw + 0.8rem, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--tx-light-2);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-light-3);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__scroll:hover {
  color: var(--gold);
  transform: translateY(3px);
}

.hero__scroll-icon {
  width: 20px;
  height: 20px;
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   8. Discover / Intro Section
   -------------------------------------------------------------------------- */
.intro-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-single {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  align-items: center;
  gap: 2rem;
}

.intro-single .eyebrow {
  margin-bottom: 0;
}

.intro-single .title-lg {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
}

.intro-single .subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  font-weight: 400;
  color: var(--tx-mid);
}

.intro-single .link-cta {
  margin-top: 0.5rem;
}

.intro-full-image {
  width: 100%;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.intro-full-image img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-full-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  background: var(--ink-dark);
}

#discover {
  padding-bottom: 0;
}

.intro-full-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.intro-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-gold);
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.intro-media:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   9. Project Overview Section
   -------------------------------------------------------------------------- */
.project-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  margin-bottom: 3.5rem;
  background: var(--ink-2);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card:hover img {
  transform: scale(1.06);
}

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

/* --------------------------------------------------------------------------
   10. Partnership Section
   -------------------------------------------------------------------------- */
#partnership {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

#partnership .shell {
  position: relative;
  z-index: 2;
}

.partnership-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.partnership-particles::before,
.partnership-particles::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
  background-image:
    radial-gradient(2.5px 2.5px at 8% 12%, rgba(191, 155, 101, 0.55), transparent 60%),
    radial-gradient(2px 2px at 22% 28%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 8%, rgba(191, 155, 101, 0.4), transparent 60%),
    radial-gradient(3px 3px at 52% 34%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(2px 2px at 66% 15%, rgba(191, 155, 101, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(2.5px 2.5px at 90% 10%, rgba(191, 155, 101, 0.4), transparent 60%),
    radial-gradient(2px 2px at 14% 55%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(2px 2px at 46% 62%, rgba(191, 155, 101, 0.45), transparent 60%),
    radial-gradient(3px 3px at 84% 58%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 80%, rgba(191, 155, 101, 0.4), transparent 60%),
    radial-gradient(2px 2px at 28% 85%, rgba(255, 255, 255, 0.45), transparent 60%);
  animation: partnershipDrift 40s linear infinite;
}

.partnership-particles::after {
  animation-delay: -20s;
  opacity: 0.7;
  filter: blur(0.5px);
}

@keyframes partnershipDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partnership-particles::before,
  .partnership-particles::after {
    animation: none;
  }
}
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.partner-lockup {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.partner-lockup span {
  width: 1px;
  height: 32px;
  background: var(--line-gold);
  opacity: 0.6;
  font-size: 0 !important;
}

.partner-logo-item {
  height: 26px;
  width: auto;
  opacity: 0.92;
}

.triple-lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.lifestyle-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.lifestyle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.32) 0%, transparent 45%);
  pointer-events: none;
}

.lifestyle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.lifestyle-card:hover img {
  transform: scale(1.045);
}

@media (max-width: 860px) {
  .partnership-grid {
    grid-template-columns: 1fr;
  }
  .triple-lifestyle-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. The Collection Overview & Category Split
   -------------------------------------------------------------------------- */
.collection-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.collection-hero-card {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(19, 19, 19, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: var(--tx-light);
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease);
}

.collection-hero-card:hover {
  box-shadow: 0 28px 64px rgba(19, 19, 19, 0.26);
}

.collection-hero-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  z-index: 1;
}

.collection-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.95) 0%, rgba(10, 9, 8, 0.35) 60%, transparent 100%);
  z-index: 2;
  transition: background 0.35s var(--ease);
}

.collection-hero-card:hover .collection-hero-card__bg {
  transform: scale(1.05);
}

.collection-hero-card:hover .collection-hero-card__overlay {
  background: linear-gradient(to top, rgba(10, 9, 8, 0.98) 0%, rgba(10, 9, 8, 0.2) 60%, transparent 100%);
}

.collection-hero-card__content {
  position: relative;
  z-index: 3;
}

.collection-hero-card__badge {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(191,155,101,0.4));
}

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

/* --------------------------------------------------------------------------
   12. Residence Showcase (Sky Mansions, Penthouses, Apartments)
   -------------------------------------------------------------------------- */
.residence-section {
  position: relative;
  border-top: 1px solid var(--line-dark);
}

.residence-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.residence-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.residence-stats {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.residence-stat__value {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 400;
  color: var(--tx-dark);
}

.residence-stat__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-top: 0.25rem;
}

.residence-stat__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(19, 19, 19, 0.12);
}

/* Gallery Slider */
.slider {
  position: relative;
}

.slider__frame {
  position: absolute;
  inset: -16px;
  pointer-events: none;
  z-index: -1;
}

.slider__frame::before,
.slider__frame::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid var(--gold);
}

.slider__frame::before {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.slider__frame::after {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.slider__viewport {
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(19, 19, 19, 0.18);
  background: var(--ink-2);
}

.slider__track {
  display: flex;
  transition: transform 0.5s var(--ease);
  width: 100%;
}

.slider__slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.slider__counter {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--tx-mid);
  margin-right: 0.5rem;
}

.slider__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(19, 19, 19, 0.2);
  color: var(--tx-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.slider__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   13. Villas & Mansions Section
   -------------------------------------------------------------------------- */
.villas-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.villas-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  aspect-ratio: 16 / 10;
}

.villas-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.villas-card:hover img {
  transform: scale(1.05);
}

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

/* --------------------------------------------------------------------------
   14. Location & Enclave Section
   -------------------------------------------------------------------------- */
.location-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.location-landmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.landmark-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s var(--ease);
}

.landmark-card:hover {
  background: rgba(191, 155, 101, 0.08);
  border-color: var(--line-gold);
  transform: translateY(-2px);
}

.landmark-card__title {
  font-family: var(--f-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tx-light);
}

.landmark-card__time {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(191, 155, 101, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. Amenities & Lifestyle Section
   -------------------------------------------------------------------------- */
.amenities-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.amenities-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Vertical room so the cards' drop shadow fades out instead of being
     clipped into a grey band by the scroll container */
  margin: -2rem calc(var(--gut) * -1) -5rem;
  padding: 2rem var(--gut) 5rem;
}

.amenities-slider::-webkit-scrollbar {
  display: none;
}

.amenities-track {
  display: flex;
  gap: 1.75rem;
}

.amenities-controls {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Floor Plans
   -------------------------------------------------------------------------- */
.floorplan-slider .floorplan-name {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--tx-dark);
  margin: 1.75rem 0 0;
}

.floorplan-slider {
  margin-top: 3rem;
}

.floorplan-slider .slider__viewport {
  background: #fff;
  box-shadow: 0 24px 56px rgba(19, 19, 19, 0.15);
}

/* Floor plans show whole at their natural ratio — never cropped */
.floorplan-slider .slider__slide {
  aspect-ratio: auto;
}

.floorplan-slider .slider__slide img {
  height: auto;
  object-fit: contain;
  display: block;
}

.floorplan-slider .slider__controls {
  justify-content: center;
  margin-top: 1rem;
}

.amenity-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(19, 19, 19, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  flex: 0 0 300px;
  scroll-snap-align: start;
  transition: box-shadow 0.35s var(--ease);
  cursor: pointer;
}

.amenity-card:hover {
  box-shadow: 0 28px 64px rgba(19, 19, 19, 0.26);
}

.amenity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.25) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  transition: background 0.35s var(--ease);
}

.amenity-card:hover::after {
  background: linear-gradient(to top, rgba(10, 9, 8, 0.96) 0%, rgba(10, 9, 8, 0.15) 55%, transparent 100%);
}

.amenity-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink-2);
}

.amenity-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.amenity-card:hover .amenity-card__media img {
  transform: scale(1.06);
}

.amenity-card__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.amenity-card__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--tx-light);
}

/* Scoped to the card so the light-section `.sec--rose p` colour can't
   turn it dark over the photo */
.amenity-card .amenity-card__desc {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(250, 246, 238, 0.9);
}

/* --------------------------------------------------------------------------
   16. Developer Spotlight (Ohana Development)
   -------------------------------------------------------------------------- */
.developer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.developer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
}

.dev-stat__value {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 300;
}

.dev-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-light-2);
}

@media (max-width: 860px) {
  .developer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .developer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .dev-stat__value {
    font-size: 1.6rem;
  }
}

/* --------------------------------------------------------------------------
   17. Contact Us & Registration Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-box {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-detail-box__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-detail-box__val {
  font-size: 1.05rem;
  color: var(--tx-light);
}



/* Form Styles */
.reg-form {
  background: var(--ink-2);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-light-2);
}

.form-input,
.form-select {
  width: 100%;
  min-height: 48px;
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--tx-light);
  font-size: 1rem; /* 16px minimum — smaller makes iOS Safari zoom on focus */
  transition: all 0.25s var(--ease);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
  background: rgba(20, 20, 20, 0.95);
}


/* Form status box */
.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(30, 80, 50, 0.35);
  border: 1px solid #28a745;
  color: #75e092;
}
.form-status.is-error {
  display: block;
  background: rgba(120, 30, 30, 0.35);
  border: 1px solid #dc3545;
  color: #f18c96;
}

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

/* --------------------------------------------------------------------------
   18. Footer & Legal
   -------------------------------------------------------------------------- */
.ftr {
  background: #080A0E;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(4rem, 6vw, 5.5rem) var(--gut) 2.25rem;
  color: var(--tx-light-2);
  text-align: center;
  position: relative;
}

.ftr__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand Emblem & Typography */
.ftr__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.ftr__crest {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.15rem;
}

.ftr__crest img {
  width: 44px;
  height: 44px;
  filter: invert(77%) sepia(23%) saturate(940%) hue-rotate(358deg) brightness(91%) contrast(87%);
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.ftr__crest:hover img {
  transform: scale(1.06);
}

.ftr__title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.ftr__subtitle {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--gold-lt, #dfc699);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.ftr__tagline-gold {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.ftr__developer {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* Tagline under logo */
.ftr__tagline {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.85rem, 1.2vw, 0.96rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
  margin: 0 0 1.85rem;
  max-width: 780px;
  line-height: 1.55;
  text-align: center;
}

/* Centered Navigation Links */
.ftr__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2.2vw, 2.15rem);
  margin-bottom: 2.25rem;
}

.ftr__nav a {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 0.25rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ftr__nav a:hover {
  color: var(--gold);
}

/* Divider above disclaimer */
.ftr__divider {
  width: 100%;
  max-width: 820px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  margin: 0 auto 2rem;
}

/* Channel Partner Disclaimer */
.ftr__disclaimer {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.76rem;
  line-height: 1.72;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Bottom Full-Width Bar */
.ftr__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
}

.ftr__copyright {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.02em;
  text-align: left;
}

.ftr__backtotop {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 44px;
}

.ftr__backtotop:hover {
  color: var(--gold-lt);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .ftr {
    padding-bottom: 5.5rem; /* Ensure clearance for mobile sticky CTA */
  }

  .ftr__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .ftr__copyright {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   19. Sticky Mobile CTA
   -------------------------------------------------------------------------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--ink-glass);
  backdrop-filter: blur(12px);
  padding: 0.75rem var(--gut);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-sticky-cta .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease);
  }

  .mobile-sticky-cta.is-visible {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   20. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
[data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-rv].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-rv] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Searchable phone-code picker
   -------------------------------------------------------------------------- */
.phone-row {
  display: flex;
  gap: 0.6rem;
}

.phone-code {
  position: relative;
  flex: 0 0 7rem;
}

.phone-code-trigger {
  width: 100%;
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(19, 19, 19, 0.15);
  background: var(--rose-white);
  border-radius: var(--radius-sm);
  padding: 0 0.7rem;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tx-dark);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.phone-code-trigger:hover,
.phone-code-trigger[aria-expanded="true"] {
  border-color: var(--gold);
  background: #fff;
}

.phone-code-trigger svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--tx-muted);
  flex: none;
}

.phone-code-trigger [data-phone-code-flag] {
  font-size: 1.1rem;
  line-height: 1;
}

.phone-code-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(320px, calc(100vw - 3rem));
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(19, 19, 19, 0.18);
  padding: 0.75rem;
}

/* [hidden] alone loses to the display:flex above */
.phone-code-panel[hidden] {
  display: none;
}

.phone-code-search {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--tx-dark);
  font-family: var(--f-sans);
  font-size: 16px; /* 16px minimum — smaller makes iOS Safari zoom on focus */
}

.phone-code-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(191, 155, 101, 0.25);
}

.phone-code-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.phone-code-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--tx-dark);
  transition: background 0.2s ease;
}

.phone-code-option:hover {
  background: var(--rose-white);
}

.phone-code-option.is-selected {
  background: rgba(191, 155, 101, 0.16);
}

.phone-code-option.is-selected .pco-name {
  color: var(--gold-dk);
  font-weight: 600;
}

.pco-flag { font-size: 1.15rem; line-height: 1; flex: none; }
.pco-name { flex: 1 1 auto; }
.pco-dial { flex: none; color: var(--tx-muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Enquiry popup
   -------------------------------------------------------------------------- */
.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* The overlay itself scrolls, so touch-scroll never leaks to the page behind */
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.enquiry-modal[hidden] {
  display: none;
}

.enquiry-modal.is-open {
  opacity: 1;
}

/* margin:auto centres without clipping the top when the dialog is taller
   than the screen; only the overlay scrolls (no nested scroll container) */
.enquiry-dialog,
.enquiry-card {
  position: relative;
  background: var(--rose-white);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.enquiry-dialog {
  width: 100%;
  max-width: 560px;
  margin: auto;
  overflow: visible;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}

/* The Contact section's inline form, dressed exactly like the popup */
.enquiry-card {
  border: 1px solid var(--line-gold);
  box-shadow: 0 24px 60px rgba(19, 19, 19, 0.1);
}

.enquiry-modal.is-open .enquiry-dialog {
  transform: none;
}

.enquiry-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.enquiry-close span {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--tx-dark);
  transition: background 0.25s var(--ease);
}

.enquiry-close span:first-child { transform: rotate(45deg); }
.enquiry-close span:last-child { transform: rotate(-45deg); }

.enquiry-close:hover span,
.enquiry-close:focus-visible span {
  background: var(--gold-dk);
}

.enquiry-dialog .enquiry-title,
.enquiry-card .enquiry-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tx-dark);
  margin: 0.75rem 2.5rem 0.5rem 0;
}

.enquiry-dialog .enquiry-lead,
.enquiry-card .enquiry-lead {
  font-size: 0.95rem;
  color: var(--tx-mid);
  margin-bottom: 1.5rem;
}

.enquiry-dialog .reg-form,
.enquiry-card .reg-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 1.1rem;
}

@media (max-width: 600px) {
  .enquiry-modal {
    padding: 0.75rem;
  }
}

/* Status messages on the light cream form cards */
.enquiry-dialog .form-status.is-success,
.enquiry-card .form-status.is-success {
  background: #EEF6F0;
  border: 1px solid #9CC8A8;
  color: #1E5B32;
}

.enquiry-dialog .form-status.is-error,
.enquiry-card .form-status.is-error {
  background: #FBEFEF;
  border: 1px solid #E0A9A9;
  color: #8A2323;
}

/* No close button on the inline card, so the title can use the full width */
.enquiry-card .enquiry-title {
  margin-right: 0;
}

/* Thank-you popup */
.thanks-dialog {
  max-width: 460px;
  text-align: center;
}

.thanks-dialog .eyebrow {
  justify-content: center;
}

.thanks-dialog .enquiry-title {
  margin: 0.75rem 0 0.75rem;
}

.thanks-dialog .enquiry-lead {
  margin-bottom: 1.75rem;
}

.thanks-dialog .btn {
  width: 100%;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0.5rem auto 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-dk);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-icon svg {
  width: 30px;
  height: 30px;
}

.thanks-dialog .eyebrow::after {
  display: none;
}
