@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary: #275faa;
  --secondary: #f2ca30;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --header-h: 130px;
}



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

body {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
  padding-top: var(--header-h);
  cursor: default;
}

.container {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  height: var(--header-h);
  top: 0;
  left: 0;
  z-index: 1300;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  margin-top: 10px;
  max-width: 270px;
  height: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li {
  margin-left: 30px;
}

.mobile-only {
  display: none; /* Hidden by default on desktop */
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--primary);
}
.nav-menu a.active::after {
  width: 100%;
}

.whatsapp-btn {
  margin-left: 20px;
}

.header-container .whatsapp-btn {
  background-color: #25d366;
  color: #fff;
  height: 50px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.header-container .whatsapp-btn:hover {
  background-color: #128c7e;
  color: white;
}

.header-container .whatsapp-btn i {
  font-size: 1.5rem !important;
  margin-right: 4px;
  margin-left: 2px;
}

.hamburger {

  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
  height: 30px; /* Square for perfect rotation */
  position: relative;
  /* Transition for the rotation of the whole button */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .hamburger.active {
  transform: none;  Removed container rotation to prevent height jump 
} */

.hamburger .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  margin: 0;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .bar:nth-child(1) {
  top: 6px; /* Centered spacing */
}
.hamburger .bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger .bar:nth-child(3) {
  bottom: 6px; /* Centered spacing */
}

/* Hamburger Active Animation (X Shape with Spin) */
.hamburger.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(225deg); /* 45 + 180 = Spin + X */
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-225deg); /* -45 - 180 = Spin + X */
}

section {
  padding: clamp(40px, 8vw, 80px) 0;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 80px);
}

.section-title h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: clamp(12px, 2vw, 20px);
  font-weight: 700;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero {
  position: relative;
  color: var(--white);
  padding: clamp(60px, 12vw, 120px) 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(40vh, 50vh, 60vh);
  background-image: url(./assets/images/store/principal.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(39, 95, 170, 0.85) 0%, rgba(26, 74, 141, 0.9) 100%);
  z-index: -1;
}

.hero h2 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  margin-bottom: clamp(16px, 3vw, 24px);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  max-width: min(90%, 700px);
  margin: 0 auto clamp(20px, 4vw, 40px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--dark-gray);
  padding: clamp(10px, 2vw, 16px) clamp(20px, 4vw, 40px);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  min-height: clamp(40px, 8vw, 52px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carousel {
  background-color: white;
  padding-top: 40px;
  padding-bottom: 40px;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

.carousel-container {
  position: relative;
  width: 70%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: visible;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: auto; /* Allow aspect-ratio to drive height */
  aspect-ratio: 21 / 9; /* Default Desktop Ratio (approx 2.33) */
}

@media (max-width: 992px) {
  /* 
  Container and Slide styles removed to allow .carousel--snap to control layout.
  See bottom of file.
  */

  .carousel-btn {
    width: 1.8rem;
    height: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(39, 95, 170, 0.6);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 101 !important;
  }

  .carousel-btn--prev {
    left: -65px !important; /* Outside card */
  }

  .carousel-btn--next {
    right: -65px !important; /* Outside card */
  }

  /* Reduce top padding for carousel on tablet to bring it closer to Hero */
  .carousel {
    padding-top: 10px !important;
  }

  .carousel-container {
    width: 70% !important; /* Tablet width for 3D effect */
    max-width: 70% !important;
    overflow: visible !important; /* Show side slides on tablet */
    margin: 0 auto !important;
  }

  .carousel-slides {
    aspect-ratio: 2 / 1; /* Slightly taller for Tablet */
    height: auto;
    max-height: none;
  }
}

@media (max-width: 576px) {
  .carousel-container {
    width: 70% !important; /* Allow side previews */
    max-width: 70% !important;
    overflow: visible !important; /* Show side slides */
    margin: 0 auto !important;
  }
  
  .carousel-slides {
    aspect-ratio: 16 / 9; /* Taller for Mobile */
    max-height: none;
  }

  .carousel-btn {
      width: 32px !important;
      height: 32px !important;
      font-size: 0.9rem !important;
  }
  
  .carousel-btn--prev {
    left: -40px !important;
  }
  .carousel-btn--next {
    right: -40px !important;
  }
  
  /* Dots */
  .carousel-dots {
    bottom: 15px !important;
    z-index: 200 !important;
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
  }

  /* Ensure image fills the slide */
  .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  /* Constrain Carousel Width */
  .carousel-slides {
    width: 100% !important; 
    margin: 0 auto !important;
  }
  
  /* Constrain Instagram Posts Width */
  .instagram-grid {
    width: 92% !important;
    max-width: 340px !important; /* Reduced from 400px to make cards smaller */
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Darker border and slightly smaller cards appearance */
  .instagram-post {
    border: 1px solid rgba(39, 95, 170, 0.6) !important; /* Softer Blue border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; 
  }

  /* Increase spacing below Hero for mobile (Adjusted: more space below button) */
  .hero {
    padding-bottom: 80px !important; 
  }

  .hero h2 {
    margin-top: 40px !important; 
  }

  /* Benefits: 2x2 Grid, Text Hidden */
  .benefits-modern__wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .benefit__desc, 
  .benefit__desc_condition {
    display: block !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    color: var(--dark-gray) !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
  }
  .benefit {
    padding: 15px 10px !important; /* Compact */
  }

  /* Services: Force 1 Column Stack */
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important; /* Full width of container */
    max-width: none !important; /* Remove restriction */
    margin: 0 auto !important;
    gap: 16px !important;
    margin-top: 40px !important; /* Increase distance from benefits */
  }
  .service-card {
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
  }
  .service-card .service-icon {
    margin: 0 auto 15px auto !important; /* Center icon */
  }

  /* Footer: Center Title and Effect */
  .footer-logo {
    display: table !important; /* Trick to fit content or simplify centered block */
    margin: 0 auto 24px auto !important;
    text-align: center !important;
  }
  .footer-logo::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .footer-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Arrow Carousel Styles for Mobile */






}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0.6s;
  opacity: 1; /* Removing opacity fade */
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  pointer-events: none; /* Disable interaction on non-active slides */
}

/* Shadow overlay for inactive slides */
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Shadow over them */
  transition: background-color 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
}

.slide.active {
  transform: translateX(0) scale(1);
  z-index: 10;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  pointer-events: none; /* Container ignores clicks, passes them through */
}

/* Enable interaction ONLY on visual content */
.slide.active > *,
.slide.active .instagram-post {
    pointer-events: auto;
}

.slide.active::after {
  background-color: transparent;
}

.slide.next {
  transform: translateX(25%) scale(0.85); /* Reduced visibility and slightly larger scale */
  z-index: 5;
}

.slide.prev {
  transform: translateX(-25%) scale(0.85); /* Reduced visibility and slightly larger scale */
  z-index: 5;
}

.slide picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(39, 95, 170, 0.6);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.carousel-btn--prev {
  left: -80px;
}

.carousel-btn--next {
  right: -80px;
}

@media (max-width: 992px) {
  .carousel-btn--prev {
    left: 10px;
  }
  .carousel-btn--next {
    right: 10px;
  }
}

.carousel-btn i {
  font-size: 1.2rem;
  color: var(--primary);
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.carousel-dot.active {
  opacity: 1;
  background: #fff;
}

:root {
  --brand-blue: #1e4db7;
  --brand-yellow: #ffd400;
  --transition-band: 14%;

  --benefit-size: 92px;
  --benefit-ring: 6px;
  --icon-soft: #475569;
}

.benefits-modern {
  padding: clamp(16px, 3.5vw, 32px) 0;
  background: #fff;
}
.benefits-modern__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: clamp(12px, 2.5vw, 28px);
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 18px 12px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 35%, transparent);
  outline-offset: 2px;
}
@media (hover: hover) {
  .benefit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  }
}

.benefit__circle {
  width: var(--benefit-size);
  height: var(--benefit-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) calc(50% - (var(--transition-band) / 2)), color-mix(in srgb, var(--brand-blue) 50%, var(--brand-yellow) 50%) 50%, var(--brand-yellow) calc(50% + (var(--transition-band) / 2)), var(--brand-yellow) 100%) border-box;
  border: var(--benefit-ring) solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

@supports not (color: color-mix(in srgb, black, white)) {
  .benefit__circle {
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) 43%, #2a5fd8 47%, #f6d44a 53%, var(--brand-yellow) 57%, var(--brand-yellow) 100%) border-box;
  }
}

.benefit__circle svg {
  display: block;
  width: 36px;
  height: 36px;
}

.benefit__circle svg path {
  stroke: var(--icon-soft);
  stroke-width: 1.8;
}

.benefit__title {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}
.benefit__desc,
.benefit__desc_condition {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.4;
}

/* Reset for benefit cards as links */
.benefit {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex !important;
  align-items: center;
}

@media (max-width: 1024px) {
  .benefits-modern__wrap {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  .benefits-modern__wrap {
    grid-template-columns: 1fr;
  }
  .benefit__circle {
    --benefit-size: 84px;
  }
}

.about {
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
  text-align: center;
}

.about-text h3 {
  color: var(--primary);
  margin-bottom: clamp(12px, 2vw, 20px);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.about-text p {
  margin-bottom: clamp(16px, 3vw, 24px);
  line-height: 1.7;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.instagram-promos {
  background-color: #f8f9fa;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 350px), 1fr));
  gap: clamp(20px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.instagram-post {
  background-color: white;
  border: 1px solid rgba(39, 95, 170, 0.6);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative; /* For stretched link */
}

.instagram-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.post-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f1f1f1;
}

.post-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-right: 10px;
}

.post-username {
  font-weight: 600;
  font-size: 14px;
}

.post-image img {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

/* Stretched Link for entire card clickability */
.post-image a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.post-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: var(--dark-gray);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.post-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.post-action {
  font-size: 1.3rem;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-action:hover {
  transform: scale(1.1);
}

.post-action.heart.fas {
  color: #e74c3c;
}

.post-action.heart:hover {
  color: #e74c3c;
}

.post-likes {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.post-caption {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
  flex-grow: 1;
}

.post-caption strong {
  font-weight: 600;
  margin-right: 5px;
}

.instagram-cta {
  text-align: center;
  margin-top: 50px;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.instagram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.services {
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 360px));
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
}

.service-card {
  background-color: var(--white);
  border-radius: clamp(8px, 2vw, 14px);
  padding: clamp(20px, 4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: var(--benefit-size);
  height: var(--benefit-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) calc(50% - (var(--transition-band) / 2)), color-mix(in srgb, var(--brand-blue) 50%, var(--brand-yellow) 50%) 50%, var(--brand-yellow) calc(50% + (var(--transition-band) / 2)), var(--brand-yellow) 100%) border-box;
  border: var(--benefit-ring) solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: var(--primary);
  margin-bottom: clamp(16px, 3vw, 24px);
  display: inline-grid;
  font-size: 1.5rem;
}

@supports not (color: color-mix(in srgb, black, white)) {
  .service-icon {
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) 43%, #2a5fd8 47%, #f6d44a 53%, var(--brand-yellow) 57%, var(--brand-yellow) 100%) border-box;
  }
}

.service-card h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  margin-bottom: clamp(12px, 2vw, 20px);
  color: var(--primary);
  line-height: 1.3;
}

.service-card p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.location {
  background-color: var(--primary);
}

.location .section-title h2 {
  color: var(--white);
}

.location-container {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 50px);
  align-items: stretch;
}

.map-container {
  flex: 1 1 300px;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: 100%;
}

#map.offscreen {
  filter: blur(5px);
  pointer-events: none;
}

.locations-list {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 30vw, 280px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  align-content: start;
}

.location-item {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.location-item:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-5px);
}

.location-item.active {
  background-color: var(--white);
  border-left: 8px solid var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  z-index: 2;
}

.location-item.featured-unit {
  background-color: var(--white);
  border-left: 8px solid var(--secondary);
}

.location-item.featured-unit:hover {
  background-color: var(--white);
}

.location-item .unit-name {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.location-item .unit-phone {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.location-item .unit-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.35rem;
}

.unit-name {
  margin: 0 0 0.25rem 0;
}
.unit-address {
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

.unit-phone {
  margin: 0;
  line-height: 0.6;
  font-variant-numeric: tabular-nums;
}

.unit-phone + .unit-phone {
  margin-top: 0.25rem;
}

.hours-list strong,
.unit-phone strong {
  color: var(--primary);
  font-weight: 700;
}

.unit-hours-wrapper {
  margin-top: auto;
}

.unit-hours-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.unit-hours-wrapper .hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.unit-hours-wrapper .hours-list li {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin: 4px 0;
  line-height: 1.4;
}

.unit-hours-wrapper .hours-list li strong {
  color: var(--primary);
}

.unit-hours-wrapper .hours-status {
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.unit-hours-wrapper .hours-status.open {
  background-color: #e6f8ed;
  color: #27ae60;
}

.unit-hours-wrapper .hours-status.closed {
  background-color: #fdecea;
  color: #c0392b;
}

.unit-status {
  margin-top: 15%;
}

.unit-status .status-text {
  background-color: #fff8d7;
  color: #c4a300;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  text-align: center;
  display: inline-block;
  margin-top: 10px;
}

.testimonials {
  padding-bottom: 120px;
  background-color: var(--white);
  overflow-x: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 350px), 1fr));
  gap: clamp(20px, 4vw, 40px);
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .testimonials .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid rgba(39, 95, 170, 0.6);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 2.5rem;
  color: rgba(39, 95, 170, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
  flex-grow: 1;
}

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

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-rating {
  margin-top: 5px;
  color: var(--secondary);
}

#ofertas-whatsapp {
  background-color: var(--primary);
  overflow: hidden;
}

#ofertas-whatsapp .section-title h2 {
  color: var(--white);
}

.ofertas-whatsapp-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: whatsFadeInUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.2s;
}

#ofertas-whatsapp p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 40px;
}



.btn-ofertas-whatsapp i {
  font-size: 1.3rem;
  line-height: 1;
}

#ofertas-whatsapp .aviso-privacidade {
  display: block;
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.8;
}

.modern-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-main {
  padding: clamp(32px, 6vw, 60px) 0 clamp(20px, 5vw, 40px);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(30px, 6vw, 60px);
  margin-bottom: clamp(40px, 6vw, 60px);
}

.footer-brand {
  position: relative;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer-description {
  color: #cccccc;
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.footer-health-alert {
  background: rgba(39, 95, 170, 0.1);
  border: 1px solid rgba(39, 95, 170, 0.2);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.footer-health-alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
}

.footer-health-alert h5 {
  color: var(--secondary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-health-alert p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-column h4 {
  text-align: center;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

@media (max-width: 1024px) {

}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition);
  margin-left: 20px;
  gap: 10px;
}

@media (min-width: 1024px) {
  .footer-links a:hover,
  .footer-links a:hover i,
  .footer-links a:hover svg {
    color: var(--secondary) !important;
    fill: var(--secondary) !important;
  }
}

@media (min-width: 1025px) {

}

.footer-links a i {
  font-size: 1rem;
  width: 20px;
  opacity: 0.8;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(39, 95, 170, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-info h6 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-info p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.4;
}

.social-section h4 {
  margin-bottom: 20px;
}

.social-description {
  color: #cccccc;
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-link {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.threads img {
  filter: invert(1);
}

.social-link.threads:hover {
  background: #000000;
}

.social-link.whatsapp:hover {
  background: #25d366;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 24px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px 0;
}

.footer-copyright {
  color: #aaaaaa;
  font-size: 1.05rem;
}

.footer-links-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links-bottom a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links-bottom a:hover {
  color: var(--secondary);
}

.payment-methods {
  text-align: center;
}

.payment-title {
  color: #aaaaaa;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.payment-icons {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  transition: var(--transition);
}

.payment-method:hover {
  background: rgba(255, 255, 255, 0.1);
}

.payment-method i {
  font-size: 1.4rem;
  color: var(--secondary);
}

.payment-method span {
  color: #cccccc;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .payment-methods {
    text-align: center;
  }

  .payment-icons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: clamp(30px, 8vw, 50px) 0 clamp(20px, 6vw, 40px);
  }

  .payment-icons {
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
  }

  .social-links {
    gap: clamp(8px, 2vw, 12px);
  }

  .social-link {
    width: clamp(36px, 8vw, 44px);
    height: clamp(36px, 8vw, 44px);
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .btn {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
}

@media (max-width: 1200px) {
  .footer-bottom-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-copyright,
  .footer-payment {
    text-align: center;
    width: 100%;
  }

  /* Payment Methods Responsive Sizing */
  .payment-icons {
    justify-content: center;
    gap: 12px;
  }
  
  .payment-method {
    padding: 8px 12px; /* Reduced padding */
    gap: 8px;
  }
  
  .payment-method i {
    font-size: 1.2rem; /* Smaller icon */
  }
  
  .payment-method span {
    font-size: 0.9rem; /* Smaller text */
  }
}

@media (max-width: 576px) {
  .payment-icons {
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
  }
  
  .payment-method {
    padding: 6px 10px; /* Even smaller padding */
    border-radius: 8px;
  }
  
  .payment-method i {
    font-size: 1.1rem;
  }
  
  .payment-method span {
    font-size: 0.85rem;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

.floating-contact {
  position: fixed;
  bottom: clamp(20px, 5vw, 40px);
  right: clamp(20px, 5vw, 40px);
  z-index: 999;
}

.floating-btn {
  width: clamp(55px, 12vw, 72px); /* Reduced from 80px, max 72px */
  height: clamp(55px, 12vw, 72px);
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem); /* Reduced icon size */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}



.floating-btn:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

@keyframes whatsFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-methods {
    align-items: center;
  }
}

@media (max-width: 1200px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    backdrop-filter: saturate(120%) blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 0 22px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1301;
    opacity: 0;
  }
  .nav-menu.active {
    left: 0;
    opacity: 1;
  }
  .nav-menu::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: #dbe3ef;
  }
  .nav-menu li {
    margin: 0;
    width: clamp(240px, 86%, 520px);
    list-style: none;
  }
  
  .mobile-only {
      display: block; /* Show on mobile/tablet */
  }

  /* Style the mobile menu button */
  .whatsapp-btn-mobile {
      background-color: #25d366 !important;
      color: #fff !important;
      border: none !important;
      justify-content: center !important; 
      gap: 8px;
      font-weight: 700 !important;
      margin-bottom: 0; /* Remove extra space, rely on flex gap */
      box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
  }
  
  .whatsapp-btn-mobile i {
      font-size: 1.4rem;
  }

  /* Hide the header button on tablet/mobile */
  .header-container > .whatsapp-btn {
      display: none !important;
  }
  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #1f2a37;
    font-weight: 600;
    letter-spacing: 0.1px;
    font-size: 1.05rem;
  }
  .nav-menu a.active {
    background: #eef4ff;
    border-color: #dbe7ff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(39, 95, 170, 0.12);
  }
  .nav-menu a:hover {
    background: #eef4ff;
    border-color: #dbe7ff;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(39, 95, 170, 0.12);
  }
  .nav-menu a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 2px;
  }
  .nav-menu a::after {
    display: none;
  }

  @media (hover: none), (pointer: coarse) {
    .nav-menu a:hover:not(.active) {
      background: #f8fafc;
      border-color: #e8eef5;
      color: #1f2a37;
      transform: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }
  }
  .hamburger {
    display: block;
    margin-left: 0;
    margin-right: 16px;
  }
  .logo img {
    max-height: 68px;
  }
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  .hero h2 {
    font-size: 2.2rem;
  }
  section {
    padding: 60px 0;
  }
  .about-content,
  .location-container {
    flex-direction: column;
  }
  .locations-list {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .footer-container,
  .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-menu .nav-heart {
    display: block;
    margin-top: 12px;
    width: 100%;
    text-align: center;
    pointer-events: none;
  }
  .nav-menu .nav-heart img {
    width: 60px;
    height: 60px;
    opacity: 0.9;
    filter: drop-shadow(0 8px 24px rgba(39, 95, 170, 0.12));
    user-select: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero {
    padding: 24px 0 !important;
    min-height: auto !important;
  }
  .hero h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 576px) {
  :root {
    --header-h: 90px;
  }
  .hero {
    padding: 40px 0 100px 0;
  }
  .header-container {
    padding: 0 16px;
  }
  .hamburger {
    margin-left: -4px;
    margin-right: 14px;
  }
  .logo img {
    margin-left: 10px;
    max-height: 74px;
  }
  .nav-menu {
    top: var(--header-h);
    height: calc(100vh - 70px);
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .whatsapp-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    margin-left: 10px;
  }
}

.hamburger {
  position: relative;
  z-index: 1400;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}
.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .header-container .whatsapp-btn {
    display: none !important;
  }
}
@media (min-width: 1201px) {
  .header-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 1rem 2rem;
  }

  /* Esconde o coração do menu em resoluções sem hambúrguer (desktop) */
  .nav-menu .nav-heart {
    display: none !important;
  }

  .nav-menu {
    position: static !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: auto;
    height: auto;
    box-shadow: none;
    padding: 0;
  }
  .hamburger {
    display: none !important;
  }
  .header-container .whatsapp-btn {
    display: inline-flex !important;
    height: 54px;
    padding: 0 24px;
    font-size: 1rem;
    border-radius: 50px;
  }
  .header-container .whatsapp-btn i {
    font-size: 1.6rem !important;
  }
  .header-container .logo img {
    max-height: 85px;
    width: auto;
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .header-container .whatsapp-btn {
    display: none !important;
  }
}

:root {
  --header-h: 130px;
}
body {
  padding-top: var(--header-h);
}
section,
.container,
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* REMOVED CAROUSEL OVERRIDES */

body.no-scroll {
  overflow: hidden;
}

header {
  min-height: 76px;
}
.header-container {
  padding: 10px 14px;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 58px;
  height: auto;
  width: auto;
}

@media (max-width: 1200px) and (min-width: 577px) {
  :root {
    --header-h: 104px;
  }
  header {
    min-height: var(--header-h);
  }
  .logo img {
    max-height: 96px;
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  :root {
    --header-h: 96px;
  }
  header {
    min-height: var(--header-h);
  }
  .logo img {
    max-height: 76px;
    margin-top: 0;
  }
}

:root {
  --header-h: 130px;
}

.hero {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

.hero::after {
  display: none !important;
}







@media (max-width: 640px) {
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .services-grid .service-card {
    padding: 16px;
  }
  .service-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .service-card h3 {
    font-size: 1rem;
  }
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .services-grid .service-card:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 1200px) {
  .services-grid,
  .features-grid,
  .benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .service-card,
  .feature-card,
  .benefit-card {
    padding: 14px !important;
    border-radius: 14px !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: var(--shadow);
  }
  .service-card .service-icon,
  .feature-card .feature-icon,
  .benefit-card .benefit-icon {
    font-size: 1.6rem !important;
    margin-bottom: 8px !important;
  }
  .service-card h3,
  .feature-card h3,
  .benefit-card h3 {
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
  }
  .service-card p,
  .feature-card p,
  .benefit-card p {
    display: block !important;
    font-size: 0.9rem !important;
    margin-top: 4px !important;
  }
  .services-grid .service-card:nth-child(n + 5),
  .features-grid .feature-card:nth-child(n + 5),
  .benefits-grid .benefit-card:nth-child(n + 5) {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .service-card,
  .feature-card,
  .benefit-card {
    padding: 12px !important;
    min-height: 110px !important;
  }
  .service-card h3,
  .feature-card h3,
  .benefit-card h3 {
    font-size: 0.92rem !important;
  }
  .service-card .service-icon,
  .feature-card .feature-icon,
  .benefit-card .benefit-icon {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 1200px) {
  [role="list"],
  .benefits-list,
  .benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  [role="list"] > article.benefit,
  .benefits-list > article.benefit,
  .benefits-grid > article.benefit {
    padding: 14px !important;
    border-radius: 14px !important;
    min-height: 110px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: var(--shadow);
    background: #fff;
  }
  article.benefit i,
  article.benefit svg,
  article.benefit .icon {
    font-size: 1.6rem !important;
    margin-bottom: 8px !important;
    line-height: 1 !important;
  }
  article.benefit h3,
  article.benefit .title {
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
  }
  article.benefit p,
  article.benefit .subtitle,
  article.benefit .desc {
    display: block !important;
    font-size: 0.9rem !important;
    margin-top: 4px !important;
  }
  [role="list"] > article.benefit:nth-child(n + 5),
  .benefits-list > article.benefit:nth-child(n + 5),
  .benefits-grid > article.benefit:nth-child(n + 5) {
    display: none !important;
  }

  article.benefit:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
  }
}

@media (max-width: 380px) {
  [role="list"] > article.benefit,
  .benefits-list > article.benefit,
  .benefits-grid > article.benefit {
    padding: 12px !important;
    min-height: 100px !important;
  }
  article.benefit i,
  article.benefit svg,
  article.benefit .icon {
    font-size: 1.5rem !important;
  }
  article.benefit h3,
  article.benefit .title {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 1200px) {
  .instagram-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .instagram-post {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  }
  .post-header {
    padding: 8px 10px !important;
  }
  .post-avatar img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 8px !important;
  }
  .post-username {
    font-size: 12px !important;
  }
  .post-image img {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: block;
  }
  .post-actions {
    padding: 6px 10px !important;
    gap: 10px !important;
  }
  .post-action {
    font-size: 1.05rem !important;
  }
  .post-likes {
    font-size: 12px !important;
    margin: 4px 10px !important;
  }
  .post-caption {
    font-size: 12px !important;
    margin: 0 10px 10px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

@media (max-width: 380px) {
  .instagram-grid {
    gap: 10px !important;
  }
  .post-username,
  .post-likes,
  .post-caption {
    font-size: 11px !important;
  }
  .post-action {
    font-size: 1rem !important;
  }
}

@media (max-width: 1200px) {
  .locations-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-content: start !important;
  }
  .location-item {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    min-height: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .unit-name {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
  }
  .unit-phone {
    font-size: 0.85rem !important;
    margin: 0 0 6px 0 !important;
  }
  .hours-list {
    display: none !important;
  }
  .unit-hours-wrapper {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .hours-status,
  .status-text {
    margin: 0 !important;
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
  .locations-list .location-item:nth-child(n + 7) {
    display: none !important;
  }
  .map-container {
    min-height: 220px !important;
    order: -1;
  }
}

@media (max-width: 380px) {
  .location-item {
    padding: 8px 10px !important;
    min-height: 84px !important;
  }
  .unit-name {
    font-size: 0.92rem !important;
  }
  .unit-phone {
    font-size: 0.82rem !important;
  }
  .hours-status,
  .status-text {
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
  }
}

@media (max-width: 1200px) {
  .testimonial-card {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important; /* Darker shadow */
    border: 2px solid var(--primary) !important; /* Blue border */
  }
  .testimonial-text {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .testimonial-text::before {
    font-size: 1.6rem !important;
    opacity: 0.15 !important;
  }
  .testimonial-author {
    margin-top: 4px !important;
  }
  .testimonial-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    margin-right: 8px !important;
  }
  .testimonial-name {
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
  }
  .testimonial-rating {
    margin-top: 0px !important;
  }
  .testimonial-rating i {
    font-size: 0.8rem !important;
  }
  .testimonials-grid {
    gap: 12px !important;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

footer.modern-footer {
  padding: 24px 0 16px;
}
.modern-footer .footer-main .container {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 24px !important;
  }
  .footer-logo,
  .footer-column h4 {
    margin-bottom: 12px !important;
  }
  .footer-description {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  .footer-health-alert {
    margin-top: 10px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }
  .footer-health-alert h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px 0 !important;
    font-size: 0.95rem !important;
  }
  .footer-health-alert p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  .footer-links {
    padding: 0 !important;
  }
  .footer-links li {
    margin-bottom: 10px !important;
  }
  .footer-links a {
    font-size: 0.95rem !important;
  }
  .contact-item {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 8px 0 !important;
  }
  .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
  }
  .contact-info h6 {
    margin: 0 !important;
    font-size: 0.95rem !important;
  }
  .contact-info p {
    margin: 2px 0 0 !important;
    font-size: 0.9rem !important;
    color: #cfcfcf;
  }
  .social-section .social-links {
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 18px !important;
  }
  .payment-methods {
    width: 100% !important;
    text-align: center !important;
  }
  .payment-title {
    margin-bottom: 8px !important;
    font-size: 0.95rem !important;
  }
  .payment-icons {
    justify-content: center !important;
    gap: 10px !important;
  }
  .payment-method {
    padding: 6px 10px !important;
    border-radius: 10px !important;
  }
  .payment-method i {
    font-size: 1rem !important;
  }
  .payment-method span {
    font-size: 0.8rem !important;
  }
}

.social-section h4,
.social-section .social-description {
  text-align: center !important;
}

.social-section .social-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

.footer-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
  width: 100%;
}

.payment-methods {
  text-align: center !important;
  width: 100% !important;
}
.payment-title {
  margin-bottom: 8px !important;
  text-align: center !important;
}
.payment-icons {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.payment-method {
  margin: 0 !important;
}

.payment-icons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

@media (max-width: 1024px) {
  .payment-icons {
    flex-direction: row !important;
  }
}
@media (max-width: 480px) {
  .payment-icons {
    flex-direction: row !important;
  }
}

.social-section {
  text-align: center !important;
}
.social-section h4 {
  display: inline-block;
  position: relative;
  text-align: center !important;
}
.social-section h4::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.footer-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (min-width: 480px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.footer-links li {
  margin: 0 !important;
}
.footer-links a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  text-decoration: none !important;
  color: #ccc !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
.footer-links a:hover {
  color: var(--brand-yellow);
  transform: translateY(-1px) !important;
}
.footer-links a i {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfcfcf;
  font-size: 1rem;
}

.contact-item {
  display: grid !important;
  grid-template-columns: 40px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.contact-item + .contact-item {
  margin-top: 10px !important;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 202, 48, 0.12);
}
.contact-icon i {
  color: var(--secondary);
  font-size: 1.05rem;
}

.contact-info h6 {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  color: #fff !important;
}
.contact-info p {
  margin: 2px 0 0 !important;
  font-size: 0.9rem !important;
  color: #cfcfcf !important;
}

.footer-column h4 {
  margin-bottom: 12px !important;
  text-align: center;
}
.footer-column h4::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 1200px) {
  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 0 !important;
    list-style: none !important;
  }
  @media (max-width: 768px) and (min-width: 480px) {
    .footer-links {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
  .footer-links li {
    margin: 0 !important;
  }
  .footer-links a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-decoration: none !important;
    color: #ccc !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
  }
  .footer-links a i {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfcfcf;
    font-size: 1rem;
  }

  .contact-item {
    display: grid !important;
    grid-template-columns: 40px 1fr !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .contact-item + .contact-item {
    margin-top: 10px !important;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 202, 48, 0.12);
  }
  .contact-icon i {
    color: var(--secondary);
    font-size: 1.05rem;
  }
  .contact-info h6 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    color: #fff !important;
  }
  .contact-info p {
    margin: 2px 0 0 !important;
    font-size: 0.9rem !important;
    color: #cfcfcf !important;
  }

  .footer-column h4 {
    margin-bottom: 12px !important;
  }
}

@media (min-width: 769px) {
  .footer-links {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }
  .footer-links li {
    margin-bottom: 12px !important;
  }

  .footer-links a {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 8px !important;
  }

  .contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }
  .contact-icon {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 1200px) {
  .instagram-grid,
  .services-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    scroll-snap-stop: always !important;
    -webkit-overflow-scrolling: touch !important;
    padding-block: 6px 12px !important;
    padding-inline: 7.5% !important;
    scrollbar-width: none !important;
  }
  .instagram-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar {
    display: none !important;
  }

  .instagram-grid::before,
  .instagram-grid::after,
  .services-grid::before,
  .services-grid::after {
    display: none !important;
  }

  .instagram-grid > *,
  .services-grid > * {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center !important;
    margin: 0 !important;
    position: relative;
    z-index: 0;
    transform: translateY(0) scale(1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  .instagram-grid > *.is-active,
  .services-grid > *.is-active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 1;
  }
}

@media (max-width: 1200px) {
  #about {
    padding: 24px 0 28px !important;
  }
  #about .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #about .section-title h2 {
    font-size: 1.55rem !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.2 !important;
  }

  .about-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .about-image img {
    width: 100% !important;
    height: clamp(160px, 45vw, 240px) !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  .about-text h3 {
    font-size: 1.15rem !important;
    margin: 4px 0 6px !important;
    line-height: 1.25 !important;
  }
  .about-text p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin: 0 0 10px 0 !important;
  }
}

@media (max-width: 1200px) {
  /* Tablet: reduzir respiro dos cards de serviços */
  .services-grid .service-card {
    padding: 12px 14px !important;
    min-height: auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  .service-card .service-icon {
    margin-bottom: 6px !important;
  }
  .service-card h3 {
    margin-bottom: 6px !important;
  }

  #ofertas-whatsapp {
    padding: 28px 0 30px !important;
  }
  #ofertas-whatsapp .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #ofertas-whatsapp .section-title h2 {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
    margin: 0 0 10px 0 !important;
  }
  #ofertas-whatsapp .section-title h2::after {
    width: 48px !important;
    height: 3px !important;
  }

  .ofertas-whatsapp-content {
    max-width: 520px !important;
    margin: 0 auto !important;
  }
  #ofertas-whatsapp p {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin: 10px auto 14px !important;
    max-width: 40ch !important;
    opacity: 0.95 !important;
  }

  .btn-ofertas-whatsapp {
    width: 100% !important;
    max-width: 420px !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    margin: 0 auto !important;
  }
  .btn-ofertas-whatsapp i {
    font-size: 1.1rem !important;
  }

  #ofertas-whatsapp .aviso-privacidade {
    font-size: 0.85rem !important;
    margin-top: 10px !important;
    opacity: 0.8 !important;
  }
}

@media (max-width: 1200px) {
  .carousel-container.carousel--snap {
    overflow: visible !important;
    padding-inline: calc((100% - 80%) / 2) !important;
  }

  .carousel-container.carousel--snap .carousel-slides {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-snap-stop: always !important;
    -webkit-overflow-scrolling: touch !important;
    transform: none !important;
    width: auto !important;
  }
  .carousel-container.carousel--snap .carousel-slides::-webkit-scrollbar {
    display: none !important;
  }
  /* Show buttons and position them */
  .carousel-container.carousel--snap .carousel-btn {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
/* 
  Mobile Snap styles removed. 
  Carousel now uses universal 3D logic (initUniversalCarousel) across all devices.
  See .slide, .slide.active, .slide.prev, .slide.next rules above.
*/

.hero {
  position: relative;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(39, 95, 170, 0.22) 0%, rgba(39, 95, 170, 0.14) 40%, rgba(39, 95, 170, 0.08) 70%, rgba(39, 95, 170, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 60%) !important;
}

@media (max-width: 1350px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(39, 95, 170, 0.16) 0%, rgba(39, 95, 170, 0.1) 45%, rgba(39, 95, 170, 0.04) 75%, rgba(39, 95, 170, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 60%) !important;
  }
}

@media (min-width: 1350px) {
  .header-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 1rem 2rem;
  }

  /* Logo styles removed to prevent shrinking */

  .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: nowrap !important;
    min-width: 0;
  }
  .nav-menu a {
    white-space: nowrap !important;
  }

  /* Whatsapp btn styles removed */
}

@media (min-width: 1350px) {
  .header-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 1rem 2rem;
  }

  .logo {
    display: flex;
    align-items: center;
  }
  /* Duplicate logo styles removed */

  .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: nowrap !important;
    margin-left: 16px !important;
    margin-right: auto !important;
    min-width: 0 !important;
  }
  .nav-menu a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    padding: 12px 6px !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* Duplicate whatsapp styles removed */

  .header-container > * {
    align-self: center !important;
  }
}

@media (max-width: 1350px) {
  section h2,
  .section-title h2 {
    font-size: clamp(1.28rem, 4.2vw + 0.5rem, 1.75rem) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px !important;
    margin: 4px 0 10px !important;
    text-wrap: balance;
  }
  .section-title {
    max-width: 32ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  .section-title h2::after {
    width: 48px !important;
    height: 3px !important;
    margin-top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@supports not (text-wrap: balance) {
  @media (max-width: 1350px) {
    section h2,
    .section-title h2 {
      word-break: normal;
      hyphens: auto;
    }
  }
}

.footer-links a i,
.footer-links a .fa,
.footer-links a .fas,
.footer-links a .far,
.footer-links a .fal,
.footer-links a .fab,
.footer-links a svg,
.footer-links a svg * {
  color: currentColor !important;
  fill: currentColor;
  stroke: currentColor;
  transition: var(--transition) !important;
}

.map-container,
.map-container *,
#map,
#map * {
  cursor: pointer !important;
}

.footer-links a {
  transition: var(--transition) !important;
}

.footer-links a:hover {
  color: var(--secondary) !important;
}

@media (min-width: 0) {
  .locations-list .location-item,
  .locations-list .location-item .unit-info,
  .locations-list .location-item .unit-hours-wrapper,
  .locations-list .location-item .hours-list {
    text-align: center !important;
    align-items: center !important;
  }
}

@media (min-width: 577px) and (max-width: 1200px) {
  body {
    font-size: 1.02rem !important;
  }
  p,
  li,
  a,
  small {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
  h2,
  .section-title h2,
  #about .section-title h2,
  #ofertas-whatsapp .section-title h2,
  .testimonials .section-title h2,
  .services .section-title h2,
  .instagram-promos .section-title h2,
  .location .section-title h2 {
    font-size: 2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }

  .footer-column h4 {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
  }
  .btn,
  .btn-ofertas-whatsapp {
    min-height: 50px !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
  }
  .logo img {
    /* max-height: 90px !important; REMOVED */
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
  }
  .hamburger {
    font-size: 2rem !important;
    padding: 6px !important;
  }
  .nav-menu a {
    font-size: 1.1rem !important;
  }

  .hero {
    min-height: 78vh !important;
    padding: 110px 0 !important;
  }

  .hero h2 {
    font-size: 2.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
  }

  .hero p {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    margin-bottom: 36px !important;
  }



  .services-grid .service-card {
    aspect-ratio: 1 / 1 !important;
  }
  .service-icon {
    font-size: 2.2rem !important;
  }
  .service-card p {
    display: block !important;
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
    opacity: 0.95 !important;
  }

  .instagram-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-inline: 5% !important;
  }
  .instagram-grid > * {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    scroll-snap-align: center !important;
  }
  .instagram-post {
    border-radius: 12px !important;
  }
  .post-header {
    padding: 8px 10px !important;
  }
  .post-avatar img {
    width: 26px !important;
    height: 26px !important;
  }
  .post-username,
  .post-likes,
  .post-caption {
    font-size: 0.95rem !important;
  }
  .post-action {
    font-size: 1.05rem !important;
  }

  #about {
    padding-top: 80px !important;
  }

  .about-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    gap: 20px !important;
  }
  .about-image {
    max-width: 560px !important;
    margin: 0 auto !important;
  }
  .about-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .about-text {
    text-align: center !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }
  .about-text p {
    font-size: 1.15rem !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
  }
  .about-text h3 {
    font-size: 1.65rem !important;
    margin-bottom: 18px !important;
  }

  .map-container {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 340px !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 300px !important;
    margin: 0 auto !important;
  }
  #map {
    height: 100% !important;
  }

  .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  #ofertas-whatsapp {
    padding-top: 80px !important;
  }

  #ofertas-whatsapp p {
    font-size: 1.08rem !important;
    line-height: 1.6 !important;
  }
  .btn-ofertas-whatsapp {
    font-size: 1rem !important;
  }

  .footer-grid {
    text-align: center !important;
  }
  .footer-column,
  .footer-brand,
  .social-section {
    text-align: center !important;
  }
  .footer-links {
    justify-content: center !important;
  }
  .contact-item {
    justify-content: center !important;
  }
  .payment-methods {
    text-align: center !important;
  }
  .payment-icons {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .hero {
    min-height: 62vh !important;
    padding: 96px 0 !important;
  }

  .services-grid > * {
    flex: 0 0 40% !important;
    max-width: 40% !important;
  }
  .services-grid .service-card {
    padding: 14px !important;
  }
  .service-icon {
    font-size: 2rem !important;
  }

  .map-container {
    max-width: 420px !important;
    min-height: 360px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .location-item {
    padding-top: 24px !important;
  }
  .unit-name {
    margin-top: 2px !important;
    margin-bottom: 10px !important;
  }

  .testimonials-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 20px !important;
    scroll-snap-type: x mandatory !important;
    scroll-snap-stop: always !important;
    -webkit-overflow-scrolling: touch !important;
    padding-block: 8px 16px !important;
    padding-inline: 3% !important;
    scrollbar-width: none !important;
  }
  .testimonials-grid::-webkit-scrollbar {
    display: none !important;
  }
  .testimonials-grid > * {
    flex: 0 0 65% !important;
    max-width: 65% !important;
    scroll-snap-align: center !important;
    min-height: 180px !important;
  }
  .testimonial-card {
    padding: 28px 24px !important;
    border-radius: 16px !important;
    min-height: 160px !important;
    max-height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    aspect-ratio: 3/2 !important;
  }
  .testimonial-text {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
  }

  .floating-btn {
    width: 75px !important;
    height: 75px !important;
    font-size: 2.2rem !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    bottom: 35px !important;
    right: 35px !important;
  }

  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-links li {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .footer-links a {
    margin-left: 0 !important;
  }
  .contact-item {
    justify-content: center !important;
    width: 340px !important;
    margin: 0 auto !important;
  }
  .contact-icon {
    margin: 0 auto !important;
  }

  .service-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }
  .service-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    min-height: 2.6em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 12px 0 !important;
  }
  .service-card p {
    margin-top: 10px !important;
  }

  /* Tablet only: remover aspecto quadrado e compactar a altura dos service-cards */
  @media (min-width: 577px) and (max-width: 1200px) {
    .services .section-title {
      margin-bottom: 16px !important;
    }
    .services-grid .service-card {
      aspect-ratio: auto !important;
      height: auto !important;
      min-height: 0 !important;
      justify-content: flex-start !important;
      gap: 8px !important;
      padding-top: 18px !important;
      padding-bottom: 16px !important;
    }
    .service-card .service-icon {
      margin-bottom: 6px !important;
      line-height: 1 !important;
    }
    .service-card h3 {
      margin: 0 0 4px 0 !important;
    }
    .service-card p {
      margin: 0 !important;
    }
  }

  .testimonials-grid > * {
    flex: 0 0 38% !important;
    max-width: 38% !important;
  }

  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    column-gap: 8px !important;
    row-gap: 1px !important;
    justify-items: center !important;
    max-width: 80% !important;
    margin: 0 auto !important;
  }

  .footer-links a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .contact-item {
    display: grid !important;
    grid-template-columns: 40px 1fr !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    justify-content: center !important;
    width: 400px !important;
    margin: 0 auto !important;
  }
}

/* Ajustes específicos para mobile solicitados */
@media (max-width: 576px) {
  /* Footer: centralizar cards dos links rápidos e igualar tamanhos (inclui Grupo de Ofertas) */
  .footer-links {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }
  .footer-links li {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .footer-links a {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }




  /* Espaço abaixo do botão "Quero atendimento no WhatsApp" reduzido pela metade */
  .testimonials {
    padding-bottom: 60px !important;
  }

  /* Espaço adicional após o botão "Falar com o farmacêutico" */
  .about .section-cta {
    margin-bottom: 28px !important;
  }

  /* Aumentar o espaço após os cards de benefícios para harmonizar com a sessão Sobre */
  .benefits-modern {
    margin-bottom: 36px !important;
  }
}

/* Alinhamento correto do "Grupo de Ofertas" no footer */


@media (max-width: 768px) {
  /* Mobile/Tablet pequeno: garantir centralização consistente */
  .footer-links {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }
  .footer-links li {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .footer-links a {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
}



/* Tablet Specific Overrides - Appended to end for specificity */
@media (min-width: 768px) and (max-width: 1366px) {
  #home-carousel {
    padding-top: 10px !important;
  }

  .instagram-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    align-items: stretch !important; /* Ensure same height */
    gap: 25px !important;
    padding-bottom: 20px !important; /* Spacing for scrollbar/shadow */
    -webkit-overflow-scrolling: touch;
  }

  .instagram-grid > * {
    max-width: 300px !important;
    height: auto !important; /* Let flex stretch handle height */
  }

  /* Adjust "Benefits" (4 items) 2x2 grid */
  [role="list"],
  .benefits-modern__wrap,
  .benefits-grid {
    grid-template-columns: repeat(2, 240px) !important; /* Reduce width */
    justify-content: center !important;
    gap: 20px !important;
    display: grid !important;
  }

  /* Adjust "Services" (3 items) to be single column, wider width */
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .services-grid > * {
    width: 500px !important; /* Match width of 2 benefits + gap */
    max-width: 90% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Center icons in services */
  .services-grid .service-icon {
    margin: 0 auto 10px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Increase distance between "Benefits" (2x2) and "Services" (3 stacked) */
  .services-grid {
    margin-top: 25px !important;
  }
}

/* Enable Horizontal Scroll for Testimonials on Tablet/Mobile (max-width: 1366px) */
@media (max-width: 1366px) {
  .testimonials-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }

  .testimonials-grid > .testimonial-card {
    flex: 0 0 280px !important; /* Slightly reduced from 300px */
    width: 280px !important;
    max-width: 280px !important;
    margin: 0 !important;
    height: auto !important; /* Ensure they stretch if container has align-items stretch */
  }
  
  /* Optional: Ensure container stretches heights */
  .testimonials-grid {
    align-items: stretch !important;
  }

  /* Footer Quick Links: 2 columns on tablet/mobile */
  .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 12px !important; /* Reduced gap */
    text-align: center !important;
  }

  /* Center all footer links and make them larger */
  .footer-links li {
    text-align: center !important;
    width: 100% !important;
  }
  
  .footer-links a {
    justify-content: center !important;
    width: 100% !important;
    padding: 14px !important; /* Increased size */
    font-size: 1.05rem !important; /* Larger text */
  }

  /* Reset separate styling for last item so it fits in grid */


  /* Slightly increase footer base font size */
  .modern-footer {
    font-size: 1rem !important;
  }
  .footer-column p, .footer-links a {
    font-size: 1rem !important;
  }

  /* Increase Contact items size */
  .contact-item {
    padding: 12px 0 !important;
  }
  .contact-icon {
    width: 48px !important; /* Larger icon box - increased from 44px */
    height: 48px !important;
  }
  .contact-icon i {
    font-size: 1.2rem !important;
  }

  /* Increase Social Links size */
  .social-link {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.4rem !important;
  }
  .social-section .social-links {
    gap: 15px !important;
  }

  /* Reduce spacing for sections on tablet */
  section {
    padding: 30px 0 !important; /* Visual vertical space reduction */
  }

  /* Specific adjustment for "About Us" spacing */
  #about {
    padding-top: 40px !important; /* Increased back for balance */
  }

  .section-cta {
    margin-top: 30px !important; /* Increased back for balance */
  }

  .section-title {
    margin-bottom: 30px !important; /* Space below title */
  }

  /* Reduce width of "Important Information" (Health Alert) */
  .footer-health-alert {
    max-width: 60% !important; /* Reduced from 80% */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Increase size of "Payment Methods" divs */
  .payment-method {
    padding: 12px 24px !important; /* Increased size again */
  }
  .payment-method i {
    font-size: 1.5rem !important; /* Increased size */
  }
  .payment-method span {
    font-size: 1.1rem !important; /* Increased size */
  }

  /* Reduce width of footer description and center it */
  .footer-description {
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important; /* Ensure text is centered if not already */
  }
}
/* FINAL OVERRIDE for Mobile Services Width symmetry */
@media (max-width: 768px) {
  .services-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 0 0 !important; /* Reduced to match gap (12px) */
    padding: 0 16px !important; 
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* Match benefits gap */
  }
  
  .services-grid .service-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767px) {
  /* About Title Spacing */
  .about-text h3 {
    margin-top: 28px !important; /* Slightly reduced from 35px */
    margin-bottom: 18px !important; /* Slightly reduced from 25px */
  }

  /* Footer Contact Items */
  .contact-item {
    gap: 30px !important; 
    margin-bottom: 8px !important;
    padding-left: 15px !important; /* Shift entire block right */
  }
}

/* FINAL OVERRIDE for Floating WhatsApp Button Size */
@media (max-width: 1366px) {
  .floating-btn {
    width: 72px !important; /* Reduced from 80px */
    height: 72px !important;
    font-size: 2.2rem !important; /* Reduced icon size */
    bottom: 25px !important; /* Adjusted position */
    right: 25px !important;
  }
}

@media (max-width: 1024px) {
  /* Arrow Carousel Styles for Tablet/Mobile */
  .arrow-carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important; /* Increased slightly */
    margin: 0 auto !important;
    padding: 0 40px !important; /* Space for arrows */
  }

  .arrow-carousel-track {
    display: flex !important;
    overflow: hidden !important; /* Disable scroll/drag */
    scroll-behavior: smooth !important;
    width: 100% !important;
    gap: 0 !important;
  }

  /* Force items to be full width of the track */
  .arrow-carousel-track > * {
    min-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    /* Optional: centering content */
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
  }

  /* Position arrows outside the track but inside the wrapper (padding) */
  .arrow-carousel-wrapper .carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    background: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .arrow-carousel-wrapper .carousel-btn--prev {
    left: 0 !important; 
    right: auto !important;
  }
  
  .arrow-carousel-wrapper .carousel-btn--next {
    right: 0 !important;
    left: auto !important;
  }

  /* Specific fix for Instagram grid in carousel mode */
  .arrow-carousel-track .instagram-post {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Specific fix for Testimonials grid in carousel mode */
  .arrow-carousel-track .testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  /* Ensure grids don't force their own layout when wrapped */
  .arrow-carousel-processed {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }
}

@media (max-width: 576px) {
  .arrow-carousel-wrapper {
    /* Remove negative margin so it stays within container padding */
    margin: 0 auto !important; 
    width: 100% !important;
    max-width: none !important;
  }
  
  /* Instagram: Container is narrower now (due to parent padding). 
     Reduce wrapper padding to ~34px to keep card wide enough but add space for arrows. */
  .instagram-grid .arrow-carousel-wrapper {
    padding: 0 34px !important; 
  }
  
  /* Testimonials: Container is narrower. 
     Reduce wrapper padding to ~50px to keep card width similar to before. */
  .testimonials-grid .arrow-carousel-wrapper {
    padding: 0 50px !important; 
  }
  
  .arrow-carousel-wrapper .carousel-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
  }
  
  /* Default Arrow Position (Instagram uses this) */
  /* Kept at 0px as per previous request to be near edge. Gap increases slightly. */
  .arrow-carousel-wrapper .carousel-btn--prev {
    left: 0px !important; 
  }
  
  .arrow-carousel-wrapper .carousel-btn--next {
    right: 0px !important;
  }

  /* Testimonials Specific Arrow Position */
  /* Padding 50px. Arrow 30px. Gap ~5px. Pos = 50 - 30 - 5 = 15px */
  .testimonials-grid .arrow-carousel-wrapper .carousel-btn--prev {
    left: 15px !important;
  }
  .testimonials-grid .arrow-carousel-wrapper .carousel-btn--next {
    right: 15px !important;
  }
  

}

/* 
   APPLY TESTIMONIAL FIXES GLOBALLY FOR CAROUSEL MODE 
   (Since carousel affects Tablet <= 1024px and Mobile)
*/
.arrow-carousel-processed.testimonials-grid,
.arrow-carousel-processed.instagram-grid {
  display: block !important;
  overflow: hidden !important;
  padding: 0 !important;
  scroll-snap-type: none !important;
}

.arrow-carousel-track .testimonial-card {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  width: 100% !important; 
  height: 100% !important; 
  min-height: auto !important;
  box-sizing: border-box !important;
  padding: 20px; /* Reduced padding */
}

/* Reduce Testimonial Author Height */
.arrow-carousel-track .testimonial-avatar {
  width: 35px;
  height: 35px;
  font-size: 0.9rem;
  margin-right: 10px;
}

.arrow-carousel-track .testimonial-text {
  margin-bottom: 15px; /* Reduced margin */
  font-size: 0.9rem; 
}

.arrow-carousel-track .testimonial-card::before {
  font-size: 1.8rem; 
  top: 10px;
  left: 15px;
}

/* 
    CRITICAL FOOTER FIX FOR SMALL DEVICES (390px and below)
    Forces a single-column layout to prevent content truncation and crowding.
*/
@media (max-width: 480px) {
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  
  .footer-column {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .footer-links li {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
  }

  .footer-links a {
    width: 100% !important;
    max-width: 320px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
  }



  /* Stabilize Contact Section */
  .contact-item {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 10px auto !important;
    padding: 12px !important;
    gap: 12px !important;
    justify-content: start !important;
    text-align: left !important;
  }
  
  .contact-icon {
    margin: 0 !important;
  }
  
  .contact-info {
    text-align: left !important;
  }
  
  .social-section {
    margin-top: 16px !important;
  }
}

/* 
    EMAIL OVERFLOW FIX
    Forcing word break to prevent long emails from breaking layout on small screens.
*/
@media (max-width: 1024px) {
  .contact-info p, 
  .contact-info a {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
  }
}

/* =========================================
   MEDIA QUERIES (MOVED TO BOTTOM FOR OVERRIDE)
   ========================================= */

@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }

  .hero h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  .section-title h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
  }
}

@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .hamburger {
    display: block;
    margin-left: 6px;
  }
  .container {
    max-width: 960px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 3vw, 24px);
  }

  .instagram-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(16px, 3vw, 24px);
  }
}

@media (max-width: 820px) {
  .container {
    max-width: 720px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

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

  .services-grid,
  .instagram-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Remove excessive padding from section on mobile */
  #instagram.container {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
  }
}

@media (max-width: 576px) {
  :root {
    --header-h: 90px;
  }

  .hero {
    padding: clamp(40px, 8vw, 60px) 0;
  }

  section {
    padding: clamp(30px, 6vw, 50px) 0;
  }
}

/* Instagram Carousel Specifics */
/* Instagram Carousel Specifics */
.instagram-carousel {
  margin-top: 0 !important; 
  margin-bottom: 10px !important;
  position: relative;
  z-index: 5;
  min-height: 400px; /* Reduced safety height */
}

/* Ensure container allows visual centering */
.instagram-carousel .carousel-slides {
  aspect-ratio: auto !important; 
  transition: height 0.3s ease;
  display: flex;
  align-items: center; /* Vertical center content */
}

.instagram-carousel .slide {
    background: transparent;
    box-shadow: none; 
    overflow: visible; 
    align-items: center;
    display: flex;
    justify-content: center;
}

/* DISABLE the global slide overlay for Instagram carousel, 
   so we can apply it to the card instead */
.instagram-carousel .slide::after {
    content: none !important;
    display: none !important;
}

/* Ensure the overlay is visible on side slides for "shadow" effect */
/* Ensure the overlay is visible on side slides for "shadow" effect */
/* Apply to the post itself, not the slide container */
.instagram-carousel .instagram-post {
    position: relative;
    z-index: 1;
}

.instagram-carousel .instagram-post::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50; 
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 10px; /* Match card radius */
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

}

.instagram-carousel .slide.active .instagram-post::after {
    opacity: 0;
}

.instagram-carousel .instagram-post {
    width: 100%;
    max-width: 320px; 
    height: auto;
    margin: 0 auto;
    /* Ensure post doesn't escape slide bounds */
    transform-style: flat; 
}

/* Adjust buttons for Instagram Carousel */
.instagram-carousel .carousel-btn {
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0; /* Removing any potential offsets */
}

.instagram-carousel .carousel-btn--prev {
    left: -25px !important;
}
.instagram-carousel .carousel-btn--next {
    right: -25px !important;
}

@media (max-width: 576px) {
    .instagram-carousel .carousel-btn {
        width: 32px !important; 
        height: 32px !important;
    }
    .instagram-carousel .instagram-post {
        max-width: 240px; /* Reduced for better mobile fit */
    }
    
    .instagram-carousel {
        min-height: 350px !important; /* Allow container to shrink for smaller cards */
    }
}


/* Default Instagram Container style (moved from inline HTML) */
.instagram-container {
    margin-top: 40px;
    margin-bottom: 40px;
}
