/* Base Styles */
:root {
  --primary-color: #f9dd37;
  --primary-dark: #eacc20;
  --primary-light: #fef9de;
  --dark-gray: #4b5563;
  --light-gray: #f3f4f6;
  --text-color: #111827;
  --success-color: #10b981;
  --success-light: #ecfdf5;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: inherit;
}

.primary-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.primary-button:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.secondary-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--primary-color);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  text-align: center;
}

.secondary-button:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #f0f0f0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 3rem;
  width: auto;
}

.flex-spacer {
  flex: 1;
}

.mobile-menu-button {
  display: block;
}

.mobile-menu-button button {
  background: none;
  border: none;
  color: var(--dark-gray);
  font-size: 1.5rem;
}

.cta-button {
  display: none;
}

.mobile-menu {
  padding-bottom: 1rem;
}

.mobile-cta {
  padding: 1rem;
}

.mobile-cta-button {
  width: 100%;
  padding: 0.75rem 1rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-image {
  max-width: 600px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.section-subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--dark-gray);
  font-size: 1.125rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 0.75rem;
}

.service-content p {
  color: var(--dark-gray);
  margin-bottom: 1.25rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.service-link:hover {
  color: var(--primary-dark);
}

.service-link::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform 0.3s;
}

.service-link:hover::after {
  transform: translateX(3px);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--dark-gray);
}

/* Quote Section */
.quote-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #fef9de, var(--white));
}

.quote-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  overflow: hidden;
}

.quote-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-image {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote-image img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.quote-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(249, 221, 55, 0.9);
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.benefits-container {
  background-color: var(--primary-light);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.benefits-title {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.benefits-title i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
}

.benefit-item i {
  color: var(--success-color);
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.benefit-item span {
  font-weight: 600;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.25rem;
}

.benefit-item p {
  color: var(--dark-gray);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.quote-form-container {
  flex: 1;
}

.quote-form-container h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--dark-gray);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-gray);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem;
  padding-left: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
}

.quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.quote-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.submit-button {
  margin-top: 1rem;
  width: 100%;
}

.quote-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #c6f6d5;
  border-radius: 0.75rem;
  background-color: var(--success-light);
  box-shadow: var(--shadow-sm);
}

.result-content {
  display: flex;
  align-items: flex-start;
}

.result-icon {
  background-color: var(--white);
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  margin-right: 1rem;
}

.result-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.result-text h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.result-text p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.result-note {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slides {
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin: 1rem;
}

.testimonial-stars {
  color: var(--warning-color);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-text {
  color: var(--text-color);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info span {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  background-color: var(--white);
  border: 1px solid #d1d5db;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark-gray);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: background-color 0.3s;
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background-color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--light-gray);
}

.faq-question i {
  font-size: 0.875rem;
  color: var(--dark-gray);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 1000px; /* Arbitrary large value */
}

/* Fallback for direct styling */
.faq-answer[style*="max-height"] {
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f9dd37 0%, #eacc20 100%);
  color: #333;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
}

.cta-button:hover {
  background-color: var(--light-gray);
  color: var(--primary-dark);
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: var(--white);
  border-top: 1px solid #f0f0f0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  height: 3rem;
}

.footer-copyright p {
  color: var(--dark-gray);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Media Queries */
@media (min-width: 640px) {
  .hero-content {
    text-align: left;
    align-items: flex-start;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
  
  .cta-button {
    display: block;
  }
  
  .hero-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-image {
    flex: 1;
  }
  
  .quote-container {
    flex-direction: row;
    padding: 3rem;
  }
  
  .quote-info {
    flex: 1;
  }
  
  .quote-form-container {
    flex: 1;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}

/* Hero Slider Styles - Simplified for maximum compatibility */
.hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: var(--light-gray);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-slide.active {
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.hero-slide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slide-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-slide-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-slider-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.hero-slider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-slider-dot.active {
  background-color: var(--primary-color);
}

.hero-slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 5;
}

.hero-slider-arrow {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  line-height: 40px;
}

.hero-slider-arrow:hover {
  background-color: var(--primary-color);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

@media (min-width: 768px) {
  .hero-slider {
    height: 600px;
  }
  
  .hero-slide-content {
    max-width: 800px;
  }
  
  .hero-slide-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-slide-content p {
    font-size: 1.25rem;
  }
}