/* ============================================================
   QuintoAndar Landing Page — Stylesheet
   Paleta: #F04E23 brand · #00A868 green · #1a1a1a text
   Font: Inter 400/500/600/700
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.5;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: #F04E23;
  color: #ffffff;
  border-color: #F04E23;
}

.btn--primary:hover {
  background-color: #d43d15;
  border-color: #d43d15;
}

.btn--ghost {
  background-color: transparent;
  color: #1a1a1a;
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: #f5f5f5;
}

.btn--outline {
  background-color: transparent;
  color: #F04E23;
  border-color: #F04E23;
}

.btn--outline:hover {
  background-color: #F04E23;
  color: #ffffff;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  height: 64px;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 32px;
  height: 32px;
  background-color: #F04E23;
  border-radius: 6px;
  position: relative;
}

.logo__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: #ffffff;
}

.logo__icon--white {
  background-color: #F04E23;
}

.logo__text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.logo__text--white {
  color: #ffffff;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.nav__link {
  text-decoration: none;
  color: #444444;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: #F04E23;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav open state */
.header__nav--open {
  display: flex;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #fff8f6 0%, #ffffff 60%, #f0faf5 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero__tabs {
  display: flex;
  background-color: #f5f5f5;
  border-radius: 40px;
  padding: 4px;
  gap: 4px;
}

.tab {
  padding: 8px 24px;
  border-radius: 40px;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab--active {
  background-color: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  max-width: 640px;
}

.hero__subtitle {
  font-size: 18px;
  color: #666666;
  font-weight: 400;
}

.hero__search {
  display: flex;
  width: 100%;
  max-width: 600px;
  gap: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.search__input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  background-color: #ffffff;
}

.search__input::placeholder {
  color: #aaaaaa;
}

.search__btn {
  border-radius: 0;
  padding: 16px 28px;
  font-size: 15px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  padding: 6px 16px;
  border: 1px solid #dddddd;
  border-radius: 20px;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #444444;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
  border-color: #F04E23;
  color: #F04E23;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section__title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-align: center;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit__card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.benefit__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.benefit__icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.benefit__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.benefit__text {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* ============================================================
   LISTINGS
   ============================================================ */
.listings {
  padding: 80px 0;
  background-color: #ffffff;
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.listing__card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.listing__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.listing__img {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.listing__img--1 {
  background-color: #c8e6d9;
  background-image: linear-gradient(135deg, #a8d5c2 0%, #7cbfad 100%);
}

.listing__img--2 {
  background-color: #ffd4c5;
  background-image: linear-gradient(135deg, #f5b8a0 0%, #e8957a 100%);
}

.listing__img--3 {
  background-color: #c5d8f5;
  background-image: linear-gradient(135deg, #a8c5f0 0%, #7aa8e8 100%);
}

.listing__img--4 {
  background-color: #f5e8c5;
  background-image: linear-gradient(135deg, #e8d4a0 0%, #d4bc78 100%);
}

.listing__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #00A868;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing__badge--buy {
  background-color: #F04E23;
}

.listing__info {
  padding: 16px;
}

.listing__price {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.listing__period {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
}

.listing__address {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.listing__city {
  font-size: 13px;
  color: #888888;
  margin-bottom: 12px;
}

.listing__features {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.listing__features li {
  font-size: 12px;
  color: #555555;
  font-weight: 500;
  background-color: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
}

.listings__cta {
  text-align: center;
}

/* ============================================================
   ADVERTISE
   ============================================================ */
.advertise {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.advertise__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.advertise__title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.advertise__subtitle {
  font-size: 16px;
  color: #bbbbbb;
  margin-bottom: 24px;
  line-height: 1.6;
}

.advertise__list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advertise__list li {
  color: #dddddd;
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.advertise__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00A868;
  font-weight: 700;
}

.advertise__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat__item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #F04E23;
  margin-bottom: 8px;
}

.stat__label {
  display: block;
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #111111;
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2a2a;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 14px;
  color: #777777;
  line-height: 1.6;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: #888888;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #ffffff;
}

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: #555555;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  text-decoration: none;
  font-size: 13px;
  color: #555555;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: #aaaaaa;
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .advertise__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .advertise__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero__title {
    font-size: 36px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid #e8e8e8;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .header__nav--open {
    display: flex;
  }

  .header__actions {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__search {
    flex-direction: column;
    box-shadow: none;
    gap: 12px;
    border-radius: 0;
    overflow: visible;
  }

  .search__input {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
  }

  .search__btn {
    border-radius: 10px;
    width: 100%;
    padding: 14px;
  }

  .section__title {
    font-size: 24px;
    margin-bottom: 28px;
  }

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

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

  .advertise__title {
    font-size: 26px;
  }

  .advertise__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .footer__bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}