/* =============================================
   Villa Luna — Landing Page
   ============================================= */

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-coral: #c4706e;
  --color-text-muted: rgba(0, 0, 0, 0.8);
  --color-text-light: rgba(0, 0, 0, 0.6);
  --color-divider: rgba(0, 0, 0, 0.5);

  --font-family: 'DM Sans', sans-serif;

  --container-max: 1280px;
  --section-padding-x: clamp(1.5rem, 5vw, 4.375rem);
  --section-padding-y: clamp(3rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--color-coral);
  color: var(--color-coral);
  background: transparent;
}

.btn--filled {
  background: var(--color-white);
  color: var(--color-coral);
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  /* min-height: clamp(520px, 65vw, 835px); */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  margin-top: 295px;
  height: 560px;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  transform: translate(-50%, -50%);
}

/* .hero__video.is-portrait {
  width: auto;
  height: auto;
  min-width: 100vh;
  min-height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
} */

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 20px;
  /* padding: 0 var(--section-padding-x) clamp(2.5rem, 5vw, 4rem); */
  padding: 0;
  margin-bottom: 3px;
  height: 500px;
}

.hero__content .hero__video {
  z-index: 1;  
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  width: 100%;
  height: 100%;
}

.hero__content-inner {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 5;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 15px;
}

.hero__title em {
  font-style: italic;
  font-weight: 700;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

/* ---- Header / Nav ---- */

.header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.1875rem);
  padding: 12px var(--section-padding-x) 0;
  width: 100%;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.header__minimum {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  text-align: center;
}

.header__logo {
  display: block;
  width: clamp(200px, 34vw, 430px);
}

.header__logo img {
  width: 100%;
  height: auto;
  /* filter: brightness(0) invert(1); */
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.625rem);
}

.header__nav a {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 0.7;
}

.header__nav-cta {
  font-style: italic;
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Collection Cards
   ============================================= */

.collections {
  width: 100%;
}

.collections__grid {
  display: grid;
  width: 100%;
}

.collections__grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.collections__grid--large {
  grid-template-columns: repeat(3, 1fr);
}

.collection-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* min-height: clamp(280px, 34vw, 436px); */
  min-height: 589px;
  padding: 26px 15px;
}

.collection-card--large {
  min-height: clamp(400px, 58vw, 741px);
  padding: 27px 15px;
}

.collection-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.4s ease;
}

.collection-card:hover .collection-card__image {
  transform: scale(1.03);
}

.collection-card__overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%); */
  z-index: 1;
}

.collection-card__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.collection-card__title {
  /* font-size: clamp(0.875rem, 1.5vw, 1.125rem); */
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.collection-card__title--large {
  font-size: clamp(1.5rem, 3vw, 2.625rem);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.collection-card__link {
  /* font-size: clamp(0.75rem, 1.2vw, 0.875rem); */
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.collection-card__link:hover {
  opacity: 0.75;
}

/* =============================================
   Benefits
   ============================================= */

.benefits {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.benefits__title {
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.benefit-item__icon {
  width: clamp(48px, 6vw, 79px);
  height: auto;
}

.benefit-item__text {
  font-size: clamp(0.875rem, 1.8vw, 1.375rem);
  letter-spacing: -0.05em;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.benefits__footer {
  font-size: clamp(0.875rem, 1.8vw, 1.375rem);
  color: var(--color-text-light);
}

/* =============================================
   About
   ============================================= */

.about {
  background: var(--color-coral);
  color: var(--color-white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.375rem);
  max-width: var(--container-max);
  margin: 0 auto;
  /* padding: var(--section-padding-y) 0 var(--section-padding-y) var(--section-padding-x); */
}

.about__title {
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vw, 3.3125rem);
}

.about__text {
  padding: 30px;

}

.about__text p {
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__image {
  height: 100%;
  min-height: clamp(300px, 44vw, 560px);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =============================================
   CTA Consultora
   ============================================= */

.cta-consultora {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 2.6875rem);
  padding: var(--section-padding-y) var(--section-padding-x);
  text-align: center;
}

.cta-consultora__title {
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-coral);
}

/* =============================================
   FAQ / Accordion
   ============================================= */

.faq {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--container-max);
  margin: 0 auto;
}

.faq__title {
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.125rem);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.accordion__item {
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 35px;
}

.accordion__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 400;
  color: var(--color-black);
  text-align: left;
  gap: 1rem;
  padding: 0;
  transition: color 0.2s;
}

.accordion__trigger:hover {
  color: var(--color-coral);
}

.accordion__icon {
  flex-shrink: 0;
  width: 26px;
  height: 17px;
  transition: transform 0.3s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion__panel[hidden] {
  display: block;
  max-height: 0;
}

.accordion__panel:not([hidden]) {
  max-height: 500px;
}

.accordion__content {
  padding-top: 1.25rem;
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  min-height: 1.5rem;
}

/* =============================================
   CTA Final
   ============================================= */

.cta-final {
  background: var(--color-coral);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(3rem, 8vw, 6rem) var(--section-padding-x);
  text-align: center;
}

.cta-final__title {
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.cta-final__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: -0.05em;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

/* =============================================
   Footer
   ============================================= */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(2.5rem, 5vw, 4rem) var(--section-padding-x);
  text-align: center;
}

.footer__logo {
  width: clamp(180px, 21vw, 266px);
}

.footer__copyright {
  font-size: 0.875rem;
  letter-spacing: -0.05em;
}

.footer__credits {
  font-size: 0.875rem;
  letter-spacing: -0.05em;
}

.footer__credits a {
  color: var(--color-coral);
  transition: opacity 0.2s;
}

.footer__credits a:hover {
  opacity: 0.75;
}

/* =============================================
   Back to Top
   ============================================= */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-coral);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #b36260;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .collections__grid--small {
    grid-template-columns: repeat(2, 1fr);
  }

  .collections__grid--large {
    grid-template-columns: 1fr;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits__grid .benefit-item:nth-child(4),
  .benefits__grid .benefit-item:nth-child(5) {
    grid-column: span 1;
  }

  .about__inner {
    grid-template-columns: 1fr;
    /* padding-right: var(--section-padding-x); */
    padding: 0;
  }

  .about__image {
    order: -1;
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .header__menu-btn {
    display: flex;
  }

  .header__nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0 0.5rem;
    gap: 1.25rem;
  }

  .header__nav.is-open {
    display: flex;
  }

  .collections__grid--large {
    grid-template-columns: 1fr;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-item:last-child {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }

  .collection-card {
    min-height: 489px;
  }

  .hero__content-inner {
    left: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .collections__grid--small {
    grid-template-columns: 1fr;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .benefit-item:last-child {
    max-width: 100%;
  }
}
