/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Colors */
:root {
  --blue: #2563eb;
  --orange: #f59e0b;
  --dark-blue: #1e40af;
  --light-orange: #fbbf24;
  --blue-light: #dbeafe;
  --orange-light: #fef3c7;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

.text-blue {
  color: var(--blue);
}
.text-orange {
  color: var(--orange);
}
.bg-blue {
  background-color: var(--blue);
  color: white;
}
.bg-orange {
  background-color: var(--orange);
  color: white;
}
.bg-blue-light {
  background-color: var(--blue-light);
}
.bg-orange-light {
  background-color: var(--orange-light);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-logo {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Added height specification for consistent spacing */
  height: 90px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  /* Added height to match header height */
  height: 100%;
}

.logo img {
  height: 70px;
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

/* Updated nav link colors to match logo colors */
.nav-link {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--orange);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: none;
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--blue);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 100%);
  padding: 160px 0 80px; /* Increased top padding for larger header */
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-light);
  color: var(--blue);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* Service Hero Section */
.service-hero {
  background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 100%);
  /* Increased top padding to account for fixed header height */
  padding: 120px 0 80px;
  text-align: center;
}

.service-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.service-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* Service Types Section */
.service-types {
  padding: 80px 0;
  background: white;
}

.service-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  /* Added max-width and centering for better layout */
  max-width: 1200px;
  margin: 0 auto;
}

.service-type-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid;
  transition: all 0.3s ease;
  /* Added min-height for consistent card sizes */
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-type-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-type-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.service-type-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  /* Added max-width and centering for better layout */
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid;
  transition: all 0.3s ease;
  /* Added min-height and flex layout for consistent card sizes */
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--gray-50);
}

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

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Book Marquee */
.book-marquee-section {
  padding: 80px 0;
  background: var(--gray-50);
}

/* Fixed marquee container to allow proper hover scaling */
.book-marquee-container {
  overflow: visible; /* Changed from hidden to visible */
  position: relative;
  margin-top: 2rem;
  padding: 2rem 0; /* Added padding to accommodate scaled images */
}

.book-marquee {
  width: 100%;
  position: relative;
  overflow: hidden; /* Moved overflow hidden here */
}

.book-track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: calc(200% + 2rem);
}

.book-track:hover {
  animation-play-state: paused;
}

.book-item {
  flex-shrink: 0;
  width: 150px;
  cursor: grab;
  position: relative; /* Added for proper z-index stacking */
}

.book-item:active {
  cursor: grabbing;
}

/* Fixed book image hover scaling with proper overflow handling */
.book-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
  position: relative;
}

.book-image:hover {
  transform: scale(1.75);
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.stars {
  margin-bottom: 1rem;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
}

.testimonial-card p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.testimonial-author strong {
  color: var(--gray-900);
  display: block;
}

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

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.badge-iso {
  background: var(--blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.about-text p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.feature p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.about-highlight {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: white;
  padding: 2rem;
  border-radius: 12px;
}

.about-highlight h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.about-highlight ul {
  list-style: none;
}

.about-highlight li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.about-highlight li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.contact-item p {
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.contact-item small {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.map-link {
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.map-link:hover {
  color: var(--dark-blue);
}

.map-container {
  margin-top: 2rem;
}

.map-container h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.business-hours {
  margin-top: 2rem;
}

.business-hours h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.hours-list {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item span:first-child {
  font-weight: 500;
  color: var(--gray-700);
}

.open {
  color: #10b981;
  font-weight: 500;
}

.closed {
  color: #ef4444;
  font-weight: 500;
}

/* Quote Form */
.quote-form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.quote-form-header {
  background: linear-gradient(135deg, var(--blue-light), var(--orange-light));
  padding: 2rem;
  text-align: center;
}

.quote-form-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.quote-form-header p {
  color: var(--gray-600);
  font-size: 1rem;
}

.quote-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.captcha-container {
  margin-bottom: 1.5rem;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.captcha-question span {
  font-weight: 500;
  color: var(--gray-700);
}

.captcha-question input {
  width: 100px;
}

/* Quote Section */
.quote-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.quote-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

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

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

.cta-buttons .btn-primary {
  background: white;
  color: var(--blue);
}

.cta-buttons .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.cta-buttons .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
  background: white;
  color: var(--blue);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.faq-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.faq-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: white;
}

/* Increased footer logo size */
.footer-logo {
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  height: 70px;
  width: auto;
}

.footer-section p {
  color: var(--gray-400);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-small {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.contact-details p {
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cards-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .book-track {
    gap: 1rem;
  }

  .book-item {
    width: 120px;
  }

  .book-image {
    height: 160px;
  }

  /* Adjusted logo size for mobile */
  .logo img,
  .footer-logo {
    height: 60px;
  }

  .service-hero {
    padding: 140px 0 60px;
  }

  .service-title {
    font-size: 2rem;
  }

  .service-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .header {
    height: 80px;
  }

  .main-content {
    margin-top: 80px;
  }

  .service-hero {
    padding: 100px 0 60px;
  }

  .service-types-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 140px 0 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .card,
  .service-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  /* Further adjusted logo size for small mobile */
  .logo img,
  .footer-logo {
    height: 50px;
  }

  .service-hero {
    padding: 120px 0 50px;
  }

  .service-title {
    font-size: 1.75rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .feature-card,
  .service-type-card,
  .faq-card {
    padding: 1.5rem;
  }
}

/* Added main content wrapper to prevent header overlap */
.main-content {
  margin-top: 90px;
}
