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

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
}

/* --- MODIFICATION STARTS HERE --- */
/* Apply dynamic font sizing to the body on smaller screens */
@media (max-width: 768px) {
    body {
        /* clamp(MIN, PREFERRED, MAX) */
        /* Font will be at least 14px, at most 18px, and try to be 3.5% of the viewport width */
        font-size: clamp(14px, 3.5vw, 18px);
    }
    /* Adjust heading sizes on mobile for better readability */
    h1, h2, h3 {
        word-wrap: break-word; /* Prevent long words from overflowing */
    }
}
/* --- MODIFICATION ENDS HERE --- */

/* Custom scrollbar for better aesthetics on desktop */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 9999px;
    border: 3px solid #f1f5f9;
}

/* Style for navigation buttons */
.btn-nav {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition-property: background-color, box-shadow;
    transition-duration: 300ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.scroll-target {
    scroll-margin-top: 15rem; /* Adjust this value to control scroll position */
}

@media (min-width: 1024px) { /* Changed from 640px to 1024px for better responsive break */
    .btn-nav {
        font-size: 0.875rem;
    }
    .star-rating .star {
        font-size: 1.2em; /* Adjust star size if needed */
        line-height: 1;
        margin-right: 1px;
    }
    .star-gold { color: #f59e0b; } /* Amber-500 from Tailwind */
    .star-red { color: #ef4444; } /* Red-500 from Tailwind */
    .star-silver { color: #9ca3af; } /* Gray-400 from Tailwind */
}



/* Enable smooth touch scrolling in the full-screen mobile overlay */
#mobile-menu { -webkit-overflow-scrolling: touch; }


/* Hide overlay scrollbars to avoid right-side line, keep content scrollable */
#mobile-menu,
#mobile-nav-list {
  -ms-overflow-style: none;      /* IE/Edge */
  scrollbar-width: none;         /* Firefox */
}
#mobile-menu::-webkit-scrollbar,
#mobile-nav-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}



/* Mobile overlay menu: centered column and white buttons */
#mobile-menu #mobile-nav-list {
  max-width: 22rem;        /* ~352px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
#mobile-menu .btn-nav {
  display: block;
  width: 100%;
  background-color: #ffffff !important;
  color: #111827 !important; /* slate-900 */
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
#mobile-menu .btn-nav:hover {
  background-color: #ffffff !important;
  opacity: 0.92;
}
/* If any nav bar elements appear inside the mobile overlay, hide them */
#mobile-menu nav,
#mobile-menu .site-nav,
#mobile-menu .desktop-only {
  display: none !important;
}



/* Hide the header while the mobile menu overlay is open (prevents top bar peeking) */
@media (max-width: 1024px) {
  body.menu-open header,
  body.menu-open #site-header {
    display: none !important;
  }
}



/* Ensure the overlay's close button stays above all list items */
#mobile-menu #mobile-menu-close { z-index: 10; }



/* Hide translate widget when mobile overlay menu is open */
body.menu-open #translate-widget { display: none !important; }

/* Reduce/Hide Google default banner and gadget cruft */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; } /* undo banner's body top push */
.goog-logo-link { display: none !important; }
.goog-te-gadget { font-size: 0 !important; } /* hide default text label */



/* === Translate widget: force dark glass background across browsers === */
#translate-widget .tw-select {
  position: relative;
}
#translate-widget .tw-select::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;              /* matches rounded-xl */
  background: linear-gradient(135deg, rgba(79,70,229,0.35), rgba(124,58,237,0.35)); /* indigo/purple glass */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 0;
}
#translate-widget #custom-translate {
  position: relative;
  z-index: 1;
  background: transparent !important;   /* actual bg supplied by ::before */
  color: #fff;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-clip: padding-box;
}
#translate-widget #custom-translate::-ms-expand { display: none; } /* old IE */
#translate-widget .tw-select .fa-chevron-down { z-index: 2; }      /* keep chevron above */

