@font-face {
  font-family: "Apfel Grotezk";
  src: url("/assets/fonts/apfel-grotezk/apfel-grotezk_normal_400.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotezk";
  src: url("/assets/fonts/apfel-grotezk/apfel-grotezk_normal_600.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Coconat";
  src: url("/assets/fonts/coconat/coconat_normal_600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f7f3ea;
  --ink: #102d33;
  --sea: #0c4751;
  --deep-sea: #082f38;
  --sand: #d7ac6c;
  --clay: #9e6044;
  --mist: #dbe9e6;
  --white: #ffffff;
  --wide: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - var(--wide)) / 2));
  border-bottom: 1px solid rgba(16, 45, 51, 0.16);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--deep-sea);
  text-decoration: none;
  white-space: nowrap;
}

.brand span,
.nav a,
.eyebrow,
.button {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand small {
  color: var(--clay);
  font-size: 0.78rem;
}

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.86rem;
}

.nav a,
.language-switcher a {
  text-decoration: none;
}

.nav a:hover,
.brand:hover {
  color: var(--clay);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(16, 45, 51, 0.18);
}

.language-switcher a {
  min-width: 32px;
  padding: 6px 7px;
  color: var(--sea);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.language-switcher a:hover,
.language-switcher a.is-active {
  background: var(--sea);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 540px;
  height: calc(100svh - 150px);
  max-height: 760px;
  overflow: hidden;
  background: var(--deep-sea);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 47, 56, 0.34);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - var(--wide)) / 2));
  right: max(24px, calc((100vw - var(--wide)) / 2));
  bottom: 56px;
  max-width: 780px;
  margin: 0 auto;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sand);
  font-size: 0.82rem;
}

.eyebrow.dark {
  color: var(--clay);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Coconat", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: 4.25rem;
}

h2 {
  margin-bottom: 0;
  font-size: 3rem;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.72rem;
}

.hero-copy p:last-child {
  max-width: 610px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: 1.22rem;
}

.section-band {
  background: var(--deep-sea);
  color: var(--mist);
}

.intro,
.closing {
  padding: 74px max(24px, calc((100vw - var(--wide)) / 2));
}

.section-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.section-grid h2 {
  color: var(--sand);
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 600;
}

.lead.light {
  color: var(--ink);
}

.feature-section,
.apartments-section,
.blog-section,
.map-section {
  padding: 86px max(24px, calc((100vw - var(--wide)) / 2));
  background: var(--paper);
}

.section-heading {
  max-width: var(--wide);
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 1.12rem;
}

.feature-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-grid article {
  min-height: 250px;
  padding: 28px 0 0;
  border-top: 2px solid var(--clay);
  text-align: center;
}

.feature-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--clay);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-grid p,
.closing-copy p {
  margin-bottom: 0;
}

.apartments-section {
  padding-top: 96px;
}

.apartment-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.apartment-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(16, 45, 51, 0.18);
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.apartment-card h3,
.apartment-card p {
  margin-bottom: 0;
}

.apartment-card .button {
  margin-top: auto;
  align-self: center;
}

.apartment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.apartment-meta span {
  padding: 7px 10px;
  color: var(--sea);
  background: var(--mist);
}

.rating {
  color: var(--clay);
  font-size: 0.92rem;
  font-weight: 600;
}

.button.button-dark {
  border-color: var(--sea);
  color: var(--sea);
}

.button.button-dark:hover {
  background: var(--sea);
  color: var(--white);
}

.local-section {
  padding-top: 78px;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--clay);
  font-weight: 600;
}

.recommendations {
  padding: 74px max(24px, calc((100vw - var(--wide)) / 2));
}

.recommendation-copy {
  display: grid;
  gap: 28px;
}

.recommendation-copy p {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.14rem;
  font-weight: 600;
}

.map-section {
  padding-top: 78px;
}

.location-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.location-copy h2 {
  margin-bottom: 24px;
}

.location-copy p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.map-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.map-card {
  width: 100%;
  max-width: 760px;
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 45, 51, 0.18);
  background: #d6e5dd;
}

.map-water {
  position: absolute;
  inset: 0 0 0 48%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 46%),
    #82c7cf;
}

.map-land {
  position: absolute;
  inset: -12% 36% -16% -8%;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.54), transparent 34%),
    var(--mist);
  clip-path: polygon(0 0, 87% 0, 72% 18%, 84% 33%, 68% 49%, 78% 67%, 59% 84%, 64% 100%, 0 100%);
}

.map-road {
  position: absolute;
  background: rgba(158, 96, 68, 0.34);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.34);
}

.map-road.vertical {
  width: 7px;
  height: 78%;
  left: 38%;
  top: 10%;
  transform: rotate(-6deg);
}

.map-road.diagonal {
  width: 7px;
  height: 64%;
  left: 21%;
  top: 26%;
  transform: rotate(57deg);
}

.map-pin {
  position: absolute;
  left: 48%;
  top: 43%;
  width: 34px;
  height: 34px;
  border: 8px solid var(--clay);
  border-radius: 50% 50% 50% 0;
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 10px 24px rgba(8, 47, 56, 0.22);
}

.map-pin::after {
  position: absolute;
  inset: 6px;
  content: "";
  border-radius: 50%;
  background: var(--clay);
}

.map-card-label {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  color: var(--deep-sea);
  background: rgba(247, 243, 234, 0.92);
  border: 1px solid rgba(16, 45, 51, 0.14);
}

.map-card-label strong {
  font-family: "Coconat", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
}

.map-card-label span {
  color: var(--clay);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
}

.image-band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 80px max(24px, calc((100vw - var(--wide)) / 2));
  color: var(--white);
  background: url("/assets/images/urbem_beach-sea-coast-water-nature-outdoor.jpg") center / cover no-repeat;
}

.image-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(8, 47, 56, 0.42);
}

.image-band-copy {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.image-band-copy h2 {
  margin-bottom: 18px;
  color: var(--sand);
}

.image-band-copy p:last-child {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.compact {
  align-items: center;
}

.closing-copy {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--sand);
  color: var(--sand);
  font-size: 0.82rem;
  text-decoration: none;
}

.button:hover {
  background: var(--sand);
  color: var(--deep-sea);
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - var(--wide)) / 2));
  color: var(--paper);
  background: var(--ink);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.78rem;
  }

  .language-switcher {
    width: fit-content;
    align-self: center;
  }

  .hero {
    height: 70svh;
    min-height: 480px;
  }

  .hero-copy {
    bottom: 32px;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .section-grid,
  .feature-grid,
  .apartment-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro,
  .closing,
  .feature-section,
  .apartments-section,
  .blog-section,
  .map-section,
  .recommendations,
  .image-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .map-card {
    min-height: 320px;
  }

  .feature-grid article,
  .apartment-card {
    min-height: auto;
  }

  .feature-grid span {
    margin-bottom: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .nav {
    font-size: 0.72rem;
  }

  .hero {
    height: 68svh;
    min-height: 460px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }
}
