/* ===================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   =================================== */
:root {
  --primary-color: #8b3a3a;
  --primary-light: #a85858;
  --primary-dark: #6b2929;
  --secondary-color: #2c2418;
  --accent-color: #d4a574;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #495057;
  --text-dark: #212529;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(44, 36, 24, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Restructured navbar brand for better logo and text layout */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  height: 65px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white) !important;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Added styles for navbar logo image */
.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  margin-right: 1rem;
}

/* Old placeholder kept for fallback if logo not available */
.logo-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 58, 58, 0.3);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.brand-name {
  font-size: 1.3rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 36, 24, 0.85), rgba(139, 58, 58, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.95;
}

.hero-buttons .btn {
  margin: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 58, 58, 0.4);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
  background: var(--white);
  border-bottom: 1px solid var(--medium-gray);
}

.stat-item {
  padding: 1.5rem;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}

.stat-text {
  font-size: 1rem;
  color: var(--dark-gray);
  margin: 0;
}

/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-gray);
  font-weight: 300;
}

/* ===================================
   SERVICIOS SECTION
   =================================== */
.services-section {
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

/* New compact service card styles */
.service-card-compact {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.service-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 58, 58, 0.15);
  border-color: var(--primary-light);
}

.service-icon-compact {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: var(--transition);
}

.service-card-compact:hover .service-icon-compact {
  transform: scale(1.1) rotate(5deg);
}

.service-icon-compact i {
  font-size: 1.5rem;
  color: var(--white);
}

.service-card-compact h5 {
  font-size: 0.95rem;
  color: var(--secondary-color);
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Old service card styles kept for reference but not used */
.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(139, 58, 58, 0.2);
  border-color: var(--primary-light);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h4 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
  background: var(--white);
  padding: 5rem 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: 15px;
}

.experience-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(139, 58, 58, 0.4);
}

.badge-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 1rem;
  font-weight: 500;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.quote-box {
  background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
  margin: 2rem 0;
  position: relative;
}

.quote-icon {
  color: var(--primary-color);
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.quote-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary-color);
  margin: 0;
  padding-left: 2rem;
}

.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.3rem;
}

/* ===================================
   PROCESS SECTION
   =================================== */
.process-section {
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.process-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(139, 58, 58, 0.15);
}

.process-number {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 5rem;
  font-weight: 700;
  color: var(--medium-gray);
  opacity: 0.3;
  z-index: 0;
}

.process-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.process-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

.process-card h4 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.process-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===================================
   EQUIPMENT SECTION
   =================================== */
.equipment-section {
  background: var(--white);
}

.equipment-card {
  background: linear-gradient(135deg, var(--light-gray), var(--white));
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
  height: 100%;
}

.equipment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(139, 58, 58, 0.1);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
}

.equipment-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.equipment-card:hover .equipment-icon {
  color: var(--white);
  transform: scale(1.1);
}

.equipment-card h5 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.equipment-card:hover h5 {
  color: var(--white);
}

.equipment-card p {
  color: var(--dark-gray);
  margin: 0;
  transition: var(--transition);
}

.equipment-card:hover p {
  color: var(--white);
  opacity: 0.9;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
  /* Added relative positioning to contain carousel controls */
  position: relative;
}

.carousel {
  max-width: 1000px;
  margin: 0 auto;
  /* Added relative positioning to scope carousel controls to this section */
  position: relative;
}

.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(44, 36, 24, 0.85);
  border-radius: 10px;
  padding: 1rem 2rem;
  bottom: 2rem;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  margin: 0;
}

/* Fixed z-index for carousel controls to keep them within their section */
.carousel-control-prev,
.carousel-control-next {
  z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(139, 58, 58, 0.8);
  border-radius: 50%;
  padding: 2rem;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  background: var(--white);
}

.contact-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--medium-gray);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card.whatsapp:hover {
  border-color: #25d366;
}

.contact-card.facebook:hover {
  border-color: #1877f2;
}

.contact-card.instagram:hover {
  border-color: #e4405f;
}

.contact-card.email:hover {
  border-color: var(--primary-color);
}

.contact-card.phone:hover {
  border-color: var(--accent-color);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.whatsapp .contact-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.facebook .contact-icon {
  background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.instagram .contact-icon {
  background: linear-gradient(135deg, #e4405f, #c13584);
}

.email .contact-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.phone .contact-icon {
  background: linear-gradient(135deg, var(--accent-color), #b8935f);
}

.contact-icon i {
  font-size: 2rem;
  color: var(--white);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-card h4 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link i {
  transition: var(--transition);
}

.contact-card:hover .contact-link i {
  transform: translateX(5px);
}

.location-info {
  background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
  padding: 3rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.location-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.location-info h4 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.location-info p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.coverage-text {
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1rem;
}

.coverage-text i {
  margin-right: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: linear-gradient(135deg, var(--secondary-color), #1a1410);
  color: var(--white);
}

.footer-logo-section {
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Added styles for footer logo image */
.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.instagram {
  background: linear-gradient(135deg, #e4405f, #c13584);
}

.social-icon.whatsapp {
  background: #25d366;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--primary-light);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-developer {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.developer-link {
  color: var(--primary-light);
  font-weight: 600;
  transition: var(--transition);
}

.developer-link:hover {
  color: var(--accent-color);
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(139, 58, 58, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(139, 58, 58, 0.4);
}

/* ===================================
   FLOATING WHATSAPP BUTTON
   =================================== */
/* Added floating WhatsApp button styles */
.whatsapp-float {
  position: fixed !important;
  bottom: 6rem !important;
  right: 2rem !important;
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: var(--white) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
  z-index: 9999 !important;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float i {
  font-size: 2rem;
  color: var(--white) !important;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Fixed carousel height for tablet */
  .carousel-item img {
    height: 400px;
  }

  /* Adjust compact service cards for tablet */
  .service-card-compact {
    min-height: 150px;
  }

  /* Fix hero background for tablets - remove fixed attachment */
  .hero-section {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .carousel-item img {
    height: 300px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .experience-badge {
    width: 80px;
    height: 80px;
  }

  .badge-number {
    font-size: 2rem;
  }

  /* Adjust compact service cards for mobile */
  .service-card-compact {
    min-height: 130px;
    padding: 1.25rem 0.75rem;
  }

  .service-card-compact h5 {
    font-size: 0.9rem;
  }

  .service-icon-compact {
    width: 45px;
    height: 45px;
    margin-bottom: 0.5rem;
  }

  .service-icon-compact i {
    font-size: 1.3rem;
  }

  /* Enhanced mobile navbar - larger logo and bolder brand name */
  .navbar-logo {
    height: 70px !important;
    max-width: 130px !important;
  }

  .brand-name {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
  }

  /* Make navbar more prominent on mobile */
  .navbar {
    padding: 1.2rem 0 !important;
  }

  .navbar.scrolled {
    background: rgba(44, 36, 24, 0.98) !important;
    padding: 1rem 0 !important;
  }

  .footer-logo-img {
    height: 50px;
    max-width: 120px;
  }

  /* Adjust WhatsApp button position for mobile */
  .whatsapp-float {
    bottom: 5rem !important;
    right: 1.5rem !important;
    width: 55px !important;
    height: 55px !important;
    z-index: 9999 !important;
  }

  .whatsapp-float i {
    font-size: 1.8rem !important;
  }

  /* Fix hero background for mobile - remove fixed attachment and ensure image is visible */
  .hero-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

@media (max-width: 576px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  /* Extra emphasis on mobile brand */
  .navbar-brand {
    font-size: 1.3rem !important;
  }

  .navbar-logo {
    height: 60px !important;
    max-width: 110px !important;
  }

  .brand-name {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
  }

  /* Optimize WhatsApp button for small screens */
  .whatsapp-float {
    bottom: 4.5rem !important;
    right: 1rem !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 9999 !important;
  }

  .whatsapp-float i {
    font-size: 1.6rem !important;
  }

  .scroll-top-btn {
    bottom: 1.5rem !important;
    right: 1rem !important;
    width: 45px;
    height: 45px;
  }

  /* Ensure hero background works on smallest screens */
  .hero-section {
    background-attachment: scroll !important;
    min-height: 100vh !important;
  }
}

/* Extra small screens media query for better mobile support */
@media (max-width: 480px) {
  .navbar-logo {
    height: 65px !important;
    max-width: 115px !important;
  }

  .brand-name {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
  }

  .whatsapp-float {
    display: flex !important;
    bottom: 4rem !important;
    right: 1rem !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 9999 !important;
  }

  /* Mobile hero background fix for iOS and Android */
  .hero-section {
    background-attachment: scroll !important;
    background-image: url("/images/hero.jpg") !important;
  }
}
