/* =========================================================
   DORCHESTER SQUARE
   Master stylesheet
   ========================================================= */

/* ---------- Base styles ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #17201f;
  background: #f6f2e9;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 36px));
  margin: auto;
}


/* ---------- Header and navigation ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f6f2e9f2;
  border-bottom: 1px solid #d6d8d2;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font: 800 1.35rem Georgia, serif;
  text-decoration: none;
}

.brand span {
  display: block;
  font: 700 0.62rem "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.16em;
  color: #8b4b38;
}

.links {
  display: flex;
  gap: 22px;
}

.links a {
  text-decoration: none;
  font-weight: 700;
}


/* ---------- Typography ---------- */

.eyebrow {
  color: #8b4b38;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0.25em 0 0.45em;
  font-family: Georgia, serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.small {
  color: #66716f;
  font-size: 0.86rem;
}

.fine {
  color: #66716f;
  font-size: 0.82rem;
  line-height: 1.55;
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 14px 20px;
  color: #ffffff;
  background: #8b4b38;
  font-weight: 800;
  text-decoration: none;
}

.btn.green {
  background: #183f38;
}


/* ---------- Homepage hero ---------- */

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  color: #ffffff;
  background:
    linear-gradient(90deg, #0c1816df, #0c181633),
    url("../assets/images/hero.jpg") center / cover;
}

.hero .inner {
  max-width: 760px;
  padding: 100px 0 78px;
}

.hero p {
  font-size: 1.17rem;
}


/* ---------- Interior page hero ---------- */

.pagehero {
  padding: 80px 0 52px;
  color: #ffffff;
  background: #183f38;
}


/* ---------- General sections ---------- */

.section {
  padding: 72px 0;
}

.white {
  background: #ffffff;
}

.dark {
  color: #ffffff;
  background: #183f38;
}


/* ---------- Two-column layout ---------- */

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}


/* ---------- Availability cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 35px #17201f20;
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card .body {
  padding: 25px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  color: #16552d;
  background: #d9f0df;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 900;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #66716f;
  font-weight: 700;
}


/* ---------- Homepage location summary ---------- */

.location {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #e8dfcf;
}

.location div {
  padding: 24px;
  border-right: 1px solid #d2c4ae;
}

.location div:last-child {
  border-right: 0;
}

.location b {
  display: block;
  color: #183f38;
  font: 800 1.5rem Georgia, serif;
}


/* ---------- Property plan ---------- */

.plan {
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px #17201f20;
}

.plan img {
  width: 100%;
  height: auto;
}


/* ---------- Property components ---------- */

.property-copy {
  align-self: start;
}

.property-copy p {
  margin: 0 0 18px;
}

.property-copy p:last-child {
  margin-bottom: 0;
}


/* ---------- Location facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d6d8d2;
}

.fact {
  padding: 24px;
  background: #ffffff;
}

.fact b {
  display: block;
  color: #183f38;
  font: 800 1.35rem Georgia, serif;
}


/* ---------- Traffic counts ---------- */

.traffic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.traffic div {
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 12px 35px #17201f18;
}

.traffic strong {
  display: block;
  color: #8b4b38;
  font: 800 2rem Georgia, serif;
}


/* ---------- Galleries ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}


/* ---------- Contact boxes ---------- */

.contact {
  padding: 32px;
  background: #ffffff;
  box-shadow: 0 12px 35px #17201f20;
}

.contact h3 {
  margin-top: 0;
}


/* ---------- Opportunity Zone section ---------- */

.oz {
  color: #ffffff;
  background: #183f38;
}

.oz .eyebrow {
  color: #e5c28e;
}

.oz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: start;
}

.oz-grid h2 {
  color: #ffffff;
}

.oz-grid p {
  color: #eef4f1;
}

.oz-grid .fine {
  color: #c6d3cf;
}

.oz-facts {
  display: grid;
  gap: 14px;
}

.oz-fact {
  padding: 22px;
  color: #dce4e1;
  background: #ffffff12;
  border: 1px solid #ffffff24;
}

.oz-fact b {
  display: block;
  margin-bottom: 5px;
  color: #e5c28e;
  font: 800 1.1rem Georgia, serif;
}


/* ---------- Footer ---------- */

.footer {
  padding: 38px 0;
  color: #dce4e1;
  background: #111918;
}


/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */

@media (max-width: 800px) {
  .links {
    gap: 10px;
    font-size: 0.8rem;
  }

  .cards,
  .grid2,
  .traffic,
  .oz-grid {
    grid-template-columns: 1fr;
  }

  .location,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .location div:nth-child(2) {
    border-right: 0;
  }

  .location div:nth-child(-n + 2) {
    border-bottom: 1px solid #d2c4ae;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .property-copy {
    align-self: auto;
  }

  .oz-grid {
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .location,
  .facts,
  .gallery {
    grid-template-columns: 1fr;
  }

  .links {
    display: none;
  }

  .hero {
    min-height: 68vh;
  }

  .hero .inner {
    padding: 80px 0 58px;
  }

  .pagehero {
    padding: 60px 0 42px;
  }

  .section {
    padding: 54px 0;
  }

  .location div,
  .location div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #d2c4ae;
  }

  .location div:last-child {
    border-bottom: 0;
  }

  .contact {
    padding: 24px;
  }

  .oz-fact {
    padding: 20px;
  }
}