/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Global Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: #f4f4f4;
}
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Header */
.site-header {
  background-color: #003f5c;
  color: white;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
}
.site-header .logo img {
  height: 50px;
}
.site-header .navbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-header .navbar a {
  color: white;
  font-weight: 500;
}
.site-header .btn-whatsapp {
  background: #25d366;
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  text-align: center;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  max-width: 700px;
  padding: 20px;
}
.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.btn-primary {
  background-color: #fbb13c;
  color: #003f5c;
  padding: 12px 25px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
}

/* Features Section */
.features-section {
  padding: 60px 20px;
  text-align: center;
}
.features-section h2 {
  margin-bottom: 30px;
  color: #003f5c;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feature-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-weight: bold;
  color: #003f5c;
}

/* Services */
.services-preview {
  padding: 60px 20px;
  text-align: center;
}
.services-preview h2 {
  color: #003f5c;
  margin-bottom: 30px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}
.service-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding-bottom: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  background-color: #eee;
}
.service-card h3 {
  margin: 15px 0 10px;
  color: #003f5c;
}
.service-card p {
  padding: 0 15px;
}
.service-card:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Testimonials Carousel */
.testimonials {
  padding: 60px 20px;
  background: #edf6f9;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #003f5c;
}
.testimonial-carousel {
  max-width: 800px;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.testimonial-carousel blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
  padding: 20px;
  animation: fade 1s ease-in-out forwards;
}
.testimonial-carousel cite {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  text-align: right;
}
@keyframes fade {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 30px auto;
  background: white;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button {
  background: #003f5c;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #00263b;
}

/* Call to Action */
.cta-section {
  background: #003f5c;
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.cta-section h2 {
  margin-bottom: 15px;
}
.cta-section p {
  margin-bottom: 20px;
}
.btn-secondary {
  background: #fbb13c;
  color: #003f5c;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  background: #222;
  color: #bbb;
  padding: 40px 20px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.footer-grid h4 {
  margin-bottom: 10px;
  color: #fff;
}
.footer-grid ul li {
  margin-bottom: 8px;
}
.footer-contact p {
  margin: 5px 0;
}
.site-footer a {
  color: #fbb13c;
}
.site-footer a:hover {
  text-decoration: underline;
}
.copyright {
  text-align: center;
  margin-top: 20px;
  color: #777;
}

/* WhatsApp Floating Button */
#whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}
#whatsapp:hover {
  background-color: #128C7E;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .site-header .navbar ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .contact-form {
    width: 90%;
    padding: 20px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 30px auto;
  background: white;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}
.contact-form button {
  background: #003f5c;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #00263b;
}
