:root {
  --bg: #9fc5e8;
  --surface: rgba(255, 250, 244, 0.92);
  --surface-strong: #fffaf3;
  --ink: #24302b;
  --muted: #617168;
  --line: rgba(36, 48, 43, 0.12);
  --brand: #be6d3f;
  --brand-dark: #934d25;
  --sea: #6f9f9a;
  --busy: #8b5e3c;
  --free: #5d8a5e;
  --shadow: 0 24px 60px rgba(36, 48, 43, 0.12);
  --radius: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(190, 109, 63, 0.2), transparent 28%),
    linear-gradient(180deg, #efe6d8 0%, var(--bg) 18%, #f6f1e8 100%);
}

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 86svh;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 30, 27, 0.1), rgba(20, 30, 27, 0.68)),
    url("./photos/Overkant_V02_IMG_9479.JPG") center/cover no-repeat;
}

.hero__logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1;
  width: clamp(120px, 16vw, 220px);
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin-right: clamp(1rem, 4vw, 4rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  padding: 1.2rem 1.35rem;
  background: rgba(255, 248, 239, 0.16);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 250, 244, 0.35);
  border-radius: 0;
  color: #fff8f1;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: inherit;
  opacity: 0.82;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p,
li {
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero__lead {
  max-width: 24rem;
  margin: 0.8rem 0 0;
  font-size: 1rem;
}

.hero__actions,
.section__header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero__actions {
  margin-top: 1.15rem;
}

.hero__actions .button {
  width: 260px;
  min-width: 260px;
  min-height: 3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--free);
  color: #fff9f5;
}

.button--primary:hover {
  background: #4c774c;
}

.button--ghost {
  border-color: rgba(255, 250, 244, 0.45);
  color: #fff8f1;
  background: transparent;
}

.button--secondary {
  border-color: var(--busy);
  background: var(--busy);
  color: #fff9f5;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section--intro {
  margin-top: -2rem;
}

.section--accent {
  position: relative;
}

.section--accent::before {
  content: "";
  position: absolute;
  inset: 2rem -2rem;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(111, 159, 154, 0.16), rgba(190, 109, 63, 0.08));
  z-index: -1;
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.facts__item {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts__item:nth-child(2n) {
  border-right: none;
}

.facts__item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.facts__item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.facts__item strong {
  font-size: 1.25rem;
}

.gallery-shell {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  gap: 1rem;
  align-items: stretch;
  margin-top: 2rem;
}

.gallery-viewport {
  overflow: hidden;
  min-height: 34rem;
}

.gallery {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  transition: transform 220ms ease;
}

.gallery-nav__button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font: inherit;
  font-size: 3rem;
  font-weight: 700;
  cursor: pointer;
}

.gallery-nav__button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.gallery-nav__button:disabled {
  opacity: 0.45;
  cursor: default;
}

.gallery__item {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(21, 28, 26, 0.65) 100%);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 220ms ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff8f1;
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.gallery-thumb {
  flex: 0 0 8rem;
  height: 5.4rem;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb--active {
  border-color: var(--brand);
}

.calendar-placeholder {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.calendar-legend {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.calendar-placeholder__row,
.pricing li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.calendar-status {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.calendar-status:empty {
  display: none;
}

.calendar-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.calendar-shell {
  margin-top: 1.2rem;
}

.calendar-nav {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
}

.calendar-nav__button {
  min-height: 3rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}

.calendar-nav__button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.calendar-nav__button:disabled {
  opacity: 0.45;
  cursor: default;
}

.calendar-nav__label {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(111, 159, 154, 0.12);
  font-weight: 700;
  text-align: center;
}

.calendar-month {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.calendar-month__header {
  display: none;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays div {
  padding: 0.6rem 0.3rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.calendar-day {
  min-height: 4.25rem;
  padding: 0.45rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day--empty {
  background: rgba(36, 48, 43, 0.04);
}

.calendar-day--busy {
  background: rgba(139, 94, 60, 0.18);
}

.calendar-day--free {
  background: rgba(93, 138, 94, 0.12);
}

.calendar-day--saturday {
  outline: 2px solid rgba(190, 109, 63, 0.55);
  outline-offset: -2px;
}

.calendar-day--selectable {
  cursor: pointer;
}

.calendar-day--disabled {
  opacity: 0.42;
  cursor: default;
}

.calendar-day--selected {
  outline: 3px solid rgba(36, 48, 43, 0.9);
  outline-offset: -3px;
}

.calendar-day--range {
  background: rgba(159, 197, 232, 0.28);
}

.calendar-day__number {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.calendar-day__state {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.calendar-day__price {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.calendar-day__rule {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.3rem;
  border: 1px solid rgba(36, 48, 43, 0.2);
  font-size: 0.64rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
}

.calendar-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  min-width: 170px;
  min-height: 2.45rem;
  border-radius: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.pill--free {
  background: var(--free);
}

.pill--busy {
  background: var(--busy);
}

.pricing {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.pricing li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.pricing li:last-child {
  border-bottom: none;
}

.pricing span {
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
}

.inquiry-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field select {
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-field input:disabled,
.form-field select:disabled,
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.quote-box {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.quote-box h3 {
  margin-bottom: 1rem;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

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

.quote-row--total {
  font-size: 1.05rem;
}

.inquiry-status {
  min-height: 1.6rem;
  margin: 1rem 0;
  color: var(--muted);
}

.inquiry-status--error {
  color: #8b3d2f;
}

.inquiry-status--ok {
  color: #2f6a3b;
}

.profile-photo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 1rem 0 1rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.inquiry-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.inquiry-actions .button {
  flex: 1 1 170px;
  width: 170px;
  max-width: 170px;
  min-width: 170px;
  min-height: 2.45rem;
}

.section--accent .grid > .card:last-child {
  display: flex;
  flex-direction: column;
}

.footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid--two,
  .grid--three {
    grid-template-columns: 1fr;
  }

  .gallery-shell {
    grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem;
  }

  .gallery__item {
    min-height: 24rem;
  }

  .gallery-viewport {
    min-height: 24rem;
  }

  .gallery-nav__button {
    font-size: 2.4rem;
  }

  .gallery-thumb {
    flex-basis: 6.5rem;
    height: 4.5rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-behavior: auto;
  }

  body {
    background: #9fc5e8;
  }

  .hero {
    min-height: 72svh;
    padding: 1rem;
    justify-content: flex-end;
  }

  .hero__content {
    background: rgba(70, 82, 68, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .hero__backdrop {
    background:
      linear-gradient(180deg, rgba(20, 30, 27, 0.14), rgba(20, 30, 27, 0.54)),
      url("./photos/Overkant_V02_IMG_9479.JPG") center/cover no-repeat;
  }

  .hero__logo {
    top: 1rem;
    left: 1rem;
    width: min(140px, 42vw);
  }

  main {
    width: min(100% - 1rem, 1180px);
  }

  .hero__content {
    width: min(360px, 100%);
    margin-right: 0;
    padding: 1rem 1.1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .card,
  .facts,
  .gallery__item {
    box-shadow: none;
  }

  .section--accent::before {
    display: none;
  }

  #galerie {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #galerie .section__header {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .gallery-shell {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    gap: 0;
  }

  .gallery-viewport {
    min-height: 62vw;
  }

  .gallery__item {
    min-height: 62vw;
    box-shadow: none;
  }

  .gallery-nav__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.6rem;
    min-height: 2.6rem;
    border: none;
    background: rgba(36, 48, 43, 0.42);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
  }

  #galleryPrev {
    left: 0.6rem;
  }

  #galleryNext {
    right: 0.6rem;
  }

  .gallery-thumbs {
    width: 100%;
    margin: 0.75rem 0 0;
    padding: 0 0 0.35rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts__item {
    border-right: none;
  }

  .facts__item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .facts__item:last-child {
    border-bottom: none;
  }
}
