/* ============================================
   Dream Home Property - Base Stylesheet
   Brand Colors: Navy #11428D | Gold #C5A039 | Brick Red #A3312E
   ============================================ */

/* CSS Custom Properties (Variables) */
:root {
  /* Brand Colors */
  --primary: #11428D;       /* Navy Blue - HOME text */
  --secondary: #C5A039;    /* Gold/Mustard - Dream text */
  --accent: #A3312E;       /* Brick Red - Roof icon */
  --background: #FFFFFF;
  --background-light: #F8F9FA;
  --text-dark: #2D3748;
  --text-light: #718096;
  --text-white: #FFFFFF;
  
  /* Semantic Colors */
  --primary-hover: #0d3469;
  --accent-hover: #8a2729;
  --gold-light: #d4b04a;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-card-hover: 0 12px 40px rgba(17, 66, 141, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
  color: var(--text-dark);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.script-text {
  font-family: 'Pacifico', cursive;
  color: var(--secondary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: var(--secondary);
}

.logo-text span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

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

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

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

.nav-cta {
  background: var(--accent);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5490 50%, var(--primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--text-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero h1 .script {
  font-family: 'Pacifico', cursive;
  color: var(--secondary);
  font-size: 4rem;
  display: block;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(163, 49, 46, 0.4);
}

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

.btn-secondary:hover {
  background: var(--text-white);
  color: var(--primary);
}

.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.15;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--background-light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 66, 141, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

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

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--secondary);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-image {
  height: 240px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5490 100%);
  position: relative;
  overflow: hidden;
}

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

.property-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

.property-content {
  padding: 24px;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.property-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.property-specs {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.property-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.property-spec svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

/* ============================================
   MARKETING TEAM CARDS
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5490 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  border: 4px solid var(--secondary);
  overflow: hidden;
}

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

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.team-stat {
  text-align: center;
}

.team-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.team-stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.team-contact {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-contact a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.team-contact a:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5490 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-desc {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.news-card {
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.news-image {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--gold-light) 100%);
  position: relative;
  overflow: hidden;
}

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

.news-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--background);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-date .day {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
}

.news-category {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-content {
  padding: 24px;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.news-link:hover {
  color: var(--accent);
  gap: 10px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5490 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 30px 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  color: var(--text-white);
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--gold-light) 100%);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--primary);
  color: var(--text-white);
}

.btn-dark:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(17, 66, 141, 0.4);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-dark);
  color: var(--text-white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-text {
  color: var(--text-white);
}

.footer-brand .logo-text span {
  color: var(--secondary);
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--text-dark);
}

.footer h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
  gap: 12px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .hero h1 .script { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
  }
  
  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 2.25rem; }
  .hero h1 .script { font-size: 2.5rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  
  .properties-grid,
  .team-grid,
  .news-grid { grid-template-columns: 1fr; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-value { font-size: 2.5rem; }
  
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
}

@media (max-width: 480px) {
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.875rem; }
  .btn { padding: 14px 24px; }
  .cta-section h2 { font-size: 1.75rem; }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.bg-light { background: var(--background-light); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
