/* style.css */
:root {
  --terracotta: #C87A5C;
  --terracotta-deep: #A85D42;
  --sand: #F5EDE4;
  --cream: #FBF7F2;
  --olive: #9B9E7F;
  --dusty-rose: #D4A99A;
  --text-dark: #3D2E2A;
  --text-medium: #6B5D58;
  --text-light: #A8988F;
  --white: #FFFFFF;
  --macrame: #E8D5C8;
  --sunset: #E8B498;
  --clay: #BF7E6A;
  --gold: #C8A96E;
  --error: #D64045;
  --success: #5B8C5A;
  --shadow-sm: 0 8px 25px rgba(61, 46, 42, 0.06);
  --shadow-md: 0 15px 40px rgba(61, 46, 42, 0.1);
  --shadow-lg: 0 25px 60px rgba(61, 46, 42, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.15;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select {
  font-family: inherit;
}

::-moz-selection {
  background: var(--terracotta);
  color: var(--white);
}
::selection {
  background: var(--terracotta);
  color: var(--white);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.9rem 2rem;
  background: rgba(251, 247, 242, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200, 122, 92, 0.12);
  transition: background 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}
.header.scrolled {
  background: rgba(251, 247, 242, 0.96);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  letter-spacing: 2.5px;
  color: var(--terracotta);
  font-weight: 600;
  transition: color 0.3s;
}
.header__logo:hover {
  color: var(--terracotta-deep);
}
.header__links {
  display: flex;
  gap: 1.8rem;
}
.header__link {
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s;
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease-smooth);
}
.header__link:hover,
.header__link:focus-visible {
  color: var(--terracotta);
}
.header__link:hover::after,
.header__link:focus-visible::after {
  width: 100%;
}
.header__cta {
  background: var(--terracotta);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}
.header__cta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 122, 92, 0.3);
}
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.header__burger-line {
  width: 24px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}

.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2C1F1A;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 31, 26, 0.55) 0%,
    rgba(44, 31, 26, 0.25) 45%,
    rgba(44, 31, 26, 0.7) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 820px;
}
.hero__supratitle {
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  color: var(--sunset);
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.06;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.hero__author {
  font-family: 'Caveat', cursive;
  font-size: 0.55em;
  display: block;
  color: var(--sunset);
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  opacity: 0.88;
  margin-bottom: 2.5rem;
  color: var(--dusty-rose);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.65;
  z-index: 10;
  animation: float 2.2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

.btn {
  padding: 0.85rem 2.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: all 0.35s var(--ease-smooth);
  display: inline-block;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn--primary:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(200, 122, 92, 0.35);
}
.btn--accent {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--accent:hover {
  background: #b8943a;
  border-color: #b8943a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(200, 169, 110, 0.4);
}
.btn--outline-light {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--text-dark);
}
.btn--outline-dark {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: transparent;
}
.btn--outline-dark:hover {
  background: var(--terracotta);
  color: var(--white);
}
.btn--block {
  width: 100%;
  display: block;
}

.section {
  padding: 6rem 1.5rem;
  position: relative;
}
.section--light {
  background: var(--white);
}
.section--warm {
  background: var(--sand);
}
.section--darken {
  background: var(--cream);
}
.section__inner {
  max-width: 1140px;
  margin: 0 auto;
}
.section__label {
  font-family: 'Caveat', cursive;
  font-size: 1.65rem;
  color: var(--terracotta);
  text-align: center;
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
}
.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.7rem;
  letter-spacing: 0.8px;
}
.section__subtitle {
  text-align: center;
  color: var(--text-medium);
  max-width: 580px;
  margin: 0 auto 3.5rem;
  font-weight: 300;
  font-size: 0.95rem;
}
.section__footnote {
  text-align: center;
  margin-top: 1.8rem;
  color: var(--text-medium);
  font-style: italic;
  font-size: 0.9rem;
}

.cards-grid {
  display: grid;
  gap: 2rem;
}
.cards-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.cards-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.program-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--macrame);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.program-card--featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #FFFDF7 0%, var(--cream) 100%);
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(200, 169, 110, 0.12);
}
.program-card--featured:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 25px 55px rgba(200, 169, 110, 0.22);
}
.program-card__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 5;
}
.program-card__badge--premium {
  background: var(--gold);
}
.program-card__media {
  height: 200px;
  overflow: hidden;
}
.program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.program-card:hover .program-card__media img {
  transform: scale(1.05);
}
.program-card__body {
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card__duration {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--terracotta);
  margin-bottom: 0.15rem;
}
.program-card__name {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.program-card__list {
  margin-bottom: 1.2rem;
  flex: 1;
}
.program-card__list li {
  padding: 0.22rem 0;
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.program-card__list li::before {
  content: '✧';
  color: var(--terracotta);
  font-size: 0.55rem;
}
.program-card__item--muted {
  opacity: 0.38;
  text-decoration: line-through;
}
.program-card__item--muted::before {
  content: '—' !important;
}
.program-card__footer {
  border-top: 1px solid var(--macrame);
  padding-top: 1rem;
  text-align: center;
}
.program-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.program-card__price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-medium);
}
.program-card__note {
  font-size: 0.62rem;
  color: var(--text-light);
  margin: 0.2rem 0 0.8rem;
}

.room-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
  background: var(--white);
}
.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.room-card__media {
  height: 280px;
  overflow: hidden;
}
.room-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}
.room-card:hover .room-card__media img {
  transform: scale(1.03);
}
.room-card__body {
  padding: 1.3rem 1.3rem 1.5rem;
  text-align: center;
}
.room-card__name {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.room-card__body p {
  color: var(--text-medium);
  font-size: 0.85rem;
  font-weight: 300;
}
.room-card__tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.room-card__tags span {
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--macrame);
  border-radius: var(--radius-pill);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.split__text h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.split__text p {
  color: var(--text-medium);
  margin-bottom: 1rem;
  font-weight: 300;
}
.split__list {
  margin-top: 1.5rem;
}
.split__list li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.split__list li::before {
  content: '☽';
  color: var(--terracotta);
  font-size: 1rem;
}
.split__badge {
  display: inline-block;
  background: var(--macrame);
  color: var(--text-dark);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1rem;
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-smooth), filter 0.45s;
}
.gallery__item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(61, 46, 42, 0.7), transparent);
  color: var(--white);
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery__item:hover .gallery__caption {
  opacity: 1;
}

.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--macrame);
}
.form__group {
  margin-bottom: 1.2rem;
}
.form__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--macrame);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form__input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 122, 92, 0.1);
}
.form__input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(214, 64, 69, 0.08);
}
.form__error {
  font-size: 0.7rem;
  color: var(--error);
  margin-top: 0.25rem;
  display: none;
}
.form__error.visible {
  display: block;
}
.form__submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease-smooth);
  margin-top: 0.5rem;
}
.form__submit:hover:not(:disabled) {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 122, 92, 0.3);
}
.form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.form__feedback {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
}
.form__feedback.success {
  display: block;
  color: var(--success);
}
.form__feedback.error {
  display: block;
  color: var(--error);
}
.form__note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 1rem;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.cta {
  background: linear-gradient(135deg, var(--sand) 0%, var(--macrame) 100%);
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}
.cta__label {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.5rem;
}
.cta__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta__inner p {
  color: var(--text-medium);
  margin-bottom: 1.8rem;
  font-weight: 300;
}
.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  background: var(--text-dark);
  color: var(--macrame);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}
.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 2.5px;
  color: var(--dusty-rose);
  margin-bottom: 0.5rem;
}
.footer__location {
  margin-bottom: 0.25rem;
}
.footer__author {
  color: var(--dusty-rose);
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}
.footer__socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer__socials a {
  color: var(--sunset);
  transition: color 0.3s;
}
.footer__socials a:hover {
  color: var(--white);
}
.footer__copy {
  opacity: 0.5;
  font-size: 0.7rem;
}

@media (max-width: 1100px) {
  .cards-grid--three {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .program-card--featured {
    transform: scale(1);
  }
  .program-card--featured:hover {
    transform: translateY(-6px);
  }
}
@media (max-width: 860px) {
  .header__links {
    display: none;
  }
  .header__burger {
    display: flex;
  }
  .cards-grid--two {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .section__title {
    font-size: 2rem;
  }
}
@media (max-width: 520px) {
  .header {
    padding: 0.8rem 1.2rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: 2.4rem;
  }
  .section {
    padding: 4rem 1rem;
  }
  .form-wrapper {
    padding: 1.8rem 1.3rem;
  }
}