/* MUNDP theme — light editorial minimalism.
   White ground, Apple system type, hairline detail, brand blue as the only accent.
   Loads after enhancements.css and overrides the Webflow palette. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;          /* quiet alternate sections */
  --ink: #1d1d1f;                /* primary text */
  --ink-2: #6e6e73;              /* secondary text */
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-soft: rgba(0, 0, 0, 0.05);
  --accent: #0356f0;             /* MUNDP interactive blue */
  --accent-deep: #0a1f4d;        /* MUNDP brand navy (darker) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- type: system font everywhere ---------- */
/* webflow-icons carries its own !important + higher specificity, so the
   hamburger glyph survives this. */
* {
  font-family: var(--font) !important;
}

body {
  background-color: var(--bg);
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4,
.heading, .heading-2, .heading-3,
.heading-large, .heading-xlarge, .heading-xxlarge {
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

/* fluid, confident display scale */
.heading-xxlarge {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.heading-xlarge {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.heading-large {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  line-height: 1.1;
}

.heading {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.027em;
}

p {
  text-wrap: pretty;
}

p,
.text-size-medium,
.paragraph-7,
.text-lineheight-tall {
  color: var(--ink-2);
  letter-spacing: -0.008em;
}

/* restore light type inside dark, image-backed contexts */
.background-color-black :is(h1, h2, h3, h4) {
  color: #f5f5f7;
}

.background-color-black :is(p, .text-size-medium, .text-lineheight-tall) {
  color: rgba(245, 245, 247, 0.78);
}

.text-color-white, .is-white, .white {
  color: #fff;
}

/* legibility for headings stacked over hero/callout/slideshow photos sitewide */
.background-color-black :is(h1, h2, h3, h4),
.heading.is-white, .heading-2.is-white, .heading-3.is-white,
.heading-large.is-white, .heading-xlarge.is-white, .heading-xxlarge.is-white,
.heading.text-color-white, .heading-2.text-color-white, .heading-3.text-color-white,
.heading-large.text-color-white, .heading-xlarge.text-color-white, .heading-xxlarge.text-color-white {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

/* slideshow arrows/dots sit flush with the section's bottom edge — add
   breathing room so they don't crowd whatever comes after */
.gallery20_component {
  padding-bottom: 3rem;
}

.heading-xlarge.grey {
  color: rgba(255, 255, 255, 0.55);
}

/* content links */
.main-wrapper p a:not(.w-button),
.main-wrapper .w-richtext a,
a[href^="mailto:"] {
  color: var(--accent) !important;
  text-decoration-color: rgba(3, 86, 240, 0.35);
  transition: text-decoration-color 0.25s ease;
}

a[href^="mailto:"]:hover {
  text-decoration-color: var(--accent);
}

/* ---------- section grounds ---------- */
.background-color-seashell      { background-color: var(--bg) !important; }
.background-color-antique-white { background-color: var(--bg-subtle) !important; }
.background-color-peach         { background-color: var(--bg-subtle) !important; }
.background-color-white         { background-color: var(--bg) !important; }

.section-hero { background-color: var(--bg); }
.section-hero.background-color-black { background-color: #0a0a0c; }
.section-our-services { background-color: var(--bg); }

/* ---------- stats: bold blue band, no boxes ---------- */
.section-stats {
  background-color: var(--accent-deep) !important;
}

.layout227_item {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.layout227_item:hover {
  transform: none;
}

.section-stats .heading-xlarge.stats,
.section-stats .heading-large.heading-xlarge {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.section-stats p {
  color: rgba(255, 255, 255, 0.82);
}

.heading-large.heading-xlarge {
  color: var(--ink);
}

/* ---------- buttons ---------- */
.button-primary,
.w-button {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.button-primary:hover,
.w-button:hover {
  background-color: #0345c4;
  color: #fff;
}

.button-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
}

.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background-color: rgba(0, 0, 0, 0.03);
}

/* soften the hover shadow from the motion layer for a light ground */
.w-button:hover,
.button-primary:hover,
.button-secondary:hover {
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.22);
}

/* ---------- navbar: force menu visible above the mobile breakpoint ----------
   Webflow's own nav-init JS occasionally leaves .nav-menu-wrapper at
   display:none on desktop widths (inconsistent across pages/loads). */
@media (min-width: 992px) {
  .navbar-logo-left .nav-menu-wrapper {
    display: flex !important;
  }
  .navbar-logo-left .w-nav-button {
    display: none !important;
  }
}

/* ---------- navbar: light liquid glass ---------- */
.navbar-logo-left {
  background-color: transparent !important;
}

.navbar-logo-left-container.w-nav {
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-logo-left .nav-link {
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.95em;
  text-transform: none;
  letter-spacing: -0.01em;
}

.navbar-logo-left .nav-link:hover {
  color: var(--accent) !important;
  opacity: 1;
}

.navbar-logo-left .w-nav-menu[data-nav-menu-open],
.navbar-logo-left .w-nav-overlay [data-nav-menu-open] {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
}

.w-nav-button,
.w-icon-nav-menu {
  color: var(--ink);
}

.navbar-brand img {
  filter: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar-logo-left-container.w-nav,
  .navbar-logo-left .w-nav-menu[data-nav-menu-open],
  .navbar-logo-left .w-nav-overlay [data-nav-menu-open] {
    background: rgba(255, 255, 255, 0.97);
  }
}

/* ---------- cards & surfaces ---------- */
.collection-item {
  background-color: var(--bg);
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
  overflow: hidden;
}

.collection-item:hover {
  border-color: var(--hairline);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.18);
}

.section-callout,
.header-callout,
.callout-bg {
  background-color: var(--bg);
  border-color: var(--hairline);
  border-radius: 14px;
  color: var(--ink);
}

/* ---------- schedule & agenda ---------- */
.schedule-row-inner,
.agenda-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background-color: transparent;
}

.schedule-row-inner:hover,
.agenda-item:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

.schedule-time {
  color: var(--ink-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
}

.schedule-name {
  color: var(--ink);
}

/* ---------- contact page ---------- */
/* .contact-wrap is hard-pinned to height:100vh in the base Webflow css with
   overflow left visible — on phones the stacked single-column form needs
   more than a screen's height, so the tail of the form (message box, submit
   button) spills past the box's bottom edge and renders underneath/behind
   the opaque footer that follows it, invisible and untappable. */
@media (max-width: 991px) {
  .contact-wrap {
    height: auto;
    min-height: 0;
  }
}

/* ---------- forms ---------- */
.w-input,
.w-select,
input[type="text"], input[type="email"], textarea, select {
  background-color: var(--bg);
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.w-input:focus,
.w-select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(3, 86, 240, 0.12);
  outline: none;
}

.w-input::placeholder,
textarea::placeholder {
  color: #86868b;
}

/* ---------- footer ---------- */
.footer {
  background-color: var(--bg-subtle) !important;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-2);
}

.footer a,
.footer .footer_legal-link {
  color: #424245;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
}

/* the 24px social icons sit only 12px apart — enlarge the tap target a bit
   without letting neighboring hit areas overlap */
.footer .footer_social-link {
  padding: 10px 6px;
  margin: -10px -6px;
}

.footer a:hover,
.footer .footer_legal-link:hover {
  color: var(--ink);
  opacity: 1;
}

.footer .social-icon {
  color: var(--ink-2);
}

.footer .footer_social-link:hover .social-icon {
  color: var(--ink);
}

/* ---------- dividers ---------- */
hr, .divider {
  border-color: var(--hairline);
}

/* ---------- craft details ---------- */
html {
  scroll-padding-top: 120px;      /* anchors clear the fixed nav */
  -webkit-tap-highlight-color: transparent;
}

/* thin, quiet scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, 0.32); }

/* nav condenses after scroll (class set by enhancements.js) */
.navbar-logo-left-container.w-nav {
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.mundp-scrolled .navbar-logo-left-container.w-nav {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 12px 32px -20px rgba(0, 0, 0, 0.18);
}

/* brand lockup condenses alongside the navbar */
.image-5 {
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  /* the About page carries a leftover Webflow scroll interaction that
     inflates this logo (148x286) and hides the nav links at page load —
     force the same constant sizing/visibility every other page uses */
  width: 30px !important;
  height: auto !important;
}

body.mundp-scrolled .image-5 {
  width: 24px !important;
}

[data-w-id="dc414c7b-b751-daeb-93de-0db7e1fd2bbc"] {
  opacity: 1 !important;
}

/* buttons: inner highlight + settled active state */
.button-primary,
.w-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button-primary:active,
.w-button:active {
  background-color: #033ba6;
}

/* layered elevation on card hover — reads as depth, not blur */
.collection-item:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 16px -4px rgba(0, 0, 0, 0.06),
    0 28px 56px -16px rgba(0, 0, 0, 0.14);
}

/* photo overlays: graded scrim instead of a flat wash */
.image-overlay-layer {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

/* footer badge: white PNG box melts into the light footer */
.footer img {
  mix-blend-mode: multiply;
}

/* ---------- experience layer ---------- */
/* scroll progress thread */
.mundp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 9999;
  pointer-events: none;
}

/* navbar drops in on load */
.navbar-logo-left {
  animation: mundp-nav-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}

@keyframes mundp-nav-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* countdown as a moment: monumental fluid numerals */
[id^="js-clock-"] {
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* the base .box is a fixed 120x120px (+30px side margins) — that's a 180px
   footprint per unit, so all 4 (Days/Hrs/Min/Sec) never fit in one row on a
   phone and wrap into 4 tall stacked rows instead. Shrink the boxes so the
   countdown stays a single row, and size the digits down to match — at the
   base size a 3-digit day count already sits within ~1px of the box edge. */
@media (max-width: 479px) {
  .box {
    width: 68px;
    height: 68px;
    margin-left: 6px;
    margin-right: 6px;
    padding: 4px;
  }

  [id^="js-clock-"] {
    font-size: 1.75rem;
  }

  .clock-label {
    letter-spacing: 2px;
    font-size: 0.65rem;
  }
}

/* soft cross-fade between pages (progressive; same-origin MPA) */
@view-transition {
  navigation: auto;
}

/* the fixed navbar carries its own identity across the transition so it
   holds still instead of cross-fading with the rest of the page — reads
   as persistent app chrome rather than a flat page swap */
.navbar-logo-left {
  view-transition-name: mundp-nav;
}

::view-transition-group(mundp-nav) {
  animation-duration: 0.3s;
}

::view-transition-old(root) {
  animation: mundp-vt-out 0.36s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: mundp-vt-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mundp-vt-out {
  to { opacity: 0; transform: scale(0.985) translateY(-8px); filter: blur(3px); }
}

@keyframes mundp-vt-in {
  from { opacity: 0; transform: scale(1.015) translateY(14px); filter: blur(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-logo-left { animation: none; }
  .mundp-progress { display: none; }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- executive roster ---------- */
.exec-roster {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}

.exec-entry .exec-role {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}

.exec-entry .exec-name {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
