/* ============================================================
   Atlas Marketing Website — Styles
   Brand: Navy #0F2040 | Gold #C9A227 | White #FFFFFF
   ============================================================ */

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-900: #0A1628;
  --navy-800: #0F2040;
  --navy-700: #162848;
  --navy-600: #1E3560;
  --navy-500: #2A4A80;
  --gold-500: #C9A227;
  --gold-400: #DDB840;
  --gold-300: #E8C84A;
  --gold-100: #FDF3D0;
  --white:    #FFFFFF;
  --gray-50:  #F8F9FC;
  --gray-100: #F0F2F7;
  --gray-200: #DDE2EE;
  --gray-400: #9AA3B8;
  --gray-700: #3D4A6B;
  --text-dark: #0F2040;
  --text-mid:  #3D4A6B;
  --text-light: rgba(255,255,255,0.85);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 16px rgba(10,22,40,0.10), 0 2px 6px rgba(10,22,40,0.08);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.18), 0 4px 12px rgba(10,22,40,0.10);

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --max-w: 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- Utility ---------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--dark { background: var(--navy-800); }
.section--tint { background: var(--gray-50); }

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-500);
  margin-bottom: 12px;
}
.section-label--light { color: var(--gold-400); }

.section-title {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 800;
  line-height: 1.2; color: var(--navy-800); margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-intro {
  font-size: 17px; color: var(--text-mid); max-width: 700px;
  margin-bottom: 48px; line-height: 1.7;
}
.section-intro--light { color: var(--text-light); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn--gold {
  background: var(--gold-500); color: var(--navy-800); border-color: var(--gold-500);
}
.btn--gold:hover { background: var(--gold-400); border-color: var(--gold-400); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,162,39,0.4); }
.btn--outline {
  background: transparent; color: var(--navy-800); border-color: var(--navy-800);
}
.btn--outline:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---- Navigation ------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__logo img { height: 44px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.nav__links a { color: rgba(255,255,255,0.8); transition: color var(--transition); }
.nav__links a:hover { color: var(--gold-400); }
.nav__links .btn { padding: 9px 20px; font-size: 13px; }
.nav__links .btn--outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.nav__links .btn--outline:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: all var(--transition);
  border-radius: 2px;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------- */
.hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, #142238 70%, #1a2e50 100%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(201,162,39,0.08) 0%, transparent 70%);
}
.hero__content { position: relative; z-index: 1; padding: 120px 24px 80px; max-width: 820px; }
.hero__logo { height: 120px; width: auto; margin: 0 auto 40px; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4)); }
.hero__headline {
  font-size: clamp(28px, 4.5vw, 52px); font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.hero__tagline {
  font-size: 14px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--gold-400); text-transform: uppercase; margin-bottom: 44px;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.scroll-arrow {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid rgba(201,162,39,0.6);
  border-bottom: 2px solid rgba(201,162,39,0.6);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: rotate(45deg) translateY(0); opacity:.6; } 50% { transform: rotate(45deg) translateY(6px); opacity:1; } }

/* ---- Pillars ---------------------------------------------- */
.pillars { padding: 0; background: var(--gray-100); }
.pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: 52px 40px; text-align: center;
  border-right: 1px solid var(--gray-200);
  transition: background var(--transition);
}
.pillar:last-child { border-right: none; }
.pillar--featured { background: var(--navy-800); }
.pillar--featured h3, .pillar--featured p { color: var(--white); }
.pillar--featured .pillar__icon { color: var(--gold-400); }
.pillar__icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  color: var(--navy-600);
}
.pillar h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--navy-800); }
.pillar p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
/* Keep featured pillar copy readable on dark background (override generic pillar typography above). */
.pillar.pillar--featured h3 { color: var(--white); }
.pillar.pillar--featured p { color: rgba(255,255,255,0.86); }

/* ---- Platform --------------------------------------------- */
.platform__layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.platform__lead { font-size: 18px; line-height: 1.7; color: var(--navy-700); margin-bottom: 20px; }
.platform__text p { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 32px; }
.platform__deploy { display: flex; flex-direction: column; gap: 16px; }
.deploy-option {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.deploy-option:hover { border-color: var(--gold-500); box-shadow: 0 2px 12px rgba(201,162,39,0.12); }
.deploy-option__icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.deploy-option strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy-800); margin-bottom: 2px; }
.deploy-option span { font-size: 13px; color: var(--text-mid); }

.screen-card {
  background: var(--navy-800); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,162,39,0.2);
}
.screen-card__label {
  padding: 14px 20px; background: rgba(201,162,39,0.12);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold-400); text-transform: uppercase;
}
.screen-card__mock {
  padding: 24px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mock-stat {
  text-align: center; padding: 16px 12px;
  background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}
.mock-stat--warn { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }
.mock-stat--alert { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.mock-stat--distress { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.1); grid-column: span 3; }
.mock-stat__num { display: block; font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.mock-stat--distress .mock-stat__num { font-size: 36px; }
.mock-stat__label { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.3; }
.screen-card__caption { padding: 16px 20px 20px; font-size: 13px; color: rgba(255,255,255,0.55); font-style: italic; line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.07); }

/* ---- Capabilities ----------------------------------------- */
.capabilities__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cap-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 28px 24px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.cap-card:hover { border-color: rgba(201,162,39,0.4); background: rgba(201,162,39,0.05); transform: translateY(-2px); }
.cap-card--gold { border-color: rgba(201,162,39,0.3); background: rgba(201,162,39,0.07); }
.cap-card--gold:hover { border-color: var(--gold-400); }
.cap-card__icon { width: 36px; height: 36px; margin-bottom: 16px; }
.cap-card__icon--blue { color: #6B9FE4; }
.cap-card__icon--gold { color: var(--gold-400); }
.cap-card h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 14px; line-height: 1.35; }
.cap-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cap-card li {
  font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5;
  padding-left: 16px; position: relative;
}
.cap-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500); opacity: 0.7;
}

/* ---- Industries ------------------------------------------- */
.industries__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.industry-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 20px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); text-align: center;
  transition: all var(--transition); background: var(--white);
}
.industry-card:hover {
  border-color: var(--gold-500); background: var(--gold-100);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.industry-card__icon { width: 48px; height: 48px; color: var(--navy-600); }
.industry-card:hover .industry-card__icon { color: var(--navy-800); }
.industry-card span { font-size: 14px; font-weight: 600; color: var(--navy-800); line-height: 1.3; }

/* ---- Why Atlas -------------------------------------------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-card {
  padding: 32px 28px; border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); background: var(--white);
  transition: all var(--transition); position: relative;
}
.why-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-card__num {
  font-size: 40px; font-weight: 900; color: var(--gray-100);
  line-height: 1; margin-bottom: 12px; user-select: none;
  font-variant-numeric: tabular-nums;
}
.why-card h4 { font-size: 16px; font-weight: 700; color: var(--navy-800); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ---- Contact ---------------------------------------------- */
.contact__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact__details { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.contact__link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-300); font-size: 15px; font-weight: 500;
  transition: color var(--transition);
}
.contact__link:hover { color: var(--white); }
.contact__form-wrap {
  display: flex; justify-content: center; align-items: center;
}
.contact__tagline-block {
  text-align: center; padding: 48px 40px;
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
}
.contact__logo { height: 80px; width: auto; margin: 0 auto 24px; }
.contact__sectors { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 2; margin-bottom: 20px; }
.contact__final-tagline {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gold-400); text-transform: uppercase; margin-bottom: 28px;
}

/* ---- Footer ----------------------------------------------- */
.footer {
  background: var(--navy-900); border-top: 1px solid rgba(201,162,39,0.15);
  padding: 32px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__logo { height: 36px; width: auto; opacity: 0.85; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,0.62); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__links a:hover { color: var(--gold-400); }

/* ---- Fade-in animation ------------------------------------ */
/* ---- Scroll-margin for fixed nav offset ------------------- */
section[id], header[id] { scroll-margin-top: 68px; }

/* ---- Motion safety ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); }
  .platform__layout { grid-template-columns: 1fr; gap: 40px; }
  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: var(--navy-900);
    padding: 24px; gap: 20px; border-bottom: 1px solid rgba(201,162,39,0.15); }
  .nav__links.open { display: flex; }
  .nav__links .btn { align-self: flex-start; }
  .nav__hamburger { display: flex; }

  .pillars__grid { grid-template-columns: 1fr; gap: 0; }
  .pillar { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .pillar:last-child { border-bottom: none; }

  .capabilities__grid { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .contact__layout { grid-template-columns: 1fr; gap: 40px; }

  .hero__logo { height: 88px; }
  .screen-card__mock { grid-template-columns: repeat(2, 1fr); }
  .mock-stat--distress { grid-column: span 2; }
}

@media (max-width: 480px) {
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
