/* ============================================
   ONSITE AUTOMATED — styles.css
   Theme: Clean Jobsite — professional, modern, trustworthy
   Palette: Deep navy, warm orange, cool white
   Fonts: Barlow Condensed (display) + Barlow (body)
   ============================================ */

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

:root {
  --black:      #0c1829;
  --dark:       #101f33;
  --mid:        #162844;
  --border:     #1e3a5c;
  --muted:      #64748b;
  --light:      #94a3b8;
  --white:      #f0f4f8;
  --orange:     #ff6b35;
  --orange-dim: #e55a2b;
  --sky:        #38bdf8;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --max-width: 1200px;
  --radius: 4px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius);
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-dim);
  border-color: var(--orange-dim);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--full { width: 100%; }

/* --- SECTION LABELS --- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(12, 24, 41, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

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

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__logo span { color: var(--orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  background: var(--orange) !important;
  color: var(--black) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
}
.nav__cta:hover { background: var(--orange-dim) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,24,41,0.82), rgba(12,24,41,0.7) 60%, var(--dark) 100%),
    url('../assets/images/onsiteautomated_hero.jpeg') center/cover no-repeat;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero__headline em {
  font-style: normal;
  color: var(--orange);
}

.hero__sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--light);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.hero__proof {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s forwards;
}
.hero__proof span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Ticker tape */
.hero__tape {
  position: relative;
  width: 100%;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  animation: tape 20s linear infinite;
  margin-top: 40px;
}

@keyframes tape {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Duplicate the tape content via JS for seamless loop */
.hero__tape-inner {
  display: inline-block;
  white-space: nowrap;
}

/* --- WHO WE HELP --- */
.who {
  padding: 100px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.who__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.who__card {
  background: var(--mid);
  border: 1px solid var(--border);
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: default;
}
.who__card:hover {
  border-color: var(--orange);
  background: #1a3050;
  transform: translateY(-2px);
}

/* --- SERVICES --- */
.services {
  padding: 100px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.services__card {
  position: relative;
  background: var(--dark);
  padding: 48px 36px;
  transition: background 0.2s;
}
.services__card:hover { background: #142640; }

.services__card--featured {
  background: var(--mid);
}
.services__card--featured:hover { background: #1a3050; }

.services__card--custom {
  background: var(--dark);
  border-top: 2px solid var(--border);
}
.services__card--custom .services__card-price {
  color: var(--sky);
}

.services__card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.services__card-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 16px;
}

.services__card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.services__card p {
  color: var(--light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.services__card ul {
  list-style: none;
  margin-bottom: 32px;
}
.services__card ul li {
  font-size: 0.9rem;
  color: var(--light);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.services__card ul li::before {
  content: '→';
  color: var(--orange);
  font-size: 0.8rem;
}

.services__card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.services__recurring {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 16px;
  border: 1px solid var(--border);
}
.services__recurring strong { color: var(--white); }

/* --- PITCH --- */
.pitch {
  padding: 100px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.pitch__left h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 24px;
}

.pitch__left p {
  color: var(--light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.pitch__left .btn { margin-top: 16px; }

.pitch__right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pitch__stat {
  background: var(--mid);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.pitch__stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  min-width: 120px;
}

.pitch__stat-label {
  font-size: 0.95rem;
  color: var(--light);
  line-height: 1.4;
}

/* --- OUR WORK --- */
.work {
  padding: 100px 0;
  background: var(--dark);
}

.work__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 48px;
}

.work__card {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.work__card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.work__card-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(10,25,47,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.work__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.work__card:hover .work__card-image img {
  transform: scale(1.03);
}

.work__card--featured .work__card-image {
  height: 260px;
}

.work__card-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.work__card-info {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work__card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.work__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.work__tag--industry {
  background: rgba(255,107,0,0.12);
  color: var(--orange);
}

.work__tag--tier {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.work__card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.work__card p {
  font-size: 0.95rem;
  color: var(--light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.work__card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.work__card li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.work__card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.work__card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work__card:hover .work__card-link {
  text-decoration: underline;
}

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

/* --- PRICING --- */
.pricing {
  padding: 100px 0;
}

.pricing__table {
  border: 1px solid var(--border);
}

.pricing__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.pricing__row:last-child { border-bottom: none; }

.pricing__row > div {
  padding: 16px 24px;
  font-size: 0.95rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.pricing__row > div:last-child { border-right: none; }
.pricing__row > div:not(:first-child) {
  justify-content: center;
  text-align: center;
}

.pricing__row--header {
  background: var(--mid);
}
.pricing__row--header > div {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing__row--price > div {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.pricing__row--price > div:not(:first-child) {
  color: var(--orange);
  font-size: 1.1rem;
}

.pricing__row:nth-child(even) > div { background: rgba(56, 189, 248, 0.03); }

.check {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- CONTACT --- */
.contact {
  padding: 100px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__left h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 24px;
}

.contact__left p {
  color: var(--light);
  margin-bottom: 12px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  background: var(--mid);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--orange);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--muted);
}

.contact__form select option { background: var(--mid); }

.contact__form textarea { resize: vertical; min-height: 120px; }

.form__success {
  display: none;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  border-radius: var(--radius);
}

/* --- FOOTER --- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer__logo span { color: var(--orange); }

.footer__brand p {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 32px;
}
.footer__links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .pitch__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pricing__row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .pricing__row > div {
    padding: 12px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 24px;
  }

  .hero__actions { flex-direction: column; }
  .hero__proof { gap: 16px; flex-direction: column; }

  .form__row { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { flex-wrap: wrap; gap: 16px; }

  .pricing__row {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
  .pricing__row > div {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .who__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
