/* ==========================================================================
   Royal Calapani — site layer
   Components only. Every colour, face and space value comes from tokens.css;
   nothing is re-declared here. v1.0 — 16 September 2026
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rce-gold); outline-offset: 3px; }

.rce-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--rce-green); color: var(--rce-on-dark);
  font-family: var(--rce-font-sans); font-size: var(--rce-size-ui);
  padding: .75rem 1.25rem;
}
.rce-skip:focus { left: 0; }

/* --- Masthead ------------------------------------------------------------ */
.mast {
  position: relative; z-index: 20;
  background: var(--rce-green-deep); color: var(--rce-on-dark);
  border-bottom: 1px solid rgba(176, 141, 79, .35);
}
.mast--over {                       /* transparent, sitting on the hero */
  position: absolute; inset: 0 0 auto 0; background: transparent;
  border-bottom: 1px solid rgba(244, 240, 230, .18);
}
.mast__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--rce-s3); flex-wrap: wrap;
  padding-block: 1.1rem;
}
.mast__marque {
  display: flex; align-items: center; gap: .7rem;
  border: 0; color: var(--rce-on-dark);
}
.mast__marque:hover { opacity: .8; }
.mast__marque img { width: 26px; height: auto; }
.mast__name {
  font-family: var(--rce-font-display); font-weight: 700;
  font-size: .9rem; text-transform: uppercase;
  letter-spacing: var(--rce-track-display); line-height: 1;
}
.mast__sub {
  display: block; font-family: var(--rce-font-sans); font-weight: 400;
  font-size: .5625rem; letter-spacing: var(--rce-track-wide);
  color: var(--rce-gold-light); margin-top: .35rem;
}
.mast nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.mast nav a {
  font-family: var(--rce-font-sans); font-size: var(--rce-size-eyebrow);
  text-transform: uppercase; letter-spacing: var(--rce-track-eyebrow);
  color: var(--rce-on-dark); border: 0; padding-block: .35rem;
}
.mast nav a[aria-current="page"] { color: var(--rce-gold-light); }
.mast nav a.is-cta {
  border: 1px solid var(--rce-gold); padding: .6rem 1.1rem;
  color: var(--rce-gold-light);
}
.mast nav a.is-cta:hover { background: var(--rce-gold); color: var(--rce-green-deep); opacity: 1; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: var(--rce-green-deep); --hero-h: clamp(440px, 78vh, 760px); }
.hero__img {
  width: 100%; height: var(--hero-h); object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute; inset: 0 0 auto 0; height: var(--hero-h);
  background:
    linear-gradient(to bottom, rgba(8,39,30,.62) 0%, rgba(8,39,30,.12) 34%,
                    rgba(8,39,30,.42) 68%, rgba(8,39,30,.88) 100%),
    linear-gradient(to right, rgba(8,39,30,.55) 0%, rgba(8,39,30,0) 58%);
}
.hero__body {
  position: absolute; inset: auto 0 0 0;
  padding-bottom: clamp(2rem, 6vw, 4.5rem);
  color: var(--rce-on-dark);
}
.hero--centre .hero__body { text-align: center; }
.hero--centre .hero__scrim {
  background:
    linear-gradient(to bottom, rgba(8,39,30,.62) 0%, rgba(8,39,30,.12) 30%,
                    rgba(8,39,30,.50) 64%, rgba(8,39,30,.92) 100%);
}
.hero--centre .hero__body p { margin-inline: auto; }
.hero__eyebrow { color: var(--rce-gold-light); }
.hero__marque {
  font-family: var(--rce-font-display); font-weight: 700;
  font-size: var(--rce-size-hero); text-transform: uppercase;
  letter-spacing: var(--rce-track-display); line-height: 1.02;
  margin: 0 0 var(--rce-s2);
}
.hero__estates {
  font-family: var(--rce-font-display); text-transform: uppercase;
  font-size: clamp(.8rem, 1.6vw, 1.1rem);
  letter-spacing: var(--rce-track-wide); color: var(--rce-on-dark);
  margin: 0;
}
.hero__line {
  font-size: var(--rce-size-lead); color: var(--rce-on-dark);
  max-width: 34ch; margin: var(--rce-s3) 0 var(--rce-s4);
}
.hero__acts { display: flex; flex-wrap: wrap; gap: var(--rce-s2); }
/* On a photograph the ghost button reads light, never green. */
.hero__acts .rce-btn--ghost { color: var(--rce-on-dark); border-color: var(--rce-gold-light); }
.hero__acts .rce-btn--ghost:hover { background: var(--rce-gold); border-color: var(--rce-gold);
                                     color: var(--rce-green-deep); }
.hero--centre .hero__acts { justify-content: center; }

/* Hero rule: hairline, lozenge, hairline — reversed. */
.rule-ivory { color: var(--rce-gold-light); max-width: 320px; margin: var(--rce-s3) 0; }
.hero--centre .rule-ivory { margin-inline: auto; }

/* --- Sections ------------------------------------------------------------ */
.sec { padding-block: clamp(3.25rem, 8vw, var(--rce-s7)); }
.sec + .sec { border-top: 1px solid var(--rce-border); }
.sec--alt { background: var(--rce-bg-alt); border-top: 1px solid var(--rce-border); }
.sec--green { background: var(--rce-green); border-top: 0; }
.sec--green + .sec { border-top: 0; }

.sec__head { max-width: 62ch; margin-bottom: var(--rce-s5); }
.sec__head .rce-lead { color: var(--rce-text-muted); }

.two { display: grid; gap: clamp(2rem, 5vw, var(--rce-s6)); }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }
.two--narrow { gap: clamp(1.5rem, 4vw, var(--rce-s5)); }

.prose p { font-size: var(--rce-size-body); }
.prose p:last-child { margin-bottom: 0; }

/* --- Fact list (label / value hairline rows) ----------------------------- */
.facts { margin: 0; font-family: var(--rce-font-sans); font-size: var(--rce-size-ui); }
.facts div {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between;
  padding: .85rem 0; border-bottom: 1px solid var(--rce-border);
}
.facts div:first-child { border-top: 1px solid var(--rce-border); }
.facts dt { color: var(--rce-text-muted); }
.facts dd { margin: 0; text-align: right; }
.facts dd b { font-weight: 500; }

/* --- Cards --------------------------------------------------------------- */
.cards { display: grid; gap: var(--rce-s3); }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--rce-bg-alt); border: 1px solid var(--rce-border);
  border-radius: var(--rce-radius); padding: var(--rce-s4);
}
.card h3 { margin-bottom: var(--rce-s2); }
.card p { font-size: 1.0625rem; margin-bottom: 0; }
.card__n {
  font-family: var(--rce-font-sans); font-size: var(--rce-size-eyebrow);
  letter-spacing: var(--rce-track-eyebrow); color: var(--rce-accent-text);
  display: block; margin-bottom: var(--rce-s2);
}

/* Property card on the parent page */
.prop {
  display: block; border: 1px solid var(--rce-border); border-radius: var(--rce-radius);
  overflow: hidden; background: var(--rce-bg-alt); color: var(--rce-text);
  text-decoration: none; border-bottom-width: 1px;
  transition: transform var(--rce-dur) var(--rce-ease),
              box-shadow var(--rce-dur) var(--rce-ease);
}
.prop:hover { transform: translateY(-3px); box-shadow: var(--rce-shadow); opacity: 1; }
.prop img { width: 100%; height: 260px; object-fit: cover; }
.prop__void {
  height: 260px; background: var(--rce-green);
  display: grid; place-items: center;
}
.prop__void img { width: 64px; height: auto; opacity: .9; }
.prop__body { padding: var(--rce-s4); }
.prop__body h3 { margin-bottom: var(--rce-s1); }
.prop__body p { margin-bottom: 0; color: var(--rce-text-muted); }
.tag {
  display: inline-block; font-family: var(--rce-font-sans);
  font-size: var(--rce-size-eyebrow); letter-spacing: var(--rce-track-eyebrow);
  text-transform: uppercase; color: var(--rce-accent-text);
  border: 1px solid var(--rce-border); border-radius: var(--rce-radius);
  padding: .3rem .65rem; margin-bottom: var(--rce-s2);
}

/* --- Figures ------------------------------------------------------------- */
figure { margin: 0; }
figure img { border-radius: var(--rce-radius); }
figcaption {
  font-family: var(--rce-font-sans); font-size: var(--rce-size-legal);
  color: var(--rce-text-muted); margin-top: .75rem; line-height: 1.5;
}
.band { position: relative; }
.band img { width: 100%; height: clamp(260px, 42vw, 480px); object-fit: cover; }
.band figcaption { padding-inline: var(--rce-gutter); max-width: var(--rce-max);
                   margin-inline: auto; }
.gallery { display: grid; gap: var(--rce-s2); }
@media (min-width: 720px) { .gallery { grid-template-columns: 2fr 1fr; align-items: start; } }
.gallery__side { display: grid; gap: var(--rce-s2); }

/* --- Status table -------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.lots {
  width: 100%; border-collapse: collapse;
  font-family: var(--rce-font-sans); font-size: var(--rce-size-ui);
  min-width: 520px;
}
table.lots th, table.lots td {
  text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--rce-border);
}
table.lots th {
  font-weight: 500; font-size: .6875rem; text-transform: uppercase;
  letter-spacing: var(--rce-track-eyebrow); color: var(--rce-text-muted);
}
table.lots td:first-child { font-variant-numeric: tabular-nums; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--rce-text-muted);
}
.status::before {
  content: ""; width: 6px; height: 6px; background: var(--rce-stone);
  transform: rotate(45deg);
}

/* --- The plan diagram ---------------------------------------------------- */
.plan { width: 100%; height: auto; border: 1px solid var(--rce-border);
        border-radius: var(--rce-radius); background: var(--rce-bg-alt); }

/* --- Enquiry ------------------------------------------------------------- */
.reach { display: grid; gap: var(--rce-s2); }
@media (min-width: 640px) { .reach { grid-template-columns: repeat(3, 1fr); } }
.reach a {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid var(--rce-border); border-radius: var(--rce-radius);
  padding: var(--rce-s3) var(--rce-s2); color: var(--rce-text);
  background: var(--rce-bg-alt);
  transition: border-color var(--rce-dur) var(--rce-ease);
}
.reach a:hover { border-color: var(--rce-gold); opacity: 1; }
.reach b {
  display: block; font-family: var(--rce-font-sans); font-weight: 500;
  font-size: var(--rce-size-eyebrow); text-transform: uppercase;
  letter-spacing: var(--rce-track-eyebrow); color: var(--rce-accent-text);
  margin-bottom: .5rem;
}
.reach span { font-family: var(--rce-font-sans); font-size: 1rem; }

form.enq { display: grid; gap: var(--rce-s3); max-width: 44rem; }
@media (min-width: 640px) { .enq__row { display: grid; gap: var(--rce-s3);
                                         grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-family: var(--rce-font-sans); font-size: var(--rce-size-eyebrow);
  text-transform: uppercase; letter-spacing: var(--rce-track-eyebrow);
  color: var(--rce-text-muted); margin-bottom: .55rem;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--rce-font-sans); font-size: 1rem;
  color: var(--rce-text); background: var(--rce-bg-alt);
  border: 1px solid var(--rce-border); border-radius: var(--rce-radius);
  padding: .85rem .9rem;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rce-gold); }
.field textarea { min-height: 7rem; resize: vertical; }
.enq__note { font-family: var(--rce-font-sans); font-size: var(--rce-size-legal);
             color: var(--rce-text-muted); max-width: 52ch; }
.enq__ok { font-family: var(--rce-font-sans); font-size: var(--rce-size-ui);
           color: var(--rce-accent-text); }

/* --- Notice (the compliance line, used more than once) ------------------- */
.notice {
  border-left: 2px solid var(--rce-gold);
  padding: .25rem 0 .25rem var(--rce-s3);
  font-family: var(--rce-font-sans); font-size: var(--rce-size-ui);
  line-height: 1.6; color: var(--rce-text-muted); max-width: 62ch;
}
.notice strong { color: var(--rce-text); font-weight: 500; }

/* --- Footer -------------------------------------------------------------- */
.foot { background: var(--rce-green-deep); color: var(--rce-on-dark);
        padding-block: var(--rce-s6) var(--rce-s4); }
.foot a { color: var(--rce-gold-light); }
.foot__top { display: grid; gap: var(--rce-s5); }
@media (min-width: 860px) { .foot__top { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot h4 {
  font-family: var(--rce-font-sans); font-size: var(--rce-size-eyebrow);
  font-weight: 500; text-transform: uppercase; letter-spacing: var(--rce-track-eyebrow);
  color: var(--rce-gold-light); margin: 0 0 var(--rce-s2);
}
.foot ul { list-style: none; margin: 0; padding: 0;
           font-family: var(--rce-font-sans); font-size: var(--rce-size-ui); }
.foot li { margin-bottom: .6rem; }
.foot__legal {
  margin-top: var(--rce-s5); padding-top: var(--rce-s3);
  border-top: 1px solid rgba(244, 240, 230, .16);
  font-family: var(--rce-font-sans); font-size: var(--rce-size-legal);
  color: var(--rce-on-dark-mute); line-height: 1.65;
}
.foot__legal p { max-width: 90ch; }
.foot__legal p:last-child { margin-bottom: 0; }

/* --- Numbered steps (the outstanding-documents list) --------------------- */
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.steps li {
  counter-increment: step; padding: var(--rce-s3) 0;
  border-bottom: 1px solid var(--rce-border);
}
ol.steps li:first-child { border-top: 1px solid var(--rce-border); }
ol.steps h4 {
  font-family: var(--rce-font-sans); font-weight: 500; font-size: var(--rce-size-ui);
  margin: 0 0 .5rem; display: flex; gap: .85rem; align-items: baseline;
}
ol.steps h4::before {
  content: "0" counter(step);
  font-size: var(--rce-size-eyebrow); letter-spacing: var(--rce-track-eyebrow);
  color: var(--rce-accent-text);
}
ol.steps p { margin: 0 0 0 2.4rem; font-size: 1.0625rem; color: var(--rce-text-muted); }

/* --- House designs ------------------------------------------------------- */
.card.house { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.house img { width: 100%; height: 210px; object-fit: cover; }
.house__body { padding: var(--rce-s4); display: flex; flex-direction: column; flex: 1; }
.house__body h3 { margin-bottom: .25rem; }
.house__idiom {
  font-family: var(--rce-font-sans); font-size: var(--rce-size-eyebrow);
  text-transform: uppercase; letter-spacing: var(--rce-track-eyebrow);
  color: var(--rce-text-muted); margin: 0 0 var(--rce-s3);
}
.house__body > p { flex: 0 0 auto; }
.facts--tight { margin-top: auto; padding-top: var(--rce-s3); font-size: .875rem; }
.facts--tight div { padding: .55rem 0; }

ul.ticks { list-style: none; margin: 0 0 var(--rce-s4); padding: 0; }
ul.ticks li {
  position: relative; padding: 0 0 var(--rce-s3) var(--rce-s3);
  font-size: 1.0625rem; max-width: var(--rce-measure);
}
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; background: var(--rce-gold); transform: rotate(45deg);
}
ul.ticks b { font-weight: 400; color: var(--rce-text); }

/* On a phone the copy sits under the photograph rather than on top of it — the
   entrance plate has the name stone dead centre and text over it is unreadable. */
@media (max-width: 760px) {
  .hero { --hero-h: 48vh; }
  .hero__img { min-height: 260px; }
  .hero__body {
    position: static; background: var(--rce-green-deep);
    padding-block: var(--rce-s5) var(--rce-s5);
  }
  .hero__scrim {
    background: linear-gradient(to bottom, rgba(8,39,30,.70) 0%, rgba(8,39,30,.10) 45%,
                                rgba(8,39,30,.30) 100%);
  }
  .hero__line { max-width: none; }
  .mast__in { padding-block: .85rem; gap: var(--rce-s2); }
  .mast nav { gap: 1rem; }
  .mast nav a.is-cta { padding: .5rem .8rem; }
}

/* --- Room schedules ------------------------------------------------------ */
details.sched { margin-top: var(--rce-s3); border-top: 1px solid var(--rce-border); }
details.sched summary {
  cursor: pointer; list-style: none; padding: var(--rce-s3) 0 0;
  font-family: var(--rce-font-sans); font-size: var(--rce-size-eyebrow);
  text-transform: uppercase; letter-spacing: var(--rce-track-eyebrow);
  color: var(--rce-accent-text);
}
details.sched summary::-webkit-details-marker { display: none; }
details.sched summary::after { content: " +"; }
details.sched[open] summary::after { content: " –"; }
.sched__body { padding-top: var(--rce-s2); }
.sched__fl {
  font-family: var(--rce-font-sans); font-size: var(--rce-size-legal);
  text-transform: uppercase; letter-spacing: .12em; color: var(--rce-text-muted);
  margin: var(--rce-s2) 0 .5rem;
}
.sched__body ul { margin: 0 0 var(--rce-s2); padding-left: 1.1rem; }
.sched__body li { font-size: 1rem; margin-bottom: .35rem; }
