/* 262 Roncesvalles — site styles
   To change the main colour, edit --accent below. */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1f2421;
  --muted: #5d655f;
  --accent: #2f4a3a;
  --accent-soft: #e4ebe5;
  --line: #ddd6cb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero { position: relative; height: min(82vh, 760px); min-height: 460px; overflow: hidden; background: #3a4a40; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 26, 22, 0.75) 0%, rgba(20, 26, 22, 0.08) 60%);
}
.hero-text { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 2; color: #fff; }
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.9; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7vw, 88px); line-height: 1.02; margin: 10px 0 12px;
}
.hero .lead { font-size: 19px; max-width: 560px; opacity: 0.92; }

/* Key facts bar */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact { padding: 26px 12px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .num { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.fact .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Sections */
section { padding: 88px 0; }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; margin-bottom: 20px;
}
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.intro p + p { margin-top: 16px; }
.intro .body p { color: var(--muted); }
.features { list-style: none; border-top: 1px solid var(--line); }
.features li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.features li::before { content: "—"; color: var(--accent); }

/* Marquee photos */
.marquee-section { padding-top: 0; }
.marquee { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.marquee figure { overflow: hidden; }
.marquee figure:first-child { grid-row: span 2; }
.marquee img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.6s; }
.marquee figure:first-child img { aspect-ratio: auto; }
.marquee figure:hover img { transform: scale(1.03); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-block; padding: 14px 26px; text-decoration: none;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { opacity: 0.88; }

/* Neighbourhood band */
.band { background: var(--accent); color: #eef2ee; }
.band .section-title { color: #fff; }
.band > .wrap > p { max-width: 760px; opacity: 0.9; }
.band .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.band h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 6px; color: #fff; }
.band .grid3 p { opacity: 0.85; font-size: 16px; }

/* Contact */
.contact { background: var(--surface); }
.contact .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .inner > div > p { color: var(--muted); }
.contact-card { border: 1px solid var(--line); padding: 32px; }
.contact-card p { margin-bottom: 6px; }
.contact-card .name { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.contact-card a { color: var(--accent); }

/* Sub-page header */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 640px; }

/* Floor plans */
.plans { display: grid; gap: 80px; }
.plan { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.plan-img { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.plan-img img { width: 100%; height: auto; }
.plan h2 { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.1; }
.plan .sub { color: var(--muted); margin: 6px 0 22px; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs td:last-child { text-align: right; font-weight: 500; }
.plan .btn { margin-top: 24px; }

/* Gallery */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.filters button {
  font: inherit; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 16px; cursor: pointer;
}
.filters button.active, .filters button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-section { padding-top: 40px; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: #ddd; overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button.hide { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 14, 13, 0.95);
  display: none; align-items: center; justify-content: center; padding: 56px 72px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; }
.lightbox .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 42px; line-height: 1; padding: 12px; opacity: 0.8; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 8px; right: 16px; font-size: 36px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 900px) {
  .intro, .plan, .contact .inner { grid-template-columns: 1fr; gap: 36px; }
  .facts .wrap { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--line); }
  .band .grid3 { grid-template-columns: 1fr; gap: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .marquee-section { padding-top: 0; }
}
/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: auto; padding-top: 14px; padding-bottom: 12px; flex-direction: column; gap: 6px; }
  .nav { gap: 20px; }
  .nav a { font-size: 12px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .fact:nth-child(even) { border-right: 0 !important; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:last-child { grid-column: span 2; border-right: 0 !important; }
  .marquee { grid-template-columns: 1fr; grid-template-rows: none; }
  .marquee figure:first-child { grid-row: auto; }
  .marquee figure:first-child img { aspect-ratio: 4 / 3; }
  .gallery { gap: 8px; }
  .hero-text { bottom: 32px; }
  .lightbox { padding: 56px 8px; }
}

/* ---------- Home: unit cards ---------- */
.units-teaser { padding-top: 0; }
.unit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.unit-card { text-decoration: none; display: block; }
.unit-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; transition: opacity 0.3s; }
.unit-card:hover img { opacity: 0.88; }
.unit-card .eyebrow { color: var(--muted); font-size: 12px; }
.unit-card h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.2; margin: 4px 0; }
.unit-card p { color: var(--muted); font-size: 16px; }
.unit-card:hover h3 { color: var(--accent); }

/* ---------- Units page: roll-out sections ---------- */
.units-section { padding-top: 40px; }
.unit { border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; }
.unit summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 180px 1fr 48px; gap: 28px; align-items: center; padding: 18px;
}
.unit summary::-webkit-details-marker { display: none; }
.unit-cover { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; }
.unit-head .eyebrow { color: var(--muted); font-size: 12px; }
.unit-head h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.1; margin: 4px 0 6px; }
.unit-meta { color: var(--muted); font-size: 15px; }
.toggle {
  width: 44px; height: 44px; border: 1px solid var(--accent); border-radius: 50%;
  position: relative; justify-self: end;
}
.toggle::before, .toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--accent);
  width: 16px; height: 1.5px; transform: translate(-50%, -50%); transition: transform 0.25s;
}
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.unit[open] .toggle { background: var(--accent); }
.unit[open] .toggle::before, .unit[open] .toggle::after { background: #fff; }
.unit[open] .toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.unit summary:hover h2 { color: var(--accent); }
.unit-body { padding: 12px 36px 40px; border-top: 1px solid var(--line); }
.unit-text { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 56px; padding: 28px 0 36px; }
.unit-text > p { grid-column: 1; color: var(--muted); }
.unit-text > p + p { margin-top: -4px; }
.unit-text .features { grid-column: 2; grid-row: 1 / span 3; }
.unit-text .specs { grid-column: 1; margin-top: 8px; }
.unit-photos { margin-bottom: 8px; }
.unit-body .cta-row { margin-top: 28px; }

@media (max-width: 900px) {
  .unit-cards { grid-template-columns: 1fr; gap: 36px; }
  .unit-text { grid-template-columns: 1fr; }
  .unit-text > p, .unit-text .features, .unit-text .specs { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .unit summary { grid-template-columns: 96px 1fr 40px; gap: 14px; padding: 12px; }
  .unit-cover { width: 96px; }
  .unit-head .eyebrow { font-size: 10px; }
  .unit-meta { font-size: 13px; }
  .toggle { width: 36px; height: 36px; }
  .unit-body { padding: 4px 16px 28px; }
}

/* Floor plan extras */
.page-head .cta-row { margin-top: 20px; }
.plan-imgs { display: grid; gap: 16px; }
.plan-img { display: block; text-decoration: none; }
.plan-cap { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rooms-title { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 28px 0 4px; }
.specs.rooms td { font-size: 15px; }
.plan-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
