/* =====================================================
   Bloom Realty - Low Commission HDB Landing Page
   Optimized CSS with Dark/Light Theme Support
   ===================================================== */

/* ========== GLOBAL VARIABLES & RESET ========== */
:root {
  /* Core Colors - Sophisticated Combo */
  --primary-color: #3047cb;     /* Sophisticated blue */
  --secondary-color: #25D366;   /* WhatsApp green */
  --accent-color: #f39c12;      /* Gamboge for price badge */
  
  /* Light Theme Defaults */
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;align-items: center
  --text-primary: #212529;
  --text-secondary: #656565;
  --border-color: #dee2e6;
  --section-bg: #2d2d2d;        /* Contact section */
  --footer-bg: #262324;
  
  /* Hero Colors */
  --hero-bg: #3047cb;           /* Updated to match primary */
  --hero-text: #ffffff;
}

/* Dark Theme - Auto-detected from system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #90caf9;     /* Even softer blue - gentle on eyes */
        --bg-primary: #121212;        /* True dark, not gray */
        --bg-secondary: #1e1e1e;      /* Softer dark */
        --text-primary: #e0e0e0;      /* Soft white, not bright */
        --text-secondary: #9e9e9e;    /* Muted gray */
        --border-color: #333333;      /* Subtle borders */
        --section-bg: #1a1a1a;        /* Contact section */
        --footer-bg: #121212;         /* Same as background */
        --hero-bg: #3047cb;           /* Keep hero consistent */
    }
}

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

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container-fluid { 
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 1rem;
}

/* Accessibility - High contrast focus */
.btn:focus, .form-control:focus, a:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* ========== HEADER & NAVIGATION ========== */
.navbar {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(48, 71, 203, 0.1);
  padding: 0.8rem 0;
  min-height: 70px;
}

.navbar .btn-success {
  background: var(--secondary-color);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.navbar .btn-success:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2539a1 100%);
  color: var(--hero-text);
  padding: 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.hero-section .col-lg-6 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.hero-section .lead {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

/* Price badge */
.price-badge {
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: pulse 3s infinite;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Hero image column */
.hero-section .hero-image-column {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Image */
.hero-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
  border-radius: 0;
  max-width: 100%;
}

/* Consistent height across devices */
.hero-section .row {
  min-height: 50vh;
}

/* Button hover effects */
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.content-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-align: center;
}

/* ========== BENEFIT CARDS ========== */
.benefit-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ========== SAVINGS CALCULATOR ========== */
.savings-calculator {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 2px solid var(--primary-color);
}

.savings-amount {
  font-size: 3rem;
  font-weight: bold;
  color: #28a745;
  text-align: center;
  margin: 1rem 0;
}

/* ========== SERVICE ITEMS ========== */
.service-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.service-item h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: inline;
}

.service-item p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* ========== CONTACT FORM ========== */
.contact-section {
  background: var(--section-bg);
  padding: 5rem 0 4rem;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

.form-label {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Form elements */
.form-control,
.form-select {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  height: 50px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(48, 71, 203, 0.1);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #2a3fb3;
  border-color: #2a3fb3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.3rem;
}

/* ========== FORM CHECK ELEMENTS ========== */
.form-check {
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
}

.form-check-input {
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    width: 1.2em;
    height: 1.2em;
    margin-top: 0; /* Remove top margin */
    margin-left: -2.5rem;
    flex-shrink: 0;
    vertical-align: middle; /* Additional vertical alignment */
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(48, 71, 203, 0.1);
}

.form-check-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    padding-left: 0.5rem;
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center; /* Ensure label text is centered too */
}

/* Specific styling for PDPA consent */
.pdpa-consent .form-check-label {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Radio button specific styling */
.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

/* Ensure proper alignment in contact form */
.contact-form .form-check {
    align-items: flex-start;
}

.contact-form .form-check-input {
    margin-top: 0.15em;
}
/* ========== FOOTER ========== */
.extFooter {
  background: var(--footer-bg);
  color: var(--text-secondary);
  padding: 1rem 0 0.8rem;
  margin-top: auto;
  font-size: 0.75rem;
}

.license-info, .copyright, .footer-links a {
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.footer-links a {
  color: #9e9e9e;
  text-decoration: none; /* No underline normally */
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f8f9fa; /* Light gray on hover */
  text-decoration: none; /* Explicitly no underline on hover */
}

/* Mobile Footer */
.extFooter.d-md-none {
  padding: 1.5rem 0;
  text-align: center;
}

.extFooter.d-md-none .license-info {
  font-size: 0.9rem;
  line-height: 1.4;
}

.extFooter.d-md-none .footer-links a {
  display: inline-block;
  margin: 0 0.5rem;
}

/* Remove the simple footer we had earlier */
footer:not(.extFooter) {
  display: none;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .hero-section .row {
    min-height: 350px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section .lead {
    font-size: 1.2rem;
  }
  
  .price-badge {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .content-section h2 {
    font-size: 2rem;
  }
  
  .benefit-card {
    padding: 2rem;
  }
  
  .savings-calculator {
    padding: 2rem;
  }
  
  .savings-amount {
    font-size: 2rem;
  }
  
  .service-item {
    padding: 1.25rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar {
    padding: 0.6rem 0;
    min-height: 65px;
  }
  
  .navbar .btn-success {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}
