/* ============================================================
   Apex Vista Properties — Editorial Luxury
   Display: Cormorant Garamond · Body: Manrope
   ============================================================ */

:root {
  --ink: #1b1714;
  --ink-soft: #4a423b;
  --cream: #f7f2e9;
  --cream-deep: #efe7d8;
  --paper: #fffdf8;
  --orange: oklch(0.65 0.22 42);      /* AVP brand */
  --orange-deep: oklch(0.56 0.20 40);
  --gold: #b08949;
  --gold-soft: #c8a86e;
  --line: rgba(27, 23, 20, 0.14);
  --shadow: 0 30px 60px -25px rgba(27, 23, 20, 0.4);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, sans-serif;

  --shell: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow.light { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}
.section-title em { font-style: italic; color: var(--orange); }
.section-title.light { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.btn-solid {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 30px -12px var(--orange);
}
.btn-solid:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-line {
  border-color: rgba(27, 23, 20, 0.3);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-line.light { border-color: rgba(255,255,255,0.4); color: var(--paper); }
.btn-line.light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost { color: var(--ink); padding: 0.5rem 0; font-size: 0.82rem; }
.btn-ghost:hover { color: var(--orange); }
.btn-icon { font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow i { transition: transform 0.4s var(--ease); font-style: normal; color: var(--orange); }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  padding: 1.4rem 0;
}
.site-header.scrolled {
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.85rem 0;
}
.header-inner { display: flex; align-items: center; gap: 2rem; }

.wordmark {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit;
  margin-right: auto;
}
.wordmark-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid currentColor;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  color: var(--orange);
}
.wordmark-dot { color: var(--gold); }
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  display: flex; flex-direction: column;
}
.wordmark-text small {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 3px;
}
/* header over hero = light text */
.site-header:not(.scrolled) .wordmark-text,
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .header-call { color: var(--cream); }
.site-header:not(.scrolled) .wordmark-text small { color: rgba(247,242,233,0.7); }
.site-header:not(.scrolled) .wordmark-mark { color: var(--cream); border-color: rgba(247,242,233,0.6); }

.nav { display: flex; gap: 2rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--orange);
  transition: width 0.4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.header-call { white-space: nowrap; font-weight: 600; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.site-header:not(.scrolled) .menu-toggle span { background: var(--cream); }

.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 18s ease-out forwards; }
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,23,20,0.45) 0%, rgba(27,23,20,0.15) 35%, rgba(27,23,20,0.75) 100%),
    radial-gradient(120% 80% at 0% 100%, rgba(27,23,20,0.6), transparent 60%);
}
.hero-content { color: var(--cream); position: relative; }
.hero-content .eyebrow { color: var(--gold-soft); }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 1.6rem;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--orange); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 36ch;
  color: rgba(247, 242, 233, 0.84);
  font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-meta {
  display: flex; align-items: center; gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(247, 242, 233, 0.22);
  max-width: 560px;
}
.hero-meta strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; display: block; }
.hero-meta span { font-size: 0.8rem; color: rgba(247,242,233,0.7); letter-spacing: 0.02em; }
.hero-meta .div { width: 1px; height: 42px; background: rgba(247,242,233,0.25); }

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(3rem, 8vh, 6rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  text-decoration: none;
  color: rgba(247,242,233,0.8);
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 50px; background: rgba(247,242,233,0.5); position: relative; overflow: hidden; }
.scroll-cue i::after { content:""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-soft); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(0)} 100%{transform:translateY(300%)} }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Services */
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-no {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--serif); font-size: 1rem; color: var(--gold);
  letter-spacing: 0.1em;
}
.service-img { aspect-ratio: 16/11; overflow: hidden; margin-bottom: 1.8rem; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); filter: saturate(0.95); }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-card h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 0.7rem; }
.service-card p { color: var(--ink-soft); font-weight: 300; }

/* Why */
.why { background: var(--cream-deep); }
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why-intro { position: sticky; top: 120px; }
.why-lead { margin-top: 1.4rem; color: var(--ink-soft); font-size: 1.05rem; font-weight: 300; max-width: 34ch; }
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; }
.why-list li { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.why-num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--orange); }
.why-list h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0.4rem 0 0.5rem; }
.why-list p { color: var(--ink-soft); font-size: 0.92rem; font-weight: 300; }

/* About */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-badge {
  position: absolute; bottom: -28px; right: -10px;
  background: var(--ink); color: var(--cream);
  padding: 1.1rem 1.5rem; text-align: center;
}
.about-badge strong { font-family: var(--serif); font-size: 1.8rem; display: block; color: var(--gold-soft); }
.about-badge span { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; }
.about-copy p { color: var(--ink-soft); font-weight: 300; margin-top: 1.1rem; }

/* Contact */
.contact { background: var(--ink); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.contact-copy .section-title { margin-bottom: 0.4rem; }
.contact-lead { color: rgba(247,242,233,0.72); margin: 1.2rem 0 2.2rem; font-weight: 300; max-width: 38ch; }
.contact-list { list-style: none; display: grid; gap: 1.5rem; margin-bottom: 2.4rem; }
.contact-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(247,242,233,0.14); }
.contact-list span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); padding-top: 4px; }
.contact-list a, .contact-list address {
  color: var(--cream); text-decoration: none; font-style: normal;
  font-size: 1.05rem; font-weight: 300; line-height: 1.5;
}
.contact-list a:hover { color: var(--orange); }
.contact-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-map { min-height: 420px; border: 1px solid rgba(247,242,233,0.16); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* Footer */
.site-footer { background: var(--cream-deep); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-mark { margin-right: auto; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--orange); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.76rem; color: var(--ink-soft); }

/* Mobile sticky bar */
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.hero .reveal.in { transition-delay: calc(var(--d, 0) * 0.12s); }
.section-head, .service-card, .why-list li, .about-media, .about-copy, .contact-copy, .contact-map { opacity: 0; transform: translateY(30px); }
.section-head.in, .service-card.in, .why-list li.in, .about-media.in, .about-copy.in, .contact-copy.in, .contact-map.in {
  opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.service-card.in:nth-child(2) { transition-delay: 0.12s; }
.why-list li.in:nth-child(2) { transition-delay: 0.08s; }
.why-list li.in:nth-child(3) { transition-delay: 0.16s; }
.why-list li.in:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
  .reveal, .section-head, .service-card, .why-list li, .about-media, .about-copy, .contact-copy, .contact-map { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav, .header-call { display: none; }
  .menu-toggle { display: flex; }
  .service-grid, .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .about-media { max-width: 440px; margin: 0 auto 2rem; }
  .mobile-nav.open { display: flex; }
  .mobile-nav {
    flex-direction: column; gap: 0.4rem;
    background: rgba(247,242,233,0.97); backdrop-filter: blur(14px);
    padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
    border-top: 1px solid var(--line);
  }
  .mobile-nav a { text-decoration: none; color: var(--ink); padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
}
@media (max-width: 600px) {
  .why-list { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 1.2rem; }
  .hero-meta .div { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    box-shadow: 0 -8px 24px -12px rgba(27,23,20,0.4);
  }
  .mobile-bar-btn { padding: 1.05rem; text-align: center; text-decoration: none; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em; }
  .mobile-bar-btn.call { background: var(--ink); color: var(--cream); }
  .mobile-bar-btn.wa { background: var(--orange); color: #fff; }
  .scroll-cue { display: none; }
}

/* Print/PDF preview — keep colors, neutralize full-viewport hero */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .hero { min-height: 760px !important; }
  .reveal, .section-head, .service-card, .why-list li, .about-media, .about-copy, .contact-copy, .contact-map { opacity: 1 !important; transform: none !important; }
  .site-header { position: absolute !important; }
}
