/* ============================================================
   TOKENS
============================================================ */
:root {
  --cream:        #f5efe8;
  --brown-dark:   #2c1a0e;
  --terracotta:   #5a3220;
  --tan:          #d4b896;
  --features-bg:  #1e1209;
  --font-script:  'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', system-ui, sans-serif;
  --max-width:    1100px;
  --section-pad:  4rem 1.5rem;
}

/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
}

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

a {
  color: var(--terracotta);
  text-decoration: underline;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h2 {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITY
============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--section-pad);
}

.divider {
  border: none;
  border-top: 1px solid var(--tan);
  margin: 2rem 0;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.55rem 1.8rem;
  border-radius: 2rem;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--terracotta);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn--ghost {
  background: transparent;
  color: var(--terracotta);
}

.btn--ghost:hover { background: var(--terracotta); color: #fff; opacity: 1; }

/* ============================================================
   HEADER / NAV
============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--tan);
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  text-align: center;
}

.logo-name {
  display: block;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  color: var(--brown-dark);
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--tan);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown-dark);
  transition: color 0.2s;
}

nav a:hover { color: var(--terracotta); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  transition: transform 0.25s, opacity 0.25s;
}

/* Hamburger → X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  max-width: var(--max-width);
  margin-inline: auto;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 60vh;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  padding: var(--section-pad);
}

.about-inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.about h2 { margin-bottom: 1.5rem; }

/* ============================================================
   APARTMENTS
============================================================ */
.apartments { background: var(--cream); }

.apartments h2 {
  text-align: center;
  padding-top: 1rem;
}

.apt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--tan);
}

.apt-row:last-child { border-bottom: none; }

.apt-row--reverse .apt-image { order: 2; }
.apt-row--reverse .apt-content { order: 1; }

.apt-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.apt-content h3 { font-size: 1.5rem; }
.apt-content p { margin-bottom: 1.25rem; }

/* ============================================================
   FEATURES BAR
============================================================ */
.features-bar {
  background: var(--features-bg);
  color: var(--cream);
  padding: 1.25rem 1.5rem;
}

.features-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.features-bar li + li::before {
  content: "|";
  margin-right: 1rem;
  opacity: 0.5;
}

/* ============================================================
   PRIME LOCATION
============================================================ */
.prime-location { padding: var(--section-pad); }

.prime-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.prime-content h2 { margin-bottom: 1rem; }
.prime-content p { margin-bottom: 1rem; }

.prime-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.prime-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

/* ============================================================
   CONTACT FORM
============================================================ */
.contact { background: var(--cream); }

.contact h2 { text-align: center; }

#contact-form {
  max-width: 560px;
  margin-inline: auto;
  margin-top: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-dark);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--tan);
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--brown-dark);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--terracotta);
}

.field textarea { resize: vertical; }

#contact-form .btn {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-status.success { color: #3a6b35; }
.form-status.error   { color: #8b1a1a; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--cream);
  border-top: 1px solid var(--tan);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-logo {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--tan);
  margin-bottom: 0.5rem;
}

footer a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-dark);
  text-decoration: none;
  opacity: 0.6;
}

footer a:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE — TABLET (768px)
============================================================ */
@media (max-width: 768px) {
  .apt-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .apt-row--reverse .apt-image,
  .apt-row--reverse .apt-content {
    order: unset;
  }

  .prime-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .prime-image { order: -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (480px)
============================================================ */
@media (max-width: 480px) {
  :root { --section-pad: 2.5rem 1rem; }

  h2 { font-size: 1.9rem; }

  .header-inner { position: relative; padding: 1rem; }

  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid var(--tan);
    border-bottom: 1px solid var(--tan);
    padding: 0.5rem 0;
    z-index: 99;
  }

  nav ul.nav-open { display: flex; }

  nav ul li { width: 100%; }

  nav a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .hero img {
    height: 40vh;
    min-height: 220px;
  }

  .features-bar li + li::before {
    display: none;
  }

  .features-bar ul {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ============================================================
   LONDON GUIDE
============================================================ */
.guide-intro {
  padding: var(--section-pad);
}

.guide-intro .about-inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.guide-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--tan);
  font-size: 1rem;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

/* ============================================================
   GALLERY MASONRY
============================================================ */
.gallery-intro {
  padding: var(--section-pad);
  padding-bottom: 1rem;
}

.gallery-intro .about-inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.gallery-grid {
  column-count: 3;
  column-gap: 0.75rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1rem 1.5rem 4rem;
}

.gallery-grid img {
  width: 100%;
  display: block;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  border-radius: 2px;
  transition: opacity 0.2s;
  cursor: zoom-in;
}

.gallery-grid img:hover { opacity: 0.88; }

@media (max-width: 768px) { .gallery-grid { column-count: 2; } }
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }

/* ============================================================
   GUIDE SUB-PAGES (Explore / Favourites / Venues)
============================================================ */
.back-link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown-dark);
  margin-bottom: 2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.back-link::before { content: "← "; }
.back-link:hover { opacity: 1; }

.guide-sub { padding: var(--section-pad); }

.guide-sub h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.guide-entry {
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--tan);
}

.guide-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-entry h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.guide-entry p { margin-bottom: 1.25rem; }

.guide-entry img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 1.5rem;
}

/* placeholder when no image yet */
.guide-entry .img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  margin-top: 1.5rem;
  opacity: 0.4;
}

/* ============================================================
   GUIDE SUB-PAGE COLLAGE
============================================================ */
.guide-collage {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  gap: 0.5rem;
  display: grid;
  border-radius: 2px;
  overflow: hidden;
}

.guide-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2 images — side by side */
.guide-collage--2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  height: 340px;
}

/* 3 images — large left, two stacked right */
.guide-collage--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.guide-collage--3 img:first-child {
  grid-row: 1 / 3;
}

/* 3 images — two stacked left, large right */
.guide-collage--3--flip {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.guide-collage--3--flip img:last-child {
  grid-row: 1 / 3;
  grid-column: 2;
}

/* 4 images — 2×2 grid */
.guide-collage--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 420px;
}

@media (max-width: 600px) {
  .guide-collage--2,
  .guide-collage--3,
  .guide-collage--4 { height: auto; }

  .guide-collage--2 { grid-template-columns: 1fr; height: 420px; }
  .guide-collage--2 img:last-child { display: none; }

  .guide-collage--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .guide-collage--3 img:first-child {
    grid-row: 1;
    grid-column: 1 / 3;
    height: 220px;
  }
  .guide-collage--3 img:not(:first-child) { height: 160px; }

  .guide-collage--4 { grid-template-rows: auto auto; }
  .guide-collage--4 img { height: 180px; }
}

/* Clickable recommendation titles */
.guide-entry h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--tan);
  transition: border-color 0.2s, color 0.2s;
}
.guide-entry h3 a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
