@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --iron: #0A0A0A;
  --will: #DC2626;
  --steel: #525252;
  --bg: #F5F5F4;
  --electric: #3B82F6;
  --white: #FFFFFF;
  --card: #1C1C1C;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--iron);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

a { color: var(--electric); text-decoration: none; transition: color 0.4s ease; }
a:hover { color: var(--will); }

img { max-width: 100%; height: auto; display: block; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--iron);
  border-bottom: 3px solid var(--will);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.logo span { color: var(--will); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-menu a {
  color: #D4D4D4;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.btn-primary {
  background: var(--will);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--electric);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--will);
  border: 2px solid var(--will);
}
.btn-outline:hover {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.4s;
}

/* Hero */
.hero {
  margin-top: 70px;
  background: var(--iron);
  color: var(--white);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(220, 38, 38, 0.08) 20px,
    rgba(220, 38, 38, 0.08) 22px
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--will); font-style: normal; }

.hero-tagline {
  font-size: 1.1rem;
  color: #A3A3A3;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.metric-box {
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--will);
  padding: 1rem;
  font-family: 'Courier New', monospace;
}
.metric-box .label { font-size: 0.7rem; color: #737373; text-transform: uppercase; }
.metric-box .value { font-size: 1.4rem; color: var(--will); font-weight: 700; }

.hero-image img {
  border: 3px solid var(--steel);
  box-shadow: 8px 8px 0 var(--will);
}

/* Stats strip */
.stats-strip {
  background: var(--will);
  color: var(--white);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Courier New', monospace;
}
.stat-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* Sections */
section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--steel);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  color: var(--white);
  padding: 1.8rem;
  border-left: 4px solid var(--will);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-left-color: var(--electric);
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.card p { color: #A3A3A3; font-size: 0.95rem; margin-bottom: 1rem; }
.card .price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--will);
}

/* Stack strip */
.stack-strip {
  background: var(--iron);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stack-item {
  background: rgba(220,38,38,0.15);
  border: 1px solid var(--will);
  padding: 0.8rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-list { list-style: none; }
.why-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #E5E5E5;
  padding-left: 1.5rem;
  position: relative;
}
.why-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--will);
  font-weight: 700;
}

/* Full bleed CTA */
.full-bleed {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.full-bleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.75);
}
.full-bleed .container { position: relative; z-index: 1; color: var(--white); }
.full-bleed h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }

/* Services cards light */
.services-light .card {
  background: var(--white);
  color: var(--iron);
  border-left-color: var(--will);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.services-light .card p { color: var(--steel); }

/* Testimonials */
.testimonials {
  background: #E7E5E4;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-top: 4px solid var(--will);
}
.testimonial blockquote {
  font-style: italic;
  color: var(--steel);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.testimonial cite {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--iron);
}

/* CTA section */
.cta-section {
  background: var(--iron);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: #A3A3A3; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Page header */
.page-hero {
  margin-top: 70px;
  background: var(--iron);
  color: var(--white);
  padding: 3.5rem 0;
  border-bottom: 4px solid var(--will);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: #A3A3A3; margin-top: 0.8rem; }

/* Catalog */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  background: var(--white);
  border: 2px solid #E5E5E5;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--will);
  border-color: var(--will);
  color: var(--white);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.catalog-item {
  background: var(--white);
  border-left: 4px solid var(--will);
  overflow: hidden;
  transition: transform 0.4s ease;
}
.catalog-item:hover { transform: translateY(-3px); }
.catalog-item img { width: 100%; height: 180px; object-fit: cover; }
.catalog-body { padding: 1.5rem; }
.catalog-body h3 { font-size: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.catalog-body .ref { font-family: monospace; font-size: 0.75rem; color: var(--steel); }
.catalog-body .price { font-family: 'Oswald', sans-serif; color: var(--will); font-size: 1.3rem; margin: 0.8rem 0; }
.catalog-body .cat-tag {
  display: inline-block;
  background: #FEE2E2;
  color: var(--will);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* Services page */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #E5E5E5;
}
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-block h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.service-block ul { list-style: none; margin-top: 1rem; }
.service-block li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--steel);
}
.service-block li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--will);
  font-size: 0.5rem;
  top: 0.65rem;
}

/* About */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  padding: 1.5rem;
  border-left: 4px solid var(--will);
  text-align: center;
}
.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--will);
}
.team-card h3 { font-size: 1rem; }
.team-card .role { color: var(--steel); font-size: 0.85rem; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.cert-item {
  background: var(--iron);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info { list-style: none; }
.contact-info li {
  padding: 1rem 0;
  border-bottom: 1px solid #E5E5E5;
}
.contact-info strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--will);
  margin-bottom: 0.3rem;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E5E5;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.4s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--will);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--will);
  background: #FEF2F2;
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-success {
  display: none;
  background: var(--iron);
  color: var(--white);
  padding: 2.5rem;
  border-left: 4px solid var(--will);
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--will); margin-bottom: 1rem; }

/* Legal */
.legal-content {
  background: var(--white);
  padding: 2.5rem;
  max-width: 900px;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: var(--will);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--steel); margin-bottom: 0.8rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--iron);
  color: #A3A3A3;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: #A3A3A3; }
.footer-grid a:hover { color: var(--will); }
.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--iron);
  color: var(--white);
  padding: 1.2rem;
  z-index: 9999;
  display: none;
  border-top: 3px solid var(--will);
}
#cookie-banner.show { display: block; }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.cookie-inner p { font-size: 0.9rem; flex: 1; min-width: 250px; }
.cookie-inner a { color: var(--will); }

/* Animations */
.slide-up, .fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
html.js .slide-up, html.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
}
html.js .slide-up.visible, html.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .why-grid, .contact-grid, .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--iron);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 3px solid var(--will);
  }
  .nav-menu.open { display: flex; }
  .hero-metrics { grid-template-columns: 1fr; }
}
