/* The Rock Global Properties
   Palette is taken from the Floral Homes renders: white render, limestone,
   deep green shutters and curtains, bougainvillea. Navy and gold are the brand
   marks and are kept to the header, footer and small details. */

:root {
  --bg: #fbfaf6;
  --bg-2: #f1ecdf;
  --ink: #1b1e23;
  --muted: #5b6068;
  --line: #d9d2c1;
  --stone: #c9bc9c;
  --green: #2f4f3f;
  --green-2: #244033;
  --pink: #b83d74;
  --navy: #0e1c30;
  --cream: #efe6d2;
  --gold: #c9a24d;
  --wa: #1f7a4d;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
/* Smooth scrolling for in-page links only. Applying it to html on load can
   cancel the browser's jump to a #fragment while images and fonts arrive. */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-2); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
p { margin: 0 0 1.1em; }
p.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; max-width: 34em; }
.measure { max-width: 38em; }

.skip {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--gold); color: var(--navy);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 600;
}
.skip:focus { transform: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header and footer are the brand's navy and gold. */
.site-header {
  background: var(--navy);
  color: var(--cream);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand img { width: 220px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--cream); text-decoration: none; font-size: 0.95rem; letter-spacing: 0.02em; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .wa-link { color: var(--gold); }
@media (max-width: 640px) {
  .site-header .container { justify-content: center; text-align: center; }
  .brand img { width: 190px; }
  .nav { justify-content: center; gap: 0.25rem 1.1rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 0.85rem 1.35rem; border-radius: 3px; font-weight: 600; font-size: 1rem;
  line-height: 1.2; border: 1px solid transparent;
}
.btn:hover { background: var(--green-2); color: #fff; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.btn.light { background: var(--cream); color: var(--navy); }
.btn.light:hover { background: #fff; color: var(--navy); }
.btn.big { font-size: 1.15rem; padding: 1.05rem 1.6rem; }

/* Sections */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
/* Sections with their own background keep full padding on both sides,
   even when they follow another section. */
.section.band, .section.cta { background: var(--bg-2); padding-top: var(--space); padding-bottom: var(--space); }
.section.cta { background: var(--navy); }
.section.band + .section, .section.cta + .section { padding-top: var(--space); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.kicker { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); margin: 0 0 0.6rem; }

/* Hero: the one bold move. Full-bleed render, text on a dark scrim at the foot. */
.hero {
  position: relative; min-height: 78vh; display: grid; align-items: end;
  background: var(--navy); color: #fff; isolation: isolate;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 18, 32, 0.78) 0%, rgba(10, 18, 32, 0.35) 40%, rgba(10, 18, 32, 0) 70%);
}
.hero .container { padding-top: 5rem; padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; margin-bottom: 0.3em; max-width: 12em; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 30em; margin-bottom: 1.5rem; color: #f3efe6; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.6rem; padding: 0; list-style: none; font-size: 1rem; color: #e6dfcf; }
@media (max-width: 640px) { .hero { min-height: 70vh; } }

/* Home: two-column intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Unit index on the home page: rows separated by hairlines, not cards. */
.unit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.unit-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 1.25rem 2rem; align-items: center;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.unit-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.unit-row h3 { font-size: 1.6rem; margin: 0 0 0.2rem; }
.unit-row h3 a { color: inherit; text-decoration: none; }
.unit-row h3 a:hover { text-decoration: underline; }
.unit-row .spec { margin: 0; color: var(--muted); }
.unit-row .price { text-align: right; white-space: nowrap; }
.unit-row .price strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.unit-row .price span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) {
  .unit-row { grid-template-columns: 110px 1fr; }
  .unit-row .price { grid-column: 2; text-align: left; }
  .unit-row .price strong { display: inline; font-size: 1.3rem; margin-right: 0.6rem; }
}

/* CTA band */
.cta { background: var(--navy); color: var(--cream); }
.cta h2 { color: #fff; }
.cta p { color: #d9d0bb; }
.cta .container { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.cta .number { font-size: 1.1rem; margin: 0; }
.cta .number a { color: var(--gold); }
@media (max-width: 720px) { .cta .container { grid-template-columns: 1fr; } }

/* Floral Homes page */
.page-head { padding: var(--space) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { margin-bottom: 0.25em; }
.page-head + .section { padding-top: 0; }
.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption, .caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.full-figure img { width: 100%; max-height: 78vh; object-fit: cover; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 .figure img { aspect-ratio: 16 / 9; object-fit: cover; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 721px) and (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

.plain-list { margin: 0 0 1.5rem; padding-left: 1.2em; }
.plain-list li { margin-bottom: 0.3em; }
.cols-2 { columns: 2; column-gap: 3rem; }
@media (max-width: 560px) { .cols-2 { columns: 1; } }

/* Around Lapta */
.area-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin: 1.5rem 0 3rem; }
.map img { width: 100%; border: 1px solid var(--line); }
.area-top h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.distances { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.distances th { text-align: left; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted); padding: 0 0 0.5rem; border-bottom: 1px solid var(--ink); }
.distances td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.distances th:not(:first-child), .distances td:not(:first-child) { padding-left: 1rem; white-space: nowrap; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.5rem; }
.area-grid > div { border-top: 2px solid var(--stone); padding-top: 1rem; }
.area-grid h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.area-grid p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .area-top { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .area-grid { grid-template-columns: 1fr; } }

/* Unit sections */
.unit { padding: var(--space) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.unit-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.unit-cover.square img { aspect-ratio: 3 / 2; }
.unit-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: end; margin: 2rem 0 1.5rem; }
.unit-head h2 { margin: 0; }
.unit-head .price { text-align: right; }
.unit-head .price strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; line-height: 1.1; }
.unit-head .price span { color: var(--muted); }
@media (max-width: 640px) { .unit-head { grid-template-columns: 1fr; } .unit-head .price { text-align: left; } }

.unit-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 860px) { .unit-body { grid-template-columns: 1fr; } }

.spec { margin: 0 0 1.5rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.5rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.spec dd ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 480px) { .spec { grid-template-columns: 1fr; gap: 0; } .spec dt { margin-top: 0.6rem; } }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.75rem 0 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 9; }
.gallery .plan img { aspect-ratio: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery img { aspect-ratio: 4 / 3; } }

.note { font-size: 0.95rem; color: var(--muted); }
.unit .btn { margin-top: 0.5rem; }

/* Availability line */
.avail { display: inline-block; padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 2px; font-size: 0.9rem; color: var(--ink); background: #fff; }
.avail.sold { color: var(--muted); }

/* About / Contact */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--stone); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2rem; color: var(--stone); line-height: 1; margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.contact-number { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 600; margin: 1rem 0 0.25rem; }
.contact-number a { color: var(--ink); text-decoration: none; }
.contact-number a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: #cfc7b3; font-size: 0.95rem; }
.site-footer .container { padding-top: 3rem; padding-bottom: 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; }
.site-footer img { width: 200px; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #efe6d2; }
.site-footer a:hover { color: #fff; }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; font-size: 0.85rem; color: #9b9484; }
.site-footer .small p { margin: 0 0 0.4em; }
@media (max-width: 720px) { .site-footer .container { grid-template-columns: 1fr; } }

/* Error page */
.error { padding: var(--space) 0; text-align: center; }
.error img { width: 260px; margin: 0 auto 2rem; }
.area-grid + .note { margin-top: 1.75rem; }
