/* =========================================================
   Sutherland Apartments
   Palette and type taken from the brand guide (Jul 2026)

   Sand      #ECE0D0     Amber   #E5B155
   Orange    #D87725     Taupe   #826F59
   Grey      #343434     Espresso #1E1A16

   Primary typeface in the guide is Amolise, which is not a
   web font. Italiana is used here as the closest free stand-in
   for display headings. Manrope is the guide's secondary face
   and is used as-is for everything else.
   ========================================================= */

:root {
  --sand:      #ece0d0;
  --sand-pale: #f7f1e8;
  --amber:     #e5b155;
  --orange:    #d87725;
  --orange-dk: #b45f16;
  --taupe:     #826f59;
  --grey:      #343434;
  --espresso:  #1e1a16;

  --paper: #fffdfa;
  --rule:  #ddcfba;

  --display: "Italiana", "Cormorant Garamond", Georgia, serif;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 24px;
  --measure: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--grey);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--orange-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.9em;
}

p { margin: 0 0 1.1em; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1em;
}

.note {
  font-size: 0.88rem;
  color: var(--taupe);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95em 2em;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--espresso);
  border-color: var(--taupe);
}
.btn-quiet:hover { background: var(--espresso); border-color: var(--espresso); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a {
  color: var(--grey);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--espresso); border-bottom-color: var(--orange); }

.nav-cta {
  border: 1px solid var(--orange) !important;
  color: var(--orange-dk) !important;
  padding: 0.6em 1.3em !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--orange); color: #fff !important; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sand-pale) 0%, var(--sand) 100%);
  padding: clamp(72px, 11vw, 132px) 0 clamp(200px, 24vw, 300px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(150px, 20vw, 260px);
  background: url("images/skyline.svg") repeat-x bottom center;
  background-size: auto 100%;
  opacity: 0.75;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.place {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.2em;
}

.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--orange); }

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--grey);
  max-width: 56ch;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sand { background: var(--sand-pale); }

.section-dark {
  background: var(--espresso);
  color: #d8d2c9;
}
.section-dark h2 { color: #fff; }
.section-dark h3 { color: var(--amber); }
.section-dark a { color: var(--amber); }
.section-dark a:hover { color: #fff; }
.section-dark .eyebrow { color: var(--amber); }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-intro {
  color: var(--taupe);
  max-width: 60ch;
  margin-bottom: 0;
}

/* Two-column split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.split-text > *:last-child { margin-bottom: 0; }

/* ---------- Photos ---------- */

.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--sand);
}
.photo-tall { aspect-ratio: 4 / 5; }

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.photo-row figure { margin: 0; }
.photo-row figcaption {
  font-size: 0.82rem;
  color: var(--taupe);
  margin-top: 10px;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand);
  text-decoration: none;
}
.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.shot-wide {
  grid-column: span 2;
  grid-row: span 2;
}
.shot-wide img { aspect-ratio: 4 / 3.06; }

.shot span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(30,26,22,.72), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot:hover span, .shot:focus-visible span { opacity: 1; }
.shot:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Lightbox (CSS only, via :target) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(30, 26, 22, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox:target { opacity: 1; visibility: visible; }

.lb-back {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lightbox figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  object-fit: contain;
}
.lightbox figcaption {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #b9afa2;
  text-align: center;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.09);
  transition: background .18s ease;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--orange); color: #fff; }
.lb-close:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}

.lb-close {
  top: 3vmin; right: 3vmin;
  width: 46px; height: 46px;
  font-size: 1.6rem;
  padding-bottom: 4px;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 76px;
  font-size: 2.2rem;
  padding-bottom: 6px;
}
.lb-prev { left: 2vmin; }
.lb-next { right: 2vmin; }

/* ---------- Rates table ---------- */

.table-scroll { overflow-x: auto; }

.rates {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.rates th, .rates td {
  text-align: left;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.rates thead th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-bottom: 12px;
}
.rates tbody th {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--espresso);
  white-space: nowrap;
}
.rates tbody tr:hover { background: rgba(216, 119, 37, 0.05); }
.rates strong { color: var(--orange-dk); font-weight: 600; }

.rates + .note { margin-top: 18px; }

/* ---------- Lists ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 60px);
}

.ticks, .plain {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}
.ticks li, .plain li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.ticks li {
  padding-left: 26px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--orange);
  border-bottom: 1.5px solid var(--orange);
  transform: rotate(-45deg);
}
.plain li { color: var(--taupe); }

/* ---------- Walking distances ---------- */

.walk {
  margin: 1.8em 0 0;
  display: grid;
  gap: 0;
}
.walk > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.walk dt { font-weight: 500; color: var(--espresso); }
.walk dd {
  margin: 0;
  color: var(--taupe);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- Map ---------- */

.map iframe {
  width: 100%;
  height: 420px;
  border: 1px solid var(--rule);
  display: block;
  background: var(--sand);
}
.map + .note { margin-top: 10px; }

/* ---------- Contact + form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-top: 2.2em;
}
.contact-grid p,
.contact-grid address { margin-bottom: 0.4em; font-size: 0.95rem; }
.contact-grid address { font-style: normal; line-height: 1.65; }
.contact-grid h3 { margin-bottom: 0.7em; }

.enquiry {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
}

.field { margin: 0 0 18px; }
.field:last-child { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.enquiry label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 7px;
}

.enquiry input,
.enquiry select,
.enquiry textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--grey);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.enquiry textarea { resize: vertical; }

.enquiry input:focus,
.enquiry select:focus,
.enquiry textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.form-note {
  font-size: 0.82rem;
  color: var(--taupe);
  margin: 14px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso);
  color: #a89e91;
  padding: clamp(40px, 5vw, 64px) 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 12px; }
.footer-brand p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 0.92rem;
}
.footer-nav a { color: #d8d2c9; text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-nav a:hover { color: var(--amber); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 0.8rem;
  color: #7d7367;
}
.footer-legal p { margin: 0 0 0.4em; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .col:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  #westminster .split-media { order: 0; }
  .photo-tall { aspect-ratio: 3 / 2; }
  .map iframe { height: 320px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 104px; }

  /* Header: logo and booking button on row one,
     section links scroll along row two. */
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
    min-height: 0;
    padding-top: 9px;
    padding-bottom: 7px;
  }
  .brand { order: 1; flex: 1 1 auto; }
  .brand img { height: 34px; }
  .nav-cta {
    order: 2;
    flex: 0 0 auto;
    padding: 0.68em 1.05em !important;
    font-size: 0.82rem;
  }
  .brand { padding: 3px 0; }
  .nav {
    order: 3;
    width: 100%;
    gap: 20px;
    font-size: 0.88rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 7px 0; }

  .hero { padding-bottom: clamp(140px, 32vw, 220px); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }

  .section-head { margin-bottom: 32px; }

  /* Rate table stacks into cards */
  .table-scroll { overflow: visible; }
  .rates { min-width: 0; }
  .rates thead {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .rates tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .rates tbody th {
    display: block;
    padding: 0 0 10px;
    border: 0;
    font-size: 1.5rem;
  }
  .rates td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 5px 0;
    border: 0;
    font-size: 0.94rem;
  }
  .rates td::before {
    content: attr(data-label);
    color: var(--taupe);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  .cols { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; gap: 24px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .shot span { opacity: 1; font-size: 0.75rem; padding: 20px 10px 8px; }

  .lightbox { padding: 12px; }
  .lb-prev, .lb-next { width: 46px; height: 64px; font-size: 1.9rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 1.5rem; }
  .lightbox img { max-height: 70vh; }

  .walk > div { padding: 13px 0; }
  .map iframe { height: 280px; }

  .contact-grid { gap: 22px; margin-top: 1.8em; }
  .enquiry { padding: 20px 18px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 18px; }

  .footer-inner { flex-direction: column; gap: 22px; }
  .footer-nav { gap: 8px 20px; }
  .footer-nav a { display: inline-block; padding: 7px 0; }
  .contact-grid a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .brand img { height: 30px; }
  .nav-cta { font-size: 0.78rem; padding: 0.6em 0.85em !important; }
}

@media (max-width: 340px) {
  .gallery { grid-template-columns: 1fr; }
  .shot-wide { grid-column: span 1; grid-row: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
