/* ===================================================================
   LUXURY LONG STAY SP — Stylesheet
   Aesthetic: refined, warm neutrals, generous whitespace, editorial
   =================================================================== */

/* ----- Reset & Base ------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette — luxury green & gold */
  --color-bg:        #f8f9f7;
  --color-surface:   #ffffff;
  --color-text:      #262b25;
  --color-text-soft: #5c6658;
  --color-accent:    #3d6b4a;
  --color-accent-hover: #2e5438;
  --color-gold:      #c5a86a;
  --color-dark:      #171c16;
  --color-border:    #dfe5dc;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-py: 7rem;
  --container-max: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* ----- Container --------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section__subheading {
  font-size: 1.125rem;
  color: var(--color-text-soft);
  margin-bottom: 3rem;
}

/* ----- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 2px;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
}

.btn--large {
  padding: 1.1rem 3rem;
  font-size: 1rem;
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: transparent;
}

.nav--scrolled {
  background-color: rgba(250, 249, 247, 0.97);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.nav__logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.nav__logo-img--green {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
}

.nav--scrolled .nav__logo-img--white {
  opacity: 0;
}

.nav--scrolled .nav__logo-img--green {
  opacity: 1;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav__links a {
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.nav--scrolled .nav__links a {
  color: var(--color-text-soft);
}

.nav__links a:hover {
  color: var(--color-gold);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.nav--scrolled .nav__lang {
  border-color: var(--color-border);
}

.nav__lang-icon {
  font-size: 0.95rem;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: background-color 0.3s;
}

.nav--scrolled .nav__toggle span {
  background-color: var(--color-text);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1b2819 0%, #2e3d2c 50%, #3d6b4a 100%);
  background-image: url('/images/luxury-longstay-sao-paulo-facade-basilio-177.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 2rem 1.5rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* ===================================================================
   INTRO
   =================================================================== */
.intro {
  text-align: center;
  background-color: var(--color-surface);
}

.intro__text {
  max-width: 780px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--color-text-soft);
  line-height: 1.85;
}

.intro__lease {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

/* ===================================================================
   RESIDENCE
   =================================================================== */
.residence__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.residence__placeholder {
  aspect-ratio: 4 / 3;
  background-color: #e8ebe6;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.residence__placeholder-icon {
  font-size: 1.6rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.residence__placeholder-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

.residence__text {
  max-width: 780px;
  font-size: 1.05rem;
  color: var(--color-text-soft);
  line-height: 1.85;
  margin-bottom: 3rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.feature__icon {
  font-size: 1.4rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.feature__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ===================================================================
   BUILDING
   =================================================================== */
.building {
  background-color: var(--color-surface);
}

.building__text {
  max-width: 780px;
  font-size: 1.05rem;
  color: var(--color-text-soft);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.building__highlight {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-accent);
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  max-width: 700px;
  line-height: 1.6;
}

.building__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.building__image-wrap {
  border-radius: 4px;
  overflow: hidden;
}

.building__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

/* ===================================================================
   AMENITIES
   =================================================================== */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.amenity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.amenity-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.amenity-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.amenity-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.amenity-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.amenity-card--has-img {
  padding: 0;
  overflow: hidden;
}

.amenity-card--has-img .amenity-card__title,
.amenity-card--has-img .amenity-card__desc {
  padding: 0 2rem;
}

.amenity-card--has-img .amenity-card__title {
  padding-top: 1.5rem;
}

.amenity-card--has-img .amenity-card__desc {
  padding-bottom: 2rem;
}

.amenity-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ===================================================================
   LOCATION
   =================================================================== */
.location {
  background-color: var(--color-surface);
}

.location__text {
  max-width: 780px;
  font-size: 1.05rem;
  color: var(--color-text-soft);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.location__nearby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.location__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.location__icon {
  font-size: 1.5rem;
}

.location__map {
  margin-top: 2rem;
}

/* ===================================================================
   FAQ
   =================================================================== */
.faq {
  background-color: var(--color-bg);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  gap: 1rem;
  transition: color 0.3s ease;
}

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

.faq__icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__answer p {
  padding: 0 0 1.4rem;
  font-size: 1rem;
  color: var(--color-text-soft);
  line-height: 1.8;
  max-width: 720px;
}

/* ===================================================================
   CTA
   =================================================================== */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #1b2819 0%, #2e4a34 100%);
  color: #fff;
}

.cta .section__heading {
  color: #fff;
}

.cta__text {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.footer__copy {
  font-size: 0.8rem;
}

.footer__langs a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__langs a.active {
  color: var(--color-gold);
}

.footer__sep {
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer__disclaimer {
  width: 100%;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  :root {
    --section-py: 4.5rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s ease;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem;
  }

  .nav__lang {
    border-color: rgba(255, 255, 255, 0.2) !important;
  }

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

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

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

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: 2rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .section__heading {
    font-size: 1.75rem;
  }
}
