/* 
  Palm Alliance LLC - Complete Design Overhaul
  Modern, elegant, mobile-first design
*/

:root {
  /* Refined Color Palette */
  --primary: #0A4B8F;
  --primary-light: #1565C0;
  --accent: #00ACC1;
  --accent-light: #26C6DA;
  
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #EEEEEE;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-500: #9E9E9E;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  --white: #FFFFFF;
  
  /* Refined Spacing System - Mobile First */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 5rem;     /* 80px */
  
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  color: var(--neutral-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 5vw + 1rem, 3.5rem); }      /* 30px → 56px */
h2 { font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem); }      /* 24px → 40px */
h3 { font-size: clamp(1.25rem, 3vw + 0.5rem, 1.875rem); }   /* 20px → 30px */

p { margin-bottom: 1rem; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--neutral-900);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 48px;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  transition: transform 0.3s;
}

.mobile-toggle:active {
  transform: scale(0.95);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  border-top: 1px solid var(--neutral-200);
}

.nav-menu.active {
  display: flex;
}

.nav-menu a {
  text-decoration: none;
  color: var(--neutral-700);
  font-weight: 500;
  font-size: 1rem;
  padding: var(--space-sm) 0;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    gap: var(--space-xl);
    box-shadow: none;
    border-top: none;
    background: transparent;
  }
  
  .nav-menu a {
    padding: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Transparent navbar button */
.nav-menu .btn-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.nav-menu .btn-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--neutral-50);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
  }
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-mobile { display: none; }
.hero-video-desktop { display: block; }

@media (max-width: 767px) {
  .hero-video-desktop { display: none; }
  .hero-video-mobile { display: block; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 75, 143, 0.85) 0%, rgba(0, 172, 193, 0.75) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-3xl) 0;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 800px;
    text-align: left;
    margin: 0;
  }
}

.hero-title {
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  color: var(--white);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
  }
}

.hero-cta .btn {
  min-width: 200px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-stats {
    margin: 0;
  }
}

.stat {
  text-align: center;
}

@media (min-width: 768px) {
  .stat {
    text-align: left;
  }
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--white);
  margin-top: var(--space-xs);
  opacity: 0.9;
  display: block;
}

/* Section Base */
section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-4xl) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-3xl);
  }
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--neutral-600);
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  color: var(--neutral-900);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  margin-bottom: var(--space-md);
}

/* Benefits Section */
.benefits {
  background: var(--neutral-50);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.benefit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.benefit-card h3 {
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  color: var(--neutral-600);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Properties Section */
.properties {
  background: var(--white);
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.property-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.property-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--neutral-200);
}

@media (min-width: 768px) {
  .property-image {
    height: 220px;
  }
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--accent);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.property-content {
  padding: var(--space-lg);
}

.property-content h3 {
  margin-bottom: var(--space-xs);
}

.property-location {
  color: var(--neutral-500);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.property-features {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--neutral-200);
}

.property-features span {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.section-cta {
  text-align: center;
}

/* Vision Section */
.vision-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vision-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.vision-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 75, 143, 0.80) 0%, rgba(33, 33, 33, 0.85) 100%);
  z-index: 1;
}

.vision-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
}

.vision-content h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.vision-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--white);
  line-height: 1.7;
  opacity: 0.95;
}

/* Owners Section */
.owners {
  background: var(--neutral-50);
}

.owners-container {
  max-width: 900px;
}

.owners-content {
  opacity: 0;
  transform: translateY(20px);
}

.owners-content h2 {
  margin-bottom: var(--space-lg);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.owners-benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.owners-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  font-size: 1rem;
  color: var(--neutral-700);
}

.owners-benefits svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.owners-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .owners-cta {
    flex-direction: row;
    align-items: center;
  }
}

.owners .link-arrow {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap 0.2s;
}

.owners .link-arrow:hover {
  gap: var(--space-sm);
}

/* Trust Section */
.trust {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.testimonial-rating {
  color: #FFA726;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author strong {
  color: var(--neutral-900);
  font-weight: 600;
}

.testimonial-author span {
  color: var(--neutral-500);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-buttons .btn {
  min-width: 200px;
}

/* Footer */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
  }
}

.footer-logo {
  height: 150px;
  width: auto;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .footer-logo {
    height: 120px;
  }
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-col h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--neutral-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--neutral-800);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

/* Animations */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
