/* ==========================================================================
   UAS Inc — Homepage Concept
   "Bold technical hybrid": light, readable content sections punctuated by
   full-bleed dark/cyan panels for drama.
   ========================================================================== */

:root {
  --cyan: #00aeef;
  --cyan-bright: #33c3f5;
  --cyan-dim: rgba(0, 174, 239, 0.14);
  --ink: #0a1114;
  --muted: #56666b;
  --line: #e3ebed;
  --light: #f4f8f9;
  --dark: #05080a;
  --dark-2: #0c161a;
  --dark-line: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --container: 1180px;
  --font-display: "Space Grotesk", "Raleway", sans-serif;
  --font-body: "Raleway", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-cyan { background: var(--cyan); color: #05171d; }
.btn-cyan:hover { background: var(--cyan-bright); }
.btn-outline-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline-dark { border-color: rgba(10,17,20,0.25); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--dark-line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img {
  height: 62px;
  width: auto;
  transition: height 0.35s ease;
}
.nav.is-scrolled .nav-brand img { height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--cyan-bright); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.link-cta {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.link-cta:hover { opacity: 1; color: var(--cyan-bright); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  width: 42px; height: 42px;
  color: #fff;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline-light { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,174,239,0.16), transparent 55%),
    linear-gradient(180deg, rgba(2,4,5,0.55) 0%, rgba(2,4,5,0.72) 55%, #05080a 100%),
    url("assets/img/Alimak_Red_View3.png") center 30% / cover no-repeat;
  overflow: hidden;
}
.hero .container { position: relative; padding-top: 140px; padding-bottom: 80px; }
.hero-content { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  margin-top: 18px;
}
.hero h1 span { color: var(--cyan-bright); }
.hero p.lede {
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-scroll .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--cyan-bright), transparent);
}

/* ---------------- Trust strip ---------------- */
.trust {
  background: var(--dark);
  padding: 52px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.trust-label {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.trust-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.25s ease;
}
.trust-logos a:hover { background: #fff; }
.trust-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.trust-logos a:hover img {
  opacity: 1;
  filter: none;
}

/* ---------------- Capability cards ---------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(10, 30, 40, 0.25);
}
.cap-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.cap-icon svg { width: 26px; height: 26px; }
.cap-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.cap-card p { color: var(--muted); line-height: 1.6; }
.cap-card .link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.cap-card .link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.cap-card .link:hover svg { transform: translateX(3px); }

/* ---------------- Tech / Lidar showcase (dark) ---------------- */
.tech {
  background: var(--dark);
  color: #fff;
  position: relative;
}
.tech .section-head p { color: rgba(255,255,255,0.6); }
.tech .eyebrow { color: var(--cyan-bright); }
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .model-grid { grid-template-columns: 1fr; } }
.model-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark-line);
  background: #000;
  aspect-ratio: 1 / 1;
}
.model-frame.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.model-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Gallery ----------------
   Every row is the same height — only column width (1 or 2 cols) varies.
   That's deliberate: with a fixed row height, mixed 1s and 2s in a 4-column
   grid always tile with zero gaps regardless of packing order. (An earlier
   version varied row-height per tile too and left a hole in the grid — this
   version can't do that.) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  grid-column: span 1;
}
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(0,174,239,0.25), transparent 60%),
    linear-gradient(135deg, #05080a 0%, #0c1e26 100%);
  color: #fff;
  border-radius: 28px;
  padding: 72px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 520px; }
.cta-banner .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--cyan-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-row a:hover { background: var(--cyan); border-color: var(--cyan); color: #05171d; }

/* ---------------- 404 page ---------------- */
.error-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 140px 24px 80px;
  background:
    linear-gradient(180deg, rgba(2,4,5,0.6) 0%, rgba(2,4,5,0.85) 70%, #05080a 100%),
    linear-gradient(135deg, #05080a, #0c1e26);
  background-size: cover;
  background-position: center;
}
.error-hero .eyebrow { justify-content: center; }
.error-hero .error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-top: 10px;
}
.error-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-top: 14px; }
.error-hero p.lede { margin: 18px auto 0; max-width: 520px; }
.error-hero .hero-ctas { justify-content: center; margin-top: 36px; }

/* ---------------- Interior page hero ---------------- */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding-top: 140px;
  padding-bottom: 56px;
  background:
    linear-gradient(180deg, rgba(2,4,5,0.55) 0%, rgba(2,4,5,0.78) 60%, #05080a 100%),
    linear-gradient(135deg, #05080a, #0c1e26);
}
.page-hero.has-image {
  background:
    linear-gradient(180deg, rgba(2,4,5,0.55) 0%, rgba(2,4,5,0.8) 65%, #05080a 100%);
  background-size: cover;
  background-position: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  margin-top: 14px;
}
.page-hero p.lede {
  margin-top: 18px;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

/* ---------------- Grid column modifiers ---------------- */
.cap-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cap-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cap-grid.cols-2 { grid-template-columns: 1fr; }
  .cap-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cap-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Step / process cards */
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.5;
  margin-bottom: 18px;
}

/* Feature list (icon + text rows, used on dark sections) */
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row .cap-icon { flex-shrink: 0; margin-bottom: 0; }
.feature-row h4 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-row p { color: rgba(255,255,255,0.62); line-height: 1.6; }
.tech-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .tech-split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.3em;
}
.form-status.is-success { color: #0a8a4a; }
.form-status.is-error { color: #d1453b; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 560px) { .form-card { padding: 28px 22px; } }
.form-card .btn { width: 100%; justify-content: center; border: none; }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.info-item + .info-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.info-item .cap-icon { width: 44px; height: 44px; margin-bottom: 0; }
.info-item .cap-icon svg { width: 20px; height: 20px; }
.info-item h6 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.info-item p { font-size: 1.02rem; font-weight: 500; }
.map-frame {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- FAQ ---------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-question .plus::before { width: 10px; height: 1.5px; }
.faq-question .plus::after { width: 1.5px; height: 10px; }
.faq-item.is-open .faq-question .plus { border-color: var(--cyan); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 4px 24px; color: var(--muted); line-height: 1.65; max-width: 640px; }

/* ---------------- Service directory ---------------- */
/* True grid rows shared across both columns, so a longer description in
   one column stretches that row's height in the other column too — rows
   always line up no matter how long any single item's text gets. */
.service-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto repeat(6, auto);
  grid-auto-flow: column;
  column-gap: 56px;
}
@media (max-width: 860px) {
  .service-directory { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
}
.service-col-heading {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.service-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.service-item.is-last { border-bottom: none; }
.service-item:hover { padding-left: 8px; }
.service-item h4 { font-size: 1.08rem; font-weight: 600; font-family: var(--font-body); transition: color 0.2s ease; }
.service-item:hover h4 { color: var(--cyan); }
.service-item p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------------- LinkedIn feed (News) ---------------- */
.linkedin-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 8px;
}
.linkedin-grid.is-active { display: grid; }
.linkedin-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.linkedin-card iframe { display: block; width: 100%; border: 0; }

/* ---------------- Empty state (News) ---------------- */
.empty-state {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 32px;
}
.empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: 1.6rem; margin-bottom: 12px; }
.empty-state p { color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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