/* ==========================================================================
   European Green Infrastructure — Stylesheet
   Marin & stål — etablerad infrastruktur
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0e2238;
  --bg-section: #f8f9fb;
  --border: #d8dee5;
  --border-strong: #b8c2cc;
  --text: #1a2533;
  --text-secondary: #4a5868;
  --text-mute: #7a8694;
  --text-light: #ffffff;
  --text-light-dim: #b8c5d2;
  --primary: #1e4976;
  --primary-dark: #143656;
  --primary-light: #2c6299;
  --accent: #c8a96a;
  --accent-dark: #a08550;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Topbar */
.topbar {
  background: var(--bg-dark);
  color: var(--text-light-dim);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--primary-dark);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.topbar-info { display: flex; gap: 2rem; }
.topbar-info span { display: flex; align-items: center; gap: 0.5rem; }
.topbar-info a:hover { color: var(--text-light); }

.lang-switch {
  display: flex;
  font-size: 0.78rem;
  font-weight: 500;
}

.lang-switch a {
  padding: 0.25rem 0.6rem;
  color: var(--text-light-dim);
  border-left: 1px solid var(--primary-dark);
  transition: color 0.15s;
}

.lang-switch a:first-child { border-left: none; }
.lang-switch a:hover { color: var(--text-light); }
.lang-switch a.active { color: var(--accent); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text-light);
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  position: relative;
}

.logo-mark::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 600; }
.logo-text small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.3rem;
  height: 2px;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,34,56,0.95) 0%, rgba(20,54,86,0.85) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 80px, rgba(255,255,255,0.025) 80px, rgba(255,255,255,0.025) 81px);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad) clamp(3.5rem, 7vw, 5.5rem);
}

.hero-eyebrow {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
  max-width: 22ch;
  color: var(--text-light);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-light-dim);
  max-width: 58ch;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-light {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-light);
}

.btn-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--text-light);
  color: var(--text-light);
}

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

.btn::after {
  content: '→';
  font-weight: 400;
  transition: transform 0.2s;
}

.btn:hover::after { transform: translateX(3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light-dim);
  font-weight: 500;
}

/* Sections */
.section { position: relative; padding: clamp(3.5rem, 7vw, 6rem) var(--pad); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-alt {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 0.78rem;
  color: var(--primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 24ch;
  color: var(--text);
}

.section-intro {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.feature { background: var(--bg); padding: 2.25rem 2rem; }

.feature-num {
  font-size: 0.78rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.product {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem 2.25rem;
  position: relative;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.product:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(14,34,56,0.08);
}

.product.featured {
  border-color: var(--primary);
  border-top: 4px solid var(--primary);
  padding-top: calc(2.5rem - 3px);
}

.product.featured::before {
  content: 'ISO 12856';
  position: absolute;
  top: 0;
  right: 1.25rem;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.product-meta {
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  min-height: 3em;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.product-price-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--primary);
  line-height: 1;
}

.product-price-unit { font-size: 0.85rem; color: var(--text-mute); }

.product-specs { list-style: none; margin-bottom: 2rem; flex: 1; }

.product-specs li {
  padding: 0.7rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.product-specs li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.product-specs li:last-child { border-bottom: none; }

/* Two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-image {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.two-col-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 24px, var(--border) 24px, var(--border) 25px);
  opacity: 0.5;
}

.two-col-image-label {
  position: relative;
  color: var(--text-mute);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px dashed var(--border-strong);
  padding: 0.85rem 1.5rem;
  background: var(--bg);
}

/* Page header */
.page-header {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 80px, rgba(255,255,255,0.025) 80px, rgba(255,255,255,0.025) 81px);
}

.page-header-inner { max-width: var(--max-width); margin: 0 auto; position: relative; }

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light-dim);
  max-width: 62ch;
  line-height: 1.65;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { font-size: 0.95rem; }

.contact-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-block:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-value a:hover { color: var(--primary); }

form {
  display: grid;
  gap: 1.25rem;
  background: var(--bg);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

input, textarea, select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,73,118,0.1);
}

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

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-dim);
  padding: 4rem var(--pad) 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer .logo { color: var(--text-light); margin-bottom: 1rem; }
.footer .logo-mark { background: var(--accent); color: var(--bg-dark); }
.footer .logo-mark::after { background: var(--text-light); }
.footer .logo-text small { color: var(--text-light-dim); }

.footer-col h4 {
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: var(--text-light-dim);
  font-size: 0.92rem;
  transition: color 0.15s;
}

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

.footer-tagline {
  color: var(--text-light-dim);
  font-size: 0.92rem;
  max-width: 38ch;
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .topbar-info { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    gap: 1.25rem;
  }

  .nav-links a.active::after { display: none; }

  .two-col, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  form { padding: 1.75rem 1.25rem; }
}
