/* =========================================================
   Intelligent Technical Services LLC
   Tesla-inspired design system — radical subtraction.
   Photography + whitespace + a single blue. No shadows,
   no gradients on UI, no borders on cards.
   ========================================================= */

:root {
  /* Color roles */
  --blue:        #3E6AE1;  /* Electric Blue — sole accent, primary CTA */
  --blue-hover:  #3457b8;
  --white:       #FFFFFF;
  --ash:         #F4F4F4;  /* alternate surface */
  --carbon:      #171A20;  /* headings, nav text */
  --graphite:    #393C41;  /* body text */
  --pewter:      #5C5E62;  /* tertiary / sub-links */
  --silver:      #8E8E8E;  /* placeholder, disabled */
  --cloud:       #EEEEEE;  /* light dividers */
  --pale:        #D0D1D2;  /* subtle borders */
  --frost:       rgba(255, 255, 255, 0.75);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Motion — the universal timing */
  --ease: cubic-bezier(0.5, 0, 0, 0.75);
  --t:    0.33s;

  /* Radius */
  --r-btn:  4px;
  --r-card: 12px;

  /* Layout */
  --container: 1383px;
  --pad: 24px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.2; letter-spacing: normal; }
p { margin: 0; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 16px; background: var(--carbon); color: var(--white);
  z-index: 300; border-radius: var(--r-btn);
}
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-btn); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--t), backdrop-filter var(--t);
}
.site-header.is-solid {
  background: var(--frost);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* ITS wordmark — `currentColor` drives the "IT" letters so they show white
   over the hero and flip to Carbon once the nav turns solid. "S" stays blue. */
.brand-logo {
  height: 24px; width: auto;
  color: var(--white);
  transition: color var(--t);
}
/* Text wordmark — white over the hero, flips to Carbon once nav turns solid */
.brand-name {
  font-size: 15px; font-weight: 500;
  color: var(--white);
  transition: color var(--t);
}
.brand-llc { font-weight: 500; }
/* Solid nav flips logo + name to dark */
.is-solid .brand-logo,
.is-solid .brand-name,
.is-solid .site-nav a { color: var(--carbon); }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--white);
  padding: 6px 16px;
  min-height: 32px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-btn);
  transition: color var(--t), background-color var(--t);
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.14); }
.is-solid .site-nav a:hover { background: rgba(0, 0, 0, 0.05); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--white); transition: background-color var(--t); }
.is-solid .nav-toggle span { background: var(--carbon); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  border-radius: var(--r-btn);
  border: 3px solid transparent;
  min-height: 40px; min-width: 200px;
  padding: 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t), color var(--t), box-shadow 0.25s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--graphite); }
.btn-secondary:hover { background: var(--ash); color: var(--graphite); }
/* Translucent variant for placement directly over hero imagery */
.btn-ghost { background: rgba(255, 255, 255, 0.9); color: var(--carbon); }
.btn-ghost:hover { background: var(--white); color: var(--carbon); }
.btn-large { min-width: 260px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  font-size: 14px; font-weight: 500;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 14px; font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 8px;
}

/* ---------- Hero (full-viewport, photography-first) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .slide {
  position: absolute; inset: 0;
  opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1s ease;
}
.hero-media .slide.is-active { opacity: 1; }
/* Calmer, darker tech imagery — easier to read white text over.
   To self-host: download each to public/img/ (see public/img/README.txt)
   and change these to url("/img/hero-1.jpg") etc. */
  .hero-media .slide-1 { background-image: url("/img/hero-1.jpg"); }
  .hero-media .slide-2 { background-image: url("/img/hero-2.jpg"); }
  .hero-media .slide-3 { background-image: url("/img/hero-3.jpg"); }
  .hero-media .slide-4 { background-image: url("/img/hero-4.jpg"); }
  .hero-media .slide-5 { background-image: url("/img/hero-5.jpg"); }
  .hero-media .slide-6 { background-image: url("/img/hero-6.jpg"); }
  .hero-media .slide-7 { background-image: url("/img/hero-7.jpg"); }
.hero-media::after {
  /* Scrim so white type stays legible over busy photography. Two layers:
     a left-weighted gradient that darkens the text column, plus a gentle
     overall darken. Opacity only — no decorative color. */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 38%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0.1) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.35));
}
.hero .container { position: relative; z-index: 2; padding-top: 56px; }
.hero-title {
  font-size: 40px; font-weight: 500; line-height: 1.2;
  color: var(--white);
  max-width: 18ch;
}
.hero-lede {
  font-size: 14px; font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  margin: 12px 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Carousel controls */
.hero-dots {
  position: absolute; bottom: 40px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none; padding: 0; cursor: pointer;
  transition: background-color var(--t);
}
.hero-dots button.is-active { background: var(--white); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.55); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--carbon); font-size: 20px;
  transition: background-color var(--t);
}
.hero-arrow:hover { background: rgba(255,255,255,0.9); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* ---------- Generic section ---------- */
.section { padding: 120px 0; }
.section-alt { background: var(--ash); }
.section-head h2 {
  font-size: 40px; font-weight: 500;
  color: var(--carbon);
}
.section-head-centered {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 64px;
}
.section-sub {
  margin-top: 16px;
  color: var(--graphite);
  font-size: 14px;
}

/* ---------- About ---------- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.section-body p + p { margin-top: 16px; }
.section-body p { color: var(--graphite); font-size: 14px; line-height: 1.7; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--cloud);
}
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 14px; color: var(--pewter); }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; color: var(--carbon); }

/* ---------- Products (clean cards, no borders/shadows) ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.section-alt .product-card { background: var(--white); }
.product-card-placeholder { background: transparent; }
.product-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-card h3 { font-size: 17px; font-weight: 500; color: var(--carbon); }
.product-tag { color: var(--carbon); font-weight: 500; font-size: 14px; }
.product-desc { color: var(--graphite); font-size: 14px; line-height: 1.6; flex: 1; }
.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 14px; font-weight: 400; color: var(--pewter);
  transition: color var(--t), box-shadow var(--t) var(--ease);
}
.product-link span { transition: transform var(--t) var(--ease); }
.product-link:hover { color: var(--carbon); }
.product-link:hover span { transform: translateX(3px); }

.badge {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: var(--r-btn);
  color: var(--pewter); background: var(--ash);
}
.badge-live { background: rgba(62, 106, 225, 0.12); color: var(--blue); }
.badge-soon { background: var(--ash); color: var(--pewter); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 32px;
}
.service-card {
  background: transparent;
  display: flex; flex-direction: column; gap: 12px;
  text-align: center;
  align-items: center;
}
.service-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 17px; font-weight: 500; color: var(--carbon); }
.service-card p { color: var(--graphite); font-size: 14px; line-height: 1.6; max-width: 34ch; }

/* ---------- Contact ---------- */
.section-contact { background: var(--ash); text-align: center; }
.contact-inner { max-width: 52ch; margin: 0 auto; }
.section-contact h2 { font-size: 40px; font-weight: 500; color: var(--carbon); margin-bottom: 16px; }
.contact-lede { color: var(--graphite); font-size: 14px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--cloud);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--carbon); }
.footer-brand .brand-logo { height: 22px; }
.footer-meta { color: var(--pewter); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  /* Hidden by default; opens as a white dropdown panel when toggled */
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; right: 24px;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--r-btn);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  /* Open-menu links are always dark on white, regardless of scroll state */
  .site-nav.is-open a { color: var(--carbon); width: 100%; }
  .site-nav.is-open a:hover { background: rgba(0, 0, 0, 0.05); }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
  .hero-title { font-size: 28px; }
  .section-head h2, .section-contact h2 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .btn-large { width: 100%; min-width: 0; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media .slide { transition: none; }
}
