/* ==========================================================================
   ROSA DOS VENTOS — RESORT RESIDENCE (GRAVATÁ • SAIRÉ / PE)
   Design System: Clean, Country & Ecological (Warm Stone, Forest Pine, Timber)
   Constrained Width for Elegant Balanced Reading (Max-Width: 1020px)
   ========================================================================== */

:root {
  /* Natural & Ecological Color Palette */
  --bg-body: #f8f7f3;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f3f1ec;
  --bg-surface-hover: #faf9f6;
  
  --border-light: #e4dfd5;
  --border-subtle: #eeece6;
  
  /* Primary Country & Eco Greens */
  --forest-dark: #1a3628;
  --forest-primary: #24523b;
  --forest-light: #2d6a4f;
  --sage: #588157;
  --sage-light: #eef3ed;
  
  /* Earth, Timber & Terracotta */
  --timber: #8b5a2b;
  --timber-light: #a06d3b;
  --terracotta: #b25d38;
  --terracotta-light: #faede6;
  --sand-gold: #c49a45;
  --sand-gold-light: #fbf5e8;
  
  /* Typography Colors */
  --text-main: #1d2621;
  --text-muted: #556059;
  --text-subtle: #7a8680;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(26, 54, 40, 0.04);
  --shadow-md: 0 6px 20px rgba(26, 54, 40, 0.07);
  --shadow-lg: 0 14px 36px rgba(26, 54, 40, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  /* Max Width for Elegant Editorial Layout (NOT TOO WIDE) */
  --content-max-width: 1020px;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Elegant Constrained Container */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.75rem);
  padding-right: clamp(1rem, 3vw, 1.75rem);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--timber);
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--forest-dark);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--timber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--forest-dark);
  background-color: var(--bg-surface-alt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--forest-primary);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(36, 82, 59, 0.2);
}

.btn-print:hover {
  background-color: var(--forest-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 9px 7px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--forest-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-link {
  display: block;
  text-decoration: none;
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-print-mobile {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--forest-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.hero-monolith-banner {
  max-width: 540px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.hero-monolith-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.badge-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: var(--sage-light);
  border: 1px solid rgba(88, 129, 87, 0.35);
  border-radius: var(--radius-pill);
  color: var(--forest-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--forest-dark);
  margin-bottom: 1rem;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.hero-desc strong {
  color: var(--forest-dark);
  font-weight: 700;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: left;
}

.hero-stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-stat-card.highlight {
  border-color: var(--forest-light);
  background: linear-gradient(135deg, #ffffff 0%, var(--sage-light) 100%);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--forest-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.hero-stat-card.highlight .stat-num {
  color: var(--forest-primary);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.stat-detail {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   SECTIONS & HEADERS
   ========================================================================== */

.section {
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--timber);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.comparison-divider {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-indicator {
  font-size: 1.5rem;
  color: var(--timber);
  font-weight: 700;
}

.comparison-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-after {
  border-color: rgba(45, 106, 79, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f7 100%);
  box-shadow: var(--shadow-md);
}

.card-status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.card-status-badge.before {
  background-color: #fbeae8;
  color: #b9382b;
}

.card-status-badge.after {
  background-color: var(--sage-light);
  color: var(--forest-primary);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.spec-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-list strong {
  color: var(--text-main);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-surface-alt);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--forest-dark);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  white-space: nowrap;
}

.data-table th {
  background-color: var(--bg-surface-alt);
  color: var(--forest-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 0.8rem 1.1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-total {
  background-color: var(--sage-light);
  font-weight: 700;
}

.table-total td {
  color: var(--forest-dark);
  border-top: 2px solid var(--forest-light);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-success { background-color: #e8f5e9; color: #2e7d32; }
.badge-eco { background-color: var(--sage-light); color: var(--forest-primary); }
.badge-accent { background-color: var(--sand-gold-light); color: #8a6416; }
.badge-country { background-color: var(--terracotta-light); color: var(--terracotta); }
.badge-neutral { background-color: var(--bg-surface-alt); color: var(--text-muted); }

.sector-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.sector-badge.manhattan { background-color: #e6f0fa; color: #1e5a96; }
.sector-badge.dubai { background-color: var(--sand-gold-light); color: #8c6a1e; }
.sector-badge.suica { background-color: var(--sage-light); color: var(--forest-primary); }

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--forest-dark);
}

.filter-btn.active {
  background-color: var(--forest-primary);
  color: #ffffff;
  border-color: var(--forest-primary);
}

/* ==========================================================================
   MASTER PLAN CARD
   ========================================================================== */

.plan-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.plan-img-wrapper {
  background-color: #eae7df;
  text-align: center;
}

.masterplan-img {
  width: 100%;
  height: auto;
  display: block;
}

.plan-legend {
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.legend-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 0.75rem;
}

.legend-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.pill-manhattan .dot { background-color: #2980b9; }
.pill-dubai .dot { background-color: #f39c12; }
.pill-suica .dot { background-color: #27ae60; }
.pill-clube .dot { background-color: #00bcd4; }
.pill-hipico .dot { background-color: #8d6e63; }
.pill-zen .dot { background-color: #4caf50; }

/* ==========================================================================
   3D GALLERY GRID
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-card.featured {
  grid-column: span 2;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #ded9cd;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .img-wrapper img {
  transform: scale(1.02);
}

.gallery-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gallery-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--timber);
}

.gallery-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest-dark);
}

.gallery-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   AMENITIES GRID (WITH EMBEDDED IMAGES)
   ========================================================================== */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.amenity-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amenity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 106, 79, 0.3);
}

.amenity-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #eae7df;
}

.amenity-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.amenity-card:hover .amenity-img-wrapper img {
  transform: scale(1.02);
}

.amenity-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.amenity-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--timber);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.amenity-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--forest-dark);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.amenity-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Card without image styling for subtle text/icon items */
.amenity-card.no-image {
  padding: 1.5rem;
}

.amenity-card.no-image .amenity-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--forest-dark);
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sand-gold);
}

.footer-brand strong {
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.footer-left p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.doc-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.doc-tag:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (100% MOBILE-FRIENDLY)
   ========================================================================== */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-print .btn-text {
    display: none;
  }
  .btn-print {
    padding: 0.45rem 0.75rem;
  }

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

  .arrow-indicator {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

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

  .gallery-card.featured {
    grid-column: span 1;
  }

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

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    font-size: 0.55rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print Optimization */
@media print {
  body {
    background-color: #ffffff;
    color: #000000;
  }
  .site-header, .mobile-toggle, .mobile-drawer, .filter-buttons, .btn-print {
    display: none !important;
  }
  .hero-section {
    padding: 1.5rem 0;
    background: none;
  }
  .hero-title {
    color: #000000;
  }
  .table-card, .comparison-card, .gallery-card, .amenity-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
