/* =====================================================================
   Dot shared site header + primary navigation.
   ONE source of truth for the global nav across every page. Load this AFTER
   the page's own stylesheet(s) so it wins. Brand-colour fallbacks are baked
   into each var() so the file also works on pages with a separate stylesheet.
   Mirrors the homepage header exactly (pills, green-bubble hover, hamburger
   at <=1100px, tagline hidden on desktop) plus the lime-glow hero gradient.
   ===================================================================== */

/* subtle lime glow into the deep-teal hero gradient (matches the homepage) */
:root {
  --dot-gradient-hero:
    radial-gradient(90% 120% at 88% 6%, rgba(215, 247, 91, 0.12) 0%, rgba(215, 247, 91, 0) 42%),
    radial-gradient(118% 130% at 84% 4%, rgba(31, 138, 112, 0.28) 0%, rgba(31, 138, 112, 0) 46%),
    radial-gradient(90% 120% at 6% 100%, rgba(20, 107, 95, 0.30) 0%, rgba(20, 107, 95, 0) 52%),
    linear-gradient(158deg, #0B3D36 0%, #0d453e 58%, #114e46 100%);
}

/* width constraint for the nav row (matches the site container; harmless where
   a page already defines an identical .container) */
.site-header .container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--dot-primary, #146B5F);
  color: var(--white, #ffffff);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 40;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 250, 245, 0.94);
  border-bottom: 1px solid var(--border, #D8E6DD);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 42px;
  border-radius: 14px;
  background: var(--dot-primary-dark, #0B3D36);
  color: var(--dot-highlight, #D7F75B);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.brand-tag { color: var(--muted, #566B63); font-size: 0.9rem; }

.nav-actions { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; }
/* Every nav item is a pill; base padding matches the hover state so the green
   bubble on hover never shifts the layout. nowrap keeps each item on one line. */
.nav-actions a {
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 15px;
  border-radius: 999px;
  line-height: 1.1;
  transition: background 0.15s ease, color 0.15s ease;
}
/* Green bubble highlight on hover / keyboard focus for all nav items */
.nav-actions a:hover,
.nav-actions a:focus-visible {
  background: var(--dot-primary, #146B5F);
  color: var(--white, #ffffff);
  outline: none;
}
/* The WhatsApp CTA keeps the bubble permanently, and darkens on hover */
.nav-cta { background: var(--dot-primary, #146B5F); color: var(--white, #ffffff); }
.nav-actions .nav-cta:hover,
.nav-actions .nav-cta:focus-visible { background: var(--dot-primary-dark, #0B3D36); color: var(--white, #ffffff); }

/* Mobile menu button - hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--dot-primary-dark, #0B3D36);
  color: var(--white, #ffffff);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--dot-highlight, #D7F75B); outline-offset: 3px; }
.nav-toggle-bar { display: none; }

/* On the horizontal desktop nav the tagline competes for space and forces the
   items to wrap. Hide it above the mobile-nav breakpoint (it still appears in
   the hero directly below and in the footer). Tablet/mobile keep it. */
@media (min-width: 1101px) {
  .brand-tag { display: none; }
}

@media (max-width: 1100px) {
  /* Mobile navigation (activates early so tablets/small laptops aren't crowded) */
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 12px;
    padding: 10px;
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #D8E6DD);
    border-radius: 18px;
    box-shadow: var(--shadow, 0 22px 60px rgba(11, 61, 54, 0.12));
  }
  .nav-actions.is-open { display: flex; }
  /* stacked full-width rows; the green-bubble hover from the base rules applies */
  .nav-actions a { padding: 13px 14px; border-radius: 12px; }
  .nav-cta { text-align: center; margin-top: 4px; }
}
