/* Home Renovation Riches - Main Stylesheet */
/* 2025 Modern Design with Bootstrap Integration */

/* ===== CSS VARIABLES - 2025 COLOR PALETTE ===== */
:root {
  --primary-color: #1B4332;
  --secondary-color: #FFB703;
  --accent-color: #E63946;
  --background-color: #FFF8F0;
  --text-color: #1F2937;
  --white: #FFFFFF;
  --light-gray: #EEE7DD;
  --dark-gray: #4B5563;
  --shadow: rgba(17, 24, 39, 0.10);
  --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.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.12);
  padding: 0.6rem 0;
}

.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(255, 183, 3, 0.16);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.dropdown-menu {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  padding: 0.75rem;
}

.dropdown-item {
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 183, 3, 0.16);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: rgba(27, 67, 50, 0.12);
  color: var(--primary-color);
}

/* ===== 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), #0F2F22);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0F2F22, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.28);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #FB8500);
  color: #1F2937;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #FB8500, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(251, 133, 0, 0.25);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), #C1121F);
  color: var(--white);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #C1121F, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.24);
}

/* ===== HERO SECTION ===== */
.hero {
  background: radial-gradient(1200px circle at 10% 20%, rgba(255, 183, 3, 0.20), transparent 55%),
              radial-gradient(1000px circle at 90% 10%, rgba(230, 57, 70, 0.16), transparent 50%),
              linear-gradient(135deg, var(--primary-color), #0F2F22);
  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 220 220"><defs><pattern id="grid" width="44" height="44" patternUnits="userSpaceOnUse"><path d="M 44 0 L 0 0 0 44" fill="none" stroke="%23ffffff" stroke-opacity="0.08" stroke-width="1"/></pattern></defs><rect width="220" height="220" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image {
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  margin: 0 auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.hero-surface {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 2.25rem 2.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(10px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.hero-meta .bi {
  color: var(--secondary-color);
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.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(17, 24, 39, 0.14);
}

.card-header {
  background: linear-gradient(135deg, var(--secondary-color), #FB8500);
  color: #1F2937;
  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(255, 183, 3, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: radial-gradient(900px circle at 10% 20%, rgba(255, 183, 3, 0.12), transparent 55%),
              radial-gradient(900px circle at 90% 20%, rgba(230, 57, 70, 0.14), transparent 55%),
              linear-gradient(135deg, #0F2F22, 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;
}

.scroll-to-top {
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.18);
}

/* 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;
  }
}
