/* ═══════════════════════════════════════════════════════════════
   04 · HEADER
   Announcement bar · utility topbar · main header row · logo
   ═══════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  transition: box-shadow 0.3s var(--ease);
  /* GPU compositing prevents repaint flicker during sticky scroll */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

/* ╭─────────────────────────────────────────────────╮
   │ Announcement bar — stays visible (no collapse)  │
   │ Collapsing it on scroll caused visible layout   │
   │ shifts; we keep it static so the page is calm.  │
   ╰─────────────────────────────────────────────────╯ */
.announce {
  background: var(--navy-900);
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  position: relative;
}

.announce::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent, rgba(201, 158, 92, 0.08), transparent);
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

.announce__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 60px 11px var(--container-pad);
  text-align: center;
}
.announce__star { color: var(--gold-400); font-size: 11px; }
.announce__link {
  color: var(--gold-300);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.announce__link:hover { color: #fff; }

.announce__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.announce__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ╭─────────────────────────────────────────────────╮
   │ Utility topbar (stays visible on scroll —       │
   │ removed "Sustainable Projects" link)            │
   ╰─────────────────────────────────────────────────╯ */
.topbar {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
}

.topbar__trust {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Verified-shield trust badge */
.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}
.topbar__badge svg { color: var(--gold-600, #b8893f); flex-shrink: 0; }
/* Star rating chip */
.topbar__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
}
.topbar__rating strong { color: var(--navy-800); font-weight: 700; }
.topbar__stars { color: #f5a623; letter-spacing: 1px; font-size: 11px; }
/* Secure-booking trust pill (replaces the duplicate WhatsApp CTA) */
.topbar__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  background: rgba(24, 41, 64, 0.06);
  border: 1px solid rgba(24, 41, 64, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-pill, 50px);
}
.topbar__secure svg { color: #1d8a4e; flex-shrink: 0; }

.topbar__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar__links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.topbar__links a:hover { color: var(--navy-800); }

.topbar__sep {
  width: 1px;
  height: 12px;
  background: var(--line-2);
}

/* ─── Language switcher ─── */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 2px;
  transition: background 0.2s;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}
.lang__btn:hover           { background: rgba(0, 0, 0, 0.04); }
.lang__btn.is-active       { color: var(--navy-800); font-weight: 600; }

.lang__flag {
  display: inline-block;
  width: 18px;
  height: 13px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  vertical-align: -2px;
}
.flag-us { background-image: url('https://flagcdn.com/w40/us.png'); }
.flag-es { background-image: url('https://flagcdn.com/w40/es.png'); }
.flag-pt { background-image: url('https://flagcdn.com/w40/pt.png'); }
.flag-fr { background-image: url('https://flagcdn.com/w40/fr.png'); }

/* ╭─────────────────────────────────────────────────╮
   │ Main header row                                  │
   ╰─────────────────────────────────────────────────╯ */
.header__main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ╭─────────────────────────────────────────────────╮
   │ LOGO PLACEHOLDER                                 │
   │ Replace this block in HTML with your real logo  │
   ╰─────────────────────────────────────────────────╯ */
.logo-placeholder {
  width: 220px;
  height: 56px;
  border: 1.5px dashed var(--ink-faint);
  border-radius: 4px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-faint);
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 8px,
    rgba(0, 0, 0, 0.015) 8px,
    rgba(0, 0, 0, 0.015) 16px
  );
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-placeholder:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.logo-placeholder__txt {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}
.logo-placeholder__sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-top: 3px;
  opacity: 0.7;
}

/* ─── Real header logo (logo.png · native 256×144, 16:9) ───
   Sized by HEIGHT with width:auto so the native ratio is always
   preserved (no squashing) and it never overflows the header row.
   Intrinsic width/height attributes stay on the <img> for zero CLS. */
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo__img {
  height: 78px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 1024px) { .site-logo__img { height: 68px; } }
@media (max-width: 768px)  { .site-logo__img { height: 56px; } }
@media (max-width: 480px)  { .site-logo__img { height: 50px; } }

/* ─── Header center contact info ─── */
.header__center {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.contact-item__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-800);
  flex-shrink: 0;
}
.contact-item__label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-item__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  transition: color 0.2s;
  text-decoration: none;
}
a.contact-item__value:hover { color: var(--amber-500); }
.contact-item__value small  {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 12px;
  margin-left: 2px;
}

/* ─── Header right-side actions ─── */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── Mobile hamburger ─── */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--navy-800);
}

/* ─── Scroll Progress Bar (surprise · top of header) ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--amber-500), var(--gold-400));
  z-index: 10000;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(201,158,92,0.6);
}

/* topbar separator dot for the new conversion line */
/* topbar redesign: trust badge + rating + WhatsApp pill (see .topbar__trust) */

/* Topbar: graceful degradation on narrow desktops/tablets (visible 900px+) */
@media (max-width: 1080px) {
  .topbar__rating { display: none; }   /* keep badge + WhatsApp CTA, drop rating chip */
}
