/* Winback Ukraine — Aare-inspired dark cinematic theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #606060;
  --accent: #ff4e27;
  --accent-hover: #e63e1a;
  --accent-soft: #ffa693;
  --accent-glow: rgba(255, 78, 39, 0.25);
  --secondary: #0088cb;
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 80px;
  --container: 1440px;
  --page-padding: clamp(20px, 4vw, 48px);
  --grid-gap: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.header.scrolled::before { opacity: 0; }

.header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: center;
  height: var(--header-h);
  position: relative;
  z-index: 1;
}

.logo {
  grid-column: 1 / 5;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.14em;
  color: var(--text);
  transition: color 0.3s;
  justify-self: start;
}

.logo:hover { color: var(--accent); }

.header__nav {
  grid-column: 6 / 13;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 3vw, 48px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active { opacity: 1; color: var(--text); }

.header .btn--primary {
  color: var(--text);
  flex-shrink: 0;
  padding: 10px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: end;
  padding-top: calc(var(--header-h) + 60px);
}

.hero__title {
  grid-column: 1 / 8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__card {
  grid-column: 9 / 13;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
}

.hero__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Section common */
.section { padding: 120px 0; }

.section--dark { background: var(--bg); }
.section--elevated { background: var(--bg-elevated); }

.section__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.8;
}

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-grid__image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.about-pillar h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* Stats */
.stats-banner {
  position: relative;
  padding: 0;
  margin: 80px 0;
}

.stats-banner__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: -80px;
  position: relative;
  z-index: 1;
  padding: 0 40px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  text-align: center;
}

.stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Services list */
.services-list { margin-top: 60px; }

.service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-item:hover { padding-left: 16px; }

.service-item__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.service-item__desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-item__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.9;
}

/* Process */
.process {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.process__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.process__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.process__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 30%, transparent 70%);
}

.process__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.process-steps { display: flex; flex-direction: column; gap: 48px; }

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

.process-step__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.process-step__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.process-step__desc { color: var(--text-muted); font-size: 0.9rem; }

/* Gallery / Equipment */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
}

.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* CTA / Contact */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-section .section__title { margin-inline: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  text-align: left;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-info__item h4 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-info__item p,
.contact-info__item a {
  font-size: 1.1rem;
  color: var(--text);
}

.contact-info__item a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img,
.page-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 120px;
}

.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin: 40px 0 16px;
  text-transform: uppercase;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow: hidden;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__legal a:hover { color: var(--text-muted); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__title { grid-column: 1 / -1; }
  .hero__card { grid-column: 1 / -1; max-width: 480px; }
  .header__nav { grid-column: 5 / 13; }
  .about-grid,
  .process__content,
  .contact-grid,
  .footer__grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header__grid {
    grid-template-columns: 1fr auto;
  }

  .logo { grid-column: 1; }
  .header__nav { grid-column: 2; gap: 0; }

  .nav__links,
  .header__nav .btn--primary { display: none; }

  .header__nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--bg);
    padding: 40px var(--page-padding);
    gap: 24px;
    align-items: flex-start;
  }

  .header__nav.open .btn--primary { display: inline-flex; }

  .menu-toggle { display: flex; }

  .stats-row { grid-template-columns: 1fr; margin-top: 24px; padding: 0; }
  .testimonials-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 60px 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}
