/* ============================================
   Top Line Steam Cleaning - Complete Redesign
   Modern, Clean, Professional
   ============================================ */

:root {
  --primary: #1a1a1a;
  --primary-light: #2d2d2d;
  --accent: #ff6b00;
  --accent-light: #ff8533;
  --success: #28a745;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #fafafa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text) !important;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/images/clean_roof_zoomedin.jpeg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: -1px;
}

.hero-content .lead {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: #218838;
  color: var(--white);
  transform: translateY(-2px);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-cta a {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-cta .phone-btn {
  background: var(--accent);
}

.floating-cta .whatsapp-btn {
  background: var(--success);
}

.floating-cta a:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Section Styles */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-title p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-modern {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-modern .icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.card-modern h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-modern p {
  color: var(--text-light);
  margin: 0;
}

/* Service Cards */
.service-card-modern {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.service-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card-modern img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-modern:hover img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-modern h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card-modern ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-modern ul li {
  padding: 0.75rem 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.service-card-modern ul li:last-child {
  border-bottom: none;
}

.service-card-modern ul li i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Stats */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials - Enhanced for 50+ reviews */
.testimonials-section {
  background: var(--bg-light);
  padding: 6rem 0;
}

.testimonial-card-modern {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card-modern .quote {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: 1rem;
  line-height: 1;
}

.testimonial-card-modern p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.testimonial-author h5 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.rating {
  color: #ffc107;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/images/clean_roof_zoomedin.jpeg') center/cover;
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Form Styles */
.form-control {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: var(--white);
  margin: 0;
  font-size: 1.1rem;
}

/* Filter Buttons */
.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .lead {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
    display: flex !important; /* Ensure buttons are visible on mobile */
  }

  .floating-cta a {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 3rem;
  }
  
  .testimonial-card-modern {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .testimonial-card-modern .quote {
    font-size: 2rem;
  }
  
  .testimonial-card-modern p {
    font-size: 0.95rem;
  }
  
  #testimonialsContainer .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-accent {
  color: var(--accent) !important;
}

.bg-light-custom {
  background: var(--bg-light);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}
