/* ==========================================================================
   D1 Group Beta — tokens (Abolire-inspired luxury real estate style)
   ========================================================================== */
:root {
  --cream: #f8f4ec;
  --cream-deep: #efe8d9;
  --charcoal: #2c2925;
  --charcoal-soft: #3c3833;
  --ink: #2a2722;
  --muted: #756f64;
  --gold: #bd9556;
  --gold-light: #d8bc86;
  --gold-deep: #806232;
  --line: #e6dfcd;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-h1: clamp(2.4rem, 4.6vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.9rem, 2.4vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.2rem, 0.6vw + 1rem, 1.4rem);

  --section-pad: clamp(4rem, 8vw, 7rem);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.hero .eyebrow {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  color: var(--ink);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}
.hero a:focus-visible, .hero button:focus-visible,
.site-footer a:focus-visible, .site-footer button:focus-visible,
.quote-band a:focus-visible, .quote-band button:focus-visible,
.site-header:not(.is-scrolled) a:focus-visible,
.site-header:not(.is-scrolled) button:focus-visible {
  outline-color: var(--gold-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--gold {
  background: var(--gold-deep);
  color: #fff;
}
.btn--gold:hover { background: var(--charcoal); }

.btn--gold-outline {
  border: 1px solid var(--gold);
  color: var(--ink);
}
.btn--gold-outline:hover { background: var(--gold-deep); color: #fff; }

.btn--gold-outline-light {
  border: 1px solid var(--gold-light);
  color: var(--cream);
}
.btn--gold-outline-light:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(248, 244, 236, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: 1.3rem;
}

.site-header__mark img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.site-header.is-scrolled .site-header__mark img { filter: none; }

.site-header__nav {
  display: none;
  gap: clamp(1.25rem, 2vw, 2rem);
  margin-inline-start: auto;
  font-size: 0.9rem;
  color: #fff;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .site-header__nav { color: var(--ink); }
.site-header__nav a { position: relative; padding-bottom: 4px; }
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.site-header__nav a:hover::after { width: 100%; }

.site-header__phone {
  display: none;
  flex-direction: column;
  text-align: right;
  line-height: 1.3;
  color: #fff;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .site-header__phone { color: var(--ink); }
.site-header__phone-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.site-header__phone-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}
.site-header.is-scrolled .site-header__phone-num {
  color: var(--gold-deep);
}

.site-header__burger {
  margin-inline-start: auto;
  width: 32px;
  height: 22px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.site-header__burger span { height: 1px; background: #fff; transition: background-color 0.3s ease; }
.site-header.is-scrolled .site-header__burger span { background: var(--ink); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 5vw, 4rem) 1.75rem;
  background: var(--cream);
  color: var(--ink);
}
.mobile-nav.is-open { display: flex; }

@media (min-width: 960px) {
  .site-header__nav, .site-header__phone { display: flex; }
  .site-header__burger { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #1c1a17 0%, var(--charcoal) 55%, var(--charcoal-soft) 100%);
  overflow: hidden;
}

.hero__scape {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__scape svg { width: 100%; height: 100%; }
.hero__hill { fill: rgba(189, 149, 86, 0.08); }
.hero__wave {
  fill: none;
  stroke: rgba(216, 188, 134, 0.35);
  stroke-width: 1.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-block: 8rem 4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.1;
  color: #fdfbf6;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--gold-light); }

.hero__lede {
  color: rgba(253, 251, 246, 0.75);
  max-width: 30rem;
  margin-bottom: 2.25rem;
}

/* Hero entrance — "First Light": the gold horizon silhouette rises first,
   then the headline emerges through a soft focus-pull, like mist clearing
   over the coast at dawn. */
.hero__scape {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .eyebrow {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-fade-up 500ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

.hero__title {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  animation: hero-focus 750ms cubic-bezier(0.16, 1, 0.3, 1) 320ms forwards;
}

.hero__lede {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-fade-up 500ms cubic-bezier(0.16, 1, 0.3, 1) 550ms forwards;
}

.hero .btn--gold {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-fade-up 500ms cubic-bezier(0.16, 1, 0.3, 1) 680ms forwards;
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-focus {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ==========================================================================
   Property information
   ========================================================================== */
.property { padding-block: var(--section-pad); }

.property__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.property__media { position: relative; }
.property__frame {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.property__frame img { max-width: 260px; }
.property__media-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.property__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  margin-bottom: 0.5rem;
}
.property__quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.property__body > p:not(.property__quote) { color: var(--muted); margin-bottom: 1.75rem; }

.spec-list {
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 500; }

@media (min-width: 860px) {
  .property__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

/* ==========================================================================
   Amenities
   ========================================================================== */
.amenities { padding-block: var(--section-pad); background: var(--cream-deep); }

.amenities__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.amenity { text-align: left; }
.amenity__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.amenity__icon svg { width: 100%; height: 100%; }
.amenity h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.amenity p { color: var(--muted); font-size: 0.95rem; max-width: 28ch; }

@media (min-width: 700px) {
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .amenities__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Showcase (gallery-style projects grid)
   ========================================================================== */
.showcase { padding-block: var(--section-pad); }

.showcase__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.5rem;
}

.showcase__panel {
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.showcase__panel img { max-width: 70%; filter: brightness(0) invert(1); }

.showcase__panel--empty {
  background: repeating-linear-gradient(135deg, var(--cream-deep), var(--cream-deep) 10px, #e9e1cc 10px, #e9e1cc 20px);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.showcase__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
}
.showcase__info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--active { color: var(--gold-deep); }

@media (min-width: 780px) {
  .showcase__grid { grid-template-columns: repeat(3, 1fr); }
  .showcase__tile--feature { grid-column: span 3; }
  .showcase__tile--feature .showcase__panel { aspect-ratio: 16 / 6; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding-block: var(--section-pad); background: var(--cream-deep); }

.process__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 2.5rem;
}

.process__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.process__step p { color: var(--muted); font-size: 0.95rem; }

@media (min-width: 780px) {
  .process__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Quote band
   ========================================================================== */
.quote-band {
  background: var(--charcoal);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.quote-band__inner { text-align: center; max-width: 42rem; margin-inline: auto; }
.quote-band__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw + 1rem, 2.1rem);
  color: #fdfbf6;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(253, 251, 246, 0.8);
  padding-block: clamp(3.5rem, 7vw, 6rem) 1.5rem;
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
}

.site-footer__logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}
.site-footer__brand p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.site-footer__brand a:hover { color: var(--gold); }

.site-footer__col h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: #fdfbf6;
  margin-bottom: 1.25rem;
}
.site-footer__col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.site-footer__col a:hover { color: var(--gold); }

.site-footer__news p { font-size: 0.88rem; margin-bottom: 1.25rem; }
.news-form {
  display: flex;
  border-bottom: 1px solid rgba(253, 251, 246, 0.3);
  padding-bottom: 0.5rem;
}
.news-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fdfbf6;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
.news-form input::placeholder { color: rgba(253, 251, 246, 0.45); }
.news-form button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
}

.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 251, 246, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

@media (min-width: 860px) {
  .site-footer__top { grid-template-columns: 1.6fr 1fr 1.2fr; }
}

/* ==========================================================================
   Simple fallback page
   ========================================================================== */
.simple-page { padding-block: calc(var(--section-pad) + 4rem) var(--section-pad); }
.simple-page__body { max-width: 60ch; margin-top: 1.5rem; color: var(--muted); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
