/* ==========================================================================
   Royale Property Solutions — site styles
   Brand: deep black + gold. Premium, high-trust, mobile-first.
   ========================================================================== */

:root {
  --black: #0b0b0c;
  --ink: #16161a;
  --ink-2: #24242b;
  --gold: #c9a227;
  --gold-light: #e7cd7d;
  --gold-deep: #9a7a15;
  --cream: #f8f6f1;
  --paper: #ffffff;
  --muted: #6b6b74;
  --line: rgba(201, 162, 39, 0.28);
  --green: #1f7a4d;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--dark { background: var(--black); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--tight { padding: clamp(38px, 5vw, 64px) 0; }

.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(248, 246, 241, 0.78); }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 14px;
  display: block;
}
.section--dark .eyebrow { color: var(--gold-light); }

.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }
.section--dark .lede { color: rgba(248, 246, 241, 0.8); }

.rule {
  width: 62px; height: 2px; border: 0; margin: 0 0 26px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
}
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, rgba(201,162,39,0), var(--gold), rgba(201,162,39,0)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1a1405;
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.34);
}
/* Ghost = outlined. Default is light-on-dark, because that's where it mostly lives.
   On a white/cream background use .btn--ghost.btn--onlight instead. */
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(231, 205, 125, 0.5);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--onlight { color: var(--ink); border-color: var(--line); }
.btn--onlight:hover { color: var(--gold-deep); border-color: var(--gold); }
.btn--dark { background: var(--black); color: var(--cream); }
.btn--block { width: 100%; }
.btn--lg { padding: 19px 34px; font-size: 1.06rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 22px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 25%, #2a2a2e, #0b0b0c 70%);
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--gold-light);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif); font-size: 1.12rem; letter-spacing: 0.14em;
  color: #fff; text-transform: uppercase; font-weight: 600;
}
.brand__sub {
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: rgba(248, 246, 241, 0.82); text-decoration: none;
  font-size: 0.93rem; font-weight: 500;
}
.nav a:hover { color: var(--gold-light); }
.nav .btn { padding: 12px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(231,205,125,.4);
  border-radius: 10px; color: var(--gold-light); padding: 9px 12px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line); padding: 10px 22px 22px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav .btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--cream);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(201,162,39,.20), transparent 62%),
    linear-gradient(180deg, #101014, #0b0b0c);
  padding: clamp(64px, 10vw, 130px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}
/* Photo-led hero. Drop a picture at assets/img/hero-home.jpg and it becomes the
   background automatically — the warm gradient underneath is the fallback so the
   page never looks broken while the slot is empty. */
.hero--photo {
  background:
    /* readability scrim — keeps white text legible over any photo */
    linear-gradient(105deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.62) 48%, rgba(11,11,12,.30) 100%),
    var(--hero-img, none),
    /* warm fallback so the section looks deliberate before a photo is added */
    radial-gradient(900px 600px at 75% 25%, rgba(201,162,39,.28), transparent 65%),
    linear-gradient(150deg, #3a2f1c, #1a1409 55%, #0b0b0c);
  background-size: cover;
  background-position: center, center 42%, center, center;
  padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px);
}
.hero--photo .hero__grid { grid-template-columns: 1fr; }
.hero--photo h1 { max-width: 18ch; }
.hero--photo .lede { max-width: 50ch; }

.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { max-width: 56ch; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

.gold-text {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 50%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px;
  font-size: 0.88rem; color: rgba(248,246,241,.72);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: "✓"; color: var(--gold-light); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid rgba(11,11,12,.09);
  border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 16px; }
.card__link { margin-top: auto; font-weight: 650; font-size: .92rem; color: var(--gold-deep); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(201,162,39,.16), rgba(201,162,39,.05));
  border: 1px solid var(--line);
}
.card--dark { background: var(--ink); border-color: rgba(201,162,39,.24); color: var(--cream); }
.card--dark p { color: rgba(248,246,241,.72); }

.price-tag {
  /* align-self keeps it hugging its text inside the flex-column card */
  display: inline-block; align-self: flex-start;
  font-size: .8rem; font-weight: 650; letter-spacing: .04em;
  color: var(--gold-deep); background: rgba(201,162,39,.12);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.section--cream .step, body > .section:not(.section--dark) .step { border-top-color: rgba(11,11,12,.1); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }

/* ---------- Photo slots ---------- */
.photo-slot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(201,162,39,.07) 0 12px, transparent 12px 24px),
    var(--cream);
  border: 1px dashed rgba(201,162,39,.5);
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.photo-slot span { font-size: .82rem; color: var(--muted); max-width: 26ch; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-pair figure { margin: 0; }
.ba-pair figcaption {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px; font-weight: 600;
}

/* ---------- Form ---------- */
.lead-form {
  background: var(--paper); border-radius: 18px; padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
}
.lead-form h3 { margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 7px; }
.field .req { color: #b4232a; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font-family: var(--sans); font-size: 1rem;
  border: 1px solid rgba(11,11,12,.18); border-radius: 11px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.field textarea { min-height: 108px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.video-note {
  background: linear-gradient(135deg, rgba(201,162,39,.13), rgba(201,162,39,.05));
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px;
}
.video-note strong { display: block; margin-bottom: 5px; font-size: .96rem; }
.video-note p { margin: 0; font-size: .9rem; color: var(--muted); }

.form-fine { font-size: .78rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-error { color: #b4232a; font-size: .88rem; margin-top: 12px; display: none; }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(11,11,12,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.callbar .btn { flex: 1; padding: 14px 10px; font-size: .95rem; }
@media (max-width: 860px) { .callbar { display: flex; } body { padding-bottom: 78px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(248,246,241,.72); padding: 60px 0 30px; font-size: .93rem; }
.site-footer a { color: rgba(248,246,241,.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem;
}
.footer-phone {
  font-family: var(--serif); font-size: 1.8rem; color: var(--gold-light);
  text-decoration: none; display: inline-block; margin-bottom: 6px;
}

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 1.7em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.25em; margin-bottom: 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink);
}
.post-meta { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.faq { border-top: 1px solid rgba(11,11,12,.1); }
.faq details { border-bottom: 1px solid rgba(11,11,12,.1); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.03rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold-deep); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- QR landing (q.html) ---------- */
.qr-page { background: var(--black); }
.qr-hero { padding: 34px 0 22px; text-align: center; color: var(--cream); }
.qr-hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); color: #fff; margin-bottom: 12px; }
.qr-hero p { color: rgba(248,246,241,.8); max-width: 34ch; margin-inline: auto; }

.badge-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0;
}
.badge {
  font-size: .74rem; letter-spacing: .06em; font-weight: 600; padding: 7px 13px;
  border-radius: 999px; border: 1px solid rgba(231,205,125,.38); color: var(--gold-light);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #1a1405;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

@media print {
  .site-header, .site-footer, .callbar { display: none !important; }
}
