/* ============================================================
   QUINTOANDAR CLONE — styles.css
   Mobile-first | Paleta: #F5A623 · #1A1A2E · #F8F8F8
   ============================================================ */

:root {
  --primary: #F5A623;
  --primary-dark: #E8951A;
  --primary-light: #FDF3E1;
  --dark: #1A1A2E;
  --white: #FFFFFF;
  --bg-alt: #F8F8F8;
  --text: #1A1A1A;
  --text-sec: #6B7280;
  --border: #E5E7EB;
  --success: #27AE60;
  --danger: #E74C3C;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --shadow-hover: 0 12px 32px rgba(0,0,0,.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --transition: 250ms ease;
  --transition-fast: 150ms ease;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

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

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--radius-md); font-size: .9rem; font-weight: 600; transition: var(--transition-fast); white-space: nowrap; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; padding: 11px 32px; border-radius: var(--radius-md); font-size: 1rem; font-weight: 600; transition: var(--transition); }
.btn--outline:hover { background: var(--primary); color: var(--white); }

/* ── HEADER ───────────────────────────────────── */
.header { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100; transition: background var(--transition), box-shadow var(--transition); }
.header.scrolled { background: rgba(255,255,255,.98); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.header__inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.header__logo { flex-shrink: 0; display: flex; }
.header__nav { display: none; flex: 1; }
.nav__link { display: inline-block; padding: 8px 12px; font-size: .9rem; font-weight: 500; border-radius: var(--radius-md); color: var(--white); transition: color var(--transition-fast); }
.header.scrolled .nav__link { color: var(--text); }
.nav__link:hover { color: var(--primary) !important; }
.header__actions { display: none; gap: 8px; margin-left: auto; align-items: center; }
.header.scrolled .btn--ghost { color: var(--text); }

/* HAMBURGER */
.hamburger { margin-left: auto; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; padding: 6px; border-radius: var(--radius-md); transition: var(--transition-fast); }
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.header.scrolled .hamburger span { background: var(--text); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV DRAWER */
#mainNav { flex-direction: column; position: fixed; top: 64px; right: 0; bottom: 0; width: min(280px, 85vw); background: var(--white); padding: 20px 24px 32px; box-shadow: -4px 0 24px rgba(0,0,0,.1); transform: translateX(100%); transition: transform var(--transition); z-index: 99; overflow-y: auto; }
#mainNav.open { transform: translateX(0); display: flex; }
#mainNav .nav__link { color: var(--text); padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 98; }
.nav-overlay.visible { display: block; }

/* ── HERO ─────────────────────────────────────── */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 40%, #2d3561 70%, #1a1a2e 100%); padding: 100px 24px 56px; text-align: center; }
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.hero__content { position: relative; z-index: 1; width: 100%; max-width: 860px; }
.hero__title { font-size: 2.25rem; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 14px; letter-spacing: -.02em; }
.hero__subtitle { font-size: 1rem; color: rgba(255,255,255,.82); margin-bottom: 32px; }

/* SEARCH TABS */
.search-tabs { display: inline-flex; gap: 2px; margin-bottom: -1px; }
.search-tab { padding: 10px 24px; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.65); border-radius: 8px 8px 0 0; transition: var(--transition-fast); }
.search-tab.active { background: var(--white); color: var(--text); }
.search-tab:not(.active):hover { background: rgba(255,255,255,.12); color: var(--white); }

/* SEARCH BAR */
.search-bar { display: flex; flex-direction: column; background: var(--white); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); box-shadow: 0 4px 20px rgba(0,0,0,.2); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--text-sec); }
.search-field input, .search-field select { flex: 1; border: none; outline: none; font-size: .95rem; font-family: inherit; color: var(--text); background: transparent; padding: 17px 0; min-width: 0; }
.search-field input::placeholder { color: var(--text-sec); }
.search-field select { cursor: pointer; appearance: none; -webkit-appearance: none; }
.search-field--select { border-top: 1px solid var(--border); }
.search-divider { display: none; }
.search-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--white); padding: 16px 28px; font-size: .95rem; font-weight: 700; transition: background var(--transition-fast); }
.search-btn:hover { background: var(--primary-dark); }

/* ── TRUST BAR ────────────────────────────────── */
.trust-bar { background: var(--bg-alt); padding: 28px 0; border-bottom: 1px solid var(--border); }
.trust-bar__inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trust-stat__icon { font-size: 1.3rem; margin-bottom: 2px; }
.trust-stat__number { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.trust-stat__label { font-size: .8rem; color: var(--text-sec); }

/* ── LISTINGS ─────────────────────────────────── */
.listings { padding: 56px 0; }
.listings__header { margin-bottom: 18px; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 4px; }
.section-title--center { text-align: center; }
.section-subtitle { color: var(--text-sec); font-size: .9rem; }
.section-subtitle--center { text-align: center; margin-bottom: 0; }
.listings__more { text-align: center; margin-top: 40px; }

/* FILTER CHIPS */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: .83rem; font-weight: 500; color: var(--text-sec); background: var(--white); transition: var(--transition-fast); }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.filter-chip:active { transform: scale(.96); }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--border); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card:hover .card__image { transform: scale(1.05); }
.card__image-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.card__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--white); font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-sm); letter-spacing: .02em; }
.card__badge--new { background: var(--success); }
.card__fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: #999; transition: color var(--transition-fast), transform var(--transition-fast); box-shadow: var(--shadow-sm); }
.card__fav:hover { color: var(--danger); transform: scale(1.12); }
.card__fav.active { color: var(--danger); }
.card__body { padding: 14px 16px 16px; }
.card__price { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.card__price span { font-size: .85rem; font-weight: 400; color: var(--text-sec); }
.card__costs { font-size: .73rem; color: var(--text-sec); margin: 3px 0 10px; }
.card__location { display: flex; align-items: center; gap: 5px; font-size: .83rem; color: var(--text-sec); margin-bottom: 10px; }
.card__attrs { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; color: #888; }

/* ── HOW IT WORKS ─────────────────────────────── */
.how-it-works { background: var(--bg-alt); padding: 72px 0; }
.how-it-works .section-subtitle--center { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.step { text-align: center; padding: 0 8px; }
.step__icon { font-size: 2rem; background: var(--primary-light); width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 12px; }
.step__num { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 3px 9px; border-radius: var(--radius-pill); margin-bottom: 10px; letter-spacing: .04em; }
.step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step__desc { font-size: .88rem; color: var(--text-sec); line-height: 1.65; max-width: 260px; margin: 0 auto; }

/* ── FOOTER ───────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
.footer__logo { margin-bottom: 12px; display: flex; }
.footer__tagline { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; transition: background var(--transition-fast); letter-spacing: 0; }
.social-icon:hover { background: var(--primary); color: var(--white); }
.footer__col-title { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .01em; }
.footer__links li + li { margin-top: 9px; }
.footer__links a { font-size: .855rem; transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--white); }
.footer__legal { background: rgba(0,0,0,.25); padding: 16px 0; }
.footer__legal-inner { display: flex; flex-direction: column; gap: 8px; font-size: .73rem; color: rgba(255,255,255,.3); }
.footer__legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__legal-links a { color: rgba(255,255,255,.3); transition: color var(--transition-fast); }
.footer__legal-links a:hover { color: rgba(255,255,255,.7); }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp .5s ease forwards; }
.cards-grid .fade-in:nth-child(2).visible { animation-delay: .08s; }
.cards-grid .fade-in:nth-child(3).visible { animation-delay: .16s; }
.cards-grid .fade-in:nth-child(4).visible { animation-delay: .08s; }
.cards-grid .fade-in:nth-child(5).visible { animation-delay: .16s; }
.cards-grid .fade-in:nth-child(6).visible { animation-delay: .24s; }
.steps .fade-in:nth-child(2).visible { animation-delay: .12s; }
.steps .fade-in:nth-child(3).visible { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fade-in { opacity: 1; }
}

/* ── BREAKPOINTS ──────────────────────────────── */
@media (min-width: 480px) {
  .hero__title { font-size: 2.75rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__inner { gap: 48px; }
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
  .header__actions { display: flex; }
  .hamburger { display: none; }
  .hero { min-height: 540px; }
  .hero__title { font-size: 3.25rem; }
  .hero__subtitle { font-size: 1.15rem; }
  .search-bar { flex-direction: row; }
  .search-field--select { border-top: none; border-left: 1px solid var(--border); }
  .search-divider { display: block; width: 1px; background: var(--border); align-self: stretch; margin: 14px 0; flex-shrink: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__legal-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .trust-bar__inner { gap: 72px; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 3.5rem; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 2rem; }
  .hero { min-height: 560px; }
}