/* ═══════════════════════════════════════════════
   TSN-ELPROM  —  style.css
   Design: dark navy + electric gold accent
   ═══════════════════════════════════════════════ */

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

:root {
  --navy:      #0a1628;
  --navy-mid:  #0d1f3c;
  --navy-light:#162a4a;
  --gold:      #f5a623;
  --gold-dark: #d4881a;
  --white:     #ffffff;
  --off-white: #f8f9fb;
  --text:      #2d3748;
  --muted:     #718096;
  --border:    #e2e8f0;

  --font: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
  --transition: .3s ease;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }

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

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

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

.section {
  padding: 96px 0;
  overflow: hidden;
}
.section:nth-child(odd) { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,.35);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.nav-logo:hover img { opacity: .85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  padding-top: var(--nav-h); /* offset fixed navbar */
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,.6) 60%, rgba(10,22,40,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 60px 24px 48px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 32px 24px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-plus {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  vertical-align: top;
  line-height: 1.4;
}
.stat p {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  margin-bottom: 16px;
  color: #4a5568;
  line-height: 1.8;
}
.about-text strong { color: var(--navy); }
.about-goals {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-goals li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
}
.check {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 4px solid var(--gold);
}
.pillar:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.pillar-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--gold);
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.pillar p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── CLIENTS BAR ── */
.clients-bar {
  background: var(--navy);
  padding: 28px 0;
}
.clients-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.clients-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.clients-logos { display: flex; align-items: center; gap: 16px; }
.client-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .06em;
  opacity: .7;
  transition: opacity var(--transition);
}
.client-logo:hover { opacity: 1; }
.divider { color: rgba(255,255,255,.25); font-size: 1.2rem; }

/* ════════════════════════════════════════
   PRODUCTS
   ════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

/* ── Product carousel ── */
.product-img.carousel {
  position: relative;
  overflow: hidden;
}
.product-img.carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}
.product-img.carousel .carousel-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.product-card:hover .product-img.carousel .carousel-track img { transform: none; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(10,22,40,.55);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  padding: 0;
}
.product-img.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(10,22,40,.85); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background var(--transition), transform var(--transition);
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}
.product-body { padding: 24px; }
.product-tag {
  display: inline-block;
  background: rgba(245,166,35,.12);
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.product-body p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════ */
.projects .section-header h2 { color: var(--navy); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-type {
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.project-info { padding: 24px; }
.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.project-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.project-meta span {
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 600;
}
.project-info p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ════════════════════════════════════════
   TEAM
   ════════════════════════════════════════ */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  border-left: 4px solid var(--gold);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
}
.team-img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
}
.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-body { padding: 20px 24px; flex: 1; }
.team-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.team-role {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.team-contact svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--gold);
}
.team-contact a:hover { color: var(--navy); }

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-list strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-list p { color: var(--text); font-size: .95rem; line-height: 1.6; }
.contact-list a:hover { color: var(--gold-dark); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0bcc8; }
.form-note {
  margin-top: 12px;
  font-size: .85rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--muted);
}
.form-note.success { color: #38a169; }
.form-note.error   { color: #e53e3e; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 300px; }

.footer-links h4,
.footer-contact h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact p { font-size: .88rem; margin-bottom: 6px; line-height: 1.6; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid,
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

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

  /* ── Mobile nav ── */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    /* slide in from top, hidden by default */
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    pointer-events: none;
    z-index: 999;
  }
  .nav-links.open {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 13px 24px;
    border-radius: 0;
    display: block;
    width: 100%;
    font-size: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    margin: 12px 20px 0 !important;
    width: calc(100% - 40px) !important;
    text-align: center !important;
    border-radius: 8px !important;
    border-bottom: none !important;
  }

  /* ── Hero ── */
  .hero { min-height: 100dvh; }
  .hero-content {
    padding: 32px 20px 32px;
    justify-content: flex-end;
  }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-sub   { font-size: .9rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: row; gap: 12px; }
  .hero-actions .btn { padding: 12px 20px; font-size: .875rem; flex: 1; justify-content: center; }

  /* Stats: 2×2 grid on tablet */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .stat {
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
    min-width: unset;
  }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: 2rem; }

  /* Content grids */
  .products-grid,
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid     { max-width: 100%; }
  .team-img      { width: 80px; height: 80px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: unset; width: 100%; }
  .contact-form { padding: 24px 16px; }
  .section-header { margin-bottom: 40px; }
}
