/* ============================================================
   Unico Suites — Page-specific layouts
   ============================================================ */

/* ============================================================
   HERO — homepage and inner pages
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block-start: var(--nav-h);
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease-out);
}
.final-cta__bg { overflow: hidden; }
.final-cta__bg picture { display: block; width: 100%; height: 100%; }
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item picture { display: block; width: 100%; height: 100%; }
.about-intro__media picture { display: block; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 28, 51, 0.92) 0%, rgba(13, 42, 72, 0.78) 55%, rgba(13, 42, 72, 0.55) 100%),
    radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.18), transparent 50%);
  z-index: -1;
}

.hero__inner {
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6rem);
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  max-width: 38rem;
}
.hero__title {
  color: var(--white);
  font-size: clamp(3rem, 5.4vw, 5.25rem);
  line-height: 1.05;
}
.hero__title em {
  display: inline-block;
  position: relative;
  color: var(--gold);
  font-style: italic;
}
.hero__title em::after {
  content: '';
  position: absolute;
  inset-inline: -2px;
  inset-block-end: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroUnderline 1.4s 0.6s var(--ease-out) forwards;
}
@keyframes heroUnderline { to { transform: scaleX(1); } }
.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-lead);
  font-weight: 300;
  max-width: 32rem;
  line-height: 1.7;
}
.hero__commitment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(212, 175, 55, 0.08);
  margin-top: var(--s-3);
  align-self: flex-start;
}
.hero__commitment strong { color: var(--gold-light); font-weight: 600; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

/* Hero stats panel — kept compact so the scroll cue at the bottom of the hero stays visible. */
.hero__stats {
  display: grid;
  gap: var(--s-4);
  background: rgba(8, 28, 51, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--r-3);
  padding: clamp(1.125rem, 2vw, 1.5rem) clamp(1.25rem, 2.4vw, 1.75rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__stats::before {
  content: '';
  display: block;
  height: 1px;
  width: 2.5rem;
  background: var(--gold);
  margin-bottom: var(--s-2);
}
.hero__stats-note {
  margin: var(--s-2) 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}
.stat__asterisk {
  color: var(--gold);
  font-size: 0.55em;
  vertical-align: super;
  margin-inline-start: 1px;
}

/* Floating gold particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.hero__particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
  animation: float 14s linear infinite;
}
.hero__particles span:nth-child(1)  { left:  8%; animation-delay:  0s; animation-duration: 16s; }
.hero__particles span:nth-child(2)  { left: 22%; animation-delay:  3s; animation-duration: 13s; }
.hero__particles span:nth-child(3)  { left: 38%; animation-delay:  6s; animation-duration: 18s; }
.hero__particles span:nth-child(4)  { left: 55%; animation-delay:  2s; animation-duration: 15s; }
.hero__particles span:nth-child(5)  { left: 72%; animation-delay:  9s; animation-duration: 12s; }
.hero__particles span:nth-child(6)  { left: 85%; animation-delay:  4s; animation-duration: 17s; }
.hero__particles span:nth-child(7)  { left: 14%; animation-delay: 11s; animation-duration: 14s; width: 2px; height: 2px; }
.hero__particles span:nth-child(8)  { left: 64%; animation-delay:  7s; animation-duration: 19s; width: 3px; height: 3px; }
.hero__particles span:nth-child(9)  { left: 90%; animation-delay:  5s; animation-duration: 16s; width: 2px; height: 2px; }

@keyframes float {
  0%   { transform: translateY(110vh) translateX(0)   scale(0.6); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translateY(50vh)  translateX(20px) scale(1);   opacity: 0.7; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(-15px) scale(0.6); opacity: 0; }
}

/* Inner-page hero — shorter */
.hero--page {
  min-height: 60vh;
  min-height: 60svh;
}
.hero--page .hero__inner {
  grid-template-columns: 1fr !important;
  text-align: start;
}
.hero--page .hero__content { max-width: 50rem; }

/* ============================================================
   ABOUT INTRO (homepage 2-col)
   ============================================================ */
.about-intro {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .about-intro { grid-template-columns: 1fr 1fr; }
}

.about-intro__media {
  position: relative;
  isolation: isolate;
}
.about-intro__media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-3);
  display: block;
}
.about-intro__media::before {
  content: '';
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-start: 1.25rem;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  border-radius: var(--r-3);
  z-index: -1;
}
.about-intro__badge {
  position: absolute;
  inset-block-end: -1.5rem;
  inset-inline-end: -1.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: start;
  max-width: 12rem;
}
.about-intro__badge strong {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--gold);
}
.about-intro__badge span {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.benefits li {
  position: relative;
  padding-inline-start: 2rem;
  line-height: 1.65;
}
.benefits li::before {
  content: '✦';
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  color: var(--gold);
  font-size: 1.125rem;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ============================================================
   HOW IT WORKS — timeline
   ============================================================ */
.steps {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
  grid-template-columns: 1fr;
}
.steps::before, .steps::after,
.step::before, .step::after { content: none !important; }
@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
  }
}
.step { position: relative; }
.step__num {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  margin-bottom: var(--s-5);
  position: relative;
  z-index: 1;
  transition: background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.step:hover .step__num {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18), var(--shadow-gold);
  transform: translateY(-2px);
}
.step__title {
  color: var(--white);
  margin-bottom: var(--s-3);
}
.step__body { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.7; }


/* ============================================================
   MANAGEMENT OPTIONS — Full Management vs Guaranteed Rent
   ============================================================ */
.options-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 760px) {
  .options-grid { grid-template-columns: 1fr 1fr; }
}
.option-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: clamp(2rem, 4vw, 3rem);
}
.option-card__head { display: flex; flex-direction: column; gap: var(--s-2); }
.option-card__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}
.option-card__sub {
  font-size: var(--fs-lead);
  color: var(--text-light);
  margin: 0;
}
.option-card .card__list { margin-top: var(--s-3); }
.option-card .btn { align-self: flex-start; margin-top: auto; }
.option-card--featured {
  background: var(--navy);
  color: var(--white);
  border-color: rgba(212, 175, 55, 0.4);
}
.option-card--featured .option-card__title { color: var(--white); }
.option-card--featured .option-card__sub { color: rgba(255, 255, 255, 0.82); }
.option-card--featured .card__list li { color: rgba(255, 255, 255, 0.85); }
.option-card--featured .card__list li::before { color: var(--gold-light); }

/* ============================================================
   COMPARISON (self-manage vs Unico)
   ============================================================ */
.comparison {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .comparison { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FOUNDERS
   ============================================================ */
.founders {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .founders { grid-template-columns: 1fr 1fr; }
}

.founder {
  display: grid;
  grid-template-areas:
    "name avatar"
    "bio  bio";
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(0.75rem, 2.5vw, 2rem);
  row-gap: clamp(1rem, 3vw, 1.5rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.founder__head   { grid-area: name; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.founder__avatar { grid-area: avatar; }
/* Pin bio to the top of its row so first lines align across cards of unequal bio length. */
.founder__bio    { grid-area: bio; align-self: start; }
/* Hover lift on pointer devices only — avoids the gold border lingering after a tap on mobile. */
@media (hover: hover) {
  .founder:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: var(--shadow-2);
  }
}
.founder__avatar {
  flex: 0 0 auto;
  width: clamp(5.5rem, 22vw, 13rem);
  height: clamp(5.5rem, 22vw, 13rem);
  border-radius: var(--r-pill);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--off-white);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px var(--off-white), 0 12px 30px -14px rgba(13, 42, 72, 0.3);
}
.founder__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder__name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 0;
}
.founder__role {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
  margin: 0;
}
.founder__bio {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* ============================================================
   GALLERY — masonry-style
   ============================================================ */
.gallery {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 880px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }
  .gallery__item:nth-child(1) { grid-row: span 2; }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3);
  isolation: isolate;
  aspect-ratio: 4 / 3;
}
@media (min-width: 880px) {
  .gallery__item:nth-child(1) { aspect-ratio: auto; }
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter var(--t-base) var(--ease-out);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 28, 51, 0.65) 100%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  pointer-events: none;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__label {
  position: absolute;
  inset-block-end: var(--s-4);
  inset-inline-start: var(--s-5);
  inset-inline-end: var(--s-5);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  z-index: 1;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.gallery__item:hover .gallery__label { transform: translateY(0); opacity: 1; }

.gallery-badges {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

/* ============================================================
   DEAL ANALYSER
   ============================================================ */
.deal {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 960px) {
  .deal { grid-template-columns: 1.05fr 1fr; align-items: center; }
}
.deal__lede h2 { color: var(--white); }
.deal__lede ul {
  list-style: none;
  margin: var(--s-5) 0 var(--s-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.deal__lede ul li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--s-3);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}
.deal__lede ul li::before { content: '✦'; color: var(--gold); }

/* Dark-theme deal form (client preference). Navy panel, gold top accent,
   inputs styled via the form--dark treatment in components.css. */
.deal__card {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--r-3);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  box-shadow: 0 30px 60px -30px rgba(8, 28, 51, 0.7);
  position: relative;
  overflow: hidden;
}
.deal__card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.deal__card h3 { font-size: 1.5rem; color: var(--white); }
.deal__card > p { color: rgba(255, 255, 255, 0.7); }
.deal__card .form-grid { margin-top: var(--s-5); }
.deal__card .btn { margin-top: var(--s-5); }
.deal__card-note {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Deal-analyser results page */
.results {
  display: grid;
  gap: var(--s-7);
}
.results__summary {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .results__summary {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.metric__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.metric__value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.1;
}
.metric__sub {
  font-size: var(--fs-xs);
  color: var(--text-light);
}
.metric--hero {
  background: var(--navy);
  color: var(--white);
  border-color: var(--gold);
  position: relative;
  overflow: hidden;
}
.metric--hero::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--gold);
}
.metric--hero .metric__label { color: var(--gold-light); }
.metric--hero .metric__value { color: var(--white); }
.metric--hero .metric__sub { color: rgba(255, 255, 255, 0.7); }

.metric--accent {
  background: var(--gold-pale);
  border-color: var(--gold);
}
.metric--accent .metric__value { color: var(--navy-deep); }

/* Chart */
.results__chart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  height: clamp(220px, 30vw, 320px);
  margin-block: var(--s-5);
}
.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  height: 100%;
  justify-content: end;
  position: relative;
}
.bar__column {
  width: 100%;
  max-width: 8rem;
  border-radius: var(--r-2) var(--r-2) 0 0;
  transition: height 1.2s var(--ease-out);
  position: relative;
}
.bar__column--ast  { background: linear-gradient(180deg, var(--text-mute), #b6b6b6); }
.bar__column--sa   { background: linear-gradient(180deg, var(--gold), var(--gold-light)); }
.bar__amount {
  position: absolute;
  inset-block-start: -1.75rem;
  inset-inline: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--navy);
  white-space: nowrap;
}
.bar__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}

/* Line chart (replaces bar chart on the deal-analyser results) */
.line-chart-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: var(--s-5); }
.line-chart {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
@media (min-width: 560px) {
  .line-chart { min-width: 0; }
}
.line-chart__gridline { stroke: rgba(13, 42, 72, 0.08); stroke-width: 1; }
.line-chart__label    { font-family: 'DM Sans', sans-serif; font-size: 11px; fill: var(--text-light); }
.line-chart__path {
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line-chart__path--ast { stroke: var(--text-mute); stroke-dasharray: 6 4; }
.line-chart__path--sa  { stroke: var(--gold); filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.25)); }
.line-chart__point--sa { fill: var(--gold); stroke: var(--white); stroke-width: 1.5; }
.line-chart__legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: var(--fs-sm);
  color: var(--text-light);
  flex-wrap: wrap;
}
.line-chart__legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend-swatch { width: 24px; height: 3px; border-radius: 2px; display: inline-block; }
.legend-swatch--ast { background: var(--text-mute); }
.legend-swatch--sa  { background: var(--gold); }

/* Print header — visible only when printing the deal analysis */
.print-header {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.5rem;
}
.print-header strong  { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); font-weight: 500; }
.print-header__sub    { font-size: var(--fs-sm); color: var(--text-light); }
.print-header__date   { font-size: var(--fs-xs); color: var(--text-mute); margin-top: 0.25rem; }

/* Breakdown table */
.breakdown {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.breakdown table { width: 100%; border-collapse: collapse; }
@media (min-width: 520px) {
  .breakdown table { min-width: 480px; }
}
.breakdown caption {
  text-align: start;
  padding: var(--s-5);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.breakdown th, .breakdown td {
  padding: var(--s-3) var(--s-4);
  text-align: start;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 520px) {
  .breakdown th, .breakdown td {
    padding: var(--s-4) var(--s-5);
  }
}
.breakdown th {
  background: var(--off-white);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  color: var(--navy);
}
.breakdown td:not(:first-child),
.breakdown th:not(:first-child) {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.breakdown tr:last-child td { border-bottom: 0; }
.breakdown tr.is-total td {
  font-weight: 600;
  color: var(--navy);
  background: var(--gold-pale);
}

.uplift-badge {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-7);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-gold);
}
.uplift-badge strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 50rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.faq-cat {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-light);
  transition: color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.faq-cat:hover { color: var(--navy); border-color: rgba(13, 42, 72, 0.3); }
.faq-cat[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
@media (min-width: 880px) {
  .contact { grid-template-columns: 1fr 1.1fr; }
  /* Sticky form: while the left column (steps + contacts + address + map) scrolls past,
     the form stays in view so the visual void on the right disappears. */
  .contact__form {
    position: sticky;
    top: calc(var(--nav-h) + var(--s-5));
    align-self: start;
  }
}

.contact__steps {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.contact__steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--s-4);
}
.contact__steps li b {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 500;
}
.contact__direct {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
}
.contact__direct a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--navy);
  font-weight: 500;
  transition: border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.contact__direct a:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: var(--off-white);
  transform: translateX(4px);
}
.contact__direct svg { width: 1.125rem; height: 1.125rem; color: var(--gold); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-2);
}

.form__success, .form__error {
  display: none;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-2);
  font-size: var(--fs-sm);
  margin-top: var(--s-5);
}
.form__success {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--navy-deep);
}
.form__error {
  background: rgba(204, 68, 68, 0.08);
  border: 1px solid rgba(204, 68, 68, 0.35);
  color: #883;
}
.contact__form.is-submitted .form__success { display: block; }
.contact__form.is-failed   .form__error   { display: block; }

/* Map embed */
.map-embed {
  margin-top: var(--s-5);
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
}
.final-cta__bg {
  position: absolute; inset: 0; z-index: -2;
}
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(8, 28, 51, 0.92), rgba(13, 42, 72, 0.86));
}
.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  max-width: 44rem;
  margin-inline: auto;
}
.final-cta__title { color: var(--white); font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.1; }
.final-cta__title em { color: var(--gold); }
.final-cta__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.final-cta__contact {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}
.final-cta__contact a { color: rgba(255, 255, 255, 0.85); }
.final-cta__contact a:hover { color: var(--gold-light); }

/* ============================================================
   LEGAL PAGES (privacy, cookies)
   ============================================================ */
.legal {
  padding-block: clamp(8rem, 12vw, 12rem) clamp(4rem, 8vw, 7rem);
  background: var(--off-white);
}
.legal__inner {
  max-width: var(--container-prose);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.legal h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-block: var(--s-7) var(--s-4);
}
.legal h3 {
  margin-block: var(--s-6) var(--s-3);
}
.legal p, .legal li {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-block-end: var(--s-4);
}
.legal ul {
  margin-block: var(--s-4);
  padding-inline-start: var(--s-6);
}
.legal ul li { color: var(--text-light); }
.legal a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.legal a:hover { color: var(--navy-light); }

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--gutter);
}
.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold);
  margin-bottom: var(--s-3);
}
.error-page p { color: rgba(255, 255, 255, 0.8); max-width: 28rem; margin-inline: auto; margin-block-end: var(--s-6); }

/* ============================================================
   PRINT STYLES (deal analyser results)
   ============================================================ */
@media print {
  @page { margin: 14mm 12mm; }
  .nav, .footer, .cookie-banner, .hero__particles, .hero__scroll,
  .skip-link, [data-print-results], .reveal[style*="margin-top:1rem"] .btn--ghost,
  .hero--page, .hero__overlay, .hero__bg { display: none !important; }
  body { background: white !important; color: black !important; }
  .section, .section--navy, .section--navy-deep, .section--silver, .section--off-white, .section--white {
    background: white !important; color: black !important; padding-block: 0 !important;
  }
  .deal__card, .breakdown, .metric, .results__chart {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: white !important;
    color: black !important;
  }
  .metric--hero, .metric--accent { background: white !important; color: black !important; }
  .metric--hero .metric__value, .metric--accent .metric__value { color: black !important; }
  .metric__label { color: #444 !important; }
  .results__summary {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
  }
  .results { gap: 1rem !important; }
  .print-header {
    display: flex !important;
  }
  .print-header strong { color: black !important; }
  .line-chart__path--sa { filter: none !important; }
  a { text-decoration: underline; color: black !important; }
  .container { max-width: none !important; padding-inline: 0 !important; }
  /* Keep the input form summary visible so the printed copy includes the property details. */
  .deal__lede { display: none !important; }
  .deal { display: block !important; }
  .deal__card h3 { color: black !important; }
  .deal__card { color: black !important; }
  .uplift-badge {
    background: none !important;
    border: 1px solid #ccc;
    color: black !important;
    box-shadow: none !important;
  }
}
