:root {
  --ink: #071536;
  --text: #253149;
  --muted: #667085;
  --line: #dde4ef;
  --paper: #f5f6f8;
  --white: #ffffff;
  --brand: #b98b3c;
  --brand-dark: #846025;
  --gold: #d6ad63;
  --green: #2f6f65;
  --soft: #f1eadf;
  --shadow: 0 18px 54px rgba(24, 33, 58, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }

.wrap,
.topbar-inner,
.nav-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar a { color: var(--white); font-weight: 850; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(221,228,239,.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid rgba(185,139,60,.28);
  border-radius: 8px;
  background: var(--white);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #39445a;
  font-size: 14px;
  font-weight: 850;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand);
  color: var(--white);
  font: inherit;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary.dark {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.32);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 54, .92) 0%, rgba(7, 21, 54, .68) 44%, rgba(7, 21, 54, .12) 100%),
    url("assets/rr-luxury-hero.png") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero-grid {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(300px, 400px);
  gap: 56px;
  align-items: end;
  padding: 96px 0 86px;
}

.hero-copy { padding-bottom: 34px; }

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(250px, 62vw);
  height: auto;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(42px, 5.8vw, 72px);
}

.hero p {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.search-panel {
  padding: 24px;
  background: rgba(255,255,255,.96);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 22px;
}

.search-panel form,
.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

textarea { resize: vertical; }

.section { padding: 82px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: end;
}

.section-head p,
.service-layout > div:first-child p,
.valuation-grid p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head h2,
.service-layout h2,
.valuation-grid h2,
.contact-grid h2,
.legal-panel h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.listings-section { background: var(--white); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.property-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(24, 33, 58, .08);
}

.property-card.featured {
  grid-column: span 1;
}

.property-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.empty-listing {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.empty-listing strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.empty-listing p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.property-body { padding: 20px; }

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-body h3 { font-size: 24px; }
.property-place { margin: 8px 0 0; color: var(--muted); }

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.property-meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.price {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.upload-note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: var(--paper);
}

.service-section {
  color: rgba(255,255,255,.86);
  background: var(--ink);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 54px;
}

.service-layout h2,
.service-list h3 { color: var(--white); }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-list article {
  min-height: 214px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}

.service-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.service-list p { color: rgba(255,255,255,.76); }

.valuation-section { background: var(--paper); }

.valuation-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.valuation-image img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.check-list span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
}

.contact-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-grid { align-items: start; }

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-lines a,
.contact-lines span {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.contact-form {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkbox-line a,
.privacy-note a {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
}

.privacy-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 34px 0;
  background: var(--ink);
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer strong { color: var(--white); }
.footer p { margin: 8px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 850;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(520px, calc(100% - 36px));
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner p { margin: 0 0 14px; color: var(--text); }
.cookie-banner div { display: flex; gap: 10px; flex-wrap: wrap; }

.legal-page {
  background: var(--paper);
}

.legal-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-wrap {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-top {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-main {
  padding: 54px 0 76px;
}

.legal-panel {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-panel h2 { margin-top: 28px; font-size: 24px; }
.legal-panel p, .legal-panel li { color: var(--text); }

@media (max-width: 920px) {
  .menu { display: none; }
  .hero-grid,
  .section-head.split,
  .service-layout,
  .valuation-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    min-height: auto;
    padding: 64px 0 52px;
  }
  .search-panel { width: min(100%, 520px); }
  .listing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap,
  .topbar-inner,
  .nav-inner {
    width: min(100% - 28px, 1180px);
  }
  .topbar-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-inner {
    gap: 4px;
    padding: 9px 0;
    font-size: 13px;
    line-height: 1.35;
  }
  .nav-inner {
    min-height: 68px;
    gap: 12px;
  }
  .brand-logo { width: 50px; height: 50px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 11px; }
  .nav .button { display: none; }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 21, 54, .94) 0%, rgba(7, 21, 54, .78) 58%, rgba(7, 21, 54, .68) 100%),
      url("assets/rr-luxury-hero.png") center top / cover no-repeat;
  }
  .hero-grid {
    gap: 28px;
    padding: 38px 0 42px;
  }
  .hero-copy { padding-bottom: 0; }
  .hero-logo {
    width: min(165px, 52vw);
    margin-bottom: 18px;
  }
  .eyebrow,
  .section-kicker {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .hero h1 { font-size: 34px; }
  .hero p {
    margin-top: 16px;
    font-size: 17px;
  }
  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-actions .button,
  .search-panel .button,
  .contact-form .button {
    width: 100%;
  }
  .search-panel {
    padding: 18px;
  }
  .search-panel strong { font-size: 20px; }
  .service-list,
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2,
  .service-layout h2,
  .valuation-grid h2,
  .contact-grid h2,
  .legal-panel h1 {
    font-size: 31px;
  }
  .property-body { padding: 18px; }
  .property-body h3 { font-size: 22px; }
  .service-layout,
  .valuation-grid,
  .contact-grid {
    gap: 30px;
  }
  .service-list article { min-height: auto; }
  .upload-note { flex-direction: column; }
  .contact-form { padding: 18px; }
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px;
  }
  .cookie-banner p {
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.42;
  }
  .cookie-banner div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cookie-banner .button {
    min-height: 40px;
    padding: 10px 12px;
  }
  .contact-lines a,
  .contact-lines span,
  .check-list span {
    overflow-wrap: anywhere;
  }
  .footer-links { flex-direction: column; }
  .legal-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }
  .legal-panel { padding: 24px 18px; }
}

@media (max-width: 390px) {
  .wrap,
  .topbar-inner,
  .nav-inner {
    width: min(100% - 22px, 1180px);
  }
  .brand { gap: 9px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section-head h2,
  .service-layout h2,
  .valuation-grid h2,
  .contact-grid h2,
  .legal-panel h1 {
    font-size: 28px;
  }
}
