/* Shared public header — Material Icons nav */
:root {
  --red: #e31c1c;
  --dark: #111111;
  --white: #ffffff;
  --sched-orange-bright: #ff8f1f;
  --nav-orange: #ff8f1f;
  --announce-h: 40px;
  --nav-h: 80px;
  --nav-h-scrolled: 64px;
  --site-header-offset: calc(var(--announce-h) + var(--nav-h));
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.site-header-stack.no-announce {
  --announce-h: 0px;
  --site-header-offset: var(--nav-h);
}

.site-header-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-stack.announce-hidden {
  transform: translateY(calc(-1 * var(--announce-h)));
}

/* ─── Announce bar ─── */
.announce-bar {
  min-height: var(--announce-h);
  background: linear-gradient(90deg, #141414 0%, #1f1212 45%, #141414 100%);
  border-bottom: 1px solid rgba(227, 28, 28, 0.4);
}

.announce-bar-inner {
  max-width: 1320px;
  min-height: var(--announce-h);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.announce-bar-inner:has(.announce-text) {
  justify-content: space-between;
}

.announce-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
  unicode-bidi: plaintext;
}

.announce-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.announce-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 4px 0;
}

.announce-phone:hover {
  color: var(--nav-orange);
  text-decoration: none;
}

.announce-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(227, 28, 28, 0.22);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.announce-phone:hover .announce-phone-icon {
  background: var(--red);
  transform: translateY(-1px);
}

.announce-phone-label { line-height: 1; }

.announce-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.announce-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.announce-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.announce-social-link:hover {
  background: var(--red);
  transform: translateY(-1px);
  text-decoration: none;
}

.announce-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.announce-icon--phone { width: 15px; height: 15px; }
.announce-icon--fill { fill: currentColor; stroke: none; }

/* ─── Main nav bar ─── */
nav.site-nav {
  position: relative;
  padding: 0 24px;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: height 0.35s ease, box-shadow 0.35s ease;
}

.site-header-stack.scrolled nav.site-nav {
  height: var(--nav-h-scrolled);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

nav.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--red) 0%, #ff5c5c 40%, rgba(227, 28, 28, 0.12) 75%, transparent 100%);
}

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-left { justify-self: start; min-width: 0; }
.nav-right { justify-self: end; flex-wrap: wrap; justify-content: flex-end; }

.nav-mobile-only {
  display: none !important;
}

.nav-desktop-only.nav-links--primary {
  display: flex;
}

.nav-desktop-only.nav-member {
  display: inline-flex;
}

.nav-desktop-only.btn-pricing {
  display: inline-block;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  justify-self: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: height 0.35s ease, transform 0.25s ease;
}

.site-header-stack.scrolled .nav-logo img { height: 42px; }
.nav-logo:hover img { transform: scale(1.04); }

/* Desktop text links */
.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: rgba(17, 17, 17, 0.65);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--dark); }
.nav-links a.active::after { width: 100%; }

.nav-member {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-member a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.65);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-member a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-member a:hover { color: var(--dark); }
.nav-member a:hover::after { width: 100%; }
.nav-member a.active { color: var(--dark); }
.nav-member a.active::after { width: 100%; }

.nav-cta-link { color: var(--nav-orange) !important; }
.nav-cta-link::after { background: var(--nav-orange) !important; }

.btn-pricing {
  background: var(--red);
  color: var(--white);
  padding: 12px 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  white-space: nowrap;
}

.btn-pricing:hover {
  background: #c0160f;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

/* Icon buttons (hamburger + account) */
.nav-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-icon-btn .material-icons-outlined {
  font-size: 28px;
}

.nav-icon-btn:hover,
.nav-icon-btn:focus-visible {
  background: var(--nav-orange);
  color: var(--dark);
  outline: none;
}

.nav-icon-btn:active {
  background: #f57c00;
  transform: scale(0.96);
}

/* Hamburger — 3 black lines, orange bg on hover/active */
.nav-hamburger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.nav-hamburger-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.nav-hamburger-lines span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
  transform-origin: center;
}

.nav-hamburger:hover,
.nav-hamburger:focus-visible,
.nav-hamburger.open {
  background: var(--nav-orange);
  outline: none;
}

.nav-hamburger:active {
  background: #f57c00;
}

.nav-hamburger.open .nav-hamburger-lines span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.open .nav-hamburger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open .nav-hamburger-lines span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Account dropdown */
.nav-account {
  position: relative;
}

.nav-account-btn.is-open,
.nav-account.is-open .nav-account-btn {
  background: var(--nav-orange);
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-account-dropdown[hidden] {
  display: block;
}

.nav-account.is-open .nav-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(17, 17, 17, 0.85);
  transition: background 0.15s, color 0.15s;
}

.nav-account-item .material-icons-outlined {
  font-size: 22px;
  color: rgba(17, 17, 17, 0.5);
}

.nav-account-item:hover {
  background: #fafafa;
  color: var(--dark);
  text-decoration: none;
}

.nav-account-item:hover .material-icons-outlined {
  color: var(--red);
}

.nav-account-item--cta {
  color: var(--nav-orange);
}

.nav-account-item--cta .material-icons-outlined {
  color: var(--nav-orange);
}

.nav-account-item--danger {
  color: var(--red);
  border-top: 1px solid #eee;
  margin-top: 4px;
  padding-top: 14px;
}

.nav-account-item--danger .material-icons-outlined {
  color: var(--red);
}

/* ─── Mobile drawer (Material Icons list) ─── */
body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .site-header-stack {
  z-index: 1002;
}

.mobile-menu {
  position: fixed;
  top: var(--site-header-offset, 72px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: none;
  pointer-events: none;
  overflow: hidden;
}

.mobile-menu.open,
.mobile-menu.is-closing {
  display: block;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  max-width: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e8e8e8;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.77, 0, 0.18, 1);
  padding: 0 0 env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  will-change: transform;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 12px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.mobile-menu-link .material-icons-outlined:first-child {
  font-size: 24px;
  color: rgba(17, 17, 17, 0.45);
  flex-shrink: 0;
}

.mobile-menu-link-label {
  flex: 1;
  min-width: 0;
}

.mobile-menu-link-chevron {
  font-size: 20px !important;
  color: rgba(17, 17, 17, 0.2) !important;
  transition: transform 0.2s, color 0.2s;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  background: rgba(255, 143, 31, 0.12);
  padding-left: 24px;
  outline: none;
}

.mobile-menu-link:hover .material-icons-outlined:first-child,
.mobile-menu-link.active .material-icons-outlined:first-child {
  color: var(--nav-orange);
}

.mobile-menu-link:hover .mobile-menu-link-chevron {
  color: var(--nav-orange) !important;
  transform: translateX(3px);
}

.mobile-menu-link.active {
  background: rgba(255, 143, 31, 0.18);
  color: var(--dark);
}

.mobile-menu-foot {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.mobile-menu-cta:hover {
  background: #c0160f;
  color: var(--white);
  text-decoration: none;
}

.mobile-menu-cta .material-icons-outlined {
  font-size: 22px;
}

.mobile-menu-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
}

.mobile-menu-phone:hover {
  color: var(--red);
  text-decoration: none;
}

.mobile-menu-phone .material-icons-outlined {
  font-size: 18px;
}

/* ─── Responsive: mobile nav (hamburger + account icon) ─── */
@media (max-width: 1024px) {
  nav.site-nav { padding: 0 12px; }

  .nav-bar {
    grid-template-columns: 48px 1fr 48px;
    gap: 10px;
  }

  .nav-left { min-width: 44px; gap: 0; }
  .nav-right { min-width: 44px; gap: 0; }

  .nav-desktop-only {
    display: none !important;
  }

  .nav-mobile-only.nav-hamburger {
    display: inline-flex !important;
  }

  .nav-mobile-only.nav-account {
    display: block !important;
  }

  .nav-logo {
    max-width: calc(100% - 120px);
    margin: 0 auto;
  }

  .nav-logo img {
    height: 44px;
    max-width: min(180px, 42vw);
  }

  .site-header-stack.scrolled .nav-logo img { height: 38px; }

  .announce-bar-inner {
    padding: 8px 14px;
    gap: 8px 12px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: var(--announce-h);
    height: auto;
  }

  .announce-bar-inner:has(.announce-text) {
    justify-content: center;
  }

  .announce-text {
    width: 100%;
    flex: 1 1 100%;
    text-align: center;
    font-size: 11px;
    white-space: normal;
    line-height: 1.35;
    overflow: visible;
    text-overflow: unset;
  }

  .announce-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .announce-divider { display: none; }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; }
  .nav-member { gap: 12px; }
  .nav-member a { font-size: 11px; }
  nav.site-nav { padding: 0 20px; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --nav-h-scrolled: 52px;
    --announce-h: 40px;
  }

  .announce-text {
    display: none !important;
  }

  .announce-bar-inner {
    flex-wrap: nowrap;
    justify-content: center;
    padding: 6px 12px;
    min-height: var(--announce-h);
  }

  .announce-actions {
    width: auto;
    flex-wrap: nowrap;
  }

  .nav-logo img {
    height: 40px;
    max-width: min(160px, 48vw);
  }

  .site-header-stack.scrolled .nav-logo img { height: 34px; }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 56px;
    --nav-h-scrolled: 50px;
    --announce-h: 40px;
  }

  nav.site-nav { padding: 0 10px; }
  .nav-bar { grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .nav-logo img { height: 34px; max-width: 130px; }
  .announce-bar-inner { padding: 6px 10px; }
}

@media (max-width: 360px) {
  .nav-logo img { height: 30px; max-width: 110px; }
}
