/* ============================================================
   TRUE NORTH 54 — Main Stylesheet
   ============================================================ */

:root {
  --tn54-navy: #1c2942;
  --tn54-navy-2: #22314f;
  --tn54-orange: #f97a14;
  --tn54-orange-dark: #eb6d09;
  --tn54-lime: #c7ea79;
  --tn54-bg: #f4f4f4;
  --tn54-surface: #ffffff;
  --tn54-text: #243041;
  --tn54-text-soft: #5d6775;
  --tn54-border: rgba(20, 31, 49, 0.08);
  --tn54-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --tn54-radius: 18px;
  --tn54-radius-sm: 12px;
  --tn54-container: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--tn54-text);
  background: var(--tn54-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.tn54-container {
  width: min(calc(100% - 32px), var(--tn54-container));
  margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--tn54-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.site-brand__text { font-weight: 700; font-size: 16px; color: #fff; }
.site-nav__list {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav__list a { color: rgba(255,255,255,0.9); font-size: 14px; transition: color 0.2s; }
.site-nav__list .current-menu-item a,
.site-nav__list a:hover { color: var(--tn54-orange); }
.site-header__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--tn54-navy) 0%, #1d2f4b 60%, #314f47 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.page-hero__content { max-width: 760px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.page-hero p { margin: 0; max-width: 680px; color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section--light { background: #f7f7f7; }
.section--dark { background: var(--tn54-navy); color: #fff; }
.center { text-align: center; }
.text-left { text-align: left; }
.narrow { max-width: 820px; margin: 0 auto; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}
.section-heading p { margin: 0; color: var(--tn54-text-soft); }
.section--dark .section-heading p,
.section--dark p { color: rgba(255,255,255,0.82); }

/* ============================================================
   EYEBROW / PILL BADGES
   ============================================================ */
.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(249, 122, 20, 0.12);
  color: var(--tn54-orange-dark);
  margin-bottom: 14px;
}
.eyebrow--lime { background: rgba(199,234,121,.22); color: #6d8c1e; }
.eyebrow svg, .pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.pill--green  { background: rgba(34,197,94,0.12);  color: #15803d; }
.pill--orange { background: rgba(249,122,20,0.12); color: var(--tn54-orange-dark); }
.pill--blue   { background: rgba(59,130,246,0.12); color: #1d4ed8; }

/* ============================================================
   ICON BOX
   ============================================================ */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(249,122,20,0.10);
  color: var(--tn54-orange);
  margin-bottom: 16px;
  transition: transform 0.5s var(--ease-out), background 0.3s;
  flex-shrink: 0;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--lime  { background: rgba(199,234,121,0.20); color: #6d8c1e; }
.icon-box--blue  { background: rgba(59,130,246,0.12);  color: #1d4ed8; }
.info-card:hover .icon-box { transform: rotate(360deg) scale(1.1); }

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(249,122,20,0.12);
  color: var(--tn54-orange);
  flex-shrink: 0;
}
.icon-circle svg { width: 18px; height: 18px; }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.card-grid { display: grid; gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   CARDS
   ============================================================ */
.info-card,
.faq-card,
.process-card,
.project-card,
.panel,
.story-card,
.pricing-card,
.contact-form-panel {
  background: var(--tn54-surface);
  border-radius: var(--tn54-radius);
  box-shadow: var(--tn54-shadow);
  border: 1px solid var(--tn54-border);
}
.info-card,
.faq-card,
.process-card,
.story-card,
.contact-form-panel,
.panel,
.pricing-card { padding: 28px; }

.info-card { transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.info-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(17,24,39,0.14); }

.info-card h3,
.faq-card h3,
.process-card h3,
.pricing-card h3 { margin-top: 0; margin-bottom: 10px; }
.info-card p,
.faq-card p,
.process-card p,
.pricing-card p { margin: 0; color: var(--tn54-text-soft); }

/* ============================================================
   SPLIT CONTENT
   ============================================================ */
.split-content,
.contact-layout,
.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: center;
}
.service-row + .service-row { margin-top: 72px; }
.service-row--reverse .service-row__content { order: 2; }
.service-row--reverse .service-row__media  { order: 1; }
.content-image {
  width: 100%;
  border-radius: var(--tn54-radius);
  box-shadow: var(--tn54-shadow);
  transition: transform 0.4s var(--ease-out);
}
.content-image:hover { transform: scale(1.02); }
.service-row__intro,
.price-inline,
.accent-text { color: var(--tn54-orange-dark); font-weight: 700; }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.tn54-feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.tn54-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.tn54-feature-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tn54-orange);
  flex-shrink: 0;
  margin-top: 7px;
  transition: transform 0.3s;
}
.tn54-feature-list li:hover::before { transform: scale(1.4); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--tn54-navy);
  color: #fff;
  padding: 42px 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
.stats-band__grid > div { transition: transform 0.3s var(--ease-out); cursor: default; }
.stats-band__grid > div:hover { transform: scale(1.08); }
.stats-band strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--tn54-orange);
  line-height: 1;
  margin-bottom: 10px;
}
.stats-band span { display: block; color: rgba(255,255,255,0.75); font-size: 14px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--tn54-orange);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: dotMove 15s linear infinite alternate;
  pointer-events: none;
}
@keyframes dotMove {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}
.cta-band--compact { padding: 42px 0; }
.cta-band--boxed { padding: 42px; border-radius: var(--tn54-radius); }
.cta-band h2, .section--dark h2 { margin-top: 0; }
.cta-band > * { position: relative; }

/* ============================================================
   BUTTONS
   ============================================================ */
.button-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.button-row--left { justify-content: flex-start; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover  { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:active { transform: scale(0.95); }
.btn--primary, .btn--light { background: #fff; color: var(--tn54-orange-dark); }
.btn--dark    { background: var(--tn54-navy); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.full-width { width: 100%; }

.text-link {
  color: var(--tn54-orange-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease-out);
}
.text-link:hover { gap: 10px; }
.text-link::after { content: '→'; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-toggle-wrap { margin-bottom: 32px; }
.pricing-toggle {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--tn54-shadow);
}
.pricing-toggle button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.pricing-toggle button.is-active { background: var(--tn54-orange); color: #fff; }
.pricing-grid { align-items: start; }
.pricing-card--featured { background: var(--tn54-navy); color: #fff; transform: translateY(-10px); }
.pricing-card__badge {
  display: inline-block;
  background: var(--tn54-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  animation: badgePulse 2s ease-in-out infinite alternate;
}
@keyframes badgePulse {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.pricing-card--featured p,
.pricing-card--featured li { color: rgba(255,255,255,0.82); }
.pricing-card__price { font-size: 2.2rem; font-weight: 800; margin: 18px 0; }
.pricing-card { transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.pricing-card:not(.pricing-card--featured):hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(17,24,39,0.14); }
.pricing-card--featured:hover { transform: translateY(-16px); box-shadow: 0 24px 60px rgba(249,122,20,0.3); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-list { display: grid; gap: 24px; position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
}
.timeline-item__icon {
  width: 52px;
  height: 52px;
  background: var(--tn54-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.4s var(--ease-out);
  z-index: 1;
}
.timeline-item__icon:hover { transform: scale(1.15) rotate(10deg); }
.timeline-item__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 52px;
  width: 2px;
  height: calc(100% + 24px + 24px);
  background: rgba(249,122,20,0.3);
  transform: translateX(-50%);
}
.timeline-item:last-child .timeline-item__icon::after { display: none; }
.timeline-item__card {
  background: #fff;
  border-radius: var(--tn54-radius);
  padding: 24px;
  box-shadow: var(--tn54-shadow);
  border: 1px solid var(--tn54-border);
  border-left: 4px solid var(--tn54-orange);
}
.timeline-item__date { color: var(--tn54-orange-dark); font-weight: 700; font-size: 14px; margin-bottom: 4px; display: block; }
.timeline-item__card h3 { margin: 0 0 8px; }
.timeline-item__card p  { margin: 0; color: var(--tn54-text-soft); }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card { overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(17,24,39,0.14); }
.project-card img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.project-card:hover img { transform: scale(1.04); }
.project-card__body { padding: 24px; }
.project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: var(--tn54-text-soft);
  font-size: 14px;
  align-items: center;
}
.project-card__status { font-weight: 600; color: var(--tn54-orange-dark); }

/* ============================================================
   PROCESS GRID
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.process-card__number {
  display: inline-block;
  font-size: 3rem;
  color: rgba(249, 122, 20, 0.18);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}
.process-card__badge {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--tn54-orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ============================================================
   PANELS
   ============================================================ */
.panel--accent-left,
.stack-item--accent-left {
  border-left: 4px solid var(--tn54-orange);
  padding-left: 20px;
}
.stack-item + .stack-item { margin-top: 24px; }
.rich-text p:first-child { margin-top: 0; }
.rich-text p:last-child  { margin-bottom: 0; }
.story-card--dark { background: var(--tn54-navy); color: #fff; }
.story-card--dark p,
.story-card--dark li { color: rgba(255,255,255,0.85); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-details { padding-right: 12px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item + .contact-item { margin-top: 20px; }
.contact-item__text h3 { margin: 0 0 4px; font-size: 15px; }
.contact-item__text p  { margin: 0; color: var(--tn54-text-soft); font-size: 14px; }
.contact-item__text a  { color: var(--tn54-text); }
.contact-item__text a:hover { color: var(--tn54-orange); }
.contact-schedule-note { margin: 24px 0 12px; color: var(--tn54-text-soft); font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--tn54-navy);
  color: #fff;
  padding: 56px 0 28px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.site-footer__brand-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.site-footer__brand { font-weight: 700; font-size: 15px; }
.site-footer__blurb { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.site-footer__menu { list-style: none; padding: 0; margin: 0; }
.site-footer__menu li + li { margin-top: 10px; }
.site-footer__menu a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.site-footer__menu a:hover { color: var(--tn54-orange); }
.site-footer h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.site-footer__contact-list { list-style: none; padding: 0; margin: 0; }
.site-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.site-footer__contact-list li svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--tn54-orange); margin-top: 2px; }

/* Social links */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.social-links a:hover { background: var(--tn54-orange); color: #fff; transform: translateY(-3px); }
.social-links a svg { width: 17px; height: 17px; }

.site-footer__bottom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom p { margin: 0; color: rgba(255,255,255,0.45); font-size: 13px; }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { color: rgba(255,255,255,0.45); font-size: 13px; transition: color 0.2s; }
.site-footer__legal a:hover { color: #fff; }

/* ============================================================
   HOME PAGE
   ============================================================ */
.page-hero--home {
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,122,20,0.18) 0%, transparent 50%, rgba(199,234,121,0.12) 100%);
  background-size: 400% 400%;
  animation: heroGradient 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  position: relative;
}
.hero-media { position: relative; }
.hero-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(249,122,20,0.25), transparent 70%);
  filter: blur(40px);
  border-radius: var(--tn54-radius);
  animation: heroPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero-media .content-image { position: relative; z-index: 1; box-shadow: 0 0 40px rgba(199,234,121,.18), var(--tn54-shadow); }
@keyframes heroPulse {
  from { opacity: 0.2; transform: scale(1); }
  to   { opacity: 0.3; transform: scale(1.08); }
}
.services-preview__footer { text-align: center; margin-top: 32px; }

/* ============================================================
   MISC
   ============================================================ */
.faq-stack { display: grid; gap: 20px; }
.faq-card { cursor: default; transition: box-shadow 0.2s; }
.faq-card:hover { box-shadow: 0 14px 40px rgba(17,24,39,0.10); }
.services-stack > .service-row:first-child { margin-top: 0; }

/* ============================================================
   ANIMATION INIT (GSAP sets these, CSS provides fallback)
   ============================================================ */
[data-animate] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .cta-band::before,
  .page-hero--home::before,
  .hero-glow,
  .pricing-card__badge { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .card-grid--4, .process-grid, .stats-band__grid, .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid--3, .split-content, .service-row, .contact-layout {
    grid-template-columns: 1fr;
  }
  .service-row--reverse .service-row__content,
  .service-row--reverse .service-row__media { order: initial; }
  .pricing-card--featured { transform: none; }
  .hero-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header__toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--tn54-navy);
    padding: 20px 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 16px; }
  .section { padding: 56px 0; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero--home { padding: 56px 0 64px; }
  .card-grid--2, .card-grid--3, .card-grid--4,
  .process-grid, .stats-band__grid, .site-footer__grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .button-row { flex-direction: column; }
  .btn { width: 100%; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  .site-footer__legal { justify-content: center; }
}
