/* ==========================================================================
   Nikao Medical Center interface styles
   Sections: 1 base · 2 typography · 3 buttons · 4 header · 5 splash
             6 hero · 7 sections & cards · 8 pages · 9 forms
             10 footer · 11 widgets · 12 motion · 13 responsive
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--nmc-font-secondary);
  color: var(--nmc-ink-700);
  background: var(--nmc-surface);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

::selection { background: rgba(11, 86, 161, .16); color: var(--nmc-ink); }

:focus-visible {
  outline: 3px solid var(--nmc-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--nmc-blue);
  color: #fff;
  padding: .75rem 1.4rem;
  border-radius: 0 0 var(--nmc-radius-sm) var(--nmc-radius-sm);
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  transition: top .25s var(--nmc-ease);
}
.skip-link:focus { top: 0; color: #fff; }

.container-nmc {
  width: min(1240px, 100% - (var(--nmc-gutter) * 2));
  margin-inline: auto;
}

/* Decorative background patterns ---------------------------------------- */
.bg-soft   { background: var(--nmc-surface-blue); }
.bg-cream  { background: var(--nmc-surface-alt); }
.bg-tint   { background: var(--nmc-gradient-soft); }

.has-pattern { position: relative; isolation: isolate; }
.has-pattern > * { position: relative; z-index: 1; }
.has-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/pattern-cross.svg");
  background-size: 240px;
  opacity: .5;
  pointer-events: none;
}

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  pointer-events: none;
}
.blob-blue  { background: rgba(11, 86, 161, .18); }
.blob-green { background: rgba(100, 178, 70, .2); }

/* 2. Typography ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.display-nmc {
  font-family: var(--nmc-font-primary);
  color: var(--nmc-ink);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.015em;
}

h1, .h1-nmc { font-size: var(--nmc-h1); }
h2, .h2-nmc { font-size: var(--nmc-h2); }
h3, .h3-nmc { font-size: var(--nmc-h3); line-height: 1.28; }

p { margin-bottom: 1rem; }

.lead-nmc {
  font-size: var(--nmc-lead);
  color: var(--nmc-ink-500);
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--nmc-font-primary);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nmc-blue);
  background: var(--nmc-blue-100);
  border-radius: var(--nmc-pill);
  padding: .45rem 1rem;
  margin-bottom: 1.1rem;
}
.eyebrow.is-green { color: var(--nmc-green-700); background: var(--nmc-green-100); }
.eyebrow.is-light { color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }

.text-gradient {
  background: var(--nmc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 62ch; }
.section-head.is-center { margin-inline: auto; text-align: center; }

.rule {
  width: 68px;
  height: 5px;
  border-radius: var(--nmc-pill);
  background: var(--nmc-gradient-line);
  margin-top: 1.25rem;
}
.section-head.is-center .rule { margin-inline: auto; }

.mock-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--nmc-ink-300);
  background: #fff;
  border: 1px dashed var(--nmc-grey);
  border-radius: var(--nmc-pill);
  padding: .3rem .85rem;
}

/* 3. Buttons -------------------------------------------------------------- */

.btn-nmc {
  --btn-bg: var(--nmc-gradient);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  padding: .95rem 1.7rem;
  border: 0;
  border-radius: var(--nmc-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--nmc-speed) var(--nmc-ease),
              box-shadow var(--nmc-speed) var(--nmc-ease),
              background-color var(--nmc-speed) var(--nmc-ease),
              color var(--nmc-speed) var(--nmc-ease);
}
.btn-nmc:hover,
.btn-nmc:focus-visible { transform: translateY(-2px); box-shadow: var(--nmc-shadow-blue); color: var(--btn-fg); }
.btn-nmc:active { transform: translateY(0); }

.btn-primary-nmc { --btn-bg: var(--nmc-blue); }
.btn-primary-nmc:hover { --btn-bg: var(--nmc-blue-700); }

.btn-green-nmc { --btn-bg: var(--nmc-green); }
.btn-green-nmc:hover { --btn-bg: var(--nmc-green-700); box-shadow: var(--nmc-shadow-green); }

.btn-outline-nmc {
  --btn-bg: transparent;
  --btn-fg: var(--nmc-blue);
  border: 2px solid var(--nmc-blue);
  padding: calc(.95rem - 2px) calc(1.7rem - 2px);
}
.btn-outline-nmc:hover { --btn-bg: var(--nmc-blue); --btn-fg: #fff; box-shadow: var(--nmc-shadow-blue); }

.btn-ghost-nmc {
  --btn-bg: rgba(255, 255, 255, .14);
  --btn-fg: #fff;
  border: 2px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
  padding: calc(.95rem - 2px) calc(1.7rem - 2px);
}
.btn-ghost-nmc:hover { --btn-bg: #fff; --btn-fg: var(--nmc-blue); }

.btn-sm-nmc { padding: .68rem 1.25rem; font-size: .88rem; }

.link-nmc {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  color: var(--nmc-blue);
  text-decoration: none;
}
.link-nmc i { transition: transform var(--nmc-speed) var(--nmc-ease); }
.link-nmc:hover { color: var(--nmc-green-700); }
.link-nmc:hover i { transform: translateX(4px); }

/* 4. Floating header ------------------------------------------------------ */

.site-header {
  position: fixed;
  top: clamp(.6rem, .3rem + .9vw, 1.15rem);
  left: 0;
  right: 0;
  z-index: 1040;
  transition: top .35s var(--nmc-ease);
}

.header-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem .7rem .55rem 1.1rem;
  border-radius: var(--nmc-pill);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 34px rgba(9, 32, 60, .12);
  transition: padding .35s var(--nmc-ease), box-shadow .35s var(--nmc-ease), background .35s var(--nmc-ease);
}
.site-header.is-stuck .header-pill {
  padding-block: .38rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 26px rgba(9, 32, 60, .16);
}

.brand-lockup { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand-lockup img { height: 44px; width: auto; transition: height .35s var(--nmc-ease); display: block; }
.site-header.is-stuck .brand-lockup img { height: 38px; }

.nav-nmc { display: flex; align-items: center; gap: .15rem; margin-left: auto; }

.nav-nmc .nav-link-nmc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .58rem .82rem;
  border-radius: var(--nmc-pill);
  font-family: var(--nmc-font-primary);
  font-size: .9rem;
  font-weight: 500;
  color: var(--nmc-ink-700);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--nmc-speed) var(--nmc-ease), background var(--nmc-speed) var(--nmc-ease);
}
.nav-nmc .nav-link-nmc i { font-size: .95rem; opacity: .75; }
.nav-nmc .nav-link-nmc::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .3rem;
  width: 0;
  height: 3px;
  border-radius: var(--nmc-pill);
  background: var(--nmc-gradient-line);
  transform: translateX(-50%);
  transition: width var(--nmc-speed) var(--nmc-ease-out);
}
.nav-nmc .nav-link-nmc:hover,
.nav-nmc .nav-link-nmc:focus-visible { color: var(--nmc-blue); background: var(--nmc-blue-050); }
.nav-nmc .nav-link-nmc:hover::after { width: 42%; }
.nav-nmc .nav-link-nmc.is-active { color: var(--nmc-blue); font-weight: 600; }
.nav-nmc .nav-link-nmc.is-active i { opacity: 1; }
.nav-nmc .nav-link-nmc.is-active::after { width: 52%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--nmc-blue-050);
  color: var(--nmc-blue);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Off-canvas mobile navigation */
.offcanvas-nmc { border-left: 0; background: #fff; }
.offcanvas-nmc .offcanvas-header { padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--nmc-line); }
.offcanvas-nmc .offcanvas-body { padding: 1.1rem 1.4rem 2rem; }
.offcanvas-nmc .nav-link-mobile {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1rem;
  border-radius: var(--nmc-radius-sm);
  font-family: var(--nmc-font-primary);
  font-weight: 500;
  color: var(--nmc-ink-700);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--nmc-speed) var(--nmc-ease);
}
.offcanvas-nmc .nav-link-mobile i {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--nmc-blue-050);
  color: var(--nmc-blue);
}
.offcanvas-nmc .nav-link-mobile:hover { background: var(--nmc-blue-050); }
.offcanvas-nmc .nav-link-mobile.is-active {
  background: var(--nmc-blue-050);
  border-color: var(--nmc-blue-100);
  color: var(--nmc-blue);
  font-weight: 600;
}
.offcanvas-nmc .nav-link-mobile.is-active i { background: var(--nmc-gradient); color: #fff; }

/* 5. Splash screen -------------------------------------------------------- */

#splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--nmc-cream);
  transition: opacity .6s var(--nmc-ease), visibility .6s;
}
#splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nmc-gradient-soft);
}
#splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { position: relative; text-align: center; padding: 2rem; }
.splash-inner img { width: clamp(92px, 18vw, 128px); height: auto; border-radius: 22%; box-shadow: var(--nmc-shadow); }
.splash-title {
  font-family: var(--nmc-font-primary);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.9rem);
  font-weight: 700;
  margin: 1.4rem 0 .35rem;
  color: var(--nmc-ink);
}
.splash-tagline { color: var(--nmc-blue); font-size: .98rem; margin-bottom: 1.6rem; }

.pulse-line { width: min(260px, 60vw); margin: 0 auto 1.2rem; display: block; }
.pulse-line path {
  fill: none;
  stroke: url(#nmcPulseGradient);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: nmc-trace 1.9s var(--nmc-ease) infinite;
}
@keyframes nmc-trace {
  0%   { stroke-dashoffset: 320; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -320; }
}

.splash-dots { display: flex; gap: .5rem; justify-content: center; }
.splash-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--nmc-blue);
  animation: nmc-bob 1.1s var(--nmc-ease) infinite;
}
.splash-dots span:nth-child(2) { background: var(--nmc-green); animation-delay: .16s; }
.splash-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes nmc-bob {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1;  transform: translateY(-6px); }
}

/* 6. Hero ------------------------------------------------------------------ */

/* Edge-to-edge split: copy on a light panel, photography filling the rest of
   the screen. The supplied photos are 1080x720, so this width keeps them close
   to 1:1 where a full-width banner would soften them. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--nmc-blue-050);
}

.hero-layout {
  display: flex;
  align-items: center;
  width: 40%;
  /* 46vw keeps the 60vw photo panel landscape, so nobody is cropped out. */
  min-height: clamp(540px, min(100svh - 96px, 46vw), 700px);
  padding-inline: var(--nmc-edge) 2.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 35rem;
  padding-block: calc(var(--nmc-header-h) + 2.25rem) 2.75rem;
}

.hero-kicker {
  margin-bottom: 1rem;
  font-family: var(--nmc-font-primary);
  font-size: .9rem;
  font-weight: 600;
  color: var(--nmc-blue);
}

.hero-copy h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.hero-lead {
  margin-bottom: 2rem;
  font-size: var(--nmc-lead);
  line-height: 1.65;
  color: var(--nmc-ink-500);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.6rem;
}

/* Photo deck ----------------------------------------------------------------*/
/* Photographs laid out like playing cards on a table. main.js moves each card
   between positions: 0 is the front card, higher numbers sit further back. */
.hero-deck {
  position: absolute;
  inset: 0 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 7vh, 4rem);
  padding: calc(var(--nmc-header-h) + 3rem) var(--nmc-edge) 1rem 1rem;
}

.deck-table {
  position: relative;
  width: min(64%, 560px);
  aspect-ratio: 3 / 2;
}

.deck-card {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 20px;
  background: var(--nmc-gradient-deep);
  box-shadow: 0 2px 4px rgba(9, 32, 60, .1), 0 20px 42px rgba(9, 32, 60, .2);
  transition: transform .7s var(--nmc-ease-out);
}
.deck-card[data-pos="0"] { z-index: 4; transform: translate(0, 0) rotate(-2deg); }
.deck-card[data-pos="1"] { z-index: 3; transform: translate(-19%, -9%) rotate(-11deg); }
.deck-card[data-pos="2"] { z-index: 2; transform: translate(19%, -8%) rotate(9deg); }
.deck-card[data-pos="3"] { z-index: 1; transform: translate(5%, 12%) rotate(4deg); }

/* The front card is dealt off to the side, then slides under the pile. */
.deck-card.is-dealt { animation: nmc-deal .8s var(--nmc-ease) both; }
.deck-card.is-drawn { animation: nmc-draw .8s var(--nmc-ease) both; }
@keyframes nmc-deal {
  0%   { z-index: 6; transform: translate(0, 0) rotate(-2deg); }
  45%  { z-index: 6; transform: translate(68%, 6%) rotate(13deg); }
  55%  { z-index: 0; transform: translate(68%, 6%) rotate(13deg); }
  100% { z-index: 1; transform: translate(5%, 12%) rotate(4deg); }
}
@keyframes nmc-draw {
  0%   { z-index: 0; transform: translate(5%, 12%) rotate(4deg); }
  45%  { z-index: 0; transform: translate(68%, 6%) rotate(13deg); }
  55%  { z-index: 6; transform: translate(68%, 6%) rotate(13deg); }
  100% { z-index: 6; transform: translate(0, 0) rotate(-2deg); }
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--nmc-gradient-deep);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transform-origin: 50% 35%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(0deg, rgba(5, 28, 54, .8), rgba(5, 28, 54, 0));
  opacity: 0;
  transition: opacity .5s var(--nmc-ease);
  pointer-events: none;
}
.deck-card[data-pos="0"] .hero-media::after { opacity: 1; }

/* Ken Burns on the front card. Every slide starts at the resting scale, so a
   card coming forward does not jump. 7s outlasts its time at the front. */
.deck-card[data-pos="0"] .hero-media img { animation: nmc-kenburns-left 7s linear forwards; }
.deck-card:nth-child(even)[data-pos="0"] .hero-media img { animation-name: nmc-kenburns-right; }
@keyframes nmc-kenburns-left {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}
@keyframes nmc-kenburns-right {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(2%, -1%, 0); }
}

.hero-caption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: .85rem;
  z-index: 2;
  display: grid;
  gap: .05rem;
  color: #fff;
  opacity: 0;
  transition: opacity .35s var(--nmc-ease);
}
.deck-card[data-pos="0"] .hero-caption { opacity: 1; transition-delay: .3s; }
.hero-caption span {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}
.hero-caption strong {
  font-family: var(--nmc-font-primary);
  font-size: clamp(.92rem, .86rem + .25vw, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero-tools {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-indicators { display: flex; gap: .4rem; }
/* The padding widens the tap target around the thin visible line. */
.hero-indicators button {
  box-sizing: content-box;
  width: 28px;
  height: 3px;
  padding: 10px 0;
  border: 0;
  background-color: rgba(11, 86, 161, .25);
  background-clip: content-box;
  cursor: pointer;
  transition: background-color var(--nmc-speed) var(--nmc-ease);
}
.hero-indicators button.active { background-color: var(--nmc-blue); }

.hero-nav { display: flex; gap: .2rem; }
.hero-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nmc-blue);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--nmc-speed) var(--nmc-ease);
}
.hero-btn:hover { background: var(--nmc-blue-100); }
.hero-btn:focus-visible,
.hero-indicators button:focus-visible { outline: 2px solid var(--nmc-blue); outline-offset: 2px; }

/* Key information bar below the hero */
.quick-strip {
  background: #fff;
  border-bottom: 1px solid var(--nmc-line);
}
.quick-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0 var(--nmc-edge);
  list-style: none;
}
.quick-bar li + li { border-left: 1px solid var(--nmc-line); }

.quick-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 100%;
  padding: 1rem clamp(.9rem, 1.6vw, 1.5rem);
  color: var(--nmc-ink);
  text-decoration: none;
}
.quick-bar li:first-child .quick-item { padding-left: 0; }
.quick-item > i {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--nmc-blue);
}
.quick-text { display: grid; gap: .05rem; min-width: 0; }
.quick-label { font-size: .8rem; color: var(--nmc-ink-500); }
.quick-value {
  font-family: var(--nmc-font-primary);
  font-size: .92rem;
  font-weight: 600;
  transition: color var(--nmc-speed) var(--nmc-ease);
}
.quick-item:hover .quick-value { color: var(--nmc-blue); }

/* The homepage header lines up with the edge-to-edge hero below it. */
[data-route="home"] .site-header .container-nmc { width: calc(100% - var(--nmc-edge) * 2); }

/* 7. Sections and cards ---------------------------------------------------- */

.section { padding-block: var(--nmc-section); position: relative; }
.section-sm { padding-block: calc(var(--nmc-section) * .62); }

.card-nmc {
  background: #fff;
  border: 1px solid var(--nmc-line);
  border-radius: var(--nmc-radius-lg);
  padding: 1.9rem;
  box-shadow: var(--nmc-shadow-xs);
  transition: transform var(--nmc-speed) var(--nmc-ease), box-shadow var(--nmc-speed) var(--nmc-ease), border-color var(--nmc-speed) var(--nmc-ease);
}
/*
 * A card stretches to fill its column only when it stands alone in it, which
 * is what keeps a grid row of cards level. Cards stacked two or three deep in
 * one column keep their natural height: giving each of them 100% of the
 * column made the stack taller than the section and pushed the last card down
 * over the footer.
 */
.card-nmc:only-child { height: 100%; }
.card-nmc:hover { transform: translateY(-6px); box-shadow: var(--nmc-shadow); border-color: var(--nmc-blue-100); }

.icon-tile {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
  background: var(--nmc-blue-100);
  color: var(--nmc-blue);
  transition: background var(--nmc-speed) var(--nmc-ease), color var(--nmc-speed) var(--nmc-ease), transform var(--nmc-speed) var(--nmc-ease);
}
.icon-tile.is-green { background: var(--nmc-green-100); color: var(--nmc-green-700); }
.icon-tile.is-gradient { background: var(--nmc-gradient); color: #fff; }
.card-nmc:hover .icon-tile { background: var(--nmc-gradient); color: #fff; transform: scale(1.04); }

/* Service cards with imagery */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nmc-line);
  border-radius: var(--nmc-radius-lg);
  overflow: hidden;
  box-shadow: var(--nmc-shadow-xs);
  transition: transform var(--nmc-speed) var(--nmc-ease), box-shadow var(--nmc-speed) var(--nmc-ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--nmc-shadow); }
.service-card .sc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nmc-blue-100); }
.service-card .sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--nmc-ease); }
.service-card:hover .sc-media img { transform: scale(1.07); }
.service-card .sc-badge {
  position: absolute;
  left: 1rem; top: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  color: var(--nmc-blue);
  font-size: 1.25rem;
}
.service-card .sc-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.service-card .sc-body h3 { font-size: 1.14rem; margin: 0; }
.service-card .sc-body p  { font-size: .93rem; color: var(--nmc-ink-500); margin: 0; }
.service-card .sc-foot { margin-top: auto; padding-top: .9rem; display: flex; gap: .75rem; align-items: center; }

/* Continuously scrolling service row ------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: .5rem 1rem;
  /* Fade the row into the section on both edges. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: nmc-marquee 56s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes nmc-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee-set {
  display: flex;
  gap: 1.15rem;
  padding: 0 .575rem;
  margin: 0;
  list-style: none;
}

.marquee-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 290px;
  height: 100%;
  padding: 1.75rem 1.6rem;
  background: #fff;
  border: 1px solid var(--nmc-line);
  border-radius: var(--nmc-radius-lg);
  box-shadow: var(--nmc-shadow-xs);
  text-decoration: none;
  transition: transform var(--nmc-speed) var(--nmc-ease),
              box-shadow var(--nmc-speed) var(--nmc-ease),
              border-color var(--nmc-speed) var(--nmc-ease);
}
.marquee-card:hover,
.marquee-card:focus-visible { transform: translateY(-6px); box-shadow: var(--nmc-shadow); border-color: var(--nmc-blue-100); }

.marquee-card .mc-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--nmc-blue-100);
  color: var(--nmc-blue);
  font-size: 1.45rem;
  margin-bottom: .35rem;
  transition: background var(--nmc-speed) var(--nmc-ease), color var(--nmc-speed) var(--nmc-ease);
}
.marquee-card:hover .mc-icon { background: var(--nmc-gradient); color: #fff; }

.marquee-set li:nth-child(even) .mc-icon { background: var(--nmc-green-100); color: var(--nmc-green-700); }

.marquee-card .mc-title {
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.3;
  color: var(--nmc-ink);
}
.marquee-card .mc-text {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--nmc-ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marquee-card .mc-more {
  margin-top: auto;
  padding-top: .55rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  font-size: .88rem;
  color: var(--nmc-blue);
}
.marquee-card .mc-more i { transition: transform var(--nmc-speed) var(--nmc-ease); }
.marquee-card:hover .mc-more i { transform: translateX(4px); }

/* Statistics */
.stat-card {
  height: 100%;
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--nmc-radius-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
}
.stat-card .st-icon { font-size: 1.6rem; color: var(--nmc-green-300); margin-bottom: .6rem; display: block; }
.stat-card .st-value {
  font-family: var(--nmc-font-primary);
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-card .st-label { color: rgba(255, 255, 255, .82); font-size: .92rem; margin-top: .5rem; }

.band-gradient {
  background: var(--nmc-gradient-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band-gradient h2, .band-gradient h3 { color: #fff; }
.band-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-plus.svg");
  background-size: 200px;
  opacity: .22;
  pointer-events: none;
}
.band-gradient > * { position: relative; z-index: 1; }

/* Journey / steps */
.journey-step { position: relative; height: 100%; padding-top: .5rem; }
.journey-step .js-num {
  font-family: var(--nmc-font-primary);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--nmc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .32;
}
.journey-step .js-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--nmc-line);
  color: var(--nmc-blue);
  font-size: 1.2rem;
  margin: -1.1rem 0 1rem;
  box-shadow: var(--nmc-shadow-xs);
}
.journey-step h3 { font-size: 1.05rem; }
.journey-step p { font-size: .92rem; color: var(--nmc-ink-500); margin: 0; }

/* Testimonials */
.quote-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--nmc-radius-lg);
  background: #fff;
  border: 1px solid var(--nmc-line);
  box-shadow: var(--nmc-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote-card .qc-mark { font-size: 1.8rem; color: var(--nmc-green); line-height: 1; }
.quote-card blockquote { margin: 0; font-size: 1rem; color: var(--nmc-ink-700); }
.quote-card figcaption { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.avatar-initial {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--nmc-gradient);
  color: #fff;
  font-family: var(--nmc-font-primary);
  font-weight: 700;
}
.quote-card .qc-name { font-family: var(--nmc-font-primary); font-weight: 600; color: var(--nmc-ink); font-size: .95rem; }
.quote-card .qc-role { font-size: .82rem; color: var(--nmc-ink-300); }

/* Insight cards */
.insight-card { height: 100%; display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; border-radius: var(--nmc-radius-lg); background: #fff; border: 1px solid var(--nmc-line); transition: transform var(--nmc-speed) var(--nmc-ease), box-shadow var(--nmc-speed) var(--nmc-ease); }
.insight-card:hover { transform: translateY(-5px); box-shadow: var(--nmc-shadow); }
.insight-card .tag { align-self: flex-start; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--nmc-green-700); background: var(--nmc-green-100); padding: .3rem .75rem; border-radius: var(--nmc-pill); }
.insight-card h3 { font-size: 1.06rem; margin: 0; }
.insight-card p { font-size: .92rem; color: var(--nmc-ink-500); margin: 0; }

/* Media frame used for editorial image blocks */
.media-frame { position: relative; border-radius: var(--nmc-radius-xl); overflow: hidden; box-shadow: var(--nmc-shadow-lg); background: var(--nmc-blue-100); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame.is-tall { aspect-ratio: 4 / 5; }
.media-frame.is-wide { aspect-ratio: 16 / 11; }

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.2rem;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  border-radius: var(--nmc-radius);
  box-shadow: var(--nmc-shadow);
}
.floating-badge i { font-size: 1.4rem; color: var(--nmc-green-700); }
.floating-badge strong { display: block; font-family: var(--nmc-font-primary); color: var(--nmc-ink); font-size: .95rem; }
.floating-badge span { font-size: .8rem; color: var(--nmc-ink-500); }

/* Breadcrumbs and page header */
.page-hero {
  position: relative;
  padding-top: calc(var(--nmc-header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: var(--nmc-surface-blue);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-cross.svg");
  background-size: 220px;
  opacity: .55;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }

.breadcrumb-nmc { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; padding: 0; margin-bottom: 1rem; list-style: none; }
.breadcrumb-nmc a { color: var(--nmc-blue); text-decoration: none; }
.breadcrumb-nmc a:hover { text-decoration: underline; }
.breadcrumb-nmc li { display: flex; align-items: center; gap: .45rem; color: var(--nmc-ink-300); }
.breadcrumb-nmc li + li::before { content: "\F285"; font-family: bootstrap-icons; font-size: .7rem; opacity: .6; }

/* 8. Page-specific --------------------------------------------------------- */

/* CEO editorial block */
.ceo-block { position: relative; overflow: hidden; }
.ceo-portrait { position: relative; }
.ceo-portrait .media-frame { aspect-ratio: 3 / 4; }
.ceo-portrait::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 62%;
  height: 62%;
  border-radius: var(--nmc-radius-xl);
  background: var(--nmc-gradient-soft);
  z-index: -1;
}
.ceo-quote {
  font-family: var(--nmc-font-primary);
  font-size: clamp(1.1rem, .95rem + .7vw, 1.42rem);
  line-height: 1.5;
  color: var(--nmc-ink);
  border-left: 4px solid transparent;
  border-image: var(--nmc-gradient-line) 1;
  padding-left: 1.4rem;
  margin: 1.8rem 0;
}
.ceo-credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.ceo-credentials div { padding: 1rem 1.1rem; border-radius: var(--nmc-radius-sm); background: #fff; border: 1px solid var(--nmc-line); }
.ceo-credentials dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nmc-ink-300); margin-bottom: .2rem; }
.ceo-credentials dd { margin: 0; font-family: var(--nmc-font-primary); font-weight: 600; color: var(--nmc-ink); font-size: .95rem; }
.ceo-signature { font-family: var(--nmc-font-primary); font-style: italic; font-size: 1.35rem; color: var(--nmc-blue); }

/* Team cards */
.team-card { position: relative; border-radius: var(--nmc-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--nmc-line); box-shadow: var(--nmc-shadow-xs); transition: transform var(--nmc-speed) var(--nmc-ease), box-shadow var(--nmc-speed) var(--nmc-ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--nmc-shadow); }
.team-card .tc-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--nmc-blue-100); }
.team-card .tc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--nmc-ease); }
.team-card:hover .tc-media img { transform: scale(1.06); }
.team-card .tc-body { padding: 1.15rem 1.25rem 1.35rem; text-align: center; }
.team-card .tc-body h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.team-card .tc-body p { font-size: .86rem; color: var(--nmc-blue); margin: 0; font-weight: 500; }

/* Timeline */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: .5rem; bottom: .5rem; width: 3px; border-radius: var(--nmc-pill); background: var(--nmc-gradient-line); opacity: .35; }
.timeline-item { position: relative; padding-bottom: 2.1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -2.4rem; top: .35rem; width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 3px solid var(--nmc-blue); box-shadow: 0 0 0 5px rgba(11, 86, 161, .1); }
.timeline-item:nth-child(even)::before { border-color: var(--nmc-green); box-shadow: 0 0 0 5px rgba(100, 178, 70, .12); }
.timeline-item .tl-year { font-family: var(--nmc-font-primary); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nmc-green-700); }
.timeline-item h3 { font-size: 1.1rem; margin: .2rem 0 .35rem; }
.timeline-item p { font-size: .93rem; color: var(--nmc-ink-500); margin: 0; }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.4rem; }
.filter-chip {
  font-family: var(--nmc-font-primary);
  font-size: .88rem;
  font-weight: 500;
  padding: .6rem 1.2rem;
  border-radius: var(--nmc-pill);
  border: 1px solid var(--nmc-line);
  background: #fff;
  color: var(--nmc-ink-700);
  cursor: pointer;
  transition: all var(--nmc-speed) var(--nmc-ease);
}
.filter-chip:hover { border-color: var(--nmc-blue-300); color: var(--nmc-blue); }
.filter-chip.is-active { background: var(--nmc-gradient); border-color: transparent; color: #fff; box-shadow: var(--nmc-shadow-blue); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 230px;
  gap: 1.15rem;
}
.gallery-item { grid-row: span 1; }
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item.is-hidden { display: none; }
.gallery-item button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--nmc-radius);
  overflow: hidden;
  background: var(--nmc-blue-100);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--nmc-ease); }
.gallery-item button:hover img { transform: scale(1.07); }
.gallery-item .gi-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem .95rem;
  text-align: left;
  background: linear-gradient(0deg, rgba(4, 26, 51, .82), rgba(4, 26, 51, 0));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--nmc-speed) var(--nmc-ease), transform var(--nmc-speed) var(--nmc-ease);
}
.gallery-item button:hover .gi-caption,
.gallery-item button:focus-visible .gi-caption { opacity: 1; transform: translateY(0); }
.gallery-item .gi-caption strong { display: block; font-family: var(--nmc-font-primary); font-size: .95rem; }
.gallery-item .gi-caption span { font-size: .8rem; opacity: .85; }

.gallery-animating .gallery-item { animation: nmc-fade-in .45s var(--nmc-ease-out) backwards; }
@keyframes nmc-fade-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  place-items: center;
  background: rgba(6, 22, 40, .92);
  backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; animation: nmc-fade-in .3s var(--nmc-ease); }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 74vh; width: auto; border-radius: var(--nmc-radius); box-shadow: var(--nmc-shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: 1rem; }
.lightbox figcaption strong { display: block; font-family: var(--nmc-font-primary); font-size: 1.05rem; }
.lightbox figcaption span { font-size: .9rem; color: rgba(255, 255, 255, .75); }
.lightbox .lb-btn {
  position: absolute;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--nmc-speed) var(--nmc-ease), color var(--nmc-speed) var(--nmc-ease);
}
.lightbox .lb-btn:hover { background: #fff; color: var(--nmc-blue); }
.lightbox .lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox .lb-prev { left: clamp(.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: clamp(.5rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: .85rem; }

/* Accordion (FAQ) */
.accordion-nmc .accordion-item { border: 1px solid var(--nmc-line); border-radius: var(--nmc-radius) !important; margin-bottom: .9rem; overflow: hidden; background: #fff; }
.accordion-nmc .accordion-button {
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  color: var(--nmc-ink);
  background: #fff;
  padding: 1.25rem 1.4rem;
  box-shadow: none;
}
.accordion-nmc .accordion-button:not(.collapsed) { color: var(--nmc-blue); background: var(--nmc-blue-050); }
.accordion-nmc .accordion-button:focus { box-shadow: none; }
.accordion-nmc .accordion-button::after { background-image: none; content: "\F282"; font-family: bootstrap-icons; font-size: .95rem; width: auto; height: auto; transition: transform var(--nmc-speed) var(--nmc-ease); }
.accordion-nmc .accordion-body { padding: 0 1.4rem 1.35rem; color: var(--nmc-ink-500); font-size: .95rem; }

/* Support cards */
.support-card { height: 100%; padding: 1.9rem; border-radius: var(--nmc-radius-lg); background: #fff; border: 1px solid var(--nmc-line); position: relative; overflow: hidden; transition: transform var(--nmc-speed) var(--nmc-ease), box-shadow var(--nmc-speed) var(--nmc-ease); }
.support-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nmc-gradient-line); opacity: 0; transition: opacity var(--nmc-speed) var(--nmc-ease); }
.support-card:hover { transform: translateY(-6px); box-shadow: var(--nmc-shadow); }
.support-card:hover::after { opacity: 1; }

/* 404 */
.error-code {
  font-family: var(--nmc-font-primary);
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: var(--nmc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 9. Forms ---------------------------------------------------------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--nmc-line);
  border-radius: var(--nmc-radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  box-shadow: var(--nmc-shadow-sm);
}

.form-label { font-family: var(--nmc-font-primary); font-weight: 500; font-size: .88rem; color: var(--nmc-ink); margin-bottom: .4rem; }

.form-control, .form-select {
  border: 1px solid var(--nmc-line);
  border-radius: var(--nmc-radius-sm);
  padding: .82rem 1rem;
  font-size: .95rem;
  color: var(--nmc-ink);
  background-color: #fff;
  transition: border-color var(--nmc-speed) var(--nmc-ease), box-shadow var(--nmc-speed) var(--nmc-ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--nmc-blue-300);
  box-shadow: 0 0 0 4px rgba(11, 86, 161, .12);
}
.form-control::placeholder { color: var(--nmc-ink-300); }

.demo-flag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nmc-green-700);
  background: var(--nmc-green-100);
  border-radius: var(--nmc-pill);
  padding: .35rem .9rem;
}

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list i {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--nmc-blue-050);
  color: var(--nmc-blue);
  font-size: 1.1rem;
}
.info-list strong { display: block; font-family: var(--nmc-font-primary); font-size: .88rem; color: var(--nmc-ink); }
.info-list span, .info-list a { font-size: .95rem; color: var(--nmc-ink-500); text-decoration: none; }
.info-list a:hover { color: var(--nmc-blue); }

.map-placeholder {
  position: relative;
  border-radius: var(--nmc-radius-lg);
  overflow: hidden;
  min-height: 340px;
  background:
    var(--nmc-gradient-soft),
    repeating-linear-gradient(90deg, rgba(11,86,161,.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(11,86,161,.07) 0 1px, transparent 1px 44px),
    var(--nmc-surface-blue);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--nmc-line);
}
.map-placeholder .mp-pin {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--nmc-gradient);
  color: #fff;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
  box-shadow: var(--nmc-shadow-blue);
}

/* Newsletter */
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form .form-control { flex: 1 1 200px; border-radius: var(--nmc-pill); }

/* 10. Footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--nmc-surface-alt);
  border-top: 1px solid var(--nmc-line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-cross.svg");
  background-size: 260px;
  opacity: .6;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: var(--nmc-gradient-line);
}
.site-footer > * { position: relative; z-index: 1; }

/* Trimmed footer: brand, contact and hours only. */
.footer-main { padding-block: clamp(2.4rem, 1.7rem + 2.8vw, 3.5rem) 1.9rem; }
.footer-brand img { height: 48px; width: auto; }
.footer-tagline {
  font-family: var(--nmc-font-primary);
  font-weight: 600;
  font-size: .95rem;
  color: var(--nmc-blue);
}
.footer-title { font-family: var(--nmc-font-primary); font-size: .95rem; font-weight: 600; color: var(--nmc-ink); margin-bottom: .9rem; }

/* Compact contact list used only in the footer */
.info-list-compact { gap: .8rem; }
.info-list-compact i { width: 38px; height: 38px; font-size: 1rem; border-radius: 12px; }
.info-list-compact span,
.info-list-compact a { font-size: .9rem; }

.hours-list { display: grid; gap: .4rem; }
.hours-list > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.hours-list dt { font-size: .9rem; color: var(--nmc-ink-500); font-weight: 400; }
.hours-list dd {
  margin: 0;
  font-family: var(--nmc-font-primary);
  font-size: .9rem;
  font-weight: 600;
  color: var(--nmc-ink);
  text-align: right;
}

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--nmc-ink-500); text-decoration: none; font-size: .93rem; display: inline-flex; align-items: center; gap: .45rem; transition: color var(--nmc-speed) var(--nmc-ease), transform var(--nmc-speed) var(--nmc-ease); }
.footer-links a::before { content: "\F285"; font-family: bootstrap-icons; font-size: .65rem; color: var(--nmc-green); }
.footer-links a:hover { color: var(--nmc-blue); transform: translateX(3px); }

.social-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--nmc-line);
  color: var(--nmc-blue);
  text-decoration: none;
  transition: all var(--nmc-speed) var(--nmc-ease);
}
.social-row a:hover { background: var(--nmc-gradient); color: #fff; border-color: transparent; transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid var(--nmc-line); padding-block: 1rem; font-size: .85rem; color: var(--nmc-ink-500); }
.footer-bottom a { color: var(--nmc-ink-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--nmc-blue); }

/* 11. WhatsApp widget ------------------------------------------------------ */

.wa-widget {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: calc(clamp(1rem, 2vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

.wa-button {
  position: relative;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform var(--nmc-speed) var(--nmc-ease);
}
.wa-button:hover { transform: scale(1.06); }
.wa-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: nmc-pulse 2.4s var(--nmc-ease) infinite;
}
@keyframes nmc-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--nmc-green);
  border: 2px solid #fff;
}

.wa-tooltip {
  display: flex;
  align-items: center;
  gap: .6rem;
  max-width: 260px;
  padding: .7rem 1rem;
  background: #fff;
  border: 1px solid var(--nmc-line);
  border-radius: var(--nmc-radius);
  box-shadow: var(--nmc-shadow);
  font-size: .88rem;
  color: var(--nmc-ink-700);
}
.wa-tooltip button { border: 0; background: none; color: var(--nmc-ink-300); padding: 0; line-height: 1; cursor: pointer; }
.wa-tooltip.is-hidden { display: none; }

.wa-panel {
  width: min(340px, calc(100vw - 2.4rem));
  border-radius: var(--nmc-radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--nmc-line);
  box-shadow: var(--nmc-shadow-lg);
  transform-origin: bottom right;
  animation: nmc-pop .32s var(--nmc-ease-out);
}
.wa-panel.is-hidden { display: none; }
@keyframes nmc-pop { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.wa-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: var(--nmc-gradient-deep); color: #fff; }
.wa-head img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 3px; }
.wa-head strong { display: block; font-family: var(--nmc-font-primary); font-size: .95rem; }
.wa-head span { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.wa-head .wa-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.wa-head .wa-actions { margin-left: auto; display: flex; gap: .25rem; }
.wa-head .wa-actions button { border: 0; background: rgba(255,255,255,.16); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.wa-head .wa-actions button:hover { background: rgba(255,255,255,.3); }

.wa-body { padding: 1.1rem; background: #f3f7f4 url("../img/pattern-dots.svg"); background-size: 160px; max-height: 260px; overflow-y: auto; }
.wa-bubble { background: #fff; border-radius: 4px 16px 16px 16px; padding: .8rem 1rem; font-size: .89rem; box-shadow: var(--nmc-shadow-xs); margin-bottom: .55rem; }
.wa-bubble small { display: block; color: var(--nmc-ink-300); font-size: .72rem; margin-top: .35rem; }

.wa-foot { padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--nmc-line); }
.wa-foot p { font-size: .76rem; color: var(--nmc-ink-300); margin: 0 0 .55rem; }
.wa-suggestions { display: grid; gap: .45rem; }
.wa-suggestions button {
  text-align: left;
  font-size: .87rem;
  padding: .6rem .9rem;
  border-radius: var(--nmc-pill);
  border: 1px solid var(--nmc-line);
  background: #fff;
  color: var(--nmc-ink-700);
  cursor: pointer;
  transition: all var(--nmc-speed) var(--nmc-ease);
}
.wa-suggestions button:hover { border-color: var(--nmc-green); background: var(--nmc-green-100); color: var(--nmc-green-700); }

/* Back to top */
.to-top {
  position: fixed;
  left: clamp(1rem, 2vw, 1.6rem);
  bottom: calc(clamp(1rem, 2vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--nmc-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  color: var(--nmc-blue);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--nmc-speed) var(--nmc-ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--nmc-blue); color: #fff; }

/* Toast */
.toast-nmc { border: 0; border-radius: var(--nmc-radius); box-shadow: var(--nmc-shadow-lg); overflow: hidden; }
.toast-nmc .toast-header { background: var(--nmc-gradient); color: #fff; border: 0; }
.toast-nmc .toast-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.toast-nmc .toast-body { background: #fff; font-size: .92rem; }

/* Modals */
.modal-content { border: 0; border-radius: var(--nmc-radius-lg); overflow: hidden; box-shadow: var(--nmc-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--nmc-line); padding: 1.4rem 1.6rem; }
.modal-title { font-family: var(--nmc-font-primary); font-size: 1.2rem; }
.modal-body { padding: 1.6rem; }
.modal-footer { border-top: 1px solid var(--nmc-line); padding: 1.1rem 1.6rem; }

/* 12. Motion --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--nmc-ease-out), transform .75s var(--nmc-ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .deck-card[data-pos="0"] .hero-media img,
  .deck-card:nth-child(even)[data-pos="0"] .hero-media img { animation: none; }
  .wa-button::after { display: none; }

  /* The service row stops moving and becomes a normal scrollable strip. */
  .marquee-track { animation: none; width: auto; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* 13. Responsive ------------------------------------------------------------ */

@media (max-width: 1199.98px) {
  .nav-nmc .nav-link-nmc { padding: .55rem .62rem; font-size: .86rem; }
  .nav-nmc .nav-link-nmc i { display: none; }
}

/* Small laptops: tighter copy, and bar columns sized to their content. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-copy { padding-block: calc(var(--nmc-header-h) + 1.5rem) 1.75rem; }
  .hero-lead { margin-bottom: 1.5rem; }
  .deck-table { width: 68%; }
  .hero-deck { gap: 3rem; padding-top: calc(var(--nmc-header-h) + 1.5rem); }
  .quick-bar { grid-template-columns: repeat(4, auto); }
  .quick-value { font-size: .88rem; white-space: nowrap; }
}

@media (max-width: 991.98px) {
  :root { --nmc-header-h: 70px; }
  .nav-nmc { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { display: none; }
  .brand-lockup img { height: 40px; }
  /* Bootstrap's 3rem gutters outgrow the page gutter here and widen the page. */
  .row.g-5 { --bs-gutter-x: 2rem; }
  .hero-layout { display: block; width: auto; min-height: 0; padding-inline: var(--nmc-edge); }
  .hero-copy { max-width: 36rem; padding-block: calc(var(--nmc-header-h) + 2.5rem) 2.25rem; }
  .hero-deck { position: relative; inset: auto; gap: 4.5rem; padding: 3rem var(--nmc-edge) 1.5rem; }
  .deck-table { width: min(70%, 520px); }
  .quick-bar { grid-template-columns: repeat(2, 1fr); }
  .quick-bar li:nth-child(odd) { border-left: 0; }
  .quick-bar li:nth-child(odd) .quick-item { padding-left: 0; }
  .quick-bar li:nth-child(n + 3) { border-top: 1px solid var(--nmc-line); }
  .timeline { padding-left: 2rem; }
}

@media (max-width: 767.98px) {
  .header-pill { padding: .5rem .55rem .5rem .85rem; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions .link-nmc { justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 165px; gap: .8rem; }
  .gallery-item.is-tall { grid-row: span 1; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; }
  .marquee-card { width: 250px; padding: 1.5rem 1.35rem; }
  .marquee-set { gap: .8rem; padding: 0 .4rem; }
  .marquee-track { animation-duration: 44s; }
  .floating-badge { position: static; margin-top: 1rem; }
  .wa-tooltip { display: none; }
  .to-top { width: 42px; height: 42px; }
}

@media (max-width: 575.98px) {
  /* Pause sits beside the indicators, clear of the floating WhatsApp button. */
  .hero-tools { justify-content: flex-start; align-self: flex-start; }
  .deck-card { border-width: 4px; border-radius: 14px; }
  .hero-caption { left: .7rem; right: .7rem; bottom: .55rem; }
  .hero-caption span { display: none; }
  /* Swipe covers next and previous here; pause stays for accessibility. */
  .hero-btn.is-arrow { display: none; }
  .hero-btn { width: 44px; height: 44px; }

  .quick-bar { grid-template-columns: 1fr; }
  .quick-bar li + li { border-left: 0; border-top: 1px solid var(--nmc-line); }
  .quick-item,
  .quick-bar li:first-child .quick-item,
  .quick-bar li:nth-child(odd) .quick-item { padding: .8rem 0; }
  .quick-text { flex: 1; grid-template-columns: auto 1fr; align-items: baseline; gap: .75rem; }
  .quick-label { font-size: .86rem; }
  .quick-value { font-size: .88rem; text-align: right; }
}

@media (min-width: 1600px) {
  .container-nmc { width: min(1400px, 100% - (var(--nmc-gutter) * 2)); }
}

@media print {
  .site-header, .wa-widget, .to-top, #splash, .hero-tools { display: none !important; }
  body { background: #fff; }
}
