/* Home Renovation Riches - Main Stylesheet */
/* 2025 Modern Design with Bootstrap Integration */

/* ===== CSS VARIABLES - 2025 COLOR PALETTE ===== */
:root {
  --primary-color: #1E2A38;      /* Deep Navy Blue - trust, stability */
  --secondary-color: #2ECC71;    /* Emerald Green - freshness, growth */
  --accent-color: #FF6B6B;       /* Vibrant Coral - energy, highlights */
  --background-color: #F7F7F7;   /* Soft Gray - clean, minimal */
  --text-color: #333333;         /* Charcoal Black - readability */
  --white: #FFFFFF;
  --light-gray: #E8E8E8;
  --dark-gray: #666666;
  --shadow: rgba(30, 42, 56, 0.1);
  --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--white) !important;
  box-shadow: 0 2px 20px var(--shadow);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  background-color: rgba(46, 204, 113, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 12px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #2c3e50);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2c3e50, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 42, 56, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #27ae60);
  color: var(--white);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #27ae60, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), #ff5252);
  color: var(--white);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #ff5252, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #2c3e50);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(30, 42, 56, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--secondary-color), #27ae60);
  color: var(--white);
  border: none;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  margin: 1rem 0;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  font-family: Georgia, serif;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* ===== FORMS ===== */
.form-control {
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-gray { background-color: var(--background-color) !important; }

.shadow-custom {
  box-shadow: 0 10px 40px var(--shadow) !important;
}

.rounded-custom {
  border-radius: 20px !important;
}

.mb-5 { margin-bottom: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.py-5 { padding: 3rem 0 !important; }

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Page banner for pages without a hero section */
.page-banner {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow);
  margin: 20px 0 40px;
}

@media (max-width: 576px) {
  .page-banner {
    height: 200px;
    border-radius: 12px;
  }
}