/* Import Google Fonts - Outfit for Headers, Inter for Body text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Reset & CSS Variables */
:root {
  /* Color Palette - Warm, high-trust earth tones */
  --color-bg-base: hsl(30, 15%, 98%);     /* Warm Cream */
  --color-bg-card: hsl(0, 0%, 100%);       /* Pure White for readability */
  --color-primary: hsl(215, 30%, 18%);     /* Slate Blue/Charcoal */
  --color-primary-light: hsl(215, 20%, 30%);
  --color-accent: hsl(28, 80%, 45%);       /* Terracotta/Amber */
  --color-accent-hover: hsl(28, 85%, 38%);
  --color-accent-muted: hsl(28, 70%, 95%); /* Warm Amber tint */
  --color-success: hsl(142, 70%, 35%);     /* Soft Emerald green for highlights */
  --color-success-bg: hsl(142, 60%, 95%);
  --color-text-dark: hsl(215, 40%, 11%);   /* Deep Dark Slate for main text */
  --color-text-muted: hsl(215, 12%, 40%);  /* Mid Grey */
  --color-border: hsl(215, 15%, 90%);

  /* Typography & Shadows */
  --font-family-headings: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05), 0 1px 3px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(26, 32, 44, 0.06), 0 8px 16px -6px rgba(26, 32, 44, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(26, 32, 44, 0.08), 0 10px 20px -8px rgba(26, 32, 44, 0.05);

  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bilingual Switching Logic */
body.lang-en .es-text {
  display: none !important;
}
body.lang-es .en-text {
  display: none !important;
}

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

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

body {
  font-family: var(--font-family-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-dark);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

/* Navigation / Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
}

.logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-family-headings);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Nav Links & Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-light);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link:hover {
  color: var(--color-accent);
}

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

/* Language Toggle Button */
.lang-toggle-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-family: var(--font-family-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.lang-toggle-btn:hover {
  background-color: var(--color-accent);
  transform: translateY(-1px);
}

.lang-toggle-btn:active {
  transform: translateY(0);
}

.lang-toggle-btn .globe-icon {
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-primary);
  color: white;
  padding: 5rem 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge.highlight-badge {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-family-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: white;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-bg-base);
  color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Sections Base Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Badges / Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.highlight-card {
  background-color: var(--color-bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-border);
  transition: var(--transition-smooth);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.highlight-card.primary-highlight {
  border-color: rgba(217, 119, 6, 0.2);
}

.highlight-card.primary-highlight::before {
  background-color: var(--color-accent);
}

.highlight-card.success-highlight {
  border-color: rgba(22, 163, 74, 0.2);
}

.highlight-card.success-highlight::before {
  background-color: var(--color-success);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-bg-base);
}

.primary-highlight .card-icon {
  background-color: var(--color-accent-muted);
  color: var(--color-accent);
}

.success-highlight .card-icon {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Floor Plans Section */
.floor-plans-section {
  background-color: #ffffff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 950px;
  margin: 0 auto;
}

.plan-card {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.plan-header {
  background-color: var(--color-primary);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.plan-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-badge {
  background-color: var(--color-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  display: inline-block;
}

.plan-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.plan-price-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 0.2rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-details {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-details li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-details li:last-child {
  border-bottom: none;
}

.plan-details li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 800;
}

/* Portal Notice and Callout Containers */
.portal-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-muted);
}

.resource-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.placeholder-tag {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-top: 1rem;
  text-transform: uppercase;
}

/* Location Section styling */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.address-block {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

.address-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  height: 380px;
  position: relative;
}

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

/* Contact Section & Form */
.contact-section {
  background-color: var(--color-bg-base);
}

.contact-layout {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.contact-item-card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.contact-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-accent-muted);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-item-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item-value:hover {
  color: var(--color-accent);
}

/* Interactive Contact Form */
.contact-form-panel {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary-light);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-status.success {
  display: block;
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Footer style */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 500px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.fair-housing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.fair-housing-icon {
  font-size: 1.2rem;
}

/* Modal Popup styling for Coming Soon Links */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  max-width: 480px;
  width: 90%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.modal-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.modal-close-btn {
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }

  .location-wrapper, .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .map-container {
    height: 320px;
  }
}

@media (max-width: 650px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .lang-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 3.5rem 1rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-container {
    padding: 3.5rem 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .contact-form-panel {
    padding: 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 1.2rem;
  }
}
