/* =============================================
   FREEDOM — Design System CSS
   ============================================= */

:root {
  --primary:    #D25148;
  --dark:       #181818;
  --gray:       #575656;
  --light:      #d3d8db;
  --border:     #e7e7e7;
  --muted:      #C4C4C4;
  --white:      #ffffff;

  --font:       "Poppins", sans-serif;

  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   16px;
  --r-xl:   15px;

  --t:      0.4s ease;
  --t-slow: 0.5s ease;

  --shadow: 0 0 30px 0 rgba(0,0,0,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--light);
  color: var(--gray);
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--dark  { background: var(--dark); }
.section--white { background: var(--white); }
.section--light { background: var(--light); }

/* ---- Section header ---- */
.section__eyebrow {
  font-size: 12px; font-weight: 600;
  color: var(--primary); letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section__title {
  font-size: 36px; font-weight: 700;
  color: var(--dark); line-height: 1.2;
}
.section__title--light { color: var(--white); }
.section__desc { margin-top: 16px; font-size: 18px; color: var(--gray); max-width: 560px; }
.section__desc--light { color: rgba(255,255,255,0.75); }
.section__header { margin-bottom: 56px; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 22px 0;
  transition: padding var(--t), background var(--t), box-shadow var(--t);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }

.header__brand { display: flex; flex-direction: column; line-height: 1; }
.header__brand-name {
  font-size: 20px; font-weight: 700;
  color: var(--white); letter-spacing: 2px;
  transition: color var(--t);
}
.header__brand-sub {
  font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: 1px;
  margin-top: 2px; transition: color var(--t);
}

.header__nav { display: flex; align-items: center; }
.header__nav a {
  font-size: 15px; font-weight: 500;
  color: var(--white); margin-left: 40px;
  position: relative; transition: color var(--t);
}
.header__nav a::after {
  content: ""; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--t);
}
.header__nav a:hover,
.header__nav a.active { color: var(--primary); }
.header__nav a:hover::after,
.header__nav a.active::after { width: 100%; }

/* Scrolled */
.header.is-scrolled {
  padding: 12px 0;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header.is-scrolled .header__brand-name,
.header.is-scrolled .header__brand-sub,
.header.is-scrolled .header__nav a { color: var(--gray); }
.header.is-scrolled .header__brand-sub { color: var(--muted); }

/* Mobile toggle */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; font-size: 26px; color: var(--white);
  transition: color var(--t);
}
.header.is-scrolled .menu-toggle { color: var(--dark); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 500; font-size: 16px;
  border: none; cursor: pointer; border-radius: var(--r-sm);
  padding: 13px 26px; line-height: 1;
  transition: transform var(--t-slow), background var(--t), color var(--t);
}
.btn:hover { transform: scale(1.07); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--primary); color: var(--white); }
.btn--outline  {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover { background: var(--primary); border-color: var(--primary); }
.btn--dark {
  background: transparent; color: var(--dark);
  border: 2px solid var(--dark);
}
.btn--dark:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn--sm  { padding: 10px 18px; font-size: 14px; }
.btn--full { width: 100%; }

/* =============================================
   HERO
   ============================================= */
.hero {
  height: 100vh; min-height: 600px;
  background: center/cover no-repeat;
  position: relative;
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, #181818ee 0%, transparent 200%);
}
.hero__content { position: relative; z-index: 1; max-width: 580px; }
.hero__eyebrow {
  font-size: 13px; font-weight: 500;
  color: var(--primary); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero__title {
  font-size: 42px; font-weight: 700;
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero__title span { color: var(--primary); }
.hero__desc {
  font-size: 18px; color: rgba(255,255,255,0.8);
  margin-bottom: 36px; line-height: 1.65;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   PROPERTY CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card-property {
  border-radius: var(--r-lg); overflow: hidden;
  position: relative; height: 380px;
  background: var(--dark);
  display: block; cursor: pointer;
}
.card-property__image {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.75;
  transition: opacity var(--t), transform var(--t-slow);
}
.card-property:hover .card-property__image { opacity: 0.5; transform: scale(1.04); }

.card-property__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #181818f0 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  transform: translateY(2%);
  transition: transform var(--t-slow);
}
.card-property:hover .card-property__overlay { transform: translateY(0); }

.card-property__tag {
  display: inline-block;
  background: var(--primary); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-sm);
  margin-bottom: 10px; width: fit-content;
}
.card-property__title {
  font-size: 20px; font-weight: 600;
  color: var(--white); margin-bottom: 6px;
  line-height: 1.3;
}
.card-property__location {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 4px;
}
.card-property__meta {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.card-property__meta-item {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 5px;
}
.card-property__price {
  font-size: 18px; font-weight: 700;
  color: var(--primary); margin-top: 10px;
}

/* =============================================
   STATS
   ============================================= */
.stats { display: flex; gap: 60px; flex-wrap: wrap; }
.stat__number { font-size: 42px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat__label  { font-size: 14px; font-weight: 500; color: var(--gray); margin-top: 6px; }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  padding: 100px 0;
  background: linear-gradient(to right, #181818f2 0%, transparent 200%),
              url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600') center/cover no-repeat;
  position: relative;
}
.cta-band--alt {
  background-image:
    linear-gradient(to right, #181818f2 0%, transparent 200%),
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1600');
}
.cta-band__content { max-width: 560px; position: relative; z-index: 1; }
.cta-band__title {
  font-size: 38px; font-weight: 700;
  color: var(--white); line-height: 1.2; margin-bottom: 20px;
}
.cta-band__title span { color: var(--primary); }
.cta-band__desc {
  font-size: 18px; color: rgba(255,255,255,0.8);
  margin-bottom: 36px; line-height: 1.6;
}

/* =============================================
   HIGHLIGHT BOX
   ============================================= */
.highlight-box {
  background: var(--dark); color: var(--white);
  border-radius: var(--r-xl);
  padding: 30px 44px 44px;
  display: inline-flex; align-items: center;
}
.highlight-box p { font-size: 24px; font-weight: 500; line-height: 1.45; }
.highlight-box span { color: var(--primary); }

/* =============================================
   FILTERS BAR
   ============================================= */
.filters {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-bottom: 48px;
}
.filters__title {
  font-size: 14px; font-weight: 600;
  color: var(--gray); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 20px;
}
.filters__row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.filters__field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.filters__label { font-size: 12px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   FORM ELEMENTS
   ============================================= */
.input, .select, .textarea {
  font-family: var(--font); font-size: 15px;
  padding: 0 14px;
  height: 46px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  outline: none; background: var(--white); color: var(--dark);
  transition: border-color var(--t);
  width: 100%;
  box-sizing: border-box;
  line-height: 1;
}
.textarea {
  height: auto;
  padding: 12px 14px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { resize: vertical; min-height: 120px; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__label { font-size: 14px; font-weight: 500; color: var(--gray); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =============================================
   TOGGLE
   ============================================= */
.toggle-wrap { display: flex; align-items: center; gap: 12px; }
.toggle-label { font-size: 14px; font-weight: 500; color: var(--gray); }
.toggle { position: relative; width: 48px; height: 26px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute; inset: 0;
  background: var(--muted); border-radius: 34px;
  transition: background var(--t);
}
.toggle__slider::before {
  content: ""; position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: white; border-radius: 50%;
  transition: transform var(--t);
}
.toggle input:checked + .toggle__slider { background: var(--primary); }
.toggle input:checked + .toggle__slider::before { transform: translateX(22px); }

/* =============================================
   GALLERY (Página interna)
   ============================================= */
.gallery { position: relative; min-width: 0; width: 100%; }
.gallery__main {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--dark);
}
.gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s ease;
}
.gallery__thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 4px;
  max-width: 100%;
}
.gallery__thumb {
  flex-shrink: 0; width: 100px; height: 70px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer; transition: border-color var(--t);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.active { border-color: var(--primary); }
.gallery__thumb:hover { border-color: var(--primary); }

/* Gallery nav arrows */
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between;
  width: 100%; padding: 0 12px; pointer-events: none;
}
.gallery__arrow {
  pointer-events: all;
  background: rgba(24,24,24,0.7); color: white;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px;
  transition: background var(--t);
}
.gallery__arrow:hover { background: var(--primary); }

/* =============================================
   PROPERTY DETAIL
   ============================================= */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}
.detail-title {
  font-size: 32px; font-weight: 700;
  color: var(--dark); margin-bottom: 8px; line-height: 1.2;
}
.detail-code {
  font-size: 13px; font-weight: 600;
  color: var(--primary); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
}
.detail-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--gray); margin-bottom: 28px;
}
.detail-desc {
  font-size: 16px; color: var(--gray);
  line-height: 1.75; white-space: pre-line;
  margin-bottom: 36px;
}

.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 36px;
}
.spec-item {
  background: var(--white); border-radius: var(--r-lg);
  padding: 20px; text-align: center;
  border: 1px solid var(--border);
}
.spec-item__icon { font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.spec-item__value { font-size: 20px; font-weight: 700; color: var(--dark); }
.spec-item__label { font-size: 12px; font-weight: 500; color: var(--gray); margin-top: 3px; }

.amenidades {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.amenidade-tag {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--gray);
  display: flex; align-items: center; gap: 6px;
}
.amenidade-tag i { color: var(--primary); font-size: 16px; }

/* Sidebar card */
.sidebar-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  position: sticky; top: 100px;
}
.sidebar-card__title {
  font-size: 20px; font-weight: 700;
  color: var(--dark); margin-bottom: 6px;
}
.sidebar-card__sub {
  font-size: 14px; color: var(--gray); margin-bottom: 24px;
}
.sidebar-card__price {
  font-size: 28px; font-weight: 700;
  color: var(--primary); margin-bottom: 20px;
}
.sidebar-card__prices { margin-bottom: 24px; }
.sidebar-card__price-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-card__price-row:last-child { border-bottom: none; }
.sidebar-card__price-label { color: var(--gray); font-weight: 500; }
.sidebar-card__price-value { color: var(--dark); font-weight: 600; }
.sidebar-card__divider { height: 1px; background: var(--border); margin: 20px 0; }

/* =============================================
   ALERT / FEEDBACK
   ============================================= */
.alert {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 500; margin-bottom: 16px;
}
.alert--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* =============================================
   PAGE HERO (sub-pages)
   ============================================= */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(to right, #181818f2 0%, transparent 200%),
              center/cover no-repeat;
  min-height: 320px;
  display: flex; align-items: flex-end;
}
.page-hero__title {
  font-size: 48px; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.page-hero__title span { color: var(--primary); }
.page-hero__bread {
  font-size: 14px; color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.page-hero__bread a { color: rgba(255,255,255,0.6); }
.page-hero__bread a:hover { color: var(--primary); }

/* =============================================
   SOBRE — Equipe card
   ============================================= */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card {
  background: var(--dark); border-radius: var(--r-lg);
  overflow: hidden; position: relative; height: 320px;
}
.team-card img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.7; transition: opacity var(--t);
}
.team-card:hover img { opacity: 0.4; }
.team-card__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, #181818f5 0%, transparent 100%);
}
.team-card__name { font-size: 18px; font-weight: 600; color: white; }
.team-card__role { font-size: 13px; color: var(--primary); font-weight: 500; margin-top: 3px; }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center; padding: 80px 24px;
}
.empty-state i { font-size: 64px; color: var(--muted); margin-bottom: 20px; }
.empty-state p { font-size: 18px; color: var(--gray); }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--gray); margin-bottom: 32px;
}
.breadcrumb a { color: var(--gray); transition: color var(--t); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--muted); }
.breadcrumb__current { color: var(--primary); font-weight: 500; }

/* =============================================
   UTILITIES
   ============================================= */
.text-primary { color: var(--primary); }
.text-dark    { color: var(--dark); }
.text-gray    { color: var(--gray); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); padding: 22px 0; }
.footer .container {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer__brand-name { font-size: 18px; font-weight: 700; color: white; letter-spacing: 2px; }
.footer__brand-sub  { font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-top: 2px; }
.footer__copy       { font-size: 13px; color: var(--gray); }
.footer__social { display: flex; gap: 20px; }
.footer__social a {
  color: rgba(255,255,255,0.6); font-size: 22px;
  transition: transform var(--t-slow), color var(--t);
}
.footer__social a:hover { transform: scale(1.15); color: var(--primary); }

/* =============================================
   RESPONSIVE — 430px
   ============================================= */
@media (max-width: 430px) {
  .hero { height: 70vh; min-height: 500px; }
  .hero__title { font-size: 28px; }
  .hero__desc  { font-size: 16px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 26px; }
  .cards-grid, .cards-grid--2 { grid-template-columns: 1fr; }
  .card-property { height: 300px; }
  .team-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2,1fr); }
  .stats { gap: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .cta-band__title { font-size: 26px; }
  .menu-toggle { display: block; }
  .header__nav {
    display: none; position: fixed;
    inset: 0; background: white;
    flex-direction: column; justify-content: center;
    align-items: center; gap: 28px; z-index: 999;
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { color: var(--dark) !important; font-size: 20px; margin-left: 0; }
  .header__nav .btn { margin-left: 0; }
  .footer .container { flex-direction: column; text-align: center; }
  .page-hero { padding: 140px 0 60px; }
  .page-hero__title { font-size: 32px; }
  .highlight-box { width: 100%; padding: 24px; }
  .highlight-box p { font-size: 20px; }
  .filters__row { flex-direction: column; }
}
