/* Shared site styles: Material Symbols FOUC / layout-shift guard */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  /* Box to 1em so fallback ligature text cannot widen the layout.
     line-height must beat Tailwind text-* utilities or the glyph clips low. */
  line-height: 1 !important;
  width: 1em;
  height: 1em;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  speak: never;
}

/* Hide text glyphs until the icon font is ready (pairs with font-display: block) */
html:not(.ms-icons-ready) .material-symbols-outlined {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

html.ms-icons-ready .material-symbols-outlined {
  -webkit-text-fill-color: currentColor;
  overflow: visible;
}

/* Glyph sits high in the em box next to label text */
a.inline-flex > .material-symbols-outlined,
button.inline-flex > .material-symbols-outlined {
  position: relative;
  top: 0.08em;
}

/* Scroll to top — shown after halfway down the page */
.scroll-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #E5E9EF;
  border-radius: 0.125rem;
  background: #183653;
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 29, 43, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.scroll-to-top[hidden] {
  display: none !important;
}

.scroll-to-top:hover {
  background: #11263B;
}

.scroll-to-top:focus-visible {
  outline: 2px solid #D5B77E;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: none;
  }
}

/* Announcement bar — avoid cramped dual-column wrap on narrow screens */
.site-announce__msg {
  display: none;
}

@media (min-width: 480px) {
  .site-announce__msg {
    display: inline;
  }
}

.site-announce__cta {
  margin-left: auto;
}

@media (max-width: 479px) {
  .site-announce__cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav:not([hidden]) {
  display: block;
}

/* Shared chrome — navy rule + gold edge on every page load */
.site-header {
  border-bottom: 2px solid #183653;
  box-shadow: 0 3px 0 #D5B77E;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-logo:focus-visible {
  outline: 2px solid #183653;
  outline-offset: 3px;
}

.site-logo__mark {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.site-logo__words {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.site-logo__name {
  color: #183653;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo__tag {
  color: #8E723D;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .site-header .site-logo__tag {
    display: none;
  }
}

/* Inner page title bar — same navy and gold as the homepage hero */
.page-titlebar {
  max-width: none !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #183653 !important;
  border-bottom: 3px solid #D5B77E !important;
  color: #e7eef6;
  padding-left: max(1.5rem, calc((100% - 80rem) / 2 + 4rem)) !important;
  padding-right: max(1.5rem, calc((100% - 80rem) / 2 + 4rem)) !important;
}

.page-titlebar h1,
.page-titlebar .text-primary,
.page-titlebar .text-primary-container {
  color: #fff !important;
}

.page-titlebar p,
.page-titlebar .text-on-surface-variant,
.page-titlebar .text-secondary,
.page-titlebar .text-outline,
.page-titlebar .text-slate-400,
.page-titlebar .text-slate-500,
.page-titlebar .text-slate-600,
.page-titlebar .text-slate-700,
.page-titlebar .text-slate-900,
.page-titlebar nav {
  color: #e7eef6 !important;
}

.page-titlebar a {
  color: #D5B77E;
}

.page-titlebar a:hover {
  color: #fff;
}

.page-titlebar :is(.bg-surface-container, .bg-surface-container-low, .bg-surface-container-lowest, [class*="bg-[#F7F8FA]"], [class*="bg-[#D5B77E]"]),
.page-titlebar :is(.bg-surface-container, .bg-surface-container-low, .bg-surface-container-lowest, [class*="bg-[#F7F8FA]"], [class*="bg-[#D5B77E]"]) :is(span, strong, code, .text-primary, .text-primary-container, .text-secondary, .text-on-surface, .text-on-surface-variant, .text-outline, .text-\[\#8E723D\], .text-slate-500, .text-slate-600, .text-slate-700, .text-slate-900) {
  color: #111 !important;
}

.prefooter-cta {
  background:
    radial-gradient(ellipse 40% 120% at 100% 50%, rgba(213, 183, 126, 0.16), transparent 55%),
    #183653;
}

.banner-mark {
  position: absolute;
  right: -0.35rem;
  bottom: -1.1rem;
  font-size: 10rem;
  color: rgba(213, 183, 126, 0.18);
  pointer-events: none;
  transition: transform 0.45s ease, color 0.45s ease;
}

.banner-mark--lg {
  font-size: 14rem;
  right: -1.5rem;
  bottom: -2.2rem;
}

.group:hover .banner-mark {
  transform: translate(-10px, -8px) rotate(-8deg);
  color: rgba(213, 183, 126, 0.38);
}

.pathway-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #183653;
  opacity: 0.08;
  transform: translate(2rem, 2rem);
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.group:hover .pathway-mark {
  opacity: 0.2;
  transform: translate(0.4rem, 0.2rem) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .banner-mark,
  .group:hover .banner-mark,
  .pathway-mark,
  .group:hover .pathway-mark {
    transition: none;
    transform: none;
  }
}

.prefooter-cta__primary:focus-visible,
.prefooter-cta__secondary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Homepage — inverted navy hero */
.home-hero {
  position: relative;
  border-bottom-color: #12283d;
  background:
    radial-gradient(ellipse 55% 70% at 88% 45%, rgba(213, 183, 126, 0.16), transparent 52%),
    radial-gradient(ellipse 40% 50% at 8% 0%, rgba(255, 255, 255, 0.06), transparent 50%),
    #183653;
}

.home-hero__stage {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(213, 183, 126, 0.2), transparent 48%),
    #f4f6f8;
  border: 1px solid rgba(213, 183, 126, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.home-hero__stage::before,
.home-hero__stage::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #D5B77E;
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.home-hero__stage::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.home-hero__stage::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 2px 2px 0;
}

.home-hero__stage img {
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3));
}

.home-hero__metrics {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(213, 183, 126, 0.35);
}

.home-trust {
  background: #fff;
  box-shadow: inset 0 3px 0 #D5B77E;
}

.home-trust__item {
  min-width: 0;
  padding: 0.35rem 1.25rem;
}

.home-trust__item + .home-trust__item {
  border-top: 1px solid #E5E9EF;
}

@media (min-width: 640px) {
  .home-trust__item + .home-trust__item {
    border-top: 0;
  }

  .home-trust__item:nth-child(odd) {
    border-right: 1px solid #E5E9EF;
  }
}

@media (min-width: 1024px) {
  .home-trust__item {
    border-right: 1px solid #E5E9EF;
  }

  .home-trust__item:nth-child(odd) {
    border-right: 1px solid #E5E9EF;
  }

  .home-trust__item:last-child {
    border-right: 0;
  }
}

.home-trust__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #F7F8FA;
  border: 1px solid #E5E9EF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #183653;
}

.home-hero a:focus-visible {
  outline: 2px solid #D5B77E;
  outline-offset: 3px;
}

.home-hero__pill {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(229, 233, 239, 0.85);
  box-shadow: none;
}

.home-hero__cat {
  background: rgba(255, 255, 255, 0.72);
  color: #697586;
  border-color: rgba(229, 233, 239, 0.8);
}

/* Homepage — product cards */
.home-product-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(24, 54, 83, 0.08);
}

.home-add-bag {
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}

.home-add-bag:focus-visible {
  outline: 2px solid #D5B77E;
  outline-offset: 2px;
}

/* Homepage — brand navy hatch */
.home-brand-feature {
  background-color: #183653;
  background-image:
    linear-gradient(135deg, rgba(213, 183, 126, 0.06) 0%, transparent 42%),
    repeating-linear-gradient(
      -32deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.03) 11px,
      rgba(255, 255, 255, 0.03) 12px
    );
}

/* Homepage — taxonomy chips */
.home-chip {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.home-chip:active {
  transform: scale(0.98);
}

/* WOW / Animate — reduced motion + no-JS safety */
@media (prefers-reduced-motion: reduce) {
  .wow {
    visibility: visible !important;
    animation: none !important;
    -webkit-animation: none !important;
  }

  .home-product-card,
  .home-product-card:hover,
  .home-chip,
  .home-chip:active {
    transform: none;
    transition: none;
  }
}

