:root{
  --wrap: 1120px;
  --radius: 16px;
  --border: rgba(0,0,0,.10);
  --muted: rgba(0,0,0,.65);
  --bg: #fff;
  --ink: #0b0b0b;

  --header-h: 78px;

  /* Competitor-like spacing */
  --pad: 22px;
  --pad-m: 16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
  background: var(--bg);
  color: var(--ink);
}

/* ---- Global: remove surprise gaps ---- */
main, section, header, footer { margin:0; padding:0; }
img, video { max-width:100%; height:auto; display:block; }

/* Consistent container */
.wrap{
  max-width: var(--wrap);
  margin:0 auto;
  padding: var(--pad);
}
@media (max-width: 900px){
  .wrap{ padding: var(--pad-m); }
}

.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }
.sr-only{ position:absolute; left:-9999px; }

.site-main{ min-height: 60vh; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.18);
  background: var(--ink);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
}
.btn.ghost{ background: transparent; color: var(--ink); }
.btn.link{ background:transparent; border-color: transparent; color: var(--ink); padding-left:0; padding-right:0; }

/* =========================
   Header (2 states)
   - is-hero (white over video)
   - is-scrolled (black on white)
========================= */
.site-header{
  /* default = scrolled look */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}

/* HERO state */
.site-header.is-hero{
  position: absolute;            /* makes it feel INSIDE hero */
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

/* SCROLLED state (always readable) */
.site-header.is-scrolled{
  position: fixed;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}

/* Header layout */
.header-inner{
  display:flex;
  align-items:center;
  gap:14px;
  min-height: var(--header-h);
}

/* 25 / 60 / 15 */
.header-left{ flex: 0 0 25%; min-width: 0; }
.header-center{ flex: 0 0 60%; min-width: 0; display:flex; justify-content:center; }
.header-right{ flex: 0 0 15%; min-width: 0; display:flex; justify-content:flex-end; align-items:center; gap:10px; }

.logo{
  text-decoration:none;
  font-weight:800;
  letter-spacing:-.02em;
  color: var(--ink);
  white-space:nowrap;
}

/* WP logo */
.custom-logo{ max-height: 38px; width:auto; display:block; }
.custom-logo-link{ display:inline-flex; align-items:center; }

.nav{ width: 100%; }

/* Desktop menu */
.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:center;
}
.menu a{
  text-decoration:none;
  color: var(--ink);
  opacity:.78;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.menu a:hover{ opacity:1; }

.header-cta{ white-space: nowrap; }

/* ----- Hero header colors (white) ----- */
.site-header.is-hero .logo,
.site-header.is-hero .menu a{ color:#fff; opacity:.9; }
.site-header.is-hero .menu a:hover{ opacity:1; }

.site-header.is-hero .header-cta{
  background: transparent;
  color:#fff;
  border-color: rgba(255,255,255,.35);
}

/* =========================
   Overlay Menu (Full Screen)
========================= */
#mobileMenu[hidden]{ display:none !important; }
html.menu-open, body.menu-open{ overflow:hidden; }

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:0;
}

/* burger lines */
.burger{
  width:18px;
  height:2px;
  background: rgba(0,0,0,.75);
  border-radius: 2px;
  position: relative;
  display:inline-block;
}
.burger::before,
.burger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: rgba(0,0,0,.75);
  border-radius: 2px;
}
.burger::before{ top:-6px; }
.burger::after{ top:6px; }

/* burger in hero = white */
.site-header.is-hero .nav-toggle{
  background: transparent;
  border-color: rgba(255,255,255,.30);
}
.site-header.is-hero .burger,
.site-header.is-hero .burger::before,
.site-header.is-hero .burger::after{
  background: rgba(255,255,255,.92);
}

.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 28px 22px;
}

.menu-close{
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  z-index: 100000;
}

.menu-overlay-inner{
  width: min(720px, 100%);
  text-align: center;
}

.menu.overlay{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:18px;
  justify-items:center;
}
.menu.overlay a{
  text-decoration:none;
  color: var(--ink);
  opacity:.80;
  font-size:14px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.menu.overlay a:hover{ opacity:1; }

.menu-overlay-cta{
  margin-top: 22px;
  display:flex;
  justify-content:center;
}

/* =========================
   Opening Full Screen Hero
========================= */
.opening{
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
}

/* background layer */
.opening-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index: 0;
}

.opening-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}

.opening-poster,
.opening-image{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.opening-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0, var(--opening-overlay, .35));
}

/* content layer above video */
.opening-content{
  position: relative;
  z-index: 1;
  padding-top: var(--header-h); /* keeps text away from header */
}

.opening-inner{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.opening-h1{
  margin:0 0 12px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.opening-sub{
  margin:0 auto 18px;
  max-width: 70ch;
  font-size: 16px;
  opacity: .92;
}

.opening-buttons{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.opening .btn{
  border-color: rgba(255,255,255,.28);
}
.opening .btn.ghost{
  color:#fff;
  border-color: rgba(255,255,255,.35);
}

/* =========================
   Sections (competitor-style)
========================= */
.featured{ padding: 34px 0 44px; }
.contact{ border-top: 1px solid var(--border); padding: 34px 0; }

.section-head h2{ margin:0; font-size: 24px; }
.section-head p{ margin:6px 0 0; }

.listing-card{
  margin-top: 18px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}
.thumb img{ width:100%; height:auto; display:block; }
.thumb-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 280px;
  background: rgba(0,0,0,.04);
  color: var(--muted);
}
.meta{ padding: 16px; }
.top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.h3{ margin:0; font-size: 18px; }
.h3 a{ text-decoration:none; color: var(--ink); }

.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  color: var(--muted);
  white-space:nowrap;
}
.price{ margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing:-.02em; }
.facts{ margin-top: 6px; }
.excerpt{ margin: 12px 0; }
.actions{ display:flex; gap:10px; flex-wrap:wrap; }

.contact-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px 0 14px;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
}
.footer-links{ display:flex; gap:12px; flex-wrap:wrap; }
.footer-links a{ color: var(--ink); opacity:.75; text-decoration:none; }
.footer-links a:hover{ opacity:1; }
.footer-bottom{ padding-top: 12px; }

/* =========================
   Responsive (mobile priority)
========================= */
@media (max-width: 900px){
  .header-left{ flex: 1 1 auto; }
  .header-center{ display:none; }
  .header-right{ flex: 0 0 auto; }

  .header-cta{ display:none; }
  .nav-toggle{ display:inline-flex; }

  .opening-h1{ font-size: 34px; }
  .opening-sub{ font-size: 15px; }

  .listing-card{ grid-template-columns: 1fr; }

  .contact-inner{ flex-direction: column; align-items:flex-start; }
}

/* Other pages: keep space for fixed header */
body:not(.home) .site-main{
  padding-top: var(--header-h);
}

/* Homepage: no forced top padding */
.home .site-main{
  padding-top: 0;
}
