/* =========================================================================
   SmartLink — Light theme (B안)
   Loaded after style.css; activated by <html class="theme-light">.
   Navy is kept only as an accent (platform core, step chips, buttons).
   ========================================================================= */

.theme-light {
  --grad-port: linear-gradient(45deg, var(--maritime), var(--green-700)); /* CI gradient: Maritime → Logistics */
  --mint-50: #effcf6;
  --sky-50: #eef6ff;
}

/* ---------------- header ---------------- */
.theme-light .site-header { color: var(--navy-900); }
.theme-light .site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 var(--gray-200), 0 8px 24px -16px rgba(9, 26, 48, .25);
}
.theme-light .brand { color: var(--navy-900); }
.theme-light .nav-link { color: var(--ink-soft); }
.theme-light .nav-link:hover, .theme-light .has-sub.is-open > .nav-link { color: var(--navy-900); background: rgba(9, 26, 48, .05); }
.theme-light .btn-ghost { --btn-fg: var(--navy-900); --btn-bd: var(--gray-300); }
.theme-light .btn-ghost:hover { --btn-bd: var(--navy-900); }
.theme-light .nav-toggle .bar { background: var(--navy-900); }
.theme-light .btn-primary { --btn-bg: var(--navy-900); --btn-fg: var(--white); --btn-bd: var(--navy-900); }
.theme-light .btn-primary:hover { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); box-shadow: 0 10px 24px -10px rgba(9, 26, 48, .55); }
.theme-light .btn-primary .arr { stroke: var(--green); }
.theme-light .btn-outline-light { --btn-fg: var(--navy-900); --btn-bd: var(--gray-300); --btn-bg: var(--white); }
.theme-light .btn-outline-light:hover { --btn-bd: var(--navy-900); }

/* ---------------- hero ---------------- */
.theme-light .hero { background: var(--white); color: var(--navy-900); }
.theme-light .hero-bg {
  background:
    radial-gradient(45% 55% at 82% 32%, rgba(0, 230, 133, .14), transparent 70%),
    radial-gradient(40% 50% at 100% 90%, rgba(0, 137, 255, .10), transparent 70%),
    radial-gradient(35% 45% at 0% 10%, rgba(0, 224, 240, .08), transparent 70%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 75%);
}
.theme-light .hero-bg::after {
  /* soft white wash behind the text column and at the bottom */
  content: ""; position: absolute; inset: 0; -webkit-mask-image: none; mask-image: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .32) 32%, rgba(255, 255, 255, .05) 52%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #ffffff 100%);
}
.theme-light .hero .eyebrow-dark { color: var(--green-800); }
.theme-light .hero-lead { color: var(--ink-soft); }
.theme-light .hero-tags li { border-color: var(--gray-200); color: var(--ink-soft); background: var(--white); }
.theme-light .tags-cap li { border-color: var(--green-700); color: var(--green-800); }
.theme-light .tags-customs li { border-color: var(--navy-900); background: var(--signal); color: var(--navy-900); }

/* hub on white */
.theme-light .hub-ring { stroke: rgba(9, 26, 48, .12); }
.theme-light .hub-ring-2 { stroke: rgba(0, 168, 98, .25); }
.theme-light .flow { stroke: rgba(0, 168, 98, .7); }
.theme-light .pulse { fill: var(--green-700); filter: none; }
.theme-light .pulse-y { fill: var(--signal); stroke: var(--navy-900); stroke-width: 1.2; filter: none; }
.theme-light .node rect { fill: var(--white); stroke: var(--gray-200); filter: drop-shadow(0 6px 14px rgba(9, 26, 48, .1)); }
.theme-light .node text { fill: var(--navy-900); }
.theme-light .n-ic path, .theme-light .n-ic circle { stroke: var(--green-700); }
.theme-light .svc-chip rect { fill: var(--white); stroke: var(--green-700); filter: drop-shadow(0 6px 12px rgba(9, 26, 48, .1)); }
.theme-light .svc-chip text { fill: var(--green-800); }
.theme-light .svc-chip-y rect { fill: var(--signal); stroke: var(--navy-900); }
.theme-light .svc-chip-y text { fill: var(--navy-900); }
.theme-light .chip-link { stroke: rgba(0, 122, 72, .5); }
.theme-light .hub .map-img-dark { display: none; }
.theme-light .hub .map-img-light { display: inline; }
.theme-light .hub-port { fill: var(--white); stroke: var(--green-700); }
.theme-light .hub-port-halo { fill: rgba(0, 168, 98, .14); }
.theme-light .core-box { filter: drop-shadow(0 18px 30px rgba(9, 26, 48, .28)); }

/* service cards sit on a soft band instead of the dark hero */
.theme-light .svc { box-shadow: var(--shadow); }
.theme-light .svc:hover { box-shadow: var(--shadow-lg); }
.theme-light .svc-icon { background: var(--mint-50); }
.theme-light .svc-icon svg { stroke: var(--green-800); }

/* ---------------- capabilities ---------------- */
.theme-light .feature-sec-alt { background: linear-gradient(180deg, #f6fbff, var(--gray-50)); }
/* "How it works" stays navy in both themes (same as Who We Help) */

/* Who We Help stays dark (navy) in both themes */

/* ---------------- clients / story ---------------- */
.theme-light .clients { background: var(--white); }
.theme-light .marquee li { background: var(--white); }
.theme-light .stats { background: var(--gray-200); box-shadow: var(--shadow); }
.theme-light .stats > div { background: var(--white); }
.theme-light .stats dt { color: var(--ink-soft); }
.theme-light .stats dd { color: var(--navy-900); }
.theme-light .stats dd .mono:not(.dd-codes) { background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 92%, transparent 92%); }
.theme-light .stats dd em, .theme-light .stats dd .pre { color: var(--green-700); }

/* ---------------- CTA ---------------- */
.theme-light .cta {
  color: var(--navy-900);
  background:
    linear-gradient(45deg, rgba(239, 252, 246, .96) 30%, rgba(238, 246, 255, .9)),
    url("../img/photos/ship-aerial.jpg") center / cover no-repeat;
}
.theme-light .cta::before { opacity: .22; }
.theme-light .cta-text { color: var(--ink-soft); }
.theme-light .cta mark { color: var(--navy-900); background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%); padding: 0 .1em; }

/* ---------------- footer ---------------- */
.theme-light .site-footer { background: var(--gray-50); color: var(--ink-soft); border-top: 1px solid var(--gray-200); }
.theme-light .footer-grid { border-bottom-color: var(--gray-200); }
.theme-light .footer-tag { color: var(--green-800); }
.theme-light .footer-brand address a:hover { color: var(--navy-900); }
.theme-light .socials a { border-color: var(--gray-300); }
.theme-light .socials svg { stroke: var(--navy-900); }
.theme-light .footer-col h2 { color: var(--navy-900); }
.theme-light .footer-col a:hover { color: var(--green-800); }
.theme-light .legal a:hover { color: var(--navy-900); }
.theme-light .copy { color: var(--gray-500); }

/* ---------------- mobile nav ---------------- */
@media (max-width: 1080px) {
  .theme-light .site-nav { background: var(--white); }
  .theme-light body.nav-open .site-header { background: var(--white); }
  .theme-light .nav-list > li { border-bottom-color: var(--gray-200); }
  .theme-light .sub { color: var(--navy-900); }
  .theme-light .sub a { color: var(--ink-soft); }
  .theme-light .sub a:hover { background: var(--gray-100); color: var(--navy-900); }
  .theme-light .sub-wide a:hover b { color: var(--green-800); }
}

/* ---------------- theme toggle ---------------- */
.theme-light .theme-toggle { border-color: var(--gray-300); color: var(--navy-900); }
.theme-light .theme-toggle:hover { border-color: var(--navy-900); background: rgba(9, 26, 48, .04); }
.theme-light .nav-link[aria-current="page"] { color: var(--green-800); }

/* ---------------- site search ---------------- */
.theme-light .search-toggle { border-color: var(--gray-300); color: var(--navy-900); }
.theme-light .search-toggle:hover { border-color: var(--navy-900); background: rgba(9, 26, 48, .04); }
.theme-light .search-kbd, .theme-light .search-dialog kbd { background: var(--gray-100); color: var(--ink-soft); }
.theme-light .search-overlay { background: rgba(9, 26, 48, .35); }
.theme-light .search-dialog { background: var(--white); color: var(--navy-900); border-color: var(--gray-200); }
.theme-light .search-bar { border-bottom-color: var(--gray-200); }
.theme-light .search-bar > svg { color: var(--green-700); }
.theme-light .search-input::placeholder { color: var(--gray-500); }
.theme-light .search-close:hover kbd { color: var(--navy-900); }
.theme-light .search-results [aria-selected="true"] a { background: var(--mint-50); box-shadow: inset 3px 0 0 var(--green-700); }
.theme-light .search-meta { color: var(--gray-500); }
.theme-light .search-snippet, .theme-light .search-status { color: var(--ink-soft); }
.theme-light .search-results mark, .theme-light .search-status a { color: var(--green-800); }
.theme-light .search-foot { border-top-color: var(--gray-200); color: var(--gray-500); }

/* ---------------- sub pages ---------------- */
.theme-light .page-hero { background: var(--white); color: var(--navy-900); }
.theme-light .page-hero-bg {
  background:
    radial-gradient(45% 80% at 88% 10%, rgba(0, 230, 133, .16), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(0, 137, 255, .10), transparent 70%),
    repeating-linear-gradient(-45deg, transparent 0 119px, rgba(9, 26, 48, .045) 119px 120px),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}
.theme-light .page-hero .eyebrow-dark { color: var(--green-800); }
.theme-light .crumbs ol { color: var(--gray-500); }
.theme-light .crumbs li + li::before { color: var(--gray-300); }
.theme-light .crumbs a:hover { color: var(--navy-900); }
.theme-light .crumbs [aria-current] { color: var(--ink); }
.theme-light .page-meta { color: var(--gray-500); }
.theme-light .chapter-alt { background: linear-gradient(180deg, #f6fbff, var(--gray-50)); }
