/* ==========================================================================
   OBSIDIA MANAGEMENT — design tokens
   Ink + parchment + brass gold + jungle jade.
   Display: Fraunces (sculptural, warm serif)
   Body/UI: Work Sans (clean corporate sans)
   Signature: the roofline — a single thin gold line tracing villa gables
   and jungle canopy, used as the recurring structural motif.
   ========================================================================== */

:root {
  --ink:          #14150f;
  --ink-2:        #1d1e16;
  --parchment:    #f6f2e8;
  --parchment-2:  #efe8d8;
  --stone-line:   rgba(20, 21, 15, 0.12);
  --gold-line:    rgba(169, 130, 47, 0.35);

  --gold:         #a9822f;
  --gold-light:   #d3ac5c;
  --gold-deep:    #7c5e22;
  --jade:         #48583f;
  --jade-light:   #7c9270;

  --text-ink:     #23241c;
  --text-ink-dim: rgba(35, 36, 28, 0.68);
  --text-cream:   #f6f2e8;
  --text-cream-dim: rgba(246, 242, 232, 0.72);

  --gold-gradient: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-light) 100%);

  --serif: 'Fraunces', 'Iowan Old Style', serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --edge: clamp(1.5rem, 6vw, 5.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text-ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 560; margin: 0 0 0.55em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 560; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1em;
  font-weight: 500;
}
.eyebrow-center { text-align: center; }
.center { text-align: center; }
.lede { max-width: 620px; margin-left: auto; margin-right: auto; color: var(--text-ink-dim); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.9em 2em;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-gold { background: var(--gold-gradient); color: var(--ink); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(169,130,47,0.55); }
.btn-ghost { border-color: var(--text-cream-dim); color: var(--text-cream); }
.btn-ghost:hover { background: rgba(246,242,232,0.1); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.3rem var(--edge);
  transition: background 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(20, 21, 15, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.3rem var(--edge);
  border-bottom: 1px solid var(--gold-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
}

.brand-mark { height: clamp(135px, 21vw, 264px); width: auto; transition: height 0.35s ease; }
.site-header.scrolled .brand-mark { height: clamp(84px, 13.5vw, 144px); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.main-nav a { color: var(--text-cream-dim); transition: color 0.3s ease; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.nav-cta {
  color: var(--ink);
  background: var(--gold-gradient);
  padding: 0.65em 1.3em;
  font-weight: 500;
}
.main-nav a.nav-cta:hover { color: var(--ink); transform: none; }

.header-controls { display: flex; align-items: center; gap: 1.2rem; }

.lang-toggle {
  background: none;
  border: 1px solid var(--gold-line);
  color: var(--text-cream-dim);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 0.4em 0.7em;
  cursor: pointer;
  display: flex;
  gap: 0.35em;
}
.lang-toggle .lang-opt { transition: color 0.25s ease, font-weight 0.25s ease; }
.lang-toggle .lang-opt.active { color: var(--gold-light); font-weight: 600; }
.lang-toggle .lang-sep { color: var(--gold-line); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 1px; background: var(--gold-light); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,21,15,0.92) 0%, rgba(20,21,15,0.6) 46%, rgba(20,21,15,0.28) 78%),
    linear-gradient(180deg, rgba(20,21,15,0.35) 0%, transparent 30%, rgba(20,21,15,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: clamp(11rem, 28vw, 18rem) var(--edge) 4rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--text-cream);
}
.hero-content h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-sub { color: var(--text-cream-dim); max-width: 480px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.roofline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
}
.roofline polyline { fill: none; stroke: var(--gold-light); stroke-width: 1.4; opacity: 0.85; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--section-pad) var(--edge); }
.section-inner { max-width: 1180px; margin: 0 auto; }

/* ----- Approach ----- */
.approach { background: var(--parchment); }
.driver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.2rem;
}
.driver { text-align: left; padding-top: 1.4rem; border-top: 1px solid var(--stone-line); }
.driver-icon { width: 34px; height: 34px; color: var(--gold-deep); margin-bottom: 1rem; }
.driver h3 { color: var(--text-ink); }
.driver p { color: var(--text-ink-dim); font-size: 0.94rem; margin-bottom: 0; }

/* ----- Services split ----- */
.services { padding: 0; }
.services-split { display: grid; grid-template-columns: 1fr 1fr; }
.services-col { padding: clamp(3rem, 6vw, 5.5rem) var(--edge); }
.services-owners { background: var(--ink); color: var(--text-cream); }
.services-owners h2 { color: var(--text-cream); }
.services-owners .eyebrow { color: var(--gold-light); }
.services-guests { background: var(--parchment-2); color: var(--text-ink); }

.service-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.service-list li {
  position: relative;
  padding: 0.7em 0 0.7em 1.6em;
  border-bottom: 1px solid var(--stone-line);
  font-size: 0.96rem;
}
.services-owners .service-list li { border-bottom-color: rgba(246,242,232,0.14); }
.service-list li::before {
  content: '';
  position: absolute; left: 0; top: 1.15em;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ----- Portfolio ----- */
.portfolio { background: var(--ink); }
.portfolio .eyebrow { color: var(--gold-light); }
.portfolio h2, .portfolio .lede { color: var(--text-cream); }
.portfolio .lede { color: var(--text-cream-dim); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}
.property-card {
  background: var(--ink-2);
  border: 1px solid var(--gold-line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.property-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-media img { transform: scale(1.05); }
.property-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: rgba(20,21,15,0.75);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
}
.property-body { padding: 1.4rem 1.4rem 1.6rem; }
.property-body h3 { color: var(--text-cream); margin-bottom: 0.3em; }
.property-body p { color: var(--text-cream-dim); font-size: 0.9rem; margin-bottom: 1em; }
.property-links { display: flex; flex-wrap: wrap; gap: 0.5em 1.2em; }
.property-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.2em;
}
.property-link:hover { border-color: var(--gold-light); }
.property-link-wa { color: var(--jade-light); border-bottom-color: rgba(124,146,112,0.35); }
.property-link-wa:hover { border-color: var(--jade-light); }

/* ----- Process ----- */
.process { background: var(--parchment); }
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.2rem;
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: 0; right: 0;
  height: 1px;
  background: var(--stone-line);
}
.process-step { position: relative; padding-top: 2.4rem; }
.step-index {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-deep);
  background: var(--parchment);
  padding-right: 0.6em;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--text-ink-dim); font-size: 0.9rem; margin-bottom: 0; }

/* ----- Contact ----- */
.contact { background: var(--parchment-2); }
.contact-inner { max-width: 620px; margin: 0 auto; }

.contact-form { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; letter-spacing: 0.03em; color: var(--text-ink-dim); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--stone-line);
  background: var(--parchment);
  color: var(--text-ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form button { margin-top: 0.4rem; align-self: flex-start; }
.form-note { font-size: 0.85rem; color: var(--jade); min-height: 1.2em; }

.contact-direct {
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-ink-dim);
}
.contact-direct a { border-bottom: 1px solid var(--gold-line); padding-bottom: 0.1em; }
.contact-direct a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.contact-direct .dot { margin: 0 0.6em; color: var(--gold-line); }

/* ----- Footer ----- */
.site-footer {
  text-align: center;
  padding: 2.6rem var(--edge) 2rem;
  background: var(--ink);
  color: var(--text-cream-dim);
}
.footer-mark { height: clamp(120px, 27vw, 192px); margin: 0 auto 1rem; opacity: 0.92; }
.site-footer p { font-size: 0.82rem; margin-bottom: 0.35em; }
.footer-copy { color: rgba(246,242,232,0.4); font-size: 0.74rem; }

/* ----- Floating WhatsApp ----- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  box-shadow: 0 14px 30px -12px rgba(169,130,47,0.6);
  transition: transform 0.3s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 27px; height: 27px; fill: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .driver-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-split { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .process-track::before { display: none; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: rgba(20,21,15,0.98);
    border-left: 1px solid var(--gold-line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.7rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
}