/* Bubamara Apartments — Zadar
   Palette and type are drawn from the brand mark: the ladybug red is the
   accent, everything else is a warm neutral so the photography carries. */

:root {
  color-scheme: light;
  --cream: #fbf8f2;
  --sand: #f0ece3;
  --sage-bg: #e4e6dc;
  --ink: #262a26;
  --muted: #6b6d64;
  --red: #ed4c32;
  --red-dark: #cf3e29;
  --sage: #737d68;
  --line: #dedbd2;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; }
.wrap { width: min(1180px, 88%); margin: auto; }

/* ---------- header ---------- */
.header {
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { display: block; height: 92px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.nav a:hover { color: var(--red); }
.mobile-toggle { display: none; border: 0; background: none; font-size: 24px; color: inherit; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--red);
  color: #fff;
  padding: 16px 22px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border: 1px solid var(--red);
  transition: 0.2s;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.button.light:hover { background: #fff; border-color: #fff; }
.button.outline { background: transparent; border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.button.outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 28, 24, 0.6), rgba(24, 28, 24, 0.1)),
    linear-gradient(0deg, rgba(24, 28, 24, 0.38), transparent 65%),
    url("../images/hero-living-room.jpg") center / cover;
}
.hero-content { padding: 90px 0 84px; max-width: 720px; }
.hero .eyebrow { color: #f4d2c9; margin-bottom: 24px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 0;
}
.hero h1 em { font-weight: 400; font-style: italic; color: #ffd0c3; }
.hero p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  margin: 24px 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- trustbar ---------- */
.trustbar {
  background: var(--sand);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 6%;
  gap: 22px;
}
.trustbar div { border-left: 2px solid var(--red); padding-left: 14px; }
.trustbar strong { display: block; font: 22px var(--serif); font-weight: 400; margin-bottom: 5px; }
.trustbar span { font-size: 11px; color: var(--muted); }

/* ---------- sections ---------- */
section { scroll-margin-top: 25px; }
.section { padding: 94px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }
.photo { width: 100%; height: 470px; object-fit: cover; display: block; }

.story-copy { max-width: 490px; }
.story-copy h2,
.section-head h2,
.location-copy h2,
.closing h2,
.voices h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 15px 0 22px;
}
.story-copy h2 em,
.section-head h2 em,
.location-copy h2 em,
.closing h2 em,
.voices h2 em { color: var(--red); font-weight: 400; font-style: italic; }

.body-copy { font-size: 14px; line-height: 1.9; color: var(--muted); }
.text-link {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid var(--red);
  padding-bottom: 7px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- apartments ---------- */
.apartments { background: var(--sand); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head p { max-width: 550px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: var(--cream); display: flex; flex-direction: column; }
.card img { width: 100%; height: 330px; object-fit: cover; display: block; }
.card-content { padding: 27px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font: 34px var(--serif); font-weight: 400; margin: 10px 0; }
.card-content p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 480px; }
.card-content .text-link { margin-top: auto; align-self: flex-start; padding-top: 22px; }
.tag { font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--sage); }
.specs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li {
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 10px;
}

/* ---------- location ---------- */
.location { background: var(--sage-bg); }
.location .photo { height: 440px; }
.location-copy { max-width: 500px; }
.location-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.location-points strong { font: 22px var(--serif); font-weight: 400; display: block; margin-bottom: 7px; }
.location-points span { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ---------- guest voices ---------- */
.voices { background: var(--cream); padding: 88px 0; }
.voices .section-head { margin-bottom: 40px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.quotes figure { margin: 0; }
.quotes blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.62;
  color: var(--ink);
}
.quotes blockquote::before { content: "\201C"; color: var(--red); }
.quotes blockquote::after { content: "\201D"; color: var(--red); }
.quotes figcaption {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- closing ---------- */
.closing { background: var(--ink); color: #fff; text-align: center; padding: 90px 20px; }
.closing .eyebrow { color: #ffb8a8; }
.closing h2 { max-width: 700px; margin: 18px auto; }
.closing p { max-width: 520px; margin: 0 auto 28px; color: #d4d4cc; font-size: 14px; line-height: 1.8; }

/* ---------- footer ---------- */
.footer { padding: 45px 0 25px; background: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; align-items: start; }
.footer-logo { height: 84px; width: auto; display: block; margin-bottom: 14px; }
.footer h4 { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 400; margin: 0 0 15px; }
.footer p, .footer a { font-size: 12px; line-height: 1.9; color: var(--muted); }
.footer a:hover { color: var(--red); }
.copyright {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.sticky-book { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .wrap { width: 88%; }
  .header { height: 94px; }
  .brand img { height: 68px; }
  .mobile-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    z-index: 9;
    top: 94px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px 6%;
    box-shadow: 0 12px 20px #0001;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .nav.open { display: flex; }
  .header > .button { padding: 12px 13px; font-size: 9px; }
  .hero { min-height: 610px; background-position: 56% center; }
  .hero-content { padding: 65px 0 74px; }
  .hero p { font-size: 14px; }
  .trustbar { grid-template-columns: 1fr 1fr; padding: 25px 6%; gap: 23px; }
  .section { padding: 65px 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .photo { height: 320px; }
  .story-copy { order: -1; }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .card img { height: 280px; }
  .section-head { margin-bottom: 30px; }
  .location .photo { height: 300px; }
  .location-copy { order: -1; }
  .voices { padding: 65px 0; }
  .quotes { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .copyright { flex-direction: column; }
  .sticky-book {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 10;
    text-align: center;
    background: var(--red);
    color: #fff;
    padding: 15px;
    font-size: 10px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
  }
}

@media (min-width: 901px) {
  .hero-content { margin-left: 6%; }
}
