/* Page-owned styles for Magánszoba */

/* Section spacing */
.section {
  padding: var(--spacing-64) 0;
}

.section:first-of-type {
  padding-top: 0;
}

/* Section title with botanical decoration */
.section__title {
  margin-bottom: var(--spacing-32);
}

.section__title--decorated::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin-top: var(--spacing-16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 2'%3E%3Cline x1='0' y1='1' x2='25' y2='1' stroke='%23C87D55' stroke-width='2'/%3E%3Ccircle cx='30' cy='1' r='1.5' fill='%23C87D55'/%3E%3Cline x1='35' y1='1' x2='60' y2='1' stroke='%23C87D55' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.section__title--centered {
  text-align: center;
}

.section__title--centered.section__title--decorated::after {
  margin-left: auto;
  margin-right: auto;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero__bg {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 59, 45, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  text-align: center;
  color: var(--color-textOnAccent);
  padding: var(--spacing-32);
  max-width: 800px;
  width: 100%;
}

.hero__title {
  font-size: var(--h1-size);
  line-height: var(--h1-line-height);
  margin-bottom: var(--spacing-16);
  color: inherit;
}

.hero__subtitle {
  font-size: var(--h4-size);
  line-height: var(--h4-line-height);
  margin-bottom: var(--spacing-32);
  color: inherit;
  font-family: var(--font-body);
}

.hero__text-box {
  background: rgba(45, 59, 45, 0.7);
  padding: var(--spacing-32);
  max-width: 600px;
  margin: 0 auto;
  border-radius: 0;
}

.hero__text {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-24);
  color: inherit;
}

.hero__cta {
  margin-top: var(--spacing-16);
}

/* Space intro section */
.space-intro__grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: var(--spacing-48);
  align-items: start;
}

.space-intro__img-col {
  width: 100%;
  min-width: 0;
}

.space-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 600px;
}

.space-intro__text-col {
  min-width: 0;
}

.space-intro__text-col p {
  max-width: 70ch;
}

/* Event types section */
.event-types {
  background: var(--color-surface);
}

.event-types__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-32);
  margin-top: var(--spacing-48);
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  min-width: 0;
}

.event-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: var(--color-accent);
}

.event-card__title {
  margin-bottom: 0;
}

/* Gastronomy section */
.gastronomy__grid {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: var(--spacing-48);
  align-items: start;
}

.gastronomy__text-col {
  min-width: 0;
}

.gastronomy__text-col p {
  max-width: 70ch;
}

.gastronomy__img-col {
  width: 100%;
  min-width: 0;
}

.gastronomy__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 600px;
}

/* Design details section */
.design-details__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

.design-details__text-block {
  max-width: 70ch;
  margin: 0 auto var(--spacing-32);
}

.design-details__img-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 500px;
  margin: 0 auto var(--spacing-32);
  overflow: hidden;
}

.design-details__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Booking process section */
.booking-process {
  background: var(--color-surface);
}

.booking-process__layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

.booking-process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-32);
}

.booking-process__step {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.booking-process__step-title {
  margin-bottom: 0;
}

/* Testimonials section */
.testimonials__layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

.testimonials__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-64);
  margin-top: var(--spacing-48);
}

.testimonial {
  text-align: center;
  border-left: none;
  padding-left: 0;
  font-style: italic;
  font-family: var(--font-heading);
  max-width: 60ch;
  margin: 0 auto;
}

.testimonial p {
  margin-bottom: var(--spacing-16);
}

.testimonial cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--small-size);
  color: var(--color-accent);
}

/* Booking form section */
.booking-form__layout {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

.booking-form__intro {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto var(--spacing-32);
}

.booking-form__box {
  background: var(--color-surface);
  padding: var(--spacing-32);
  border: 1px solid var(--color-borderSubtle);
  border-radius: 0;
}

.booking-form__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.form-label {
  font-size: var(--small-size);
  font-weight: 400;
}

.form-input {
  width: 100%;
}

.form-error {
  font-size: var(--small-size);
  color: var(--color-accent);
  min-height: 1.4em;
}

.booking-form__submit {
  align-self: center;
  margin-top: var(--spacing-16);
}

.booking-form__success {
  text-align: center;
  padding: var(--spacing-32);
}

.booking-form__success p {
  margin-bottom: 0;
}

/* FAQ section */
.faq__layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  margin-top: var(--spacing-48);
}

.faq__item {
  border: 1px solid var(--color-borderSubtle);
  background: var(--color-background);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-16) var(--spacing-24);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  color: var(--color-textPrimary);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-textPrimary);
  border-bottom: 2px solid var(--color-textPrimary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__question[aria-expanded="true"] .faq__arrow {
  transform: rotate(-135deg);
}

.faq__answer {
  padding: 0 var(--spacing-24) var(--spacing-16);
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.faq__answer[hidden] {
  display: block;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
}

.faq__answer:not([hidden]) {
  max-height: 500px;
  padding-bottom: var(--spacing-16);
  visibility: visible;
}

.faq__answer p {
  margin-bottom: 0;
  max-width: 70ch;
}

/* Responsive: Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .event-types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .space-intro__grid,
  .gastronomy__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-32);
  }

  .space-intro__img-col,
  .gastronomy__img-col {
    order: -1;
  }

  .space-intro__img,
  .gastronomy__img {
    max-height: 400px;
  }

  .design-details__img-wrapper {
    height: 400px;
  }
}

/* Responsive: Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero__title {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .hero__text-box {
    max-width: 90%;
    padding: var(--spacing-24);
  }

  .event-types__grid {
    grid-template-columns: 1fr;
  }

  .design-details__img-wrapper {
    height: 250px;
  }

  .booking-form__box {
    padding: var(--spacing-24);
  }

  .testimonials__list {
    gap: var(--spacing-48);
  }

  .section {
    padding: var(--spacing-48) 0;
  }
}
