/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
}

/* Header Styles */
.top-bar {
  background: #04097E;
  color: white;
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
}

.settings {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.select-wrapper {
  position: relative;
}

.custom-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  min-width: 120px;
}

.custom-select:focus {
  outline: none;
  border-color: #fbbf24;
  background: rgba(255, 255, 255, 0.2);
}

.custom-select option {
  background: #04097E;
  color: white;
  padding: 0.5rem;
}

.custom-select option:hover {
  background: #030670;
}

.select-arrow {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.7);
}

/* Main Header */
.main-header {
  background: #fcfcfcd3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company-name {
  color: #fa0000;
  font-size: 1.85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  font-family: Arial, Helvetica, sans-serif;
}

.logo {
  height: 200px;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: #04097E;
  text-decoration: none;
  font-weight: 500;
  font-size: larger;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fbbf24;
}

/* Hero Section */
.hero {
  background: #ffffffc9;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.75rem;
  color: #1e293b;;
  max-width: 4xl;
  margin: 0 auto;
}

/* Cards and Sections */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #04097E;
  text-align: center;
  margin-bottom: 2rem;
}

/* Image Gallery */
.image-slider {
  position: relative;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-controls:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-controls.prev {
  left: 1rem;
}

.slider-controls.next {
  right: 1rem;
}

.slide-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(to right, #04097E, #fbbf24);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
}

.thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem;
  margin-top: 1.5rem;
}

.thumbnail {
  flex-shrink: 0;
  width: 6rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.thumbnail.active {
  opacity: 1;
  border-color: #fbbf24;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Price Section */
.price-banner {
  background: linear-gradient(to right, #04097E, #030670);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.price-label {
  font-size: 1.225rem;
  font-weight: 500;
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Floor Plans */
.floor-plan-item {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.floor-plan-item:hover {
  transform: translateY(-2px);
}

.floor-plan-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.floor-plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floor-plan-info {
  padding: 1rem;
}

.floor-plan-title {
  font-weight: 700;
  color: #04097E;
  margin-bottom: 0.5rem;
}

.floor-plan-desc {
  color: #64748b;
  font-size: 1rem;
}

/* Interior Gallery */
.interior-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.interior-item {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

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

.interior-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #fbbf24;
}

.data-table th {
  background: #04097E;
  color: white;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.btn-whatsapp {
  background: #10b981;
  color: white;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  background: #04097E;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #fbbf24;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-input {
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: #f3f4f6;
}

.footer-textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: #f3f4f6;
  min-height: 100px;
  resize: vertical;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-list a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: #fbbf24;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Fixed Buttons */
.fixed-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.fixed-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.fixed-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn {
  background: #10b981;
  color: white;
}

.contact-btn {
  background: #1f2937;
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.225rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-info {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .logo {
    height: 150px;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .image-slider {
    height: 300px;
  }
  
  .price-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .interior-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .fixed-buttons {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .logo {
    height: 120px;
  }
  
  .company-name {
    font-size: 0.725rem;
    text-align: center;
  }
  
  .hero {
    padding: 1.5rem 0.75rem;
  }
  
  .hero h1 {
    font-size: 1.95rem;
  }
  
  .card-content {
    padding: 0.75rem;
  }
  
  .image-slider {
    height: 250px;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .interior-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
  
  .settings {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Performance Optimizations */
.image-slider img,
.floor-plan-image img,
.interior-item img {
  will-change: transform;
  backface-visibility: hidden;
}

.btn,
.slider-controls,
.thumbnail {
  will-change: transform;
}

/* Lazy Loading */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Map Container */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Color Utilities */
.text-blue-primary { color: #04097E; }
.bg-blue-primary { background-color: #04097E; }
.text-yellow-600 { color: #fbbf24; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }

.logo-section a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-section a:hover {
  transform: scale(1.02);
}

.logo-section a:hover .logo {
  opacity: 0.9;
}

/* Certificates */
.certificate-item {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  border: 2px solid #e2e8f0;
}

.certificate-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #fbbf24;
}

.certificate-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.certificate-info {
  padding: 1.5rem;
  text-align: center;
}

.certificate-title {
  font-weight: 700;
  color: #04097E;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.certificate-desc {
  color: #64748b;
  font-size: 1rem;
}
