/* STAMAG – Modern 2026 Design System */
:root {
  --bg: #0b1220;
  --bg-soft: #111827;
  --bg-card: #151d2e;
  --surface: #1a2336;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --primary: #3b82f6;
  --border: rgba(148, 163, 184, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-dim);
}
.nav-links a.cta {
  background: var(--accent);
  color: #0b1220;
  font-weight: 700;
  margin-left: 0.5rem;
}
.nav-links a.cta:hover {
  background: var(--accent-hover);
  color: #0b1220;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: .3s;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(245, 158, 11, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(59, 130, 246, 0.1), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #0b1220;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0b1220;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 800;
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.service-card .link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-card .link:hover { gap: 0.55rem; }

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-list {
  margin-top: 1.5rem;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.about-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.about-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.about-visual .big-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.about-visual .big-label {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ========== CLIENTS ========== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.client-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.client-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--text);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.contact-row {
  margin-bottom: 1.25rem;
}
.contact-row strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.contact-row a, .contact-row span {
  color: var(--text);
  font-size: 1.05rem;
}
.contact-row a:hover { color: var(--accent); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 320px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(245, 158, 11, 0.1), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

.content-section {
  padding: 3.5rem 0 5rem;
}
.content-section h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.content-section ul {
  margin: 1rem 0 1.5rem;
}
.content-section ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}
.content-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.content-section strong { color: var(--text); }

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.related a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  transition: border-color .2s, transform .2s;
}
.related a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer p, .footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer a:hover { color: var(--accent); }
.footer ul li { margin-bottom: 0.45rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-soft);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-h) + 1rem) 1.25rem 2rem;
    gap: 0.25rem;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .nav-links a.cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.gallery-grid a:hover {
  transform: scale(1.03);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* Hero with background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,18,32,0.95) 0%, rgba(11,18,32,0.75) 45%, rgba(11,18,32,0.5) 100%);
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }
}

.service-photo {
  width: calc(100% + 3.5rem);
  max-width: none;
  height: 160px;
  object-fit: cover;
  margin: -1.75rem -1.75rem 1.15rem -1.75rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
