/* ============================================================
   VALQUEIRA — Design tokens & shared styles
   Hospitality Real Estate · Investment Advisory
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* ---- Primary palette (from brand guidelines) ---- */
  --navy:        #162240;
  --navy-deep:   #0E1829;
  --navy-deepest:#0A1220;
  --gold:        #C5A05A;
  --gold-muted:  #A88640;
  --gold-bright: #D8B978;
  --cream:       #F5F0E8;
  --offwhite:    #FAFAF7;
  --slate:       #6B7585;
  --muted:       #9CA3AF;
  --border:      #DDD8CF;
  --border-dark: rgba(255,255,255,0.08);
  --hairline-dark: rgba(255,255,255,0.06);

  /* ---- Typography ---- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* ---- Spacing rhythm (tweakable) ---- */
  --section-y: clamp(72px, 11vw, 128px);
  --gutter: clamp(24px, 6vw, 80px);
  --maxw: 1280px;

  /* tweakable accent (defaults to gold) */
  --accent: var(--gold);
}

/* Display-font tweak hook */
html[data-display="playfair"] { --font-display: 'Playfair Display', Georgia, serif; }
html[data-display="cormorant"] { --font-display: 'Cormorant Garamond', Georgia, serif; }

/* Spacing density tweak */
html[data-density="tight"]  { --section-y: clamp(56px, 8vw, 96px); }
html[data-density="regular"]{ --section-y: clamp(72px, 11vw, 128px); }
html[data-density="loose"]  { --section-y: clamp(96px, 14vw, 168px); }

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--navy);
  background: var(--offwhite);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.bg-navy      { background: var(--navy);      color: #fff; }
.bg-navy-deep { background: var(--navy-deep);  color: #fff; }
.bg-cream     { background: var(--cream); }
.bg-offwhite  { background: var(--offwhite); }

/* ============================================================
   Type styles
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.09;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.display em { font-style: italic; color: var(--accent); }

h1.display { font-size: clamp(44px, 6.4vw, 92px); }
h2.display { font-size: clamp(32px, 4.2vw, 52px); }
h3.display { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  max-width: 46ch;
  text-wrap: pretty;
}
.body-copy { font-size: 15px; line-height: 1.75; color: var(--slate); text-wrap: pretty; }
.on-dark .body-copy,
.bg-navy .body-copy,
.bg-navy-deep .body-copy { color: rgba(255,255,255,0.5); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background .45s ease, color .45s ease, border-color .45s ease, transform .45s ease;
}
.btn:hover { background: var(--accent); color: var(--navy); }
.btn .arrow { transition: transform .45s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-dark { border-color: var(--navy); color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: #fff; }

/* link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--accent);
}
.link-arrow .arrow { transition: transform .4s ease; }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ============================================================
   VQ Monogram (typographic, faithful interlocked V+Q)
   ============================================================ */
.vq {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  --vq-size: 52px;
  width: calc(var(--vq-size) * 1.18);
  height: var(--vq-size);
}
.vq .v, .vq .q {
  position: absolute;
  font-size: var(--vq-size);
  line-height: 0.82;
  top: 0;
}
.vq .v { left: 0; z-index: 2; }
.vq .q { right: 0; top: -0.06em; z-index: 1; }
/* color variants */
.vq.on-dark .v { color: #fff; }
.vq.on-dark .q { color: var(--gold); }
.vq.on-light .v { color: var(--navy); }
.vq.on-light .q { color: var(--gold); }
.vq.mono-gold .v, .vq.mono-gold .q { color: var(--gold); }
.vq.mono-navy .v, .vq.mono-navy .q { color: var(--navy); }

/* Lockup: monogram + wordmark */
.lockup { display: inline-flex; align-items: center; gap: 14px; }
.logo-mark {
  display: block;
  width: auto;
  height: 34px;
  flex: 0 0 auto;
}
.wordmark {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 17px;
  padding-left: 4px;
}
.lockup .wordmark { color: inherit; }
.footer-brand .logo-mark { height: 32px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,24,41,0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 16px;
  border-bottom: 1px solid var(--hairline-dark);
}
.site-header .lockup .wordmark { color: #fff; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); font-weight: 400;
  position: relative; padding-block: 6px;
  transition: color .3s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .35s ease;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 12px 22px; }
.nav .btn:hover { color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: #fff; transition: .3s; }

@media (max-width: 880px) {
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--navy-deep); transform: translateX(100%); transition: transform .5s cubic-bezier(.76,0,.24,1); }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 14px; }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============================================================
   Image slots — elegant empty state
   ============================================================ */
image-slot {
  --is-bg: var(--navy-deep);
  display: block;
  color: rgba(197, 160, 90, 0.85);
  background: linear-gradient(135deg, #16223f 0%, #0e1829 100%);
  position: relative;
}
image-slot::part(empty) { color: rgba(197, 160, 90, 0.85); }
image-slot::part(placeholder) { color: rgba(197,160,90,0.7); }

.img-frame { position: relative; overflow: hidden; }
.img-cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  font-family: 'SFMono-Regular', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}

/* On-brand empty-state caption that overlays a slot and hides once filled */
.slot-wrap { position: relative; }
.slot-label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; pointer-events: none;
  color: rgba(197, 160, 90, 0.72);
}
.slot-label .glyph { font-family: var(--font-display); font-size: 30px; line-height: 1; opacity: 0.9; }
.slot-label .txt {
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.7;
  max-width: 24ch; color: rgba(255,255,255,0.42);
}
image-slot[data-filled] ~ .slot-label { display: none; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: #fff; }
.footer a { color: rgba(255,255,255,0.6); transition: color .3s; }
.footer a:hover { color: var(--accent); }
