/* ==========================================================================
   North End Courier — Brand overrides
   Loaded AFTER the Logistick template's main.css.
   The template builds every shade from HSL h/s/l variables, so remapping the
   base hue/sat/light cascades the whole palette to the brand colors.
   ========================================================================== */

:root {
  /* Primary accent  ->  Orange #F17300  (used for CTAs / highlights) */
  --main-h: 29;
  --main-s: 100%;
  --main-l: 47%;

  /* Structural dark ->  Dark Blue #002B42  (footer, dark sections, headings) */
  --main-two-h: 201;
  --main-two-s: 100%;
  --main-two-l: 13%;
}

/* --------------------------------------------------------------------------
   Reliable, JS-independent CTA buttons (brand palette).
   The template's animated .btn-main depends on GSAP; these don't.
   -------------------------------------------------------------------------- */
.btn-cta,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-cta {
  /* Accessible CTA orange: white text on the vibrant brand --main-600 (#F17300)
     fails WCAG AA (2.9:1). A darker shade passes while --main-600 stays vibrant
     for accents (route lines, dots, tags). */
  background: #b45309;
  color: #fff !important;
}
.btn-cta:hover {
  background: #9a4708;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--main-two-600) !important; /* dark blue */
  border-color: var(--main-two-600);
}
.btn-ghost:hover {
  background: var(--main-two-600);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-ghost--light {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost--light:hover {
  background: #fff;
  color: var(--main-two-600) !important;
}

/* --------------------------------------------------------------------------
   Small helpers used by the brand pages
   -------------------------------------------------------------------------- */
.brand-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--main-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nec-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}
.nec-card:hover {
  box-shadow: 0 18px 40px rgba(0, 43, 66, 0.1);
  transform: translateY(-4px);
}

.nec-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  background: rgba(241, 115, 0, 0.1);
  color: var(--main-600);
}

.nec-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.nec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 43, 66, 0.92) 0%,
    rgba(0, 43, 66, 0.72) 50%,
    rgba(0, 43, 66, 0.45) 100%
  );
  z-index: 0;
}
.nec-hero > * {
  position: relative;
  z-index: 1;
}

.nec-eyebrow {
  color: var(--main-600);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Header link hover */
.nav-menu__link:hover {
  color: var(--main-600) !important;
}

/* Page breadcrumb / inner hero */
.nec-page-head {
  background: var(--main-two-600);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Readable long-form copy (legal pages)
   -------------------------------------------------------------------------- */
.nec-prose {
  max-width: 820px;
}
.nec-prose h2 {
  color: var(--main-two-600);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.nec-prose h3 {
  color: var(--main-two-600);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.nec-prose p,
.nec-prose li {
  color: #5a6573;
  line-height: 1.8;
}
.nec-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.nec-prose li {
  margin-bottom: 0.5rem;
}
.nec-prose a {
  /* Accessible orange-text (4.57:1 on white); raw --main-600 (#F17300) fails AA. */
  color: var(--nec-orange-text, #b85c00);
  font-weight: 600;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Accessibility: skip link + visible focus
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--main-600);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--main-600);
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--main-600) !important;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressive enhancement; no-JS shows everything)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* a11y: the template's neutral-600 (#abb1ba) is a near-invisible gray on white
   (2.15:1). It's only used as muted body text on white surfaces here — darken it
   to an accessible slate. (neutral-500 is left alone: it's used light-on-navy in
   the footer, where it's correct.) */
.text-neutral-600 {
  color: #5b6472 !important;
}
