/* ==============================================
   Main CSS - First-Time Buyer Legal Orientation
   ============================================== */

/* Root Variables */
:root {
  /* Primary Colors - Exactly 5 as required */
  --primary-color-1: #2C3E50; /* Deep Navy Blue */
  --primary-color-2: #E74C3C; /* Professional Red */
  --primary-color-3: #27AE60; /* Success Green */
  --primary-color-4: #F39C12; /* Warm Gold */
  --primary-color-5: #8E44AD; /* Royal Purple */
  
  /* Light/Dark Shades */
  --primary-color-1-light: #34495E;
  --primary-color-1-dark: #1A252F;
  
  --primary-color-2-light: #EC7063;
  --primary-color-2-dark: #C0392B;
  
  --primary-color-3-light: #52BE80;
  --primary-color-3-dark: #1E8449;
  
  --primary-color-4-light: #F5B041;
  --primary-color-4-dark: #D68910;
  
  --primary-color-5-light: #A569BD;
  --primary-color-5-dark: #6C3483;
  
  /* Typography - Conservative sizes */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Georgia', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Conservative root font size */
  scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Typography - Conservative sizes */
h1 {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  color: var(--primary-color-1);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem; /* 28px */
  font-weight: 600;
  color: var(--primary-color-1);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  color: var(--primary-color-1-dark);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  color: var(--primary-color-1-dark);
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem; /* 16px */
  color: #555;
  margin-bottom: 1rem;
}

/* Header & Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color-1) 0%, var(--primary-color-1-dark) 100%);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.25rem; /* Conservative logo size */
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
}

#sitename {
  color: #fff;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.8)), url('../images/hero-bg.webp') center/cover;
  margin-top: 60px;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative Shapes */
.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.shape-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color-2);
  top: 10%;
  left: -10%;
}

.shape-blob-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-color-3);
  bottom: 10%;
  right: -5%;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Services Section */
.services-section {
  padding: var(--spacing-xl) 0;
  background: #fff;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color-2), var(--primary-color-4));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color-2);
  margin-bottom: 1rem;
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color-4);
  margin: 1rem 0;
}

/* Testimonials Slider */
.testimonials-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.swiper {
  padding: 2rem 0 3rem;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: var(--primary-color-2);
  opacity: 0.1;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

/* Gallery Section */
.gallery-section {
  padding: var(--spacing-xl) 0;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
  padding: var(--spacing-xl) 0;
  background: #f8f9fa;
}

.accordion-button {
  background: #fff;
  color: var(--primary-color-1);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border: none;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color-1), var(--primary-color-1-dark));
  color: #fff;
}

.accordion-button::after {
  background-image: none;
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
}

.accordion-button:not(.collapsed)::after {
  content: '\f106';
  color: #fff;
}

/* Team Section */
.team-section {
  padding: var(--spacing-xl) 0;
  background: #fff;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-color-1);
}

/* Contact Form */
.contact-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color-2);
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color-2), var(--primary-color-2-dark));
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-color-2-light), var(--primary-color-2));
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color-1) 0%, var(--primary-color-1-dark) 100%);
  color: #fff;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item img {
  height: 20px;
  width: auto;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color-2), var(--primary-color-4));
  border-radius: 2px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .swiper-wrapper {
    transition-timing-function: linear !important;
  }
} 