/* ============================================================
   RVR REAL ESTATES — Design System
   Palette derived from brand logo & campaign artwork:
   Deep Forest Green + Metallic Gold + Cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root{
  /* Colors — sampled directly from the RVR logo & banner */
  --forest-deep:  #082818;   /* darkest — hero overlays, footer */
  --forest:       #0B3D26;   /* primary brand green */
  --forest-mid:   #123B27;   /* card panels on dark */
  --forest-line:  #1F4E34;   /* hairlines on dark */
  --gold-deep:    #8B6914;
  --gold:         #C9A227;   /* primary gold */
  --gold-light:   #E8C873;
  --cream:        #FAF7F0;   /* page background */
  --ivory:        #FFFDF8;   /* card background */
  --ink:          #16211B;   /* body copy */
  --sage:         #6E7F71;   /* muted text */
  --line:         #E4DFD2;   /* light hairlines */

  --gold-gradient: linear-gradient(115deg, var(--gold-deep) 0%, var(--gold-light) 45%, var(--gold) 75%, var(--gold-deep) 100%);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

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

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--forest-deep);
  letter-spacing: .002em;
}
h1{ font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2{ font-size: clamp(2rem, 3.4vw, 3rem); }
h3{ font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4{ font-size: 1.15rem; }
p{ color: var(--ink); }
.italic-gold{
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
@media (max-width: 720px){
  .section{ padding: 64px 0; }
  .section-tight{ padding: 44px 0; }
}

/* Eyebrow label with signature diamond mark */
.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:'';
  width:7px; height:7px;
  background: var(--gold-gradient);
  transform: rotate(45deg);
  flex-shrink:0;
}
.eyebrow.on-dark{ color: var(--gold-light); }

.diamond-rule{
  display:flex; align-items:center; gap:16px;
  margin: 18px 0 28px;
}
.diamond-rule span{ height:1px; flex:1; background: var(--line); }
.diamond-rule.on-dark span{ background: var(--forest-line); }
.diamond-rule::before, .diamond-rule::after{ display:none; }
.diamond-rule i{
  width:8px; height:8px; background: var(--gold-gradient); transform: rotate(45deg); flex-shrink:0;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 30px;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn-gold{
  background: var(--forest-deep);
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-gold:hover{ background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
.btn-outline{
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250,247,240,.5);
}
.btn-outline:hover{ background: var(--ivory); color: var(--forest-deep); border-color: var(--ivory); }
.btn-outline-dark{
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--forest-deep);
}
.btn-outline-dark:hover{ background: var(--forest-deep); color: var(--gold-light); }
.btn-arrow::after{ content:'→'; transition: transform .3s var(--ease); }
.btn-arrow:hover::after{ transform: translateX(4px); }

/* ---------- Navigation ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(250,247,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo img{ height: 46px; width:auto; }
.nav-links{
  display:flex; align-items:center; gap: 34px;
}
.nav-links a{
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background: var(--gold-gradient); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--gold-deep); }
.nav-cta{ display:flex; align-items:center; gap:22px; }
.nav-cta .btn{ padding: 12px 22px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:28px;
}
.nav-toggle span{ height:2px; background: var(--forest-deep); width:100%; transition: all .3s var(--ease); }
.nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 72px 0 0 0; background: var(--cream);
    flex-direction: column; align-items:flex-start; padding: 40px 32px;
    gap: 26px; transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y:auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ font-size: 1rem; }
  .nav-cta .btn-outline-dark{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex; align-items:center;
  background: var(--forest-deep);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover; background-position: center;
}
.hero-bg::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(8,40,24,.96) 0%, rgba(8,40,24,.86) 32%, rgba(8,40,24,.35) 62%, rgba(8,40,24,.15) 100%);
}
.hero-inner{
  position: relative; z-index:2;
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
  width:100%;
}
.hero-content{ max-width: 620px; padding: 60px 0; }
.hero h1{ color: var(--ivory); margin-bottom: 8px; }
.hero-sub{
  color: rgba(250,247,240,.82);
  font-size: 1.08rem;
  max-width: 480px;
  margin: 18px 0 34px;
  font-weight: 300;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-contour{
  position:absolute; right:-60px; top:-40px; width: 480px; opacity:.35; z-index:1;
}
@media (max-width: 720px){
  .hero{ min-height: 82vh; }
  .hero-contour{ display:none; }
}

/* ---------- Stat strip ---------- */
.stat-strip{
  background: var(--forest-deep);
  padding: 52px 0;
  border-top: 1px solid var(--forest-line);
  border-bottom: 1px solid var(--forest-line);
}
.stat-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center;
}
.stat-num{
  font-family: var(--serif); font-size: clamp(2rem,4vw,2.8rem);
  background: var(--gold-gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight: 600;
}
.stat-label{
  font-size: .74rem; letter-spacing:.12em; text-transform:uppercase;
  color: rgba(250,247,240,.7); margin-top:6px;
}
@media (max-width: 720px){ .stat-grid{ grid-template-columns: repeat(2,1fr); gap:32px 20px; } }

/* ---------- Feature / value cards ---------- */
.feature-grid{
  display:grid; grid-template-columns: repeat(5,1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card{
  background: var(--ivory); padding: 38px 26px; text-align:left;
  transition: background .3s var(--ease);
}
.feature-card:hover{ background: var(--cream); }
.feature-icon{ width:38px; height:38px; margin-bottom:18px; color: var(--gold-deep); }
.feature-card h4{ margin-bottom:8px; }
.feature-card p{ font-size: .92rem; color: var(--sage); }
@media (max-width: 980px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }

/* ---------- Section headers ---------- */
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color: var(--sage); font-size: 1.02rem; margin-top: 14px; }

/* ---------- Project cards ---------- */
.project-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.project-card{
  background: var(--ivory); border: 1px solid var(--line);
  overflow:hidden; position:relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover{ transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(8,40,24,.28); }
.project-visual{
  height: 220px; background: var(--forest-deep); position:relative; overflow:hidden;
}
.project-visual svg{ position:absolute; inset:0; width:100%; height:100%; }
.project-status{
  position:absolute; top:16px; left:16px; z-index:2;
  font-size: .68rem; letter-spacing:.12em; text-transform:uppercase; font-weight:500;
  padding: 6px 12px; background: var(--gold-gradient); color: var(--forest-deep);
}
.project-body{ padding: 26px 26px 30px; }
.project-loc{
  font-size: .74rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-deep); font-weight:500;
  margin-bottom: 8px;
}
.project-meta{
  display:flex; justify-content:space-between; align-items:center;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--sage);
}
.project-meta strong{ color: var(--forest-deep); font-weight:500; }
.project-body p.desc{ font-size: .92rem; color: var(--sage); margin: 6px 0 0; }
@media (max-width: 980px){ .project-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .project-grid{ grid-template-columns: 1fr; } }

/* ---------- Split layout (about teaser etc.) ---------- */
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items:center;
}
.split img{ width:100%; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; gap: 40px; } }
.split-media{ position:relative; }
.split-media::before{
  content:''; position:absolute; top:-18px; left:-18px; right:18px; bottom:18px;
  border: 1px solid var(--gold); z-index:-1;
}

/* ---------- Testimonials ---------- */
.testi-card{
  background: var(--ivory); border: 1px solid var(--line); padding: 40px 34px;
  position:relative;
}
.testi-quote{
  font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height:1; display:block; margin-bottom:6px;
}
.testi-card p.body{ font-size: 1.02rem; color: var(--ink); margin-bottom: 24px; }
.testi-person{ display:flex; align-items:center; gap:14px; }
.testi-avatar{
  width:44px; height:44px; border-radius:50%; background: var(--forest);
  color: var(--gold-light); display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-size:1.1rem;
}
.testi-name{ font-weight:500; color: var(--forest-deep); font-size:.94rem; }
.testi-loc{ font-size:.8rem; color: var(--sage); }
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
@media (max-width: 980px){ .testi-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .testi-grid{ grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--forest-deep);
  padding: 56px 0;
  position: relative; overflow:hidden;
}
.cta-banner-inner{
  display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap;
}
.cta-banner h3{ color: var(--ivory); font-size: clamp(1.4rem,2.6vw,1.9rem); max-width:520px; }
.cta-banner p{ color: rgba(250,247,240,.75); margin-top:8px; font-size:.94rem; }
.cta-banner-right{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.cta-phone{ color: var(--gold-light); font-family: var(--serif); font-size:1.3rem; }
.cta-phone span{ display:block; font-family: var(--sans); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color: rgba(250,247,240,.6); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--forest-deep); color: rgba(250,247,240,.75); padding-top: 70px; }
.footer-grid{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid var(--forest-line);
}
.footer-brand{ font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); }
.footer-brand span{ color: var(--gold-light); }
.footer-tag{ font-size:.88rem; color: rgba(250,247,240,.55); margin-top:12px; max-width: 280px; }
.footer-col h5{
  font-family: var(--sans); font-size:.76rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--gold-light); margin-bottom: 18px; font-weight:500;
}
.footer-col a, .footer-col li{ display:block; font-size:.9rem; margin-bottom:12px; color: rgba(250,247,240,.75); }
.footer-col a:hover{ color: var(--gold-light); }
.footer-social{ display:flex; gap:14px; margin-top: 18px; }
.footer-social a{
  width:34px; height:34px; border:1px solid var(--forest-line); display:flex; align-items:center; justify-content:center;
}
.footer-social a:hover{ border-color: var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding: 24px 0;
  font-size: .8rem; color: rgba(250,247,240,.5); flex-wrap:wrap; gap:10px;
}
.footer-bottom a{ margin-left: 18px; }
.footer-bottom a:hover{ color: var(--gold-light); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background: var(--forest-deep); padding: 150px 0 70px; position:relative; overflow:hidden;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color: var(--ivory); }
.page-hero p{ color: rgba(250,247,240,.75); max-width:560px; margin-top:14px; }
.page-hero-contour{ position:absolute; right:-40px; bottom:-60px; width:360px; opacity:.3; }
.breadcrumb{ font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--gold-light); margin-bottom:16px; }
.breadcrumb a{ color: rgba(250,247,240,.6); }

/* ---------- Utility ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }
.text-center{ text-align:center; }
.mt-40{ margin-top:40px; }

/* ---------- FAQ Accordion ---------- */
.faq-list{ max-width: 760px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width:100%; display:flex; justify-content:space-between; align-items:center;
  padding: 24px 4px; text-align:left; font-family: var(--serif); font-size:1.15rem; color: var(--forest-deep);
}
.faq-q .mark{
  width:10px; height:10px; background: var(--gold-gradient); flex-shrink:0; margin-left:20px;
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-q .mark{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .35s var(--ease); }
.faq-a-inner{ padding: 0 4px 24px; color: var(--sage); font-size:.96rem; max-width: 640px; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-card{
  background: var(--forest-deep); color: var(--ivory); padding: 44px 36px; position:relative; overflow:hidden;
}
.info-row{ display:flex; gap:16px; margin-bottom:26px; align-items:flex-start; }
.info-row .icon{ color: var(--gold-light); flex-shrink:0; margin-top:2px; }
.info-row h5{ font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-light); margin-bottom:4px; font-weight:500; }
.info-row p, .info-row a{ font-size:.94rem; color: rgba(250,247,240,.85); }

.form-field{ margin-bottom: 22px; }
.form-field label{
  display:block; font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; color: var(--forest);
  margin-bottom: 8px; font-weight:500;
}
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding: 14px 16px; background: var(--ivory); border: 1px solid var(--line);
  font-family: var(--sans); font-size: .95rem; color: var(--ink); transition: border-color .3s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ border-color: var(--gold); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-note{ font-size:.82rem; color: var(--sage); margin-top:14px; }
#formStatus{ font-size:.88rem; margin-top:14px; }

/* ---------- Legal pages ---------- */
.legal-body{ max-width: 760px; }
.legal-body h2{ margin-top: 44px; margin-bottom: 14px; font-size: 1.5rem; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p, .legal-body li{ color: var(--sage); font-size:.98rem; margin-bottom: 14px; }
.legal-body ul{ padding-left: 4px; }
.legal-body li{ position:relative; padding-left: 22px; }
.legal-body li::before{
  content:''; position:absolute; left:0; top:8px; width:6px; height:6px; background: var(--gold-gradient); transform: rotate(45deg);
}
.legal-updated{ color: var(--gold-deep); font-size:.84rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom: 30px; display:block; }

/* ---------- About page ---------- */
.value-list{ display:grid; grid-template-columns: repeat(2,1fr); gap: 30px 50px; margin-top: 30px; }
@media (max-width:700px){ .value-list{ grid-template-columns: 1fr; } }
.value-item{ display:flex; gap:16px; }
.value-item .mark{ width:10px; height:10px; background: var(--gold-gradient); transform: rotate(45deg); flex-shrink:0; margin-top:8px; }
.value-item h4{ margin-bottom:6px; }
.value-item p{ font-size:.92rem; color: var(--sage); }

.team-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
@media (max-width: 900px){ .team-grid{ grid-template-columns: 1fr; max-width:420px; margin:0 auto; } }
.team-card{ text-align:center; }
.team-photo{
  width: 168px; height:168px; border-radius:50%; margin: 0 auto 20px;
  background: var(--forest); display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold-light);
  border: 1px solid var(--gold);
}
.team-card h4{ margin-bottom:2px; }
.team-role{ font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--gold-deep); margin-bottom:12px; }
.team-card p.bio{ font-size:.9rem; color: var(--sage); }

.timeline{ border-left: 1px solid var(--line); padding-left: 34px; margin-top:10px; }
.timeline-item{ position:relative; margin-bottom: 34px; }
.timeline-item::before{
  content:''; position:absolute; left:-40px; top:4px; width:10px; height:10px; background: var(--gold-gradient); transform: rotate(45deg);
}
.timeline-year{ font-family: var(--serif); color: var(--forest); font-size:1.1rem; margin-bottom:4px; }
.timeline-item p{ color: var(--sage); font-size:.92rem; }

/* ---------- Project detail rows (Projects page) ---------- */
.project-row{
  display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center;
  padding: 60px 0; border-bottom: 1px solid var(--line);
}
.project-row:last-child{ border-bottom:none; }
.project-row:nth-child(even) .project-row-media{ order:2; }
.project-row-media{ position:relative; }
.project-row-media .project-visual{ height: 340px; }
.project-row-content .project-loc{ margin-bottom:10px; }
.tag-list{ display:flex; flex-wrap:wrap; gap:10px; margin: 18px 0 22px; }
.tag{
  font-size:.76rem; letter-spacing:.05em; text-transform:uppercase; font-weight:500;
  padding: 7px 14px; border: 1px solid var(--line); color: var(--forest); background: var(--ivory);
}
.project-specs{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin: 24px 0 28px; padding: 20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.project-specs div span{ display:block; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color: var(--sage); margin-bottom:4px; }
.project-specs div strong{ font-family: var(--serif); font-size:1.25rem; color: var(--forest-deep); font-weight:500; }
@media (max-width: 860px){
  .project-row{ grid-template-columns:1fr; gap:30px; padding: 44px 0; }
  .project-row:nth-child(even) .project-row-media{ order:0; }
  .project-specs{ grid-template-columns: repeat(3,1fr); gap:10px; }
}

/* Back to top */
.back-top{
  position: fixed; bottom: 26px; right: 26px; width:46px; height:46px;
  background: var(--forest-deep); color: var(--gold-light); display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--gold); opacity:0; pointer-events:none; transition: opacity .3s var(--ease);
  z-index: 90;
}
.back-top.show{ opacity:1; pointer-events:auto; }
