/* ==========================================================================
   SUNSHINE ENGINEERING SOLUTIONS (SES)
   LUMINOUS DAYLIGHT MNC THEME LAYER (DEFAULT)
   Crisp Pearl-White Frosted Header • Golden-Sunrise 3D Hero • Royal Sapphire
   ========================================================================== */

/* 1. Soften Core Dark Tokens from Pitch Black -> Rich Architectural Royal Sapphire */
:root {
  --obsidian: #0d2340;
  --obsidian-2: #122d52;
  --navy: #163763;
  --navy-elevated: #1e467a;
  --alabaster: #faf8f4;
  --alabaster-2: #f2efe7;
  --surface: #ffffff;
  --ink: #0d213b;
  --ink-secondary: #3a4f6b;
  --muted: #5a6f8a;
}

/* 2. Refined Royal-Sapphire Top Bar + Crisp Pearl-White Frosted MNC Header */
.top-utility {
  background: #0f294a;
  color: #d6e4f4;
  border-bottom: 1px solid rgba(230, 164, 30, 0.24);
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 41, 74, 0.1);
  box-shadow: 0 4px 20px rgba(15, 41, 74, 0.05);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 32px rgba(15, 41, 74, 0.1);
  border-bottom-color: rgba(230, 164, 30, 0.35);
}

/* Seamless SES Rising-Sun Logo directly on Pure Pearl Header */
.site-header .brand-emblem-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.site-header .brand-emblem-box img {
  height: 40px;
}

.site-header .brand-text strong {
  color: #0d2340;
}

.site-header .brand-text small {
  color: #b47709;
  font-weight: 700;
}

.site-header .nav-link {
  color: #243b57;
  font-weight: 600;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #0d2340;
}

.site-header .nav-link::after {
  background: var(--gold);
}

/* Crisp Architectural White Mega-Dropdown */
.site-header .mega-dropdown {
  background: #ffffff;
  border: 1px solid rgba(15, 41, 74, 0.14);
  box-shadow: 0 26px 70px rgba(15, 41, 74, 0.18);
}

.site-header .mega-item {
  background: #f9f7f2;
  border-color: rgba(15, 41, 74, 0.08);
  color: #0d2340;
}

.site-header .mega-item:hover {
  background: rgba(230, 164, 30, 0.14);
  border-color: var(--gold);
}

.site-header .mega-num {
  background: #0f294a;
  color: var(--gold-bright);
}

.site-header .mega-item span {
  color: #546982;
}

/* Header AI Advisor & Dark CAD Theme Buttons on White Header */
.site-header .hdr-icon-btn {
  background: #f4f6fa;
  border: 1px solid rgba(15, 41, 74, 0.16);
  color: #0f294a;
  font-weight: 600;
}

.site-header .hdr-icon-btn svg {
  color: #b47709;
}

.site-header .hdr-icon-btn:hover {
  background: #0f294a;
  border-color: #0f294a;
  color: #ffffff;
}

.site-header .hdr-icon-btn:hover svg {
  color: var(--gold-bright);
}

.site-header .hdr-kbd {
  background: rgba(15, 41, 74, 0.1);
  color: #0f294a;
}

.site-header .hdr-icon-btn:hover .hdr-kbd {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold-bright);
}

.site-header .mobile-toggle {
  background: #0f294a;
  border-color: #0f294a;
  color: #ffffff;
}

/* 3. Golden-Sunrise Luminous 3D Hero Backdrop (Airy Sapphire-Gold Sunrise, Not Black!) */
.hero {
  background: linear-gradient(118deg, #0d2647 0%, #174072 44%, #2c6294 74%, #c99244 100%);
}

.hero.mode-xray {
  background: linear-gradient(125deg, #091d38 0%, #10325c 55%, #164478 100%);
}

.hero.mode-3d-solid .hero-slides {
  opacity: 0.2;
  filter: saturate(1.1) brightness(1.06);
}

.hero.mode-3d-solid .hero-scrim {
  background:
    linear-gradient(92deg, rgba(11, 31, 58, 0.88) 0%, rgba(14, 39, 73, 0.72) 34%, rgba(18, 50, 92, 0.2) 52%, rgba(18, 50, 92, 0) 70%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.28) 0%, transparent 22%, rgba(11, 31, 58, 0.72) 100%);
}

.hero.mode-xray .hero-scrim {
  background:
    linear-gradient(92deg, rgba(8, 24, 46, 0.9) 0%, rgba(11, 32, 60, 0.72) 35%, rgba(11, 32, 60, 0.16) 56%, rgba(11, 32, 60, 0) 74%),
    linear-gradient(180deg, rgba(8, 24, 46, 0.32) 0%, transparent 22%, rgba(8, 24, 46, 0.8) 100%);
}

.hero-telemetry {
  background: rgba(12, 33, 62, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-mode-toggle {
  background: rgba(12, 33, 62, 0.78);
  border-color: rgba(247, 195, 72, 0.55);
}

.hero-badge {
  background: rgba(13, 35, 64, 0.72);
  border-color: rgba(247, 195, 72, 0.48);
}

.hero-slide-tab {
  background: rgba(13, 35, 64, 0.62);
  border-color: rgba(255, 255, 255, 0.2);
  color: #d6e4f4;
}

.hero-slide-tab.active {
  background: rgba(13, 35, 64, 0.9);
}

/* 4. Airier Royal Sapphire Focal Sections (Bridge Anatomy, India Radar, Page Heroes & Footer) */
.section-dark {
  background: linear-gradient(180deg, #0e2646 0%, #14345d 100%);
}

.section-dark.bg-cad-grid,
.section-navy.bg-cad-grid {
  background-color: #102a4d;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.anatomy-canvas-card {
  background: linear-gradient(160deg, #102d54 0%, #0b213f 100%);
  border-color: rgba(247, 195, 72, 0.35);
}

.anatomy-inspector,
.corridor-detail-card {
  background: linear-gradient(180deg, #163a69 0%, #0f294c 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.india-map-card {
  background: radial-gradient(circle at 46% 36%, rgba(247, 195, 72, 0.16), rgba(14, 38, 70, 0.96) 66%);
  border-color: rgba(247, 195, 72, 0.36);
}

.page-hero {
  background: linear-gradient(120deg, #0e284a 0%, #194274 60%, #24568d 100%);
}

.page-hero-scrim {
  background: linear-gradient(95deg, rgba(12, 34, 64, 0.9) 0%, rgba(16, 44, 80, 0.72) 56%, rgba(18, 50, 90, 0.45) 100%);
}

.cta-banner {
  background: linear-gradient(120deg, #0f2b4f 0%, #1a457a 55%, #275382 100%);
  border-color: rgba(247, 195, 72, 0.45);
}

.site-footer {
  background: #0c223e;
  border-top: 2px solid var(--gold);
}

/* 5. LIGHT-SURFACE ARCHITECTURAL CARDS FOR PLANT, NDT, SCROLLYTELLING & GALLERY */
.section-alabaster .machine-card,
.section-white .machine-card {
  background: #ffffff;
  border: 1px solid rgba(15, 41, 74, 0.11);
  box-shadow: 0 6px 22px rgba(15, 41, 74, 0.05);
}

.section-alabaster .machine-card:hover,
.section-white .machine-card:hover {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(15, 41, 74, 0.11);
}

.section-alabaster .machine-step,
.section-white .machine-step {
  color: var(--crimson);
  font-weight: 700;
}

.section-alabaster .machine-card h4,
.section-white .machine-card h4 {
  color: #0d2340;
}

.section-alabaster .machine-card p,
.section-white .machine-card p {
  color: #536882;
}

.section-alabaster .plant-media-card,
.section-white .plant-media-card {
  background: #ffffff;
  border: 1px solid rgba(15, 41, 74, 0.13);
  box-shadow: 0 22px 56px rgba(15, 41, 74, 0.12);
}

.section-alabaster .plant-metric,
.section-white .plant-metric {
  background: #f8f6f0;
  border: 1px solid rgba(15, 41, 74, 0.09);
}

.section-alabaster .plant-metric strong,
.section-white .plant-metric strong {
  color: #0f294a;
}

.section-alabaster .plant-metric span,
.section-white .plant-metric span {
  color: #536882;
}

/* Light-Surface NDT Cards */
.section-white .ndt-card,
.section-alabaster .ndt-card {
  background: #faf8f4;
  border: 1px solid rgba(15, 41, 74, 0.1);
  transition: all 0.24s var(--ease-out);
}

.section-white .ndt-card:hover,
.section-alabaster .ndt-card:hover {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(15, 41, 74, 0.08);
  transform: translateY(-2px);
}

.section-white .ndt-card .idx,
.section-alabaster .ndt-card .idx {
  background: #0f294a;
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-white .ndt-card h5,
.section-alabaster .ndt-card h5 {
  color: #0d2340;
}

.section-white .ndt-card p,
.section-alabaster .ndt-card p {
  color: #556a84;
}

/* Light-Surface Scrollytelling Chapters */
.section-alabaster .story-sticky-stage {
  background: #ffffff;
  border: 1px solid rgba(15, 41, 74, 0.14);
  box-shadow: 0 24px 60px rgba(15, 41, 74, 0.14);
}

.section-alabaster .story-stage-meta {
  background: #0f294a;
}

.section-alabaster .story-chapter {
  background: #ffffff;
  border: 1px solid rgba(15, 41, 74, 0.1);
  box-shadow: 0 4px 16px rgba(15, 41, 74, 0.04);
}

.section-alabaster .story-chapter .ch-num {
  color: var(--crimson);
  font-weight: 700;
}

.section-alabaster .story-chapter h3 {
  color: #0d2340;
}

.section-alabaster .story-chapter p {
  color: #526782;
}

.section-alabaster .story-chapter.active,
.section-alabaster .story-chapter:hover {
  background: #ffffff;
  border-color: var(--gold);
  border-left: 4px solid var(--gold);
  box-shadow: 0 16px 38px rgba(15, 41, 74, 0.11);
}

/* Light-Surface Gallery Framing */
.section-alabaster .gallery-tile,
.section-white .gallery-tile {
  border: 1px solid rgba(15, 41, 74, 0.12);
  box-shadow: 0 12px 32px rgba(15, 41, 74, 0.1);
}

/* 6. Preserve Full Dark Mode Toggle When User Explicitly Clicks "2050 CAD" */
html[data-theme="obsidian2050"] .site-header {
  background: rgba(6, 16, 31, 0.94);
  border-bottom-color: rgba(230, 164, 30, 0.24);
}

html[data-theme="obsidian2050"] .site-header .brand-emblem-box {
  background: #ffffff;
  padding: 5px 9px;
  border-radius: 9px;
}

html[data-theme="obsidian2050"] .site-header .brand-emblem-box img {
  height: 34px;
}

html[data-theme="obsidian2050"] .site-header .brand-text strong {
  color: #ffffff;
}

html[data-theme="obsidian2050"] .site-header .brand-text small {
  color: var(--gold-bright);
}

html[data-theme="obsidian2050"] .site-header .nav-link {
  color: var(--ink-light-secondary);
}

html[data-theme="obsidian2050"] .site-header .nav-link:hover,
html[data-theme="obsidian2050"] .site-header .nav-link.active {
  color: #ffffff;
}

html[data-theme="obsidian2050"] .site-header .hdr-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

html[data-theme="obsidian2050"] .site-header .hdr-kbd {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-bright);
}

html[data-theme="obsidian2050"] .site-header .mega-dropdown {
  background: #0a182c;
  border-color: rgba(230, 164, 30, 0.28);
}

html[data-theme="obsidian2050"] .site-header .mega-item {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

html[data-theme="obsidian2050"] .site-header .mega-item span {
  color: var(--muted-light);
}

html[data-theme="obsidian2050"] .section-alabaster .machine-card,
html[data-theme="obsidian2050"] .section-white .machine-card,
html[data-theme="obsidian2050"] .section-white .ndt-card,
html[data-theme="obsidian2050"] .section-alabaster .story-chapter,
html[data-theme="obsidian2050"] .section-alabaster .plant-media-card {
  background: rgba(11, 25, 48, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="obsidian2050"] .section-alabaster .machine-card h4,
html[data-theme="obsidian2050"] .section-white .ndt-card h5,
html[data-theme="obsidian2050"] .section-alabaster .story-chapter h3,
html[data-theme="obsidian2050"] .section-alabaster .plant-metric strong {
  color: #ffffff;
}

html[data-theme="obsidian2050"] .section-alabaster .machine-card p,
html[data-theme="obsidian2050"] .section-white .ndt-card p,
html[data-theme="obsidian2050"] .section-alabaster .story-chapter p,
html[data-theme="obsidian2050"] .section-alabaster .plant-metric span {
  color: var(--ink-light-secondary);
}

html[data-theme="obsidian2050"] .section-alabaster .plant-metric {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Minimal Circular Executive Icon Buttons (No Tech-App Clutter!) */
.hdr-circle-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

/* Hide 3D Mode Bar until User Launches Live 3D Bridge — Pure Luxury Uncluttered First Screen! */
.hero.mode-photo .hero-3d-toolbar {
  display: none;
}

.hero.mode-photo .hero-scrim {
  background:
    linear-gradient(94deg, rgba(10, 28, 52, 0.88) 0%, rgba(12, 34, 62, 0.66) 40%, rgba(12, 34, 62, 0.14) 72%, rgba(12, 34, 62, 0.34) 100%),
    linear-gradient(180deg, rgba(10, 28, 52, 0.25) 0%, transparent 28%, rgba(10, 28, 52, 0.82) 100%);
}

.hero-secondary-link {
  margin-top: 16px;
}

.hero-secondary-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(247, 195, 72, 0.55);
  padding-bottom: 2px;
}

.hero-secondary-link a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* Clean Luminous Glass Capability Card in Photo View */
.hero-dossier-card {
  background: rgba(11, 31, 58, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 2.5px solid var(--gold-bright);
  backdrop-filter: blur(20px);
}

/* Mobile Header Seamless Logo Adjustment */
@media (max-width: 620px) {
  .site-header .brand-emblem-box img {
    height: 30px;
  }

  .hdr-circle-btn {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 385px) {
  .site-header .brand-emblem-box img {
    height: 25px;
  }
}
