/* Base Reset */
:root {
  color-scheme: dark;
  --bg: #05070f;
  --surface: #111827;
  --surface-strong: #f8fafc;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #dc2626;
  --primary-soft: rgba(220, 38, 38, 0.18);
  --accent: #1d4ed8;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

/* Mobile / iOS safe area and touch adjustments */
html, body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(30, 58, 138, 0.24), transparent 24%),
    radial-gradient(circle at bottom right, rgba(220, 38, 38, 0.16), transparent 24%),
    var(--bg);
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(220, 38, 38, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-btn:hover {
  transform: translateY(-1px);
  background: #b91c1c;
}

.nav-toggle {
  display: inline-flex !important;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  padding: 0;
  color: var(--surface-strong);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  opacity: 0.92;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

.burger {
  width: 20px;
  height: 16px;
  display: inline-block;
  background-image: linear-gradient(
    white 20%,
    transparent 20%,
    transparent 40%,
    white 40%,
    white 60%,
    transparent 60%,
    transparent 80%,
    white 80%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Featured product card (homepage) */
.featured-product {
  margin: 2.5rem 0 3rem;
}
.product-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}
.product-card-grid-noimage {
  grid-template-columns: 1fr;
}
.product-content h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  color: var(--surface-strong);
}
.hero-copy-full {
  grid-column: 1 / -1;
}
.product-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Make header CTA more prominent on small screens */
@media (max-width: 900px) {
  .header-btn {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .product-card-grid {
    grid-template-columns: 1fr;
  }
  .product-media {
    min-height: 260px;
  }
}

.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, rgba(29, 78, 216, 0.14), transparent 18%),
    radial-gradient(circle at bottom right, rgba(220, 38, 38, 0.12), transparent 18%),
    var(--bg);
}


.hero-image {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.16), rgba(5, 7, 15, 0.96));
  border-radius: 1.75rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 4vw, 4.4rem);
  line-height: 1.04;
  margin: 0.5rem 0 1rem;
  color: var(--surface-strong);
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 55ch;
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats .stat-card {
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--surface-strong);
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-item.visible {
  opacity: 1;
  transform: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3rem, 4vw, 4.4rem);
  line-height: 1.02;
  margin: 0.5rem 0 1rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 55ch;
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
  cursor: pointer;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.reveal-item.visible {
  opacity: 1;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: rgba(29, 78, 216, 0.08);
  color: var(--surface-strong);
  border-color: rgba(29, 78, 216, 0.22);
}

.hero-secondary {
  display: grid;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(71, 85, 105, 0.12);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--surface-strong);
}

.stat-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.features,
.highlight,
.values,
.service-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2.5rem;
}

.feature-card,
.service-card,
.stat-box,
.contact-info,
.contact-form {
  background: #0b1220;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.feature-card h3,
.service-card h2,
.stat-box span,
.contact-info h2,
.about-text h2 {
  margin-top: 0;
}

.feature-card p,
.service-card p,
.contact-info p,
.about-text p {
  color: var(--muted);
  line-height: 1.8;
}

.highlight {
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
}

.highlight-list {
  display: grid;
  gap: 1rem;
}

.highlight-list div {
  background: rgba(29, 78, 216, 0.16);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.highlight-list h4 {
  margin: 0 0 0.5rem;
}

.highlight-list p {
  margin: 0;
  color: var(--muted);
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-hero {
  margin-bottom: 2rem;
}

.about-grid {
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
}

.stat-box span {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values article {
  padding: 2rem;
}

.values h3 {
  margin-top: 0;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.service-card {
  min-height: 10rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.product-image {
  width: 100%;
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.18), rgba(220, 38, 38, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.contact-info li {
  margin-bottom: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--surface-strong);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  padding: 1rem 1rem;
  background: #0b1220;
  color: var(--surface-strong);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(29, 78, 216, 0.28);
  outline-offset: 2px;
}

.site-footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  color: var(--muted);
}
.contact-meta li {
  margin-bottom: 0.6rem;
}

.map-note {
  color: var(--muted);
  margin: 0.5rem 0;
}

.map-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .highlight,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: center;
  }

  .header-btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .feature-card,
  .service-card,
  .stat-box,
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand {
    align-self: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-start;
    margin: 0;
    justify-content: center;
    width: 48px;
    height: 48px;
  }

  .burger {
    width: 24px;
    height: 18px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .burger::before,
  .burger::after,
  .burger div {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-image {
    min-height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .header-inner {
    padding: 0.75rem 0;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-copy p,
  .feature-card p,
  .service-card p,
  .contact-info p,
  .about-text p {
    font-size: 0.98rem;
  }

  .site-nav a,
  .header-btn,
  .btn {
    font-size: 0.95rem;
  }
}
