/* ═══════════════════════════════════════════════
   DRIFT COLLECTIVE — SHARED STYLES v2
   Full UI revamp — May 2025
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:        #E9E4DC;
  --sand-mid:    #CFC0AB;
  --sand-deep:   #AE9E88;
  --ocean:       #19292A;
  --ocean-mid:   #243839;
  --ocean-light: #2E4546;
  --sage:        #647570;
  --sage-light:  #8A9E98;
  --white:       #F8F7F4;
  --white-pure:  #FFFFFF;
  --ink:         #19292A;
  --ink-mid:     #2E3E3F;
  --muted:       #7A8C89;
  --muted-light: #A8B5B2;
  --accent:      #647570;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Montserrat', system-ui, sans-serif;
  --radius:      2px;
  --radius-sm:   1px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing scale */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  48px;
  --sp-xl:  80px;
  --sp-2xl: 120px;

  /* Typography scale */
  --text-xs:   10px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-lg:   16px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--sans); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.scrolled {
  padding: 14px 56px;
  background: rgba(248,247,244,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(207,192,171,0.35);
  box-shadow: 0 1px 20px rgba(25,41,42,0.06);
}
nav.solid {
  padding: 16px 56px;
  background: var(--white);
  border-bottom: 1px solid rgba(207,192,171,0.35);
}

/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.7; }
.logo-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.05em;
  line-height: 1;
  transition: color var(--transition);
  color: var(--white);
}
.logo-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
  transition: color var(--transition);
  color: rgba(248,247,244,0.5);
}
nav.scrolled .logo-wordmark,
nav.solid .logo-wordmark { color: var(--ink); }
nav.scrolled .logo-sub,
nav.solid .logo-sub { color: var(--muted-light); }

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links a {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.75);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding: 6px 18px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--sand-mid);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
nav.scrolled .nav-links a,
nav.solid .nav-links a { color: var(--muted); }
nav.scrolled .nav-links a:hover,
nav.solid .nav-links a:hover { color: var(--ink); }
nav.scrolled .nav-links a.active,
nav.solid .nav-links a.active { color: var(--ink); }

/* NAV CTA */
.nav-cta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(248,247,244,0.4);
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: var(--radius);
  margin-left: 20px;
}
nav.scrolled .nav-cta,
nav.solid .nav-cta {
  color: var(--ocean);
  border-color: rgba(25,41,42,0.4);
}
.nav-cta:hover,
nav.scrolled .nav-cta:hover,
nav.solid .nav-cta:hover {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: 16px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}
nav.scrolled .hamburger span,
nav.solid .hamburger span { background: var(--ink); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  line-height: 1;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  transition: color var(--transition);
}
.mobile-close:hover { color: var(--ink); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 152px 56px 80px;
  background: var(--ocean);
  position: relative;
  overflow: hidden;
}
.page-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.45);
  margin-bottom: 18px;
  display: block;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 300;
  color: var(--white);
  line-height: 0.93;
  letter-spacing: -0.015em;
}
.page-hero-title em { font-style: italic; }
.page-hero-lead {
  font-size: 14px;
  font-weight: 300;
  color: rgba(248,247,244,0.6);
  line-height: 1.85;
  max-width: 460px;
  margin-top: 22px;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.breadcrumb a {
  font-size: 10.5px;
  color: rgba(248,247,244,0.4);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: rgba(248,247,244,0.75); }
.breadcrumb span { font-size: 10px; color: rgba(248,247,244,0.2); }
.breadcrumb .current {
  font-size: 10.5px;
  color: rgba(248,247,244,0.55);
  letter-spacing: 0.06em;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; }
section { padding: var(--sp-xl) 56px; }
hr.divider { border: none; border-top: 1px solid var(--sand-mid); margin: 0; }

/* ── TYPOGRAPHY ── */
.section-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-title em { font-style: italic; }
.section-lead {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
  max-width: 500px;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ocean);
  border: none;
  padding: 15px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: var(--radius);
  display: inline-block;
  line-height: 1;
}
.btn-primary:hover {
  background: var(--ocean-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(25,41,42,0.2);
}

.btn-outline {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean);
  background: transparent;
  border: 1px solid rgba(25,41,42,0.35);
  padding: 15px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: var(--radius);
  display: inline-block;
  line-height: 1;
}
.btn-outline:hover {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

.btn-sand {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--sand);
  border: none;
  padding: 15px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: var(--radius);
  display: inline-block;
  line-height: 1;
}
.btn-sand:hover {
  background: var(--white-pure);
  transform: translateY(-1px);
}

/* ── PROPERTY CARDS (used on homepage) ── */
.property-card {
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.property-card:hover .card-img-wrap img,
.property-card:hover .card-img-placeholder { transform: scale(1.04); }
.card-img-wrap {
  height: 280px;
  overflow: hidden;
  background: var(--sand-mid);
  position: relative;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sand-mid), var(--sand-deep));
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.card-img-placeholder svg { opacity: 0.3; width: 48px; height: 48px; }
.card-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(25,41,42,0.7);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: var(--radius);
}
.card-body { padding: 28px 28px 32px; }
.card-location {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.15;
}
.card-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.card-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}
.card-meta-item svg { width: 13px; height: 13px; opacity: 0.6; }
.card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-top: 1px solid var(--sand);
  padding-top: 16px;
}
.card-price .from { font-size: 11px; color: var(--muted); }
.card-price .amount {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.card-price .per { font-size: 11.5px; color: var(--muted); }
.card-price .enquire-btn {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  background: none;
  border: 1px solid rgba(25,41,42,0.25);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.card-price .enquire-btn:hover {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input,
.form-select {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--sand-mid);
  padding: 13px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(25,41,42,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
footer {
  background: #111D1E;
  padding: 72px 56px 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto 52px;
}
.footer-tagline {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(248,247,244,0.35);
  line-height: 1.75;
  max-width: 220px;
  margin: 10px 0 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(248,247,244,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,247,244,0.35);
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: rgba(248,247,244,0.35);
  color: var(--white);
}
.footer-social svg { width: 13px; height: 13px; }
.footer-col-title {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.3);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(248,247,244,0.5);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(248,247,244,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(248,247,244,0.25);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(248,247,244,0.28);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(248,247,244,0.6); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(25,41,42,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  max-width: 520px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  background: var(--ocean);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
}
.modal-close {
  background: none;
  border: none;
  color: rgba(248,247,244,0.5);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer { padding: 0 32px 32px; }

/* ── TOAST ── */
.toast {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  background: var(--ocean);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 300;
  box-shadow: 0 8px 32px rgba(25,41,42,0.25);
  letter-spacing: 0.01em;
}
.toast.show {
  display: block;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: #111D1E;
  border-top: 1px solid rgba(248,247,244,0.08);
  padding: 18px 56px;
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(248,247,244,0.65);
  line-height: 1.6;
  min-width: 280px;
}
.cookie-banner-text a {
  color: var(--sand-mid);
  text-decoration: underline;
  transition: color var(--transition);
}
.cookie-banner-text a:hover { color: var(--white); }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--sand);
  border: none;
  padding: 11px 22px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--white-pure); }
.cookie-btn-settings {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.5);
  background: transparent;
  border: 1px solid rgba(248,247,244,0.15);
  padding: 11px 22px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.cookie-btn-settings:hover {
  color: var(--white);
  border-color: rgba(248,247,244,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  nav, nav.scrolled, nav.solid { padding-left: 32px; padding-right: 32px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 14px; }
}
@media (max-width: 1024px) {
  nav { padding: 18px 28px !important; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 64px 28px; }
  .page-hero { padding: 132px 28px 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 56px 28px 36px; }
  .cookie-banner { padding: 16px 28px; }
}
@media (max-width: 640px) {
  nav { padding: 16px 20px !important; }
  section { padding: 52px 20px; }
  .page-hero { padding: 112px 20px 52px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer { padding: 44px 20px 28px; }
  .cookie-banner { padding: 14px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-settings { flex: 1; text-align: center; }
}
