/* ── Variables ── */
:root {
  --background: #282922;
  --foreground: #93585e;
  --muted-foreground: #a9cc8b;
  --secondary: #f2cfcd;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
/* ── MAIN ── */
main {
  padding: 8rem 1.5rem 5rem;
}
@media (min-width: 768px) {
  main {
    padding: 10rem 3rem 5rem;
  }
}

/* ── SECTION HEADING ── */
.section-heading {
  margin: 10rem 3rem;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1;
}
.section-heading p {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* ── STEP INDICATORS ── */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: default;
  font-family: var(--font-body);
  transition: opacity 0.3s ease;
}
.step-btn.is-active {
  opacity: 1;
  cursor: default;
}
.step-btn.is-done {
  opacity: 0.4;
  cursor: pointer;
}
.step-btn.is-future {
  opacity: 0.2;
  cursor: default;
}

.step-num {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 237, 232, 0.2);
  font-size: 0.75rem;
}
.step-btn.is-active .step-num,
.step-btn.is-done .step-num {
  border-color: var(--foreground);
}

.step-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: none;
}
@media (min-width: 768px) {
  .step-label {
    display: inline;
  }
}

/* ── STEP PANELS ── */
.step-panel {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.step-panel.active {
  display: block;
}
.step-panel.enter {
  opacity: 1;
  transform: translateX(0);
}

/* ── BODY MAP ── */
.body-map {
  max-width: 48rem;
  margin: 0 auto;
}

.body-map__hint {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.body-map__figure {
  position: relative;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  aspect-ratio: 1 / 2;
}

.body-map__figure svg {
  width: 100%;
  height: 100%;
}

/* Hotspots */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 237, 232, 0.1);
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.hotspot:hover {
  background: rgba(200, 184, 162, 0.2);
  border-color: var(--secondary);
}
.hotspot.selected {
  background: rgba(200, 184, 162, 0.3);
  border-color: var(--secondary);
}

/* Area grid buttons */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-btn {
  padding: 1rem;
  border: 1px solid rgba(240, 237, 232, 0.15);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}
.area-btn:hover {
  border-color: rgba(240, 237, 232, 0.4);
}
.area-btn.selected {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

/* ── VISION / DETAILS FORM ── */
.booking-form {
  max-width: 42rem;
  margin: auto;
}

.form-section {
  margin-bottom: 2.5rem;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Option grids */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .option-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .option-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.option-btn {
  padding: 0.75rem;
  border: 1px solid rgba(240, 237, 232, 0.15);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}
.option-btn:hover {
  border-color: rgba(240, 237, 232, 0.4);
}
.option-btn.selected {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

/* Inputs */
.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(240, 237, 232, 0.15);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}
.form-input:focus,
.form-textarea:focus {
  border-color: rgba(240, 237, 232, 0.4);
}
.form-textarea {
  min-height: 7.5rem;
}

/* Summary box */
.summary-box {
  border: 1px solid rgba(240, 237, 232, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.summary-box__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.summary-row {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.summary-row span {
  color: var(--muted-foreground);
}

/* Navigation */
.form-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.btn-back {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.3s ease;
}
.btn-back:hover {
  color: var(--foreground);
}
.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-next {
  padding: 1rem 2.5rem;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.btn-next:hover:not(:disabled) {
  background: transparent;
  color: var(--foreground);
}
.btn-next:disabled {
  border-color: rgba(240, 237, 232, 0.15);
  background: transparent;
  color: rgba(240, 237, 232, 0.3);
  cursor: not-allowed;
}

.form-error {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--destructive);
}

/* ── SUCCESS STATE ── */
.success-panel {
  display: none;
  text-align: center;
  padding: 5rem 0;
  max-width: 32rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.success-panel.active {
  display: block;
}
.success-panel.enter {
  opacity: 1;
  transform: translateY(0);
}

.success-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
}
.success-body {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
.success-placement {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
}

/* ── BOOKING WRAPPER ── */
#booking-wrapper {
  position: relative;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  transition:
    background 0.6s ease,
    backdrop-filter 0.6s ease,
    border-color 0.6s ease;

  background: transparent;
}

.site-nav.scrolled {
  background: rgba(250, 249, 249, 0.021);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253, 250, 245, 0.041);
}

.nav-inner {
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-around;

  padding: 0 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;

  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* MOBILE */

.mobile-toggle {
  display: none;

  background: none;
  border: none;
  color: var(--foreground);

  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;

  background: var(--background);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;

  z-index: 999;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 3rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(240, 237, 232, 0.08);

  margin-top: 8rem;
  padding: 6rem 1.5rem 0rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 10%;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;

  margin-bottom: 1rem;
}

.footer-text {
  color: var(--muted-foreground);
  max-width: 260px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;

  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 237, 232, 0.05);

  margin-top: 5rem;
  padding: 2rem;

  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* PAGE TRANSITION */

.page-transition {
  opacity: 0;
  filter: blur(8px);

  animation: pageFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFade {
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}
