/* ============================================================
   Curtiss-Wright Nuclear — Brand Design System
   Extracted from: nuclear.curtisswright.com
   Layout inspired by: ui.com product marketing structure
   ============================================================ */

/* --- COLOR PALETTE ----------------------------------------- */
:root {
  /* Primary brand colors */
  --cw-navy:        #0b1f3a;   /* deep navy — primary backgrounds, navbar */
  --cw-navy-mid:    #142d52;   /* mid navy — hero sections, footers       */
  --cw-navy-light:  #1e3f6e;   /* lighter navy — card hover, borders      */

  /* Accent */
  --cw-red:         #c8102e;   /* CW brand red — CTAs, highlights         */
  --cw-red-dark:    #9e0b22;   /* red hover state                         */
  --cw-red-light:   #f0cdd2;   /* red tint — badges, backgrounds          */

  /* Neutrals */
  --cw-white:       #ffffff;
  --cw-off-white:   #f5f6f7;   /* page background                         */
  --cw-gray-100:    #eaecef;   /* section dividers, card borders          */
  --cw-gray-300:    #bcc2cc;   /* muted borders                           */
  --cw-gray-500:    #6b7585;   /* secondary text                          */
  --cw-gray-700:    #3c4554;   /* body text                               */
  --cw-gray-900:    #111827;   /* headings                                */

  /* Status */
  --cw-green:       #1a7f4b;   /* success / available                     */
  --cw-amber:       #c07a00;   /* warning                                 */

  /* Typography */
  --font-heading:   'Montserrat', 'Segoe UI', sans-serif;
  --font-body:      'Open Sans', 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(11,31,58,0.10);
  --shadow-md:  0 4px 16px rgba(11,31,58,0.14);
  --shadow-lg:  0 8px 32px rgba(11,31,58,0.18);

  /* Transitions */
  --transition: 0.2s ease;

  /* Layout */
  --max-width:    1280px;
  --nav-height:   64px;
}

/* --- RESET & BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cw-gray-700);
  background: var(--cw-off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--cw-gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label-tag {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-red);
}

/* --- LAYOUT UTILITIES -------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section { padding: var(--space-lg) 0; }
.section--dark {
  background: var(--cw-navy);
  color: var(--cw-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--cw-white); }
.section--dark p { color: rgba(255,255,255,0.7); }

.section--mid {
  background: var(--cw-navy-mid);
  color: var(--cw-white);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--space-md); }
}

/* --- NAVBAR ------------------------------------------------ */
.navbar__Top {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--nav-height);
  background: var(--cw-navy);
  border-bottom: 2px solid var(--cw-red);
  display: flex;
  align-items: center;
}
.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.navbar__logo-img {
 
  width: auto;
  display: block;
}
.navbar__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--cw-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--cw-white);
  letter-spacing: 0.05em;
}
.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cw-white);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.navbar__logo-sub {
  font-size: 0.625rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.navbar__nav {
  display: flex;
  align-items: stretch;
  gap: var(--space-xl);
}
.navbar__link1 {
  display: flex;
  align-items: center;    /* re-center text now that li uses align-items: stretch */
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.navbar__link1:hover { color: var(--cw-white); }
.navbar__link1--active { color: var(--cw-white); border-bottom: 2px solid var(--cw-red); padding-bottom: 2px; }
.navbar__actions { display: flex; align-items: center; gap: var(--space-md); }

/* --- BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--cw-red);
  color: var(--cw-white);
  border-color: var(--cw-red);
}
.btn--primary:hover { background: var(--cw-red-dark); border-color: var(--cw-red-dark); }

.btn--outline {
  background: transparent;
  color: var(--cw-white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover { border-color: var(--cw-white); background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  color: var(--cw-navy);
  border-color: var(--cw-navy);
}
.btn--outline-dark:hover { background: var(--cw-navy); color: var(--cw-white); }

.btn--sm { padding: 7px 14px; font-size: 0.75rem; }
.btn--lg { padding: 14px 32px; font-size: 0.9375rem; }

/* --- HERO -------------------------------------------------- */
.hero {
  background: var(--cw-navy);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 900px;
  gap: var(--space-xl);
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--cw-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}
.hero__title span { color: var(--cw-red); }
.hero__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  margin-bottom: var(--space-md);
  line-height: 1.65;
}
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero__visual {
  background: var(--cw-navy-light);
  border-radius: var(--radius-lg);
  width: 900px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__visual-placeholder {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* --- STATS BAND -------------------------------------------- */
.stats-band {
  background: var(--cw-red);
  padding: var(--space-xl) 0;
}
.stats-band__inner {
  display: flex;
  gap: 0;
  justify-content: space-around;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: var(--space-md) var(--space-xl);
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--cw-white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat + .stat {
  border-left: 1px solid rgba(255,255,255,0.25);
}

/* --- PRODUCT CARDS ----------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
@media (max-width: 900px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--cw-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cw-gray-100);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--cw-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--cw-gray-100);
}
.product-card__img-placeholder {
  font-size: 0.6875rem;
  color: var(--cw-gray-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-card__body { padding: var(--space-lg); }
.product-card__tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-red);
  margin-bottom: var(--space-xs);
}
.product-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--cw-gray-900);
}
.product-card__desc {
  font-size: 0.875rem;
  color: var(--cw-gray-500);
  margin-bottom: var(--space-md);
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--cw-gray-100);
}
.product-card__link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cw-red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.product-card__link:hover { gap: 8px; }
.product-card__badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--cw-red-light);
  color: var(--cw-red-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- FEATURE ROW ------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row__visual {
  background: var(--cw-gray-100);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cw-gray-100);
}
.feature-row__content { }
.feature-row__title { margin-bottom: var(--space-md); }
.feature-row__desc { color: var(--cw-gray-500); margin-bottom: var(--space-xl); }
.feature-list { margin: var(--space-md) 0 var(--space-xl); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--cw-gray-100);
  font-size: 0.9375rem;
  color: var(--cw-gray-700);
}
.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cw-red);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse { direction: ltr; }
}

/* --- SECTION HEADER ---------------------------------------- */
.section-header { text-align: left; padding-left: 15px;/*  margin: 0 auto var(--space-xl); */} 
.section-header .label-tag { margin-bottom: var(--space-sm); display: block; }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { color: var(--cw-gray-500); font-size: 1.0625rem; }

.section--dark .section-header h2 { color: var(--cw-white); }
.section--dark .section-header p { color: rgba(255,255,255,0.6); }
.section--dark .label-tag { color: #ff6b82; }

/* --- BRAND STRIP ------------------------------------------- */
.brand-strip {
  background: var(--cw-white);
  border-top: 1px solid var(--cw-gray-100);
  border-bottom: 1px solid var(--cw-gray-100);
  padding: var(--space-xl) 0;
}
.brand-strip--sticky {
  position: sticky;
  top: var(--nav-height);
  z-index: 999;
}
.brand-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--radius-lg);
  flex-wrap: wrap;
}
.brand-logo {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cw-gray-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.brand-logo:hover { color: var(--cw-navy); }

/* --- CALLOUT BANNER ---------------------------------------- */
.callout-banner {
  background: var(--cw-navy-mid);
  border-left: 4px solid var(--cw-red);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.callout-banner__text h3 { color: var(--cw-white); margin-bottom: var(--space-xs); }
.callout-banner__text p { color: rgba(255,255,255,0.65); margin: 0; font-size: 0.9375rem; }

/* --- FOOTER ------------------------------------------------ */
.footer {
  background: var(--cw-gray-900);
  color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer__brand p { font-size: 0.875rem; margin-top: var(--space-md); line-height: 1.7; }
.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-white);
  margin-bottom: var(--space-md);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__link { font-size: 0.875rem; transition: color var(--transition); }
.footer__link:hover { color: var(--cw-white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: var(--space-lg); }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --- MEGA DROPDOWN ----------------------------------------- */
.navbar__nav-item {
  display: flex;
  align-items: stretch;   /* li fills the full 64 px nav height */
  position: relative;
}

.mega-dropdown {
  position: fixed;
  top: var(--nav-height);   /* always flush below the 64 px sticky nav */
  left: 0;
  right: 0;
  background: var(--cw-white);
  border-top: 1px solid var(--cw-gray-100);
  box-shadow: 0 12px 40px rgba(11,31,58,0.14);
  padding: 28px 0 32px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 9999;
}

/* .is-open is set/cleared by JS with a 150 ms grace delay that bridges the
   2 px nav border gap between the trigger and the dropdown panel.
   :hover kept as a no-JS fallback. */
.navbar__nav-item:hover .mega-dropdown,
.navbar__nav-item.is-open .mega-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.mega-dropdown__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.mega-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--cw-gray-900);
  transition: background var(--transition);
  cursor: pointer;
}

.mega-card:hover {
  background: var(--cw-off-white);
}

.mega-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cw-gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.mega-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mega-card__title {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--cw-gray-700);
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* --- SCROLL REVEAL ----------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* --- MOBILE NAV -------------------------------------------- */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.navbar__hamburger span {
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  display: block;
  transition: 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--cw-navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  z-index: 99;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .navbar__nav, .navbar__actions { display: none; }
  .navbar__hamburger { display: flex; }
}


 .exp-hero {
   background: var(--cw-navy);
   padding: 48px 0 36px;
   text-align: center;
   color: var(--cw-white);
 }

 .exp-hero__title {
   font-family: var(--font-heading);
   font-size: clamp(1.6rem, 4vw, 2.4rem);
   font-weight: 800;
   letter-spacing: -0.02em;
   margin: 0 0 10px;
   color: white;
 }

 .exp-hero__sub {
   font-size: 1rem;
   color: rgba(255, 255, 255, 0.65);
   margin: 0;
 }