@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Oswald:wght@500;700&display=swap');

:root {
  --primary-color: #2b3990; /* S&M Blue */
  --secondary-color: #d12027; /* S&M Red */
  --bg-dark: #f8f9fa; /* Now light gray for sections */
  --bg-darker: #ffffff; /* Now pure white main background */
  --text-light: #212529; /* Main dark text */
  --text-muted: #6c757d; /* Muted gray text */
  --border-color: #e9ecef;
  --transition-speed: 0.3s;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--secondary-color);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.navbar-light .navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 10px;
  transition: color var(--transition-speed);
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}
.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--primary-color) !important;
}
.navbar-brand span {
  color: var(--secondary-color);
}
.navbar-toggler {
  border-color: var(--primary-color) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(43, 57, 144, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
    height: 100vh;
  }
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.35);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  color: #ffffff; /* Keep hero white */
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.hero-title span {
  color: var(--secondary-color);
}
.hero-subtitle {
  color: #f8f9fa !important;
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
}

/* Sections */
.section-padding {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--primary-color);
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
}

/* Services */
.service-card {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(43, 57, 144, 0.1);
  border-color: var(--primary-color);
}
.service-img-wrapper {
  overflow: hidden;
  height: 250px;
  position: relative;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-img {
  transform: scale(1.1);
}
.service-body {
  padding: 2.5rem 2rem;
}
.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--bg-darker);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 15px;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
@media (max-width: 768px) {
  .cta-banner {
    padding: 80px 0;
  }
}
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(43,57,144,0.9) 0%, rgba(209,32,39,0.8) 100%);
}
.cta-content {
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 35px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color var(--transition-speed), transform 0.2s;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(43,57,144,0.2);
}
.btn-primary-custom:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(209,32,39,0.3);
}

.btn-primary-custom:disabled,
.btn-primary-custom.disabled {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 33px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  display: inline-block;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Footer (Keep Dark for contrast) */
.footer {
  background-color: #0b1021; /* Very dark blue matching motif */
  padding: 80px 0 30px;
  border-top: 5px solid var(--secondary-color);
}
.footer-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.footer-link {
  color: #9aa8c6;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 10px;
}
.footer-link:hover {
  color: var(--secondary-color);
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
}
.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  color: #fff;
}
.copyright {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #5d6a8b;
}

/* Forms */
.form-control {
  background-color: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 15px;
  border-radius: 4px;
}
.form-control:focus {
  background-color: #fff;
  border-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 0 0 0.25rem rgba(43,57,144,0.25);
}
.form-label {
  color: var(--text-light);
  font-weight: 600;
}
.carousel-indicators [data-bs-target] {
    background-color: #2b3990;
}

/* WhatsApp Floating Action Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  color: #FFF;
  background-color: #1ebe57;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    font-size: 28px;
  }
}
