/* ============================================================
   NEWTON ADDIS ELEVATOR SYSTEMS — brand tokens
   Navy #1C3D4F · Teal #0E8C9E · Light Teal #7FD4E0
   Grey #9FB4BE · Pale #DFF0F3 · Charcoal #2A3033
   Typeface: Montserrat (mono used only for the floor readout)
   ============================================================ */

:root {
  --navy: #1C3D4F;
  --navy-deep: #122936;
  --navy-panel: #16303E;
  --teal: #0E8C9E;
  --teal-dark: #0A6B79;
  --teal-light: #7FD4E0;
  --grey: #9FB4BE;
  --pale: #DFF0F3;
  --charcoal: #2A3033;
  --white: #FFFFFF;
  --ink-on-teal: #04222A;
  --teal-glow: rgba(14, 140, 158, 0.4);
  --line-dark: #2c4a5c;
  --line-light: #cfe3e8;

  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --nav-height: 66px;
  --door-duration: 700ms;
  --ease-lift: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

p { line-height: 1.65; color: #4b5b63; margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 0.9em;
  font-weight: 500;
}

/* ============================================================
   FLOOR-INDICATOR NAVIGATION
   ============================================================ */

.floor-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 500;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  color: var(--pale);
}

.floor-nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.floor-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.floor-nav__brand svg { width: 34px; height: 34px; flex: none; }
.floor-nav__brand-text { line-height: 1.1; }
.floor-nav__brand-text b {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.floor-nav__brand-text b span { color: var(--teal-light); }
.floor-nav__brand-text small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--grey);
  font-weight: 500;
}

.floor-nav__floors {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  background: #0b1a23;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  padding: 6px 8px;
}

.floor-nav__floors a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  font-size: 0.85rem;
  border-radius: 3px;
  color: var(--grey);
  transition: color 160ms ease, background 160ms ease, text-shadow 160ms ease;
}
.floor-nav__floors a:hover { color: var(--white); }
.floor-nav__floors a.is-active {
  color: var(--teal-light);
  text-shadow: 0 0 10px var(--teal-glow);
  background: rgba(14, 140, 158, 0.12);
}

.floor-nav__cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--teal);
  color: var(--teal-light);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}
.floor-nav__cta:hover { background: var(--teal); color: var(--white); }

.floor-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.floor-nav__toggle span { width: 20px; height: 2px; background: var(--pale); }

/* ============================================================
   ELEVATOR DOORS
   ============================================================ */

.doors { position: fixed; inset: 0; z-index: 900; display: flex; pointer-events: none; }

.doors__panel {
  width: 50%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 4%),
    repeating-linear-gradient(90deg, #1a3644 0px, #22404f 2px, #1a3644 4px),
    linear-gradient(180deg, #244556 0%, #122936 100%);
  transition: transform var(--door-duration) var(--ease-lift);
  box-shadow: inset 0 0 60px rgba(0, 10, 18, 0.55);
}
.doors__panel--left { border-right: 1px solid #061019; }
.doors__panel--right { border-left: 1px solid #061019; }
.doors.is-open .doors__panel--left { transform: translateX(-100%); }
.doors.is-open .doors__panel--right { transform: translateX(100%); }

.doors__seam {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #061019; transform: translateX(-1px); z-index: 1;
}

.doors__floor-readout {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  color: var(--teal-light);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 18px var(--teal-glow);
  opacity: 1;
  transition: opacity 300ms ease;
  z-index: 2;
}
.doors.is-open .doors__floor-readout { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .doors, .doors__panel { transition: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--pale);
  overflow: hidden;
}
.hero--short { min-height: 52vh; }

.hero__skyline {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: auto; pointer-events: none; opacity: 0.95;
}

.hero__content { position: relative; z-index: 2; max-width: 700px; }

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--teal-light); }

.hero p.lead { font-size: 1.12rem; color: #c4d6dc; max-width: 56ch; }

.hero__ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero__slogan {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 34px;
}

/* ============================================================
   BUTTONS — elevator call-button style
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--call { background: var(--teal); color: var(--white); }
.btn--call:hover { box-shadow: 0 0 0 6px var(--teal-glow); transform: translateY(-1px); }

.btn--ghost { border-color: var(--line-dark); color: var(--pale); }
.btn--ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }

.btn--dark { border-color: #b9cdd4; color: var(--navy); background: transparent; }
.btn--dark:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { box-shadow: 0 0 0 6px rgba(28, 61, 79, 0.25); }

/* ============================================================
   SECTIONS
   ============================================================ */

section { padding: 96px 0; }
.section--pale { background: var(--pale); }
.section--navy { background: var(--navy); color: var(--pale); }
.section--navy p { color: #bcd2d9; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.facts__item { font-size: 0.88rem; color: var(--grey); line-height: 1.5; }
.facts__item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 700;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 41, 54, 0.1);
  border-color: var(--teal);
}
.card__floor {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.15rem; margin-top: 8px; }

.card--navy {
  background: var(--navy-panel);
  border-color: var(--line-dark);
}
.card--navy h3 { color: var(--white); }
.card--navy p { color: #b3c9d1; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img, .split .media { border-radius: 12px; width: 100%; }

.media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-panel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-align: center;
  padding: 12px;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.team__card { border-top: 3px solid var(--teal); padding-top: 16px; }
.team__photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-panel));
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 8px;
}
.team__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.team__card h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.team__card p { font-size: 0.85rem; margin: 0; }

/* Warranty band */
.warranty {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--navy-panel);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 32px 36px;
}
.warranty__badge {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--teal-light), var(--teal) 60%, var(--teal-dark));
  color: var(--ink-on-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(14, 140, 158, 0.18);
}
.warranty__badge b { font-size: 1.9rem; line-height: 1; }
.warranty__badge small { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; }
.warranty h3 { color: var(--white); margin-bottom: 6px; }
.warranty p { margin: 0; }

/* CTA band */
.cta-band { background: var(--teal); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d8f2f6; max-width: 54ch; margin: 0 auto 28px; }
.cta-band .btn { background: var(--navy-deep); color: var(--white); }
.cta-band .btn:hover { box-shadow: 0 0 0 6px rgba(18, 41, 54, 0.3); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .media { aspect-ratio: 1; border-radius: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6b73;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c6d6db;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.field input[type="file"] { padding: 10px; background: var(--pale); border-style: dashed; }
.field .hint { font-size: 0.75rem; color: #6b7c84; margin-top: 5px; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-status.ok { display: block; background: #e2f6ea; color: #14532d; }
.form-status.err { display: block; background: #fdecec; color: #7f1d1d; }

/* Honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-card { background: var(--navy-deep); color: var(--pale); border-radius: 12px; padding: 32px; }
.contact-card__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.88rem;
}
.contact-card__row:last-child { border-bottom: none; }
.contact-card__row span:first-child { color: var(--grey); flex: none; }
.contact-card__row span:last-child { text-align: right; }

/* ============================================================
   CAREERS — vacancy panel + application
   ============================================================ */

.vacancy {
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.vacancy:hover { border-color: var(--teal); box-shadow: 0 12px 28px rgba(18, 41, 54, 0.08); }

.vacancy__button {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--pale));
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(14, 140, 158, 0);
  transition: box-shadow 200ms ease;
}
.vacancy:hover .vacancy__button { box-shadow: 0 0 0 6px var(--teal-glow); }

.vacancy__body { flex: 1; }
.vacancy__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 4px 0 10px;
}
.vacancy h3 { margin-bottom: 0; }
.vacancy ul { margin: 10px 0 14px; padding-left: 18px; list-style: disc; }
.vacancy ul li { font-size: 0.88rem; color: #4b5b63; margin-bottom: 4px; line-height: 1.5; }

.no-vacancies {
  background: var(--pale);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { background: var(--navy-deep); color: var(--grey); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-grid li { margin-bottom: 8px; font-size: 0.88rem; line-height: 1.5; }
.footer-grid a:hover { color: var(--teal-light); }
.footer-brand p { max-width: 34ch; color: var(--grey); font-size: 0.88rem; }
.footer-slogan {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 0.76rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .warranty { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .floor-nav__floors { display: none; }
  .floor-nav__toggle { display: flex; }
  .floor-nav__cta { display: none; }

  .floor-nav.is-menu-open .floor-nav__floors {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
    padding: 12px;
  }
  .floor-nav.is-menu-open .floor-nav__floors a {
    width: 100%;
    justify-content: flex-start;
    height: 44px;
    padding-left: 10px;
  }

  .grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .vacancy { flex-direction: column; }
}
