/* =========================================================
   HEADER THEME: GCEEC logo palette
   Loads last. Overrides header.css, office-switcher.css,
   and header-buttons.css.
   ========================================================= */

:root {
  /* Logo palette (estimated from the logo, adjust if needed) */
  --gc-green: #16a34a;        /* bright logo green */
  --gc-green-deep: #15803d;   /* hover and pressed state */
  --gc-ink: #0f2e1f;          /* deep green-black, used for text */
  --gc-text: #334155;         /* nav link text */
  --gc-mist: #f4f9f5;         /* hover background */
  --gc-line: #dde8df;         /* borders */

  --gc-h: 44px;               /* one height for every control */
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--gc-line);
  min-height: 84px;
}

.navbar::after {
  background: linear-gradient(90deg, var(--gc-green), var(--gc-green-deep));
  opacity: 0.85;
}

.nav-dropdown-label,
.nav-contact-link {
  color: var(--gc-text);
  font-weight: 500;
}

.nav-dropdown-toggle:hover .nav-dropdown-label,
.nav-contact-link:hover {
  color: var(--gc-green-deep);
}

.nav-dropdown-label::after,
.nav-contact-link::after {
  background: var(--gc-green);
}

/* ---------- Locale group: UAE + EN as one segmented pill ---------- */
.nav-locale {
  display: inline-flex;
  align-items: center;
  height: var(--gc-h);
  padding: 0 4px;
  border: 1px solid var(--gc-line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 46, 31, 0.05);
}

.nav-locale .office-switcher,
.nav-locale .lang-switcher {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* Divider between UAE and EN */
.nav-locale .office-switcher {
  padding-right: 4px;
  margin-right: 4px;
  position: relative;
}

.nav-locale .office-switcher::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--gc-line);
}

/* Shared button reset inside the group */
.nav-locale .office-toggle,
.nav-locale .lang-toggle {
  height: calc(var(--gc-h) - 8px);
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--gc-ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  gap: 7px;
  transform: none;
  animation: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-locale .office-toggle:hover,
.nav-locale .lang-toggle:hover {
  background: var(--gc-mist);
  color: var(--gc-green-deep);
  transform: none;
  box-shadow: none;
  border: 0;
}

.nav-locale .office-toggle:focus-visible,
.nav-locale .lang-toggle:focus-visible {
  outline: 2px solid var(--gc-green);
  outline-offset: 2px;
  box-shadow: none;
}

/* Icons: plain line icons in logo green */
.nav-locale .office-toggle > svg:first-child,
.nav-locale .lang-globe {
  width: 16px;
  height: 16px;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--gc-green);
  stroke-width: 1.8;
  animation: none;
  flex-shrink: 0;
}

.nav-locale .office-toggle > svg:last-child,
.nav-locale .lang-caret {
  width: 9px;
  height: 9px;
  opacity: 0.5;
}

.nav-locale .office-switcher.is-open .office-toggle > svg:last-child,
.nav-locale .lang-switcher.is-open .lang-caret {
  transform: rotate(180deg);
}

/* ---------- Book a Call: primary, logo green ---------- */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--gc-h);
  padding: 0 5px 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gc-green) 0%, var(--gc-green-deep) 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta-btn::before {
  content: none;
}

.nav-cta-btn::after {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") no-repeat center / 14px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-cta-btn:hover::after {
  transform: rotate(-6deg) scale(1.05);
  background-color: rgba(255, 255, 255, 0.3);
}

.nav-cta-btn:active {
  transform: translateY(0) scale(0.99);
}

.nav-cta-btn:focus-visible {
  outline: 2px solid var(--gc-green);
  outline-offset: 3px;
}

/* ---------- Dropdown menus: match the palette ---------- */
.office-menu,
.lang-menu {
  background: #ffffff;
  border: 1px solid var(--gc-line);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(15, 46, 31, 0.14);
}

.office-menu a,
.lang-menu .lang-option {
  color: var(--gc-ink);
}

.office-menu a:hover,
.lang-menu .lang-option:hover {
  background: var(--gc-mist);
  color: var(--gc-green-deep);
}

.office-menu a.is-current {
  background: var(--gc-green);
  color: #ffffff;
}

.office-menu a.is-current span {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.office-menu a span {
  background: var(--gc-mist);
  color: var(--gc-green-deep);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-cta-btn,
  .nav-cta-btn::after,
  .nav-locale .office-toggle,
  .nav-locale .lang-toggle {
    transition: none;
  }
}