/* ===========================
   VIVENDAS DA MARINA - CSS
   =========================== */

/* ==================
   VARIÁVEIS CSS
   ================== */
:root {
  --color-navy: #1B365D;
  --color-gold: #D4AF37;
  --color-light-gold: #E8C547;
  --color-dark: #2D3436;
  --color-light: #F8F9FA;
  --color-light-50: rgba(255, 255, 255, 0.5);
  --color-light-75: rgba(255, 255, 255, 0.75);
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 1rem;
  --border-radius-lg: 1.5rem;
}

/* ==================
   RESET E BASE
   ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  overflow-x: hidden;
}

/* ==================
   TIPOGRAFIA
   ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

.text-gold {
  color: var(--color-gold) !important;
}

.text-light-50 {
  color: var(--color-light-50) !important;
}

.text-light-75 {
  color: var(--color-light-75) !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ==================
   CORES CUSTOMIZADAS
   ================== */
.bg-navy {
  background-color: var(--color-navy) !important;
}

.bg-gold {
  background-color: var(--color-gold) !important;
}

/* ==================
   BOTÕES
   ================== */
.btn {
  font-family: var(--font-secondary);
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-light-gold) 100%);
  color: #000;
  border: 2px solid var(--color-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-light-gold) 0%, var(--color-gold) 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-navy {
  background-color: var(--color-navy);
  color: white;
  border: 2px solid var(--color-navy);
}

.btn-navy:hover {
  background-color: transparent;
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--color-navy);
  transform: translateY(-2px);
}

/* ==================
   NAVBAR
   ================== */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--color-gold) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* ==================
   HERO SECTION
   ================== */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 16, 17, 0.8) 0%,
    rgba(58, 58, 60, 0.6) 50%,
    rgba(212, 175, 55, 0.3) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
}

.hero-logo {
  max-height: 120px;
  width: auto;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  /* font-style: italic; */
}

.hero-cta {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    text-align: center;
  }
  
  .hero-logo {
    max-height: 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* ==================
   SCROLL INDICATOR
   ================== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-link {
  color: var(--color-light-75);
  font-size: 1.5rem;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: var(--transition);
}

.scroll-link:hover {
  color: var(--color-gold);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ==================
   SECTIONS
   ================== */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

/* ==================
   INFRAESTRUTURA CARDS
   ================== */
.infrastructure-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.infrastructure-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.infrastructure-card .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.infrastructure-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.infrastructure-card:hover .card-image img {
  transform: scale(1.05);
}

.infrastructure-card .card-content {
  padding: 1.5rem;
}

.infrastructure-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.infrastructure-card .card-text {
  color: #6c757d;
  line-height: 1.6;
}

/* ==================
   INVESTMENT CARDS
   ================== */
.investment-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
}

.investment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold);
}

.investment-card .card-icon {
  margin-bottom: 1.5rem;
}

.investment-card .card-icon i {
  font-size: 3rem;
}

.investment-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.investment-card .card-text {
  color: #6c757d;
  line-height: 1.6;
}

/* ==================
   TABELA DE PREÇOS
   ================== */
.pricing-table {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-family: var(--font-secondary);
}

.data-table thead tr {
  background: linear-gradient(135deg, var(--color-navy) 0%, #2c5282 100%);
  color: white;
}

.data-table th {
  padding: 1.25rem 1rem;
  font-weight: 600;
  text-align: left;
  border: none;
}

.data-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-table td {
  padding: 1.25rem 1rem;
  border: none;
  vertical-align: middle;
}

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

@media (max-width: 768px) {
  .data-table {
    font-size: 0.9rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 1rem 0.75rem;
  }
}

/* ==================
   PROVA SOCIAL
   ================== */
.proof-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.proof-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.proof-icon {
  margin-bottom: 1.5rem;
}

.proof-icon i {
  font-size: 3rem;
}

.proof-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.proof-card p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* ==================
   FORMULÁRIO
   ================== */
.contact-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.form-control:focus {
  background: white;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: #6c757d;
}

.btn-submit {
  font-weight: 600;
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn-submit {
    width: 100%;
  }
}

/* ==================
   GALERIA
   ================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 54, 93, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 1rem;
}

.overlay-content i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}

.overlay-content p {
  font-size: 0.9rem;
  margin: 0;
}

/* Página da Galeria */
.gallery-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, #2c5282 100%);
  padding: 8rem 0 4rem;
  color: white;
  text-align: center;
}

.gallery-grid {
  padding: 4rem 0;
}

.gallery-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb:hover {
  transform: scale(1.02);
}

/* ==================
   VÍDEO
   ================== */
.video-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: black;
}

.video-container iframe {
  border: none;
  border-radius: var(--border-radius-lg);
}

/* ==================
   FOOTER
   ================== */
.footer {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a2332 100%);
  position: relative;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--color-gold);
  color: #000;
  transform: translateY(-3px);
}

.contact-info a {
  color: var(--color-light-75);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==================
   BOTÃO WHATSAPP
   ================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background: #128C7E;
  color: white;
  transform: scale(1.1);
}

.whatsapp-float:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-whatsapp 2s infinite;
  z-index: -1;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==================
   BOTÃO FIXO MOBILE
   ================== */
.mobile-cta-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: white;
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

@media (min-width: 992px) {
  .mobile-cta-fixed {
    display: none;
  }
}

/* ==================
   COMPARTILHAMENTO SOCIAL
   ================== */
.social-share-bar {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.social-share-bar .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ==================
   ANIMAÇÕES
   ================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 1s ease-out forwards;
}

/* ==================
   RESPONSIVIDADE
   ================== */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .infrastructure-card .card-content,
  .investment-card,
  .proof-card {
    padding: 1.5rem 1rem;
  }
}

/* ==================
   MELHORIAS DE PERFORMANCE
   ================== */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ==================
   UTILITIES
   ================== */
.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-hover) !important;
}

.text-center {
  text-align: center !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

/* ==================
   BREADCRUMB
   ================== */
.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--color-light-50);
  margin: 0 0.5rem;
}

.breadcrumb-item a {
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--color-light-gold) !important;
}