/* Naren Technologies Services — roadmap layout + dark / orange UI */
:root {
  --navy: #0a0a0a;
  --navy-mid: #111111;
  --navy-light: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --white: #fafafa;
  --surface: #ffffff;
  --accent: #e85d24;
  --accent-soft: rgba(232, 93, 36, 0.4);
  --accent-hover: #ff6b2c;
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 4.25rem;
  --header-safe: env(safe-area-inset-top, 0px);
  --header-stack: calc(var(--header-h) + var(--header-safe));
  --content-max: min(1240px, 94vw);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: var(--content-max);
  margin-inline: auto;
  box-sizing: border-box;
}

.wrap.narrow {
  width: min(760px, var(--content-max));
  max-width: 100%;
}

/* Menu scrim (mobile): between page content and drawer */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

body.menu-open .menu-scrim:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .menu-scrim {
    display: none !important;
  }
}

main {
  position: relative;
  z-index: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding-top: var(--header-safe);
  min-height: var(--header-stack);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.header-inner {
  width: var(--content-max);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.62rem, 1.35vw + 0.42rem, 1rem);
  color: var(--white);
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.15;
  text-transform: none;
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-inner > .logo {
  max-width: min(17.5rem, 72vw);
}

.logo-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.logo-mark {
  flex-shrink: 0;
  font-weight: 800;
  font-size: clamp(0.72rem, 1.1vw + 0.48rem, 0.95rem);
  letter-spacing: 0.07em;
  line-height: 1;
  padding: 0.42em 0.48em;
  color: var(--navy);
  background: var(--accent);
  border-radius: 6px;
}

.logo-word {
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  min-width: 0;
}

.logo-word-line {
  display: block;
  font-size: clamp(0.52rem, 0.85vw + 0.36rem, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.12;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .logo-word {
    display: none;
  }

  .header-inner > .logo {
    max-width: none;
  }
}

.logo::after {
  content: "";
  display: block;
  width: 2.75rem;
  max-width: 100%;
  height: 3px;
  margin-top: 0.4rem;
  background: var(--accent);
  border-radius: 1px;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo:hover .logo-mark {
  background: var(--accent-hover);
}

.logo:hover::after {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  z-index: 220;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:active {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--white);
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-caret::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  margin-top: 2px;
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease);
  transform-origin: 50% 35%;
}

.nav-connect {
  color: var(--accent) !important;
  font-weight: 600;
}

.nav-connect:hover {
  color: var(--accent-hover) !important;
}

.nav-search-item {
  margin-left: 0.15rem;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.35rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  text-decoration: none;
}

.nav-search:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  padding: 1rem 0;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s, transform 0.2s var(--ease);
}

.mega-wide {
  min-width: min(640px, 90vw);
  padding: 1.25rem;
}

.mega-extra-wide {
  min-width: min(920px, 96vw);
}

/* Desktop mega: hover only on fine pointers (avoids touch “sticky hover” blocking the drawer) */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .nav-item.has-mega:hover .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 1024px) {
  .nav-item.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.mega ul {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem;
}

.mega a {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-decoration: none;
}

.mega a:hover {
  color: var(--accent);
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.mega-cols--two {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .mega-cols--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .mega-cols:not(.mega-cols--two):not(.mega-cols--products) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mega-cols--products {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .mega-cols--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mega-cols--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mega-cols strong {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.mega-cols ul {
  padding: 0;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  min-height: min(88dvh, 52rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: calc(var(--header-stack) + 3rem) 0 max(3.5rem, env(safe-area-inset-bottom, 0px));
  color: var(--white);
  background: #141414;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: contrast(1.04) saturate(0.32);
  transform: scale(1.02);
  animation: hero-ken 22s var(--ease-out) infinite alternate;
}

@keyframes hero-ken {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-0.8%, -0.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img {
    animation: none;
    transform: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(8, 8, 8, 0.88) 0%,
    rgba(8, 8, 8, 0.55) 42%,
    rgba(20, 12, 8, 0.4) 100%
  );
}

.hero-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 40% at 78% 22%, var(--accent-soft), transparent 55%),
    radial-gradient(circle 280px at 12% 70%, rgba(232, 93, 36, 0.18), transparent 60%),
    radial-gradient(circle 180px at 55% 88%, rgba(255, 200, 120, 0.12), transparent 55%);
  opacity: 0.55;
}

/* Push copy to the visual foot of the hero; do not set width here — .wrap sets --content-max */
.hero-content {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-bottom: 0.25rem;
  opacity: 1;
  animation: hero-rise-soft 0.85s var(--ease-out) both;
}

/* Transform-only entrance so text is never stuck at opacity:0 if animations fail */
@keyframes hero-rise-soft {
  from {
    transform: translateY(1rem);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
}

.hero-content .hero-title {
  animation: rise-soft 0.75s var(--ease-out) 0.06s both;
}

.hero-content .hero-lead {
  animation: rise-soft 0.75s var(--ease-out) 0.14s both;
}

.hero-content .btn-primary {
  animation: rise-soft 0.75s var(--ease-out) 0.22s both;
}

@keyframes rise-soft {
  from {
    transform: translateY(0.65rem);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content .hero-title,
  .hero-content .hero-lead,
  .hero-content .btn-primary {
    animation: none;
  }
}

.hero-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  margin: 0 0 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 38rem;
}

.hero-title-primary {
  display: block;
  font-size: clamp(1.55rem, 3.6vw, 2.45rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero-title-secondary {
  display: block;
  font-size: clamp(0.9rem, 1.85vw, 1.1rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 32rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 93, 36, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 5rem 0;
  scroll-margin-top: calc(var(--header-stack) + 0.75rem);
}

/* Scroll polish: never fully hide content (opacity:0 + IO missed = blank page) */
.section.reveal-ready {
  opacity: 1;
  transform: translateY(12px);
  transition: transform 0.65s var(--ease-out);
}

.section.reveal-ready.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section.reveal-ready {
    transform: none;
    transition: none;
  }
}

.section-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.section-title.light {
  color: var(--white);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.section-lead.light {
  color: rgba(255, 255, 255, 0.78);
}

.intro {
  padding-bottom: 2rem;
}

.intro .section-title {
  text-align: center;
}

.intro .section-lead {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.section-lead--spaced {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-body {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: left;
}

.intro .section-body {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.solutions .section-title {
  text-align: center;
}

.solutions .section-lead {
  text-align: center;
  margin-inline: auto;
  max-width: 36rem;
}

/* Solution grid */
.solution-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .solution-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.solution-card[id] {
  scroll-margin-top: calc(var(--header-stack) + 1rem);
}

.solution-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.3s var(--ease);
}

.solution-card:hover {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 20px 50px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: rgba(232, 93, 36, 0.2);
}

.solution-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.solution-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.solution-body h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.solution-body p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.text-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

/* Other services (technology catalogue) */
.other-services {
  background: linear-gradient(180deg, var(--white) 0%, #f6f7f9 100%);
}

.other-services .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.other-services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .other-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .other-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.other-service-card[id] {
  scroll-margin-top: calc(var(--header-stack) + 1rem);
}

.other-service-card {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 36px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.25s var(--ease);
}

.other-service-card:hover {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 16px 44px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  border-color: rgba(232, 93, 36, 0.18);
}

.other-service-card h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.other-service-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-muted);
}

/* Pillars */
.pillars {
  background: linear-gradient(180deg, #f0f2f5 0%, var(--white) 100%);
}

.pillar-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  padding: 1.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(12, 21, 36, 0.06);
}

.pillar h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.pillar p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Band */
.band {
  background: var(--navy);
  color: var(--white);
}

.band .section-title,
.band .section-lead {
  text-align: center;
}

/* News */
.news-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.news-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.news-body time {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.news-body h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0.5rem 0;
  line-height: 1.35;
}

.news-body h3 a {
  text-decoration: none;
  color: var(--navy);
}

.news-body h3 a:hover {
  color: var(--accent);
}

.news-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact .vcard {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
}

.contact .vcard a {
  color: var(--navy);
  font-weight: 600;
}

.contact .vcard a:hover {
  color: var(--accent);
}

.contact .vcard .contact-parent {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact .vcard-landing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
  margin: 1.5rem 0 0;
  text-align: left;
}

.contact .vcard-landing .vcard-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact .vcard-landing .vcard-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact .vcard-landing .vcard-lines p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact .vcard-landing .vcard-email {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.logo-footer {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  max-width: none;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  line-height: 1.2;
}

.logo-footer .logo-inner {
  gap: 0.65rem;
}

.logo-footer .logo-mark {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  padding: 0.4em 0.5em;
}

.logo-footer .logo-word-line {
  font-size: clamp(0.65rem, 1.4vw, 0.82rem);
  color: var(--white);
  font-weight: 600;
}

.footer-grid strong {
  display: block;
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

.footer-bottom p {
  margin: 0;
}

.logo-footer::after {
  display: none;
}

/* Leadership */
.leadership .section-title {
  margin-bottom: 2rem;
}

.leader-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .leader-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .leader-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.leader-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.leader-body {
  flex: 1;
  padding: 1.35rem 1.5rem 1.5rem;
}

.leader-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.leader-role {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.leader-body p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Mobile nav — drawer + scrim tap target */
@media (max-width: 1023px) {
  .logo::after {
    height: 2px;
    width: 1.75rem;
    margin-top: 0.35rem;
  }

  /* Logo accent competes with the close control when the drawer is open */
  body.menu-open .logo::after {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transform: scaleX(0.4);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-stack);
    right: 0;
    left: auto;
    bottom: 0;
    width: min(22rem, 88vw);
    max-width: 100%;
    background: var(--navy-mid);
    padding: 1.25rem 1.35rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: manipulation;
    transform: translateX(100%);
    transition: transform 0.42s var(--ease-out);
    z-index: 210;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
    border-left: 1px solid var(--border);
    isolation: isolate;
  }

  body.menu-open .site-nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item.has-mega {
    position: relative;
    z-index: 1;
  }

  .nav-item.has-mega.is-open {
    z-index: 2;
  }

  .nav-item.has-mega.is-open .nav-caret::after {
    transform: rotate(180deg);
  }

  .nav-item.has-mega > .nav-link.nav-caret {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    gap: 0.75rem;
    cursor: pointer;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-connect {
    margin-top: 0.25rem;
  }

  .nav-search-item {
    margin-left: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-search {
    width: 100%;
    min-height: 48px;
    height: auto;
    justify-content: flex-start;
    padding: 0.35rem 0;
  }

  .mega,
  .mega-wide {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.22);
    margin: 0 -1.35rem;
    padding: 0.75rem 1.35rem 1rem;
    border-radius: 0;
    display: none;
  }

  .nav-item.has-mega.is-open .mega {
    display: block;
  }

  .mega-cols {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    transform: none !important;
    background: transparent;
    box-shadow: none;
    border: none;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}
