/* Custom Green Color Scheme */

:root {
  --cnvs-themecolor: #75cfd1;
  --cnvs-themecolor-rgb: 117, 207, 209;
}

/* Section Spacing - Add margin for fixed header */
#section-about,
#section-services,
#section-team,
#section-reviews,
#section-contact {
  scroll-margin-top: 120px;
  padding-top: 8rem !important; /* Increased from py-6 (5rem) to 8rem for header clearance */
}

/* First section (home) doesn't need top padding */
#home {
  scroll-margin-top: 120px;
}

/* Primary Color - Green */
.bg-color,
.button.button-border:hover,
.button:not(.button-border):not(.button-fill),
.bg-primary {
  background-color: #75cfd1 !important;
  border-color: #75cfd1 !important;
}

/* Top Bar Button */
#top-bar .bg-color {
  background-color: #75cfd1 !important;
}

/* Heading Spans */
.heading-block h1 span,
.heading-block h2 span,
.heading-block h3 span,
.heading-block h4 span,
h1 span,
h2 span,
h3 span {
  color: #75cfd1;
}

/* Feature Box Icons */
.fbox-icon i,
.fbox-icon a {
  color: #75cfd1;
}

/* Counter Color */
.counter.counter-lined span:after {
  border-top-color: #75cfd1;
}

.color,
h5.color {
  color: #75cfd1 !important;
}

/* Links */
a {
  color: #75cfd1;
}

a:hover {
  color: #5bb5b8;
}

/* Buttons */
.button {
  background-color: #75cfd1;
  border-color: #75cfd1;
}

.button:hover {
  background-color: #5bb5b8;
  border-color: #5bb5b8;
}

.button-white:hover {
  background-color: #75cfd1 !important;
  border-color: #75cfd1 !important;
  color: #fff !important;
}

/* Fix menu item backgrounds */
.menu-item a,
.menu-link {
  background-color: transparent !important;
}

.menu-item.current a,
.menu-item:hover a {
  background-color: transparent !important;
}

/* Team Member Names - All Black */
.team-title h4 {
  color: #000000 !important;
  font-size: 16px;
}

.team-title span {
  color: #000000 !important;
}

.team-desc,
.team-desc * {
  color: #000000 !important;
}
.team-title {
  padding-top: 0 !important;
}

/* Feature Box Borders on Hover */
.fbox-border:hover {
  border-color: #75cfd1 !important;
}

/* Statistics Icons */
.fbox-outline .fbox-icon i {
  color: #75cfd1;
}

/* Primary Menu Active Item */
.primary-menu ul li.current > a,
.primary-menu ul li:hover > a {
  color: #75cfd1 !important;
  background-color: transparent !important;
}

.primary-menu ul li.current > a div,
.primary-menu ul li:hover > a div {
  color: #75cfd1 !important;
}

/* Footer Big Contacts */
.footer-big-contacts span {
  color: #75cfd1;
}

/* Alert Info */
.alert-info {
  background-color: #d4f4ed;
  border-color: #75cfd1;
  color: #5bb5b8;
}

/* Team Images - Larger Size */
.team-image {
  height: 200px;
  @media (max-width: 768px) {
    height: 150px;
  }
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto;
}

.team-image img {
  /* width: 100%;
  height: 210px; */
  object-fit: fill;
  @media (max-width: 768px) {
    height: 135px;
  }
}

/* Logo - Larger Size */
#logo img.logo-default {
  max-height: 160px !important;
  width: auto !important;
  height: 60px !important;
}

/* Google Maps iframe - Remove padding-top */
iframe[src*="google.com/maps"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: block !important;
  position: relative !important;
}

/* Remove padding-top from map container */
.mt-4 iframe[src*="google.com/maps"],
div:has(iframe[src*="google.com/maps"]),
.col-lg-6 .mt-4:has(iframe[src*="google.com/maps"]) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding: 0 !important;
}

/* Specific selector for the map container */
.col-lg-6 > .mt-4:has(iframe[src*="google.com/maps"]) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
}

/* Override any aspect ratio padding */
.col-lg-6 > .mt-4:has(iframe[src*="google.com/maps"])::before,
.col-lg-6 > .mt-4:has(iframe[src*="google.com/maps"])::after {
  display: none !important;
  content: none !important;
  padding: 0 !important;
}

/* Fluid width video wrapper - Remove padding-top and set height */
.fluid-width-video-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding: 0 !important;
  height: 573px !important;
  position: relative !important;
}

.fluid-width-video-wrapper::before {
  display: none !important;
  content: none !important;
  padding: 0 !important;
}

.fluid-width-video-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Contact section - Reduced spacing between columns */
#section-contact .row.col-mb-50 > .col-lg-6:first-child {
  padding-right: 1.5rem;
}

#section-contact .row.col-mb-50 > .col-lg-6:last-child {
  padding-left: 1.5rem;
}

/* Team carousel - Center text below image */
#oc-team-list .team {
  text-align: center;
}

#oc-team-list .team-desc {
  text-align: center;
}

#oc-team-list .team-title {
  text-align: center;
  margin-top: 10px;
}

/* WhatsApp Floating Button - Bottom left of screen */
.contact-us-whatsapp {
  position: fixed;
  left: 30px;
  bottom: 20px; /* At the very bottom */
  width: 70px;
  height: 70px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #ffffff;
}

.contact-us-whatsapp i {
  font-size: 40px;
  line-height: 1;
  color: #ffffff;
}

.contact-us-whatsapp:hover {
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
  color: #ffffff;
  text-decoration: none;
}

.contact-us-whatsapp:hover i {
  color: #ffffff;
}

@media (max-width: 768px) {
  .contact-us-whatsapp {
    left: 20px;
    bottom: 20px; /* At the very bottom in mobile too */
    width: 65px;
    height: 65px;
  }

  .contact-us-whatsapp i {
    font-size: 36px;
  }

  .contact-us-whatsapp:hover {
    transform: scale(1.1);
  }
}

/* GoToTop Button - Bottom right of screen, aligned center with WhatsApp */
#gotoTop {
  bottom: 35px !important; /* Aligned center with WhatsApp (WhatsApp: 20px + 35px center = 55px, GoToTop: 35px + 20px center = 55px) */
  right: 30px !important;
}

@media (max-width: 768px) {
  #gotoTop {
    bottom: 32.5px !important; /* Aligned center with WhatsApp in mobile (WhatsApp: 20px + 32.5px center = 52.5px, GoToTop: 32.5px + 20px center = 52.5px) */
    right: 20px !important;
  }
}

/* "Reservar Turno" Button in Header */
.header-reservar-turno {
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.btn-reservar-turno-header {
  padding: 10px 20px;
  background-color: #5bb5b8;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(91, 181, 184, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.btn-reservar-turno-header:hover {
  background-color: #4da5a8;
  box-shadow: 0 4px 12px rgba(91, 181, 184, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

/* Desktop: Button after menu */
@media (min-width: 992px) {
  .header-reservar-turno {
    margin-left: auto;
    order: 3;
  }
}

/* Mobile: Button between logo and hamburger */
@media (max-width: 991px) {
  .header-reservar-turno {
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    order: 2;
  }

  .primary-menu-trigger {
    order: 3;
  }

  .primary-menu {
    order: 4;
  }

  .btn-reservar-turno-header {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Contact Section - More compact spacing */
#section-contact .row.col-mb-50 {
  margin-bottom: 1.5rem !important;
}

#section-contact .fbox-plain {
  margin-bottom: 1rem !important;
}

/* Contact Section - Spacing between items */
.contact-info-row > .contact-item {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.contact-info-row > .contact-item:first-child {
  padding-left: 0;
  padding-right: 1.25rem;
}

.contact-info-row > .contact-item:nth-child(3) {
  padding-left: 2rem;
  padding-right: 1.25rem;
}

.contact-info-row > .contact-item:last-child {
  padding-right: 0;
  padding-left: 2rem;
}

@media (max-width: 991px) {
  .contact-info-row > .contact-item {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-info-row > .contact-item:first-child {
    padding-left: 0;
    padding-right: 0.5rem;
  }

  .contact-info-row > .contact-item:nth-child(3) {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .contact-info-row > .contact-item:last-child {
    padding-right: 0;
    padding-left: 0.5rem;
  }
}

/* Mobile specific styles - Stack all items vertically */
@media (max-width: 768px) {
  .contact-info-row {
    flex-direction: column;
  }

  .contact-info-row > .contact-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .contact-info-row > .contact-item:first-child,
  .contact-info-row > .contact-item:nth-child(2),
  .contact-info-row > .contact-item:nth-child(3),
  .contact-info-row > .contact-item:nth-child(4),
  .contact-info-row > .contact-item:last-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .social-media-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;
    margin-top: 15px;
  }

  #section-contact .fbox-plain {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Center social media item in mobile */
  #section-contact .fbox-plain.social-media-item {
    align-items: center;
    text-align: center;
  }

  #section-contact .fbox-plain.social-media-item .fbox-content {
    justify-content: center;
    align-items: center;
  }

  #section-contact .fbox-plain .fbox-icon {
    margin-bottom: 0.5rem;
  }

  #section-contact .fbox-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
  }

  #section-contact .fbox-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
  }
}

/* Contact Icons - All outline style, green color */
#section-contact .fbox-icon i {
  color: #75cfd1;
}

/* Add margin-left to social media wrapper - single row, aligned with text */
.social-media-wrapper {
  margin-left: 0;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  line-height: 1.5;
}

/* Ensure social media section aligns with other contact items */
#section-contact .fbox-plain.social-media-item {
  align-items: center; /* Center align icon and content vertically */
}

#section-contact .fbox-plain.social-media-item .fbox-icon {
  display: flex;
  align-items: center;
  padding-top: 0;
  height: auto;
}

#section-contact .fbox-plain.social-media-item .fbox-icon i {
  line-height: 1;
}

#section-contact .fbox-plain.social-media-item .fbox-content {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-left: 1rem !important; /* Add spacing like other contact items */
  line-height: 1.5; /* Match line-height of text in other items */
}

/* Align social media icons with icon center */
#section-contact .fbox-plain.social-media-item .social-media-wrapper {
  margin-top: 0;
  padding-top: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

#section-contact .fbox-icon a {
  text-decoration: none;
}

#section-contact .fbox-icon a:hover i {
  color: #5bb5b8;
}

/* Contact Links - Grey color like address, not green */
#section-contact .fbox-content .contact-link {
  color: #666 !important;
  text-decoration: none;
}

#section-contact .fbox-content .contact-link:hover {
  color: #75cfd1 !important;
  text-decoration: underline;
}

/* Regular text (address) stays grey */
#section-contact .fbox-content p {
  color: #666;
}

/* Reduce spacing between icon and text in contact section */
#section-contact .fbox-plain .fbox-icon {
  margin-bottom: 0.15rem !important;
}

/* Reduce spacing between map and contact info */
#section-contact .row:last-child {
  margin-top: 0.5rem !important;
}

/* Make opening hours section more compact */
.opening-table {
  padding: 1.5rem !important;
}

.opening-table .heading-block {
  margin-bottom: 1rem !important;
}

.opening-table .heading-block h4 {
  margin-bottom: 0.5rem !important;
}

.time-table-wrap .time-table {
  margin-bottom: 0.5rem !important;
  padding: 0.25rem 0 !important;
}

.time-table-wrap .time-table h5 {
  margin-bottom: 0 !important;
  font-size: 0.95rem !important;
}

.time-table-wrap .time-table span {
  font-size: 0.95rem !important;
}

/* Remove padding from fbox-content in contact section */
#section-contact .fbox-plain .fbox-content {
  padding: 0 !important;
}

/* Prevent phone numbers from breaking into two lines */
.contact-phone {
  white-space: nowrap;
  display: inline-block;
}

/* Bring social media icons closer to other contact items */
.contact-info-row > .contact-item:last-child {
  padding-left: 0.5rem !important;
}
