/* ═══════════════════════════════════════════════════════════
   DEFENCE SUB-SITE (/defence/) - shell chrome + page additions.

   Loaded by every defence page AFTER nav.css / footer.css /
   defence-page.css. Everything else rides on the existing
   stylesheets: the defence shell reuses the .nav / .mnav /
   .sheet / .footer skeleton unchanged.
   ═══════════════════════════════════════════════════════════ */

/* ───────── "TPTL Defence" wordmark lockup ─────────
   Logo image + separator + DEFENCE in accent caps. Used in the
   desktop nav, mobile nav and footer brand block. */
.dnav__logo {
  display: flex;
  align-items: center;
}
.dnav__wordmark {
  display: inline-block;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--f-display, "Raleway", sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  line-height: 1;
  white-space: nowrap;
}
[data-theme="light"] .dnav__wordmark {
  border-left-color: rgba(35, 31, 32, 0.22);
}
/* Mobile bar: slightly smaller logo + tighter wordmark so the
   lockup clears the search / theme / menu actions on a 390px
   viewport (the .mnav shows ≤1023px). */
.dnav__wordmark--m {
  margin-left: 10px;
  padding-left: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
}
@media (max-width: 1023px) {
  .mnav .dnav__logo .mnav__logo-img {
    width: 104px;
    height: auto;
  }
}
/* Narrow phones (~360-400px): shrink the logo + wordmark so the
   "Triveni | DEFENCE" lockup clears the search / theme / menu icons
   on the right (the default lockup overflowed into the search icon). */
@media (max-width: 400px) {
  .mnav .dnav__logo .mnav__logo-img { width: 90px; }
  .dnav__wordmark--m {
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-left: 8px;
    padding-left: 8px;
  }
}
/* Very narrow phones (≤350px): tighter still. */
@media (max-width: 350px) {
  .mnav .dnav__logo .mnav__logo-img { width: 70px; }
  .dnav__wordmark--m {
    font-size: 7.5px;
    letter-spacing: 0.04em;
    margin-left: 5px;
    padding-left: 5px;
  }
}

/* Hero title: the shared .au-hero__title pins to 24px below ~530px,
   which orphans words on the long defence headline ("…expertise in"
   and "and engineered equipment" each wrapped). Scale it down on
   phones so the three intended lines stay intact. Defence-only:
   this file is loaded by the /defence/ pages, never about.html. */
@media (max-width: 600px) {
  .au-hero__title { font-size: clamp(18px, 5.5vw, 24px); }
}

/* ───────── Page additions (defence home) ───────── */

/* Section eyebrow - small accent caps above a section title. */
.def-eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
}

/* About band without the stats column - copy spans the band. */
.au-overview__band-inner--solo {
  grid-template-columns: 1fr;
}

/* About band: 50-year logo on the left, copy on the right (mirrors the
   home positioning section). The copy is clamped with a Read more toggle. */
.au-overview__band-inner.def-about-cols {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas: "logo copy";
  column-gap: clamp(36px, 5vw, 88px);
  align-items: center;
}
.def-about-cols__logo {
  grid-area: logo;
  display: flex;
  justify-content: center;
}
.def-about-cols__logo .au-overview__years-logo {
  width: 100%;
  max-width: clamp(240px, 26vw, 400px);
  height: auto;
  display: block;
}
.def-about-cols__copy { grid-area: copy; }

/* Clamp the copy to ~1.5 paragraphs, with a fade and a Read more toggle. */
.def-about-cols__clip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  max-height: 13.5em;
  overflow: hidden;
  transition: max-height 480ms ease;
}
.def-about-cols__clip > p { margin: 0; }
.def-about-cols__clip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5em;
  background: linear-gradient(to bottom, rgba(10, 8, 9, 0), rgba(10, 8, 9, 0.92));
  pointer-events: none;
  transition: opacity 300ms ease;
}
.def-about-cols__copy.is-expanded .def-about-cols__clip { max-height: 80em; }
.def-about-cols__copy.is-expanded .def-about-cols__clip::after { opacity: 0; }

.def-about-cols__more {
  margin-top: 18px;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  cursor: pointer;
}
.def-about-cols__more:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .au-overview__band-inner.def-about-cols {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "copy";
    row-gap: clamp(20px, 4vw, 32px);
    align-items: start;
  }
  .def-about-cols__logo { justify-content: flex-start; }
}

/* Mission & Vision and Certifications share the same #0A0809
   background, so their stacked paddings read as one oversized
   gap - tighten the shared edge (defence home only). */
#def-mission-vision { padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(28px, 3.5vw, 48px); }
#def-certs          { padding-top: clamp(28px, 3.5vw, 48px); }

/* Certifications on the warm-grey flat dark (matches home
   case-studies / manufacturing-excellence). Dark theme only -
   light mode keeps the defence-page.css light surface. */
[data-theme="dark"] #def-certs { background: #231F20; }

/* Lifecycle support - 3 pillar cards on one row. */
.def-aftermarket__grid--three {
  grid-template-columns: repeat(3, 1fr);
}
/* Body paragraph shown below the pillar cards. */
.def-aftermarket__sub--after {
  margin-top: clamp(28px, 3vw, 40px);
}
@media (max-width: 1023px) {
  .def-aftermarket__grid--three { grid-template-columns: 1fr; }
}

/* ───────── Infrastructure & Capabilities page ───────── */

/* The .au-hero is position:sticky with z-index:1; content sections
   need position + z-index to slide OVER it (the defence home gets
   this from its .au-hero-pin band, sub-pages need it directly). */
.infra-section {
  position: relative;
  z-index: 1;
}

/* Page section title above the first facility panel. */
.infra-title {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #231F20);
}

/* Capability bullets inside a mev2-panel overlay - always on the
   image's dark gradient, so they stay white in both themes. */
.infra-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.infra-panel__list li {
  position: relative;
  padding-left: 16px;
}
.infra-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #F58220);
}
.infra-panel__list ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Marine Gearbox Manufacturing Plant - compact CTA band below the
   facility panel (title left, button right; stacks on mobile). */
.infra-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(20px, 3vh, 32px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--ink-12, rgba(35, 31, 32, 0.14));
  border-radius: 6px;
  background: var(--paper-elev, #F5F4F1);
}
.infra-cta__title {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #231F20);
}

/* Panel CTA link (e.g. to Gear Manufacturing Capability). */
.def-product__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--accent, #F58220);
  text-decoration: none;
}
.def-product__link:hover { text-decoration: underline; }

/* ───────── Innovation Centres / Careers pages ───────── */

/* Single-column body copy band (R&D intro). */
.innov-body {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.innov-body p {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.7;
  color: var(--ink-80, rgba(35, 31, 32, 0.80));
}

/* Highlight cards below the R&D copy (reuse .def-cap-grid/.def-cap-card). */
.innov-highlights { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1023px) {
  .innov-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .innov-highlights { grid-template-columns: 1fr; }
}

/* Single intro paragraph band (careers). */
.innov-solo {
  max-width: none;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.7;
  color: var(--ink-80, rgba(35, 31, 32, 0.80));
}

/* ───────── News placeholder band ───────── */
.def-news {
  background: var(--paper-elev, #F5F4F1);
  padding: clamp(64px, 8vw, 100px) 0;
}
.def-news__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.def-news__title {
  margin: 0 0 16px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink, #231F20);
}
/* "Coming soon" indicator (news band is a placeholder for now). */
.def-news__soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.10);
  border: 1px solid rgba(245, 130, 32, 0.35);
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
}
.def-news__soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #F58220);
  animation: defSoonPulse 1.8s ease-in-out infinite;
}
@keyframes defSoonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .def-news__soon-dot { animation: none; }
}
