/* ==========================================================================
   Athena Data Center Technologies
   Design system + layout
   Palette is drawn from the Athena logo (deep navy / accent blue).
   ========================================================================== */

:root {
  --navy:        #0A3161;   /* primary navy from logo */
  --navy-deep:   #071F3D;   /* darker navy for panels */
  --accent:      #1C64A0;   /* secondary accent blue */
  --bright:      #38BDF8;   /* readable on dark backgrounds */
  --tint:        #EBF3FA;   /* light blue section tint */
  --ink:         #111827;   /* body text */
  --ink-muted:   #4B5563;   /* secondary text */
  --line:        #E2E8F0;   /* hairlines */
  --paper:       #FFFFFF;
  --paper-soft:  #F8FAFC;

  --shadow-sm: 0 1px 2px rgba(10, 49, 97, .06);
  --shadow-md: 0 4px 18px -4px rgba(10, 49, 97, .14);
  --shadow-lg: 0 16px 40px -12px rgba(10, 49, 97, .28);

  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 1200px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.16rem; margin-bottom: .5em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }

/* ---------- Shared utility bits ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9em;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 6%; }
.section-tinted { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.section-header { max-width: 660px; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.section-lede { color: var(--ink-muted); font-size: 1.05rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .75rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { height: 42px; width: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .02em;
  color: var(--navy);
  line-height: 1.15;
}
.brand-sub {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .15em;
  color: var(--accent);
  line-height: 1.2;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a:not(.btn) {
  color: var(--ink-muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.primary-nav a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--accent); }
.primary-nav .btn { padding: .7rem 1.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero. The uploaded campus photograph is the landing background
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 6%;
  background-color: var(--navy-deep);
  background-image: url('../images/athena-campus-aerial.png');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

/* Legibility scrim over the photograph. A left-to-right gradient keeps the
   copy readable while leaving the right-hand side of the image clear. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(7, 27, 54, .93) 0%,
      rgba(8, 34, 66, .88) 34%,
      rgba(9, 40, 78, .70) 58%,
      rgba(10, 49, 97, .42) 80%,
      rgba(13, 19, 26, .34) 100%);
}

/* Very light technical grid, adds depth without competing with the photo. */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.85), transparent 72%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.85), transparent 72%);
}

.hero-inner { position: relative; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero-inner > * { max-width: 660px; }

.hero .eyebrow { color: var(--bright); margin-bottom: 1.1rem; }

.hero h1 {
  color: #fff;
  margin-bottom: .5em;
  text-shadow: 0 2px 20px rgba(3, 15, 32, .35);
}

.hero-lede {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: #DCE7F5;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 12px rgba(3, 15, 32, .4);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-stats dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: .25rem;
}
.hero-stats dd { margin: 0; font-weight: 600; font-size: .98rem; color: #fff; }

/* ==========================================================================
   Company section
   ========================================================================== */

/* Full-width copy with a comfortable reading measure. The brand panel that
   previously sat to the right has been removed. */
.about-copy { max-width: 68ch; }
.about-copy p { color: var(--ink-muted); }

/* ==========================================================================
   Capability cards
   ========================================================================== */

/* Six capability cards in two rows of three.
   Explicit repeat(3, ...) keeps the 3/3 split instead of auto-fit, which
   produced a 4/2 split at desktop widths. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C7D8E8; }

.card-num {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin: 0 0 1.1rem;
}
.card h3 { margin-bottom: .45em; }
/* Scoped with :not() so this rule cannot override .card-num. As a plain
   `.card p` it outranked `.card-num` and forced the number tiles to gray. */
.card p:not(.card-num) { color: var(--ink-muted); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Campus section
   ========================================================================== */

.campus-figure {
  position: relative;
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.campus-figure img { width: 100%; height: auto; display: block; }

/* Tagline overlaid on the campus reference image. The gradient band slightly
   obscures the lower part of the photo and guarantees text contrast. */
.campus-tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.15rem, 3vw, 2.25rem) clamp(1.15rem, 2.5vw, 1.6rem);
  background: linear-gradient(to top,
    rgba(7, 27, 54, .95) 0%,
    rgba(7, 27, 54, .88) 42%,
    rgba(7, 27, 54, .52) 74%,
    rgba(7, 27, 54, 0) 100%);
  color: #fff;
}
.campus-tagline p { margin: 0; max-width: 52ch; }
.campus-tagline-lead {
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 14px rgba(3, 15, 32, .45);
}
.campus-tagline-sub {
  margin-top: .35rem;
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: #BFD6EC;
  text-shadow: 0 1px 12px rgba(3, 15, 32, .45);
}

.campus-copy { max-width: 780px; }
.campus-copy > p { color: var(--ink-muted); }

.check-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .95rem;
  color: var(--ink-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .65rem;
  height: .35rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list li:last-child { margin-bottom: 0; }

.fine-print {
  font-size: .85rem;
  color: #6B7280;
  border-left: 3px solid var(--line);
  padding-left: 1rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Approach pillars
   ========================================================================== */

/* Three equal tiles filling the full content width.
   Explicit repeat(3, ...) instead of auto-fit, which dropped to two columns
   and orphaned the third tile between roughly 860px and 980px. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
}
.pillar h3 { margin-bottom: .5em; }
.pillar p { color: var(--ink-muted); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-intro > p { color: var(--ink-muted); }

.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-details li { margin-bottom: 1.15rem; }
.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .15rem;
}
.contact-details a { font-weight: 600; text-decoration: none; color: var(--navy); word-break: break-word; }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.req { color: #B91C1C; }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 100, 160, .16);
}

/* Invalid state is driven by JS so the form does not shout at first paint. */
.field.has-error input,
.field.has-error textarea { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.field-error { font-size: .8rem; color: #B91C1C; margin: .3rem 0 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .25rem;
}
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.form-status { margin: 0; font-size: .9rem; color: var(--ink-muted); }
.form-status.is-success { color: #15803D; font-weight: 600; }
.form-status.is-error { color: #B91C1C; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: #9FB2C8;
  padding: clamp(2.75rem, 6vw, 4rem) 6% 1.75rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-mark-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: .5rem;
  flex: 0 0 auto;
}
.footer-mark { height: 40px; width: 40px; object-fit: contain; }
.footer-name { color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .01em; margin: 0 0 .35rem; }
.footer-tag { color: #9FB2C8; font-size: .88rem; margin: 0; }

.footer-heading {
  color: #fff;
  font-size: .78rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .6rem; }
.footer-nav a { color: #9FB2C8; text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .82rem; }
.footer-note { color: #7C8FA6; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }

  /* Three tiles no longer fit comfortably, so stack them. */
  .pillars { grid-template-columns: 1fr; }

  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem 6% 1.25rem;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .primary-nav a:not(.btn) { display: block; padding: .95rem 0; font-size: 1rem; border-bottom: 0; }
  .primary-nav .btn { display: block; text-align: center; }

  .hero {
    min-height: auto;
    padding: 4.5rem 6% 3.5rem;
    background-position: 62% center;
  }
  /* On narrow screens the copy covers the whole image, so the scrim
     becomes a full overlay and darkens evenly instead of side-to-side. */
  .hero::before {
    background: linear-gradient(180deg,
      rgba(7, 27, 54, .88) 0%,
      rgba(8, 34, 66, .84) 55%,
      rgba(7, 27, 54, .90) 100%);
  }
  .hero-grid-overlay { mask-image: none; -webkit-mask-image: none; opacity: .25; }
  .hero-stats { grid-template-columns: 1fr; gap: .9rem; padding-top: 1.4rem; }
  .hero-stats dt { margin-bottom: .1rem; }
}

@media (max-width: 620px) {
  .section { padding: 3.25rem 6%; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 1.35rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .brand-sub { font-size: .53rem; letter-spacing: .12em; }
  .brand-mark { height: 36px; width: 36px; }
  .brand-name { font-size: 1.08rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
