/* VNSR Tech — design system */
:root {
  --ink: #101820;
  --steel: #1c2a36;
  --slate: #2a3d4d;
  --frost: #e6eef4;
  --mist: #f3f7fa;
  --paper: #fafcfd;
  --sunrise: #d4922a;
  --sunrise-bright: #e8b04a;
  --ice: #5a9aab;
  --ice-soft: #8ec5d4;
  --muted: #5c6f7e;
  --line: rgba(28, 42, 54, 0.12);
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
  --radius: 4px;
  --max: 1120px;
  --nav-h: 4.5rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Typography —— */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunrise);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sunrise);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--sunrise-bright);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--steel);
  color: var(--steel);
}

.btn-outline:hover {
  background: var(--steel);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Placeholder media —— */
.media-ph {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(90, 154, 171, 0.18), rgba(212, 146, 42, 0.12)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(28, 42, 54, 0.04) 10px,
      rgba(28, 42, 54, 0.04) 20px
    ),
    var(--frost);
  border: 1px dashed rgba(28, 42, 54, 0.22);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
}

.media-ph::after {
  content: attr(data-label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  max-width: 14rem;
  opacity: 0.85;
}

.media-ph.portrait {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.media-ph.landscape {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.media-ph.square {
  aspect-ratio: 1;
  min-height: 0;
}

.media-ph.hero-fill {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border: none;
  border-radius: 0;
}

/* —— Header / Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(250, 252, 253, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.scrolled .brand-name,
.site-header.solid .brand-name,
.site-header.scrolled .nav-links a,
.site-header.solid .nav-links a {
  color: var(--ink);
}

.site-header.scrolled .nav-toggle span,
.site-header.solid .nav-toggle span {
  background: var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s var(--ease);
}

.brand-name span {
  font-weight: 500;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sunrise-bright);
}

.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active,
.site-header.solid .nav-links a:hover,
.site-header.solid .nav-links a.active {
  color: var(--sunrise);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(16, 24, 32, 0.88) 0%,
      rgba(28, 42, 54, 0.55) 48%,
      rgba(16, 24, 32, 0.35) 100%
    ),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212, 146, 42, 0.22), transparent 55%),
    linear-gradient(160deg, #1c2a36 0%, #0f1720 55%, #1a3040 100%);
  z-index: 0;
}

.hero-bg .media-ph.hero-fill {
  opacity: 0.45;
  mix-blend-mode: luminosity;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0.35rem 0 1.1rem;
  animation: rise-in 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  color: var(--sunrise-bright);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  animation: rise-in 1s var(--ease) 0.12s both;
}

.hero .eyebrow {
  animation: rise-in 0.8s var(--ease) both;
}

.hero .btn-group {
  animation: rise-in 1s var(--ease) 0.22s both;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: pulse-y 2.4s ease-in-out infinite;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.section-head .lede {
  margin-top: 0.75rem;
}

.section-muted {
  background: var(--mist);
}

.section-dark {
  background:
    radial-gradient(ellipse 70% 80% at 10% 20%, rgba(90, 154, 171, 0.15), transparent 50%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(212, 146, 42, 0.1), transparent 45%),
    var(--steel);
  color: #fff;
}

.section-dark .lede,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .eyebrow {
  color: var(--sunrise-bright);
}

/* —— Split layout —— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

/* —— Product / feature rows —— */
.feature-list {
  display: grid;
  gap: 1.75rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sunrise);
  line-height: 1;
}

.feature-item p {
  color: var(--muted);
  margin-top: 0.35rem;
}

/* —— Product grid (not cards — open layout) —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.product-block .media-ph {
  margin-bottom: 1.15rem;
}

.product-block h3 {
  margin-bottom: 0.4rem;
}

.product-block p {
  color: var(--muted);
  font-size: 0.98rem;
}

.product-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
}

/* —— Gallery strip —— */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.gallery .media-ph:first-child {
  grid-row: span 2;
  min-height: 100%;
}

/* —— Stats —— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--sunrise-bright);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* —— Team —— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-member .media-ph {
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--sunrise);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* —— Locations —— */
.location-list {
  display: grid;
  gap: 0;
}

.location-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.location-row:last-child {
  border-bottom: 1px solid var(--line);
}

.location-row h3 {
  font-size: 1.25rem;
}

.location-row p {
  color: var(--muted);
  font-size: 0.95rem;
}

.location-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
}

/* —— Timeline / about —— */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.value-item h3 {
  margin: 0.6rem 0 0.45rem;
}

.value-item p {
  color: var(--muted);
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--sunrise);
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
  background:
    linear-gradient(135deg, rgba(212, 146, 42, 0.08), transparent 40%),
    linear-gradient(180deg, var(--mist), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0.4rem 0 0.85rem;
}

/* —— Contact form —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-top: 1.5rem;
}

.contact-details dd {
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ice);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— CTA band —— */
.cta-band {
  padding: 4.5rem 0;
  text-align: center;
  background:
    linear-gradient(120deg, var(--steel), #243846 50%, #1a3040);
  color: #fff;
}

.cta-band h2 {
  margin: 0.5rem 0 0.75rem;
}

.cta-band .lede {
  margin-inline: auto;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--sunrise-bright);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(212, 146, 42, 0.45);
  color: var(--sunrise);
  border-radius: 2px;
  font-weight: 600;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.section-dark .placeholder-tag {
  border-color: rgba(232, 176, 74, 0.4);
  color: var(--sunrise-bright);
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-y {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 0.9;
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .split,
  .split.reverse,
  .product-grid,
  .team-grid,
  .values,
  .contact-grid,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .gallery .media-ph:first-child {
    grid-row: auto;
  }

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

  .location-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 32, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    color: #fff !important;
    font-size: 1.35rem;
  }

  .site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand-name {
    color: #fff;
  }

  .site-header.scrolled .brand-name,
  .site-header.solid .brand-name {
    color: var(--ink);
  }

  .site-header.menu-open .brand-name,
  .site-header.menu-open.scrolled .brand-name,
  .site-header.menu-open.solid .brand-name {
    color: #fff;
  }

  .site-header.menu-open .nav-toggle span {
    background: #fff;
  }
}

@media (max-width: 600px) {
  .team-grid,
  .stats,
  .form-row,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    padding-bottom: 6rem;
  }
}
