/* ===== LAYOUT: Topbar, Header, Nav, Footer ===== */
/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 8px 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__left a, .topbar__right a {
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar__left a:hover, .topbar__right a:hover { color: var(--teal-light); }
.topbar__right { display: flex; gap: 14px; align-items: center; }
.topbar__right a { font-size: 14px; }
.sep { color: rgba(255,255,255,.3); }

/* Language toggle */
.lang-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  color: rgba(255,255,255,.45);
}
.lang-toggle__label {
  transition: color .3s ease;
  line-height: 1;
}
.lang-toggle__label.active { color: var(--white); }
.lang-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 30px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.3);
}
/* Flag emoji fills the track background */
.lang-flag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  line-height: 1;
  transition: opacity .3s ease;
}
.lang-flag--en { opacity: 1; }
.lang-flag--es { opacity: 0; }
.lang-toggle.es .lang-flag--en { opacity: 0; }
.lang-toggle.es .lang-flag--es { opacity: 1; }
/* White knob slides over the flag */
.lang-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
.lang-toggle.es .lang-toggle__knob { transform: translateX(18px); }

/* Hide Google Translate toolbar injected at top of page */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* Lang info tooltip */
.lang-wrap { display: flex; align-items: center; gap: 6px; }
.lang-info {
  position: relative;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}
.lang-info:hover { color: var(--teal-light); }
.lang-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  z-index: 999;
  pointer-events: none;
}
.lang-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--navy-dark);
  border-left: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
  transform: rotate(45deg);
}
.lang-info:hover .lang-tooltip { display: block; }

/* Translation disclaimer banner */
.lang-banner {
  background: rgba(2,132,199,.1);
  border-bottom: 1px solid rgba(2,132,199,.25);
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 24px;
  text-align: center;
  position: relative;
}
.lang-banner i.fa-language { color: var(--teal); margin-right: 6px; font-size: 14px; }
.lang-banner__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
}
.lang-banner__close:hover { color: var(--navy); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo { flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
.logo-text span { color: var(--teal); }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--teal); background: var(--gray-100); }

.nav__cta { margin-left: 8px; }

/* ===== DROPDOWN ===== */
.nav__item { position: relative; }
.nav__arrow { font-size: 10px; margin-left: 3px; transition: transform var(--transition); }
.nav__item--has-drop.open .nav__arrow { transform: rotate(180deg); }

.nav__toggle {
  display: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 8px;
  margin-left: 8px;
  line-height: 1;
}
.nav__toggle:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  pointer-events: none;
}
.nav__item--has-drop.open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown__link {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--gray-700);
  transition: all var(--transition);
}
.dropdown__link:hover,
.dropdown__link.active {
  background: var(--gray-100);
  color: var(--teal);
  padding-left: 24px;
}
.nav__link--active { color: var(--teal) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__logo { height: 48px; width: auto; margin-bottom: 16px;}
.footer__logo-text { display: block; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.footer__links h4,
.footer__contact h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--teal-light); }
.footer__contact p { font-size: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.footer__contact i { color: var(--teal-light); margin-top: 3px; flex-shrink: 0; }
.footer__contact a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__contact a:hover { color: var(--teal-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
