/* ============================================================
   WestVector Solutions LLC — Site Styles
   ============================================================ */

:root {
  /* WestVector brand palette (from logo): blue #4760ac, steel gray #999a9a, charcoal */
  --navy-900: #14171c;
  --navy-800: #1c2027;
  --navy-700: #262b34;
  --ink: #23282f;
  --ink-soft: #565e68;
  --paper: #ffffff;
  --paper-alt: #f4f6f9;
  --line: #e2e6ec;
  --accent: #4760ac;
  --accent-dark: #38508f;
  --accent-tint: #eaeef8;
  --steel: #999a9a;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(14, 26, 43, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9em;
}

.section-intro {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 43, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-light { font-weight: 500; color: #b9c6d4; }

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #cfd9e3;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(12, 15, 21, 0.82) 0%, rgba(12, 15, 21, 0.55) 45%, rgba(12, 15, 21, 0.18) 100%),
    url('images/hero-flight.jpg') center 30% / cover no-repeat;
  background-color: var(--navy-900);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  max-width: 720px;
}

.hero h1 { color: #fff; }

.hero .eyebrow { color: #93a8dd; }

.hero-sub {
  font-size: 1.12rem;
  color: #c3cfdc;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  max-width: 620px;
}

.hero-chips span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(18, 23, 32, 0.55);
  color: #e8edf5;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-chips .chip-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Work item with photo ---------- */

.work-item-media {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem;
  align-items: center;
}

.work-item-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .work-item-media { grid-template-columns: 1fr; }
  .work-item-media img { max-height: 240px; }
}

/* ---------- Product Gallery (shadow series) ---------- */

.section-gallery {
  background: linear-gradient(165deg, #14171c, #1c2027);
}

.section-gallery h2,
.section-gallery .section-intro { color: #fff; }

.section-gallery .section-intro { color: #aeb6c2; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #191d23;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  padding: 0.8rem 1rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e6ebf2;
  background: #10131a;
}

.gallery figcaption strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.section-alt { background: var(--paper-alt); }

/* ---------- Service Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(14, 26, 43, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
}

.card p { color: var(--ink-soft); font-size: 0.96rem; }

.card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card li { margin-bottom: 0.4rem; }

.card li::marker { color: var(--accent); }

/* ---------- Work ---------- */

.work-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.work-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  box-shadow: var(--shadow);
}

.work-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.8rem;
}

.work-item p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-grid > div:first-child p { color: var(--ink-soft); font-size: 1.02rem; }

.principles { display: grid; gap: 1.4rem; }

.principle {
  display: flex;
  gap: 1rem;
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.principle-num {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1.4;
}

.principle h4 { margin-bottom: 0.25em; font-size: 1rem; }

.principle p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Contact ---------- */

.section-contact {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #fff;
  text-align: center;
}

.section-contact h2 { color: #fff; }

.section-contact .section-intro {
  margin-inline: auto;
  color: #c3cfdc;
}

.contact-inner { max-width: 640px; }

.contact-alt {
  margin-top: 1.1rem;
  color: #8fa2b5;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8fa2b5;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
}

.footer-brand { font-size: 0.95rem; color: #cfd9e3; font-weight: 600; }

.footer-brand .brand-mark { width: 20px; height: 20px; }

.footer-inner p { margin: 0; }

/* ---------- Back to top ---------- */

#back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(14, 20, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover { background: var(--accent-dark); }

#back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a { display: block; padding: 0.8rem 0; }

  .nav-cta { margin: 0.5rem auto 0; width: fit-content; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
