/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Outfit:wght@400;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4.5rem;

  /*========== Colors ==========*/
  /* Using CU Tours Inspired Palette */
  --first-color: #00a699;
  /* Emerald Teal */
  --first-color-alt: #008f84;
  --second-color: #ff6b35;
  /* Vibrant Orange */
  --second-color-alt: #f7931e;

  --title-color: #1a1c1e;
  --text-color: #6d7a7a;
  --text-color-light: #a5b1b1;
  --body-color: #ffffff;
  --container-color: #ffffff;

  /* Section Backgrounds */
  --bg-dark: #12141d;
  --bg-low-light: #f8fafc;
  --bg-white: #ffffff;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Outfit', sans-serif;

  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 300;

  /*========== Transitions ==========*/
  --transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  overflow-x: clip;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

.main {
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font-family: var(--body-font);
  outline: none;
  border: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 2.5rem 0 1.5rem;
}

@media screen and (min-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}

.section__container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media screen and (min-width: 1668px) {
  .section__container {
    max-width: 1600px;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--second-color);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* Section Backgrounds */
.section-white {
  background-color: var(--bg-white);
}

.section-low-light {
  background-color: var(--bg-low-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #fff;
}

.section-dark .section__title,
.section-dark .section__subtitle {
  color: #fff;
}

.section-dark .section__subtitle {
  color: var(--second-color);
}

/*=============== BUTTONS ===============*/
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  column-gap: .65rem;
  background: linear-gradient(135deg, var(--second-color) 0%, var(--second-color-alt) 100%);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 50px;
  font-weight: var(--font-semi-bold);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
  transition: var(--transition);
  cursor: pointer;
  will-change: transform;
  backface-visibility: hidden;
}

/* Hit-area extension: Prevents hover loss & flickering/vibration when translateY moves button up */
.button::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: auto;
  z-index: -1;
}

.button i {
  font-size: 1.2rem;
  transition: transform .3s ease;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
  }
}

.button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.button-link {
  background: none;
  border: 2px solid var(--second-color);
  color: var(--second-color);
  box-shadow: none;
}

@media (hover: hover) {
  .button-link:hover {
    background: var(--second-color);
    color: #fff;
  }
}

@media screen and (max-width: 768px) {
  .button {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/*=============== ANIMATIONS (SCROLL REVEAL) ===============*/
/* These will be handled via JS/ScrollReveal, but we set some baseline states if needed */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/*=============== GOOGLE TRANSLATE CUSTOM OVERRIDES ===============*/
body {
  top: 0 !important;
  position: static !important;
}

html, body {
  height: auto !important;
}

.goog-te-banner-frame,
.goog-te-banner,
.goog-te-balloon-frame,
.skiptranslate > iframe,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
}

/* Fix Google Translate altering layout spacing */
font {
  background-color: transparent !important;
  box-shadow: none !important;
}

/*=============== FLOATING CONTACT WIDGET ===============*/
.contact-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 400; /* Layered above the mobile bottom menu (which is 300) */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  pointer-events: none; /* Let clicks pass through empty spaces/collapsed area */
}

.contact-widget__toggle {
  position: relative; /* Anchor for absolute pseudo-elements */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--first-color); /* Emerald Teal */
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 166, 153, 0.4);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
  pointer-events: auto; /* Clickable */
}

.contact-widget__toggle i {
  font-size: 28px;
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.contact-widget__toggle .toggle-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}


.contact-widget__toggle:hover {
  transform: scale(1.08);
  background-color: var(--first-color-alt);
}

.contact-widget__toggle:active {
  transform: scale(0.95);
}

/* Expanded state for toggle */
.active-widget .contact-widget__toggle {
  background-color: var(--bg-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.active-widget .contact-widget__toggle .toggle-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.active-widget .contact-widget__toggle .toggle-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}


/* Option Menu Container */
.contact-widget__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

/* Menu items */
.contact-widget__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  text-decoration: none;
  pointer-events: none; /* Ignore clicks when hidden */
}

/* Hover effects for items */
.contact-widget__item:hover .contact-widget__icon-wrapper {
  transform: scale(1.08);
}

.contact-widget__item:hover .contact-widget__label {
  transform: translateX(-4px);
  opacity: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Icon circular wrapper */
.contact-widget__icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Labels */
.contact-widget__label {
  background-color: rgba(18, 20, 29, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

/* Specific Pill Styles */
.contact-widget__item.whatsapp .contact-widget__icon-wrapper {
  background-color: #25D366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.contact-widget__item.call .contact-widget__icon-wrapper {
  background-color: #007AFF; /* iOS/Call Blue */
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.contact-widget__item.email .contact-widget__icon-wrapper {
  background-color: #ea4335; /* Gmail Red */
  box-shadow: 0 6px 16px rgba(234, 67, 53, 0.3);
  border: none;
}

/* Active widget state showing items */
.active-widget .contact-widget__menu {
  pointer-events: auto;
}

.active-widget .contact-widget__item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* Clickable when visible */
}

/* Stagger animations for children on expand */
.active-widget .contact-widget__item:nth-child(1) {
  transition-delay: 0.15s;
}
.active-widget .contact-widget__item:nth-child(2) {
  transition-delay: 0.1s;
}
.active-widget .contact-widget__item:nth-child(3) {
  transition-delay: 0.05s;
}



/*=============== FLOATING LANGUAGE WIDGET ===============*/
.lang-widget {
  position: fixed;
  bottom: 6.5rem; /* Sits above contact-widget which is at bottom: 2rem */
  right: 2rem;
  z-index: 400; /* Same layer as contact-widget (400) so it naturally sits behind modals (2000) */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  pointer-events: none;
}

.lang-widget__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--second-color); /* Vibrant Orange */
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
  pointer-events: auto;
}

.lang-widget__toggle i {
  font-size: 28px;
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.lang-widget__toggle .toggle-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.lang-widget__toggle:hover {
  transform: scale(1.08);
  background-color: var(--second-color-alt); /* Light Orange */
}

.lang-widget__toggle:active {
  transform: scale(0.95);
}

.active-lang .lang-widget__toggle {
  background-color: var(--bg-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.active-lang .lang-widget__toggle .toggle-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.active-lang .lang-widget__toggle .toggle-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.lang-widget__menu {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(18, 20, 29, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 0.75rem;
  width: 160px;
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100000;
}

.active-lang .lang-widget__menu,
.lang-widget.active-lang .lang-widget__menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
  display: flex !important;
}

.lang-widget__item {
  background: transparent;
  border: none;
  color: var(--text-color-light);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  display: block;
}

.lang-widget__item:hover {
  background: rgba(0, 166, 153, 0.15);
  color: #fff;
}

.lang-widget__item.active {
  background: var(--first-color);
  color: #fff;
}

@media screen and (max-width: 819.98px) {
  .contact-widget {
    bottom: 5.5rem;
    right: 1rem;
  }
  .contact-widget__toggle {
    width: 46px;
    height: 46px;
  }
  .contact-widget__toggle i {
    font-size: 22px;
  }
  .lang-widget {
    bottom: 9rem;
    right: 1rem;
  }
  .lang-widget__toggle {
    width: 46px;
    height: 46px;
  }
  .lang-widget__toggle i {
    font-size: 22px;
  }
}

/* Smooth transitions for the language selector widget container */
.lang-widget {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

/* Hide language widget when contact widget is expanded to prevent overlapping */
.contact-widget.active-widget ~ .lang-widget {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.8) !important;
  visibility: hidden;
}

