/* ==========================================================================
   COWELL SOLUTION — Light Edition v3
   Custom layer on top of Tailwind utility classes (see tailwind.config in
   index.html). Keep this file for brand tokens, decorative motifs and the
   small responsive / accessibility fixes that utilities cannot express.
   ========================================================================== */

:root {
  --navy: #122b63;
  --navy-deep: #0c1e47;
  --navy-soft: #1d418f;
  --cyan: #0d96d8;
  --cyan-light: #38b6f0;
  --cyan-mist: #ebf6fc;
  --cyan-ice: #f5fafd;
  --paper: #ffffff;
  --ink-muted: #64748b;
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Decorative SVGs sit at -right-16 / -left-16; never let them create a
   horizontal scrollbar on small screens. */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    'Helvetica Neue', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  /* Korean copy should wrap between words, not inside them. */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

/* Fixed header is 5rem tall: keep anchor targets clear of it. */
section[id],
div[id='top'] {
  scroll-margin-top: 6rem;
}

/* --------------------------------------------------------------------------
   2. Brand motifs (Light Edition v3)
   -------------------------------------------------------------------------- */
.luminous-hero {
  background: linear-gradient(155deg, #ffffff 0%, #f5fafd 52%, #e8f4fc 100%);
}

.arch-dots {
  background-image: radial-gradient(rgba(18, 43, 99, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
}

.pillar-accent {
  background: linear-gradient(90deg, #122b63 0%, #0d96d8 100%);
}

.text-brand-gradient {
  background: linear-gradient(90deg, #122b63 0%, #0d96d8 55%, #38b6f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--navy);
}

/* Mobile drawer: keep long menus scrollable inside the viewport. */
#mobile-menu {
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu a {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

#mobile-menu a:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.role-card .role-cta svg {
  transition: transform 0.2s ease;
}

.role-card:hover .role-cta svg {
  transform: translateX(3px);
}

/* Highlight the contact form when a careers CTA hands over to it. */
.form-highlight {
  box-shadow: 0 0 0 4px rgba(13, 150, 216, 0.16), 0 4px 24px -6px rgba(18, 43, 99, 0.06);
}

/* Text inputs stay inside their column on very narrow screens. */
input,
select,
textarea {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   5. Accessibility
   -------------------------------------------------------------------------- */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

/* --------------------------------------------------------------------------
   6. Small-screen refinements (360px ~ 430px) & tablet
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .btn-stack {
    width: 100%;
    justify-content: center;
  }

  #careers .careers-actions {
    width: 100%;
  }
}

/* Tablet: keep the 2-up pillar grid from getting too tight. */
@media (min-width: 768px) and (max-width: 1023px) {
  .pillar-card .pillar-body {
    padding: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   7. Print (one-page company profile fallback)
   -------------------------------------------------------------------------- */
@media print {
  header,
  #careers .careers-actions,
  #contact-form {
    display: none !important;
  }

  body {
    color: #111;
  }

  section {
    break-inside: avoid;
  }
}
