/* Atlas Engineering Group — main.css
 * Brand palette: atlas navy + atlas green (used as accent stroke only)
 * Typography: Barlow Condensed (display) + Inter (body)
 */

:root {
  /* Brand */
  --atlas-navy:        #000D45;
  --atlas-navy-deep:   #00081f;
  --atlas-navy-soft:   #1a2664;
  --atlas-green:       #00FF00;     /* used only as thin accent stroke */
  --atlas-green-dim:   #00cc00;     /* slightly softer for hover states */

  /* Neutral */
  --ink:               #0e1330;
  --ink-soft:          #3a4159;
  --ink-mute:          #6b7280;
  --paper:             #ffffff;
  --paper-warm:        #f6f5f2;
  --line:              #e3e3e9;

  /* System */
  --container-max:     1180px;
  --container-pad:     24px;
  --radius:            2px;
  --shadow-soft:       0 1px 2px rgba(0,13,69,0.06), 0 8px 24px rgba(0,13,69,0.06);
  --shadow-hard:       0 10px 36px rgba(0,13,69,0.18);

  --font-display:      "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ─── Reset / base ─────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--atlas-navy);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--atlas-green-dim);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--atlas-navy);
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(38px, 5.4vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2.0vw, 24px); }
h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin: 0 0 1em;
}

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

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--atlas-navy);
  margin: 0 0 12px;
  padding-left: 32px;
  position: relative;
}

.kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 3px;
  background: var(--atlas-green);
  border-radius: 1px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── Header / nav ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,13,69,0.02);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: 40px;
}

.site-nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--atlas-navy);
  padding: 26px 2px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--atlas-navy);
  border-bottom-color: var(--atlas-green);
}

.site-nav__link.is-active {
  border-bottom-color: var(--atlas-green);
}

.site-header__cta {
  margin-left: auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--atlas-navy);
  padding: 10px 18px;
  border: 2px solid var(--atlas-navy);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header__cta:hover {
  background: var(--atlas-navy);
  color: var(--paper);
}

/* ─── Hero (home) ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--atlas-navy);
  color: var(--paper);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__overlay {
  /* Diagonal gradient: darkest where the title sits (lower-left), photo shows on
   * the right. Headline stays readable; the actual field photo is visible. */
  background:
    linear-gradient(115deg,
      rgba(0,13,69,0.82) 0%,
      rgba(0,13,69,0.72) 32%,
      rgba(0,13,69,0.35) 65%,
      rgba(0,13,69,0.20) 100%);
  padding: 140px 0 110px;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero__title {
  color: var(--paper);
  font-size: clamp(46px, 6.5vw, 96px);
  font-weight: 700;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0,8,31,0.4);
  max-width: 18ch;
}

.hero__sub {
  color: rgba(255,255,255,0.92);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─── Page heros (interior pages) ──────────────────────────────────────── */

.page-hero {
  background: var(--atlas-navy);
  color: var(--paper);
  padding: 100px 0 80px;
  border-bottom: 3px solid var(--atlas-green);
}

.page-hero .kicker {
  color: rgba(255,255,255,0.85);
}

.page-hero .kicker::before {
  background: var(--atlas-green);
}

.page-hero h1 {
  color: var(--paper);
  margin: 8px 0 22px;
  max-width: 22ch;
}

.page-hero__lede {
  color: rgba(255,255,255,0.88);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 60ch;
  margin: 0;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--paper);
  color: var(--atlas-navy);
  border-color: var(--paper);
}

.btn--primary:hover {
  background: var(--atlas-green);
  color: var(--atlas-navy);
  border-color: var(--atlas-green);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.6);
}

.btn--ghost:hover {
  border-color: var(--atlas-green);
  color: var(--atlas-green);
}

/* When buttons appear on light bands */
.band--light .btn--primary,
.band--cta .btn--primary {
  background: var(--atlas-navy);
  color: var(--paper);
  border-color: var(--atlas-navy);
}

.band--light .btn--primary:hover,
.band--cta .btn--primary:hover {
  background: var(--atlas-navy-deep);
  color: var(--paper);
  border-color: var(--atlas-navy-deep);
}

.band--light .btn--ghost,
.band--cta .btn--ghost {
  color: var(--atlas-navy);
  border-color: var(--atlas-navy);
}

.band--light .btn--ghost:hover,
.band--cta .btn--ghost:hover {
  background: var(--atlas-navy);
  color: var(--paper);
}

/* ─── Section bands ────────────────────────────────────────────────────── */

.band {
  padding: 90px 0;
}

.band--light {
  background: var(--paper);
}

.band--dark {
  background: var(--atlas-navy);
  color: var(--paper);
}

.band--dark h2,
.band--dark h3,
.band--dark .kicker {
  color: var(--paper);
}

.band--dark a {
  color: var(--paper);
}

.band--dark a:hover {
  color: var(--atlas-green);
}

.band__title {
  max-width: 22ch;
  margin: 0 0 22px;
}

/* Services-grid headline above the 3 cards spans the full container width
 * (the phrase is too long for the default 22ch and reads better on one line). */
.services-grid .band__title {
  max-width: none;
}

.band__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 60ch;
  color: inherit;
  opacity: 0.92;
}

.band__more {
  margin-top: 32px;
}

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  border-bottom: 2px solid var(--atlas-green);
  padding-bottom: 4px;
}

.link-arrow:hover {
  color: var(--atlas-green);
}

/* ─── Cards (3-up service highlight on home) ───────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--atlas-green);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin: 18px 22px 8px;
}

.card p {
  margin: 0 22px 22px;
  font-size: 15.5px;
  opacity: 0.88;
}

/* ─── Differentiator (split layout) ────────────────────────────────────── */

.differentiator__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.differentiator__photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.differentiator__caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ─── CTA band ─────────────────────────────────────────────────────────── */

.band--cta {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.band--cta__inner {
  text-align: center;
}

.band--cta h2 {
  max-width: 28ch;
  margin: 0 auto 18px;
}

.band--cta p {
  max-width: 60ch;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.band--cta .hero__actions {
  justify-content: center;
}

/* ─── Prose (long-form body content like About) ────────────────────────── */

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 1.5em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ─── Services list (long page) ────────────────────────────────────────── */

.services-list {
  display: grid;
  gap: 80px;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service--reverse .service__photo {
  order: 2;
}

.service__photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service__copy h2 {
  margin: 0 0 16px;
}

.service__copy p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

/* ─── Contact ──────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-grid__primary h2 {
  font-size: clamp(28px, 3.0vw, 38px);
  word-break: break-all;
}

.contact-grid__hint {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 42ch;
  margin: 8px 0 32px;
}

.contact-meta {
  margin: 0;
}

.contact-meta__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.contact-meta__row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-meta dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--atlas-navy);
  margin: 0;
}

.contact-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form__title {
  margin: 0 0 8px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label > span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--atlas-navy);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--atlas-navy);
  box-shadow: 0 0 0 3px rgba(0,255,0,0.18);
}

.contact-form__file input[type="file"] {
  font-size: 14px;
  padding: 6px 0;
}

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

.contact-form__note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 6px 0 0;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--atlas-navy);
  color: rgba(255,255,255,0.86);
  padding-top: 64px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
}

.site-footer__tag {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255,255,255,0.84);
}

.site-footer__col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--atlas-green);
  margin: 0 0 14px;
  font-weight: 600;
}

.site-footer__col p,
.site-footer__col a {
  font-size: 15px;
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
}

.site-footer__col a:hover {
  color: var(--atlas-green);
}

.site-footer__legal {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.58);
}

/* ─── Responsive: tablet (≤ 900px) ─────────────────────────────────────── */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .differentiator__inner,
  .service,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service--reverse .service__photo {
    order: 0;
  }

  .service__photo img,
  .differentiator__photo img {
    height: 340px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero__overlay {
    padding: 100px 0 80px;
    min-height: 460px;
  }
}

/* ─── Responsive: mobile (≤ 600px) ─────────────────────────────────────── */

@media (max-width: 600px) {
  .site-header__inner {
    height: 60px;
    gap: 12px;
  }

  .site-header__logo img {
    height: 36px;
  }

  .site-nav {
    margin-left: 0;
    gap: 16px;
  }

  .site-nav__link {
    font-size: 13px;
    padding: 20px 2px;
  }

  .site-header__cta {
    display: none;
  }

  .band {
    padding: 64px 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__overlay {
    min-height: 420px;
    padding: 80px 0 60px;
  }
}
