/* Shared top nav — matches homepage C² Tides brand bar on every public page */
:root {
  --c2-topbar-navy: #06284A;
  --c2-topbar-teal: #29A9B7;
  --c2-topbar-coral: #F47721;
  --c2-topbar-ivory: #FAF8F3;
}

.c2-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  color: var(--c2-topbar-navy);
  background: rgba(250, 248, 243, 0.97);
  border-bottom: 1px solid rgba(6, 40, 74, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.c2-topbar .c2-navbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 5%;
}

.c2-topbar .c2-brand {
  color: inherit;
  text-decoration: none;
}

.c2-topbar .c2-brand-logo,
.c2-brand .c2-brand-logo {
  display: block;
  height: 68px !important;
  width: auto !important;
  max-width: min(240px, 58vw) !important;
  object-fit: contain !important;
  background: transparent;
}

.c2-topbar .c2-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.c2-topbar .c2-brand-name span {
  color: var(--c2-topbar-coral);
  font-size: 0.55em;
}

.c2-topbar .c2-brand-name em {
  font-weight: 400;
}

.c2-topbar .c2-logo-waves {
  display: grid;
  gap: 3px;
  width: min(190px, 42vw);
  margin-top: 10px;
}

.c2-topbar .c2-logo-waves i {
  display: block;
  height: 3px;
  border-radius: 100%;
  background: var(--c2-topbar-teal);
  transform: skewX(-22deg);
}

.c2-topbar .c2-logo-waves i:last-child {
  width: 82%;
  margin-left: auto;
}

.c2-topbar .c2-brand-subtitle {
  margin-top: 13px;
  color: var(--c2-topbar-teal);
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.c2-topbar .c2-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 52px);
  flex-wrap: wrap;
}

.c2-topbar .c2-nav-links a {
  position: relative;
  padding: 15px 0;
  color: var(--c2-topbar-navy);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Outfit, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.c2-topbar .c2-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--c2-topbar-teal);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.c2-topbar .c2-nav-links a:hover::after,
.c2-topbar .c2-nav-links a.active::after {
  transform: scaleX(1);
}

.c2-topbar .c2-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.c2-topbar .c2-icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--c2-topbar-navy);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.c2-topbar .c2-icon-button svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.c2-topbar .c2-menu-toggle {
  display: none;
}

.c2-topbar .c2-cart > span {
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--c2-topbar-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .c2-topbar .c2-navbar {
    gap: 18px;
  }

  .c2-topbar .c2-nav-links {
    gap: 18px;
  }

  .c2-topbar .c2-nav-links a {
    font-size: 12px;
    padding: 12px 0;
  }
}

@media (max-width: 850px) {
  .c2-topbar .c2-navbar {
    grid-template-columns: 1fr auto;
    padding: 6px 4%;
  }

  .c2-topbar .c2-nav-links {
    display: none;
  }

  .c2-topbar .c2-menu-toggle {
    display: grid;
  }

  .c2-topbar .c2-brand-logo,
  .c2-brand .c2-brand-logo {
    height: 52px !important;
    max-width: min(180px, 58vw) !important;
  }

  .c2-topbar .c2-brand-subtitle {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .c2-topbar .c2-icon-button,
  .c2-topbar .c2-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
}
