/* Rob Burns Real Estate — static site stylesheet
   Palette and type pulled from the live site's design tokens. */

:root{
  --color-background: #FFFFFF;
  --color-foreground: #0D0D0D;
  --color-primary: #B08D5B;
  --color-primary-foreground: #FFFFFF;
  --color-secondary: #0D0D0D;
  --color-secondary-foreground: #F8F5F0;
  --color-accent: #8C6D3F;
  --color-muted: #F8F5F0;
  --color-muted-foreground: #6B6458;
  --color-surface: #FDFCFA;
  --color-border: #E5E0D8;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --container: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  visibility: hidden;
}
body.rb-gate-lock{ overflow:hidden; }

/* ---------- Site gate ---------- */
#rb-gate{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-background);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.rb-gate-inner{
  max-width: 360px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 22px;
  text-align:center;
}
.rb-gate-brand{
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rb-gate-kicker{
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}
.rb-gate-form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 6px;
}
.rb-gate-form input{ text-align:center; }
.rb-gate-form .btn{ width:100%; margin-top:4px; border:none; }
.rb-gate-error{
  display:none;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #B3261E;
}

.rb-gate-password-wrap{ position:relative; width:100%; }
.rb-gate-password-wrap input{ width:100%; padding-right:44px; }
.rb-gate-toggle-pw{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:none;
  padding:4px;
  margin:0;
  cursor:pointer;
  color: var(--color-muted-foreground);
}
.rb-gate-toggle-pw:hover{ color: var(--color-primary); }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-primary);
}

h1,h2,h3,h4{
  font-family: var(--font-heading);
  font-weight: 300;
  margin: 0;
  color: var(--color-foreground);
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 84px;
}
.brand{ display:flex; flex-direction:column; line-height:1; }
.brand-name{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-tagline{
  margin-top:4px;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.main-nav{ display:flex; gap:44px; }
.main-nav a{
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color .16s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active{ color: var(--color-primary); }
.main-nav a.active{ border-bottom-color: var(--color-primary); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle svg{ width:22px; height:22px; }

@media (max-width: 900px){
  .main-nav{
    position:absolute;
    top:84px; left:0; right:0;
    background:#fff;
    flex-direction:column;
    gap:0;
    border-bottom:1px solid var(--color-border);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding:16px 24px; border-bottom:1px solid var(--color-border); width:100%; }
  .nav-toggle{ display:block; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 34px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor:pointer;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.btn-primary{ background: var(--color-primary); color:#fff; }
.btn-primary:hover{ background: var(--color-accent); }
.btn-outline{ background: transparent; border-color: currentColor; }
.btn-outline:hover{ background: var(--color-foreground); color:#fff; border-color: var(--color-foreground); }
.btn-outline-light{ background: transparent; border-color: rgba(255,255,255,0.5); color:#fff; }
.btn-outline-light:hover{ background:#fff; color: var(--color-foreground); border-color:#fff; }

/* ---------- Hero (home/listing) ---------- */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.hero-slides{ position:absolute; inset:0; }
.hero-slides img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0;
  transform: scale(1);
  transition: opacity 1s ease;
  background: var(--color-secondary);
}
.hero-slides img.is-active{ opacity:1; animation: kenBurns 6.5s ease-out forwards; }
.hero-slides img.is-active:nth-of-type(even){ animation-name: kenBurnsAlt; }
@keyframes heroFade{
  0%{ opacity:0; }
  4%{ opacity:1; }
  30%{ opacity:1; }
  36%{ opacity:0; }
  100%{ opacity:0; }
}
@keyframes kenBurns{
  0%{ transform: scale(1) translate(0, 0); }
  100%{ transform: scale(1.09) translate(-1.5%, -1%); }
}
@keyframes kenBurnsAlt{
  0%{ transform: scale(1) translate(0, 0); }
  100%{ transform: scale(1.09) translate(1.5%, 1%); }
}

.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  background: rgba(13,13,13,0.35);
  border:none;
  color:#fff;
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: background .18s;
}
.hero-arrow:hover{ background: rgba(13,13,13,0.6); }
.hero-arrow svg{ width:22px; height:22px; }
.hero-arrow-prev{ left:24px; }
.hero-arrow-next{ right:24px; }
@media (max-width:700px){
  .hero-arrow{ width:38px; height:38px; }
  .hero-arrow-prev{ left:12px; }
  .hero-arrow-next{ right:12px; }
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.75) 100%);
}
.hero-content{ position:relative; z-index:2; padding: 0 24px 90px; width:100%; }
.hero-content .eyebrow{ color: #E8C685; font-size: 0.775rem; }
.hero-content h1{
  color:#fff;
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-top: 16px;
  max-width: 900px;
}
.hero-actions{ display:flex; gap:18px; margin-top:38px; flex-wrap:wrap; }

/* ---------- Sections ---------- */
section{ padding: 100px 0; }
.section-tight{ padding: 70px 0; }
.section-muted{ background: var(--color-muted); }
.section-dark{ background: var(--color-secondary); color: var(--color-secondary-foreground); }
.section-dark h2, .section-dark h3{ color: var(--color-secondary-foreground); }

.section-head{ text-align:center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2{ font-size: clamp(2rem, 4vw, 2.8rem); margin-top:14px; }
.section-head p{ margin-top:16px; color: var(--color-muted-foreground); font-size:0.85rem; }

/* Intro / feature split */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
.split img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/5; }
.split .eyebrow{ display:block; margin-bottom:16px; }
.split p{ color: var(--color-muted-foreground); font-size:0.85rem; margin-top:20px; }
.stat-row{ display:flex; gap:44px; margin-top:44px; flex-wrap:wrap; }
.stat-num{ font-family: var(--font-heading); font-size:2.4rem; color: var(--color-primary); }
.stat-label{ font-size:0.58rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--color-muted-foreground); margin-top:4px; }
.split-actions{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }

@media (max-width: 860px){
  .split{ grid-template-columns:1fr; }
}

.split .about-portrait{ width:100%; aspect-ratio: 4/5; background: var(--color-muted); overflow:hidden; }
.split .about-portrait img{ width:100%; height:100%; object-fit:cover; display:block; }

/* About intro: image floats right, text wraps beside it then widens to full width once past it */
.about-intro{ overflow:hidden; max-width: 980px; margin: 0 auto; }
.about-intro .about-portrait{
  float:right;
  width: 42%;
  max-width: 420px;
  aspect-ratio: 4/5;
  margin: 0 0 32px 48px;
  background: var(--color-muted);
  overflow:hidden;
}
.about-intro .about-portrait img{ width:100%; height:100%; object-fit:cover; display:block; }
.about-intro p{ color: var(--color-muted-foreground); font-size:0.88rem; line-height:1.95; margin:0 0 22px; }

@media (max-width: 860px){
  .about-intro .about-portrait{ float:none; width:100%; max-width:none; margin:0 0 32px; }
}


/* Broker box */
.broker-box{
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding-top: 40px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 24px;
  flex-wrap:wrap;
}
.broker-box .label{ font-size:0.6rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--color-muted-foreground); }
.broker-box p{ margin-top:10px; max-width:480px; color: var(--color-muted-foreground); font-size:0.82rem; }

/* Footer */
.site-footer{ background: var(--color-secondary); color: var(--color-secondary-foreground); }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 40px;
}
.footer-grid h3{ font-size:0.55rem; letter-spacing:0.24em; text-transform:uppercase; color: rgba(248,245,240,0.4); font-family: var(--font-sans); font-weight:600; }
.footer-grid ul{ list-style:none; margin: 20px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-grid a, .footer-grid span{ font-size:0.78rem; font-weight:300; color: rgba(248,245,240,0.6); }
.footer-grid a:hover{ color: var(--color-primary); }
.footer-tagline{ margin-top:18px; max-width:280px; font-size:0.78rem; color: rgba(248,245,240,0.5); line-height:1.8; }
.footer-contact-item{ display:flex; gap:10px; align-items:flex-start; }
.footer-bottom{
  border-top: 1px solid rgba(248,245,240,0.1);
  padding: 22px 0;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  font-size:0.5rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color: rgba(248,245,240,0.45);
}
.footer-bottom a{ text-decoration:none; color: rgba(248,245,240,0.6); transition: color .15s; }
.footer-bottom a:hover{ color: var(--color-primary); }
@media (max-width: 760px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* Achievements / lists */
.achieve-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 44px; }
.achieve-block h3{ font-size:0.62rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--color-primary); font-family: var(--font-sans); font-weight:600; margin-bottom:16px; }
.achieve-block ul{ margin:0; padding-left: 18px; color: var(--color-muted-foreground); font-size:0.82rem; line-height:1.9; }
@media (max-width: 700px){ .achieve-grid{ grid-template-columns:1fr; } }

/* Expertise cards */
.expertise-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.expertise-card{ border: 1px solid var(--color-border); padding: 32px 24px; }
.expertise-card h4{ font-size:1.15rem; }
.expertise-card p{ margin-top:12px; font-size:0.76rem; color: var(--color-muted-foreground); line-height:1.8; }
@media (max-width: 900px){ .expertise-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .expertise-grid{ grid-template-columns: 1fr; } }

/* Long form article */
.article{ max-width: 780px; margin: 0 auto; }
.article h3{ font-size:1.7rem; margin-top:52px; margin-bottom:18px; }
.article h3:first-child{ margin-top:0; }
.article p{ color: var(--color-muted-foreground); font-size:0.88rem; line-height:1.95; margin: 0 0 22px; }

/* Contact page */
.contact-wrap{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:64px; }
.contact-details{ border-right: 1px solid var(--color-border); padding-right:64px; }
.contact-details .item{ margin-bottom: 32px; }
.contact-details .label{ font-size:0.58rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--color-primary); margin-bottom:8px; }
.contact-details .value{ font-family: var(--font-heading); font-size:1.3rem; }
form{ display:flex; flex-direction:column; gap:22px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
label{ font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--color-muted-foreground); display:block; margin-bottom:8px; }
input, textarea{
  width:100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-foreground);
}
input:focus, textarea:focus{ outline:none; border-color: var(--color-primary); }
textarea{ resize: vertical; min-height:120px; }
.captcha-field label{ font-size:0.68rem; }
.captcha-field input{ font-size:0.95rem; }
@media (max-width: 860px){
  .contact-wrap{ grid-template-columns:1fr; }
  .contact-details{ border-right:none; padding-right:0; border-bottom:1px solid var(--color-border); padding-bottom:44px; }
  .form-row{ grid-template-columns:1fr; }
}

/* Simple page hero */
.page-hero{ text-align:center; padding: 80px 0 60px; border-bottom: 1px solid var(--color-border); }
.page-hero h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top:14px; }
.page-hero p{ max-width:560px; margin: 18px auto 0; color: var(--color-muted-foreground); font-size:0.85rem; }

.empty-note{
  max-width: 560px;
  margin: 0 auto;
  border-left: 2px solid var(--color-primary);
  padding: 28px 0 28px 32px;
}
.empty-note h2{ font-size:1.8rem; }
.empty-note p{ margin-top:14px; color: var(--color-muted-foreground); font-size:0.85rem; line-height:1.9; }

/* ---------- Background music widget ---------- */
.rb-music-widget{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.rb-music-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.rb-music-toggle:hover{ background: var(--color-accent); }
.rb-music-icon-play svg, .rb-music-icon-pause svg{ display:block; }
.rb-music-volume{
  width: 80px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
@media (max-width: 700px){
  .rb-music-widget{ right:14px; bottom:14px; padding:8px 12px; gap:8px; }
  .rb-music-volume{ width:60px; }
}

/* About hero */
.about-hero{ position:relative; height:56vh; min-height:400px; display:flex; align-items:flex-end; color:#fff; overflow:hidden; }
.about-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.about-hero::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(13,13,13,0.1), rgba(13,13,13,0.8)); }
.about-hero .content{ position:relative; z-index:2; padding: 0 24px 60px; }
.about-hero h1{ color:#fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top:14px; }

.quote-pull{
  font-family: var(--font-heading);
  font-style:italic;
  font-size: 1.5rem;
  color: var(--color-foreground);
  border-top:1px solid var(--color-border);
  border-bottom:1px solid var(--color-border);
  padding: 34px 0;
  margin: 40px 0;
  text-align:center;
}
