/* ============================================================
   BASE.CSS — Delade stilar för hela webbplatsen
   Grusarmering.se
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #050505;
  color: #e8e8e6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== ANIMATED GRADIENT MESH ===== */
.gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.gradient-mesh .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: blobMove 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(45, 90, 61, 0.3);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 42, 0.2);
  top: 30%;
  right: -10%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.blob-3 {
  width: 700px;
  height: 700px;
  background: rgba(45, 90, 61, 0.15);
  bottom: -20%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 30s;
}

@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, -40px) scale(1.1); }
  66%  { transform: translate(-30px, 50px) scale(0.95); }
  100% { transform: translate(40px, 20px) scale(1.05); }
}

/* ===== NOISE OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Content wrapper above gradient */
.content {
  position: relative;
  z-index: 2;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo span {
  background: linear-gradient(135deg, #4caf6e, #8cb86e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #2d5a3d, #4caf6e);
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(76, 175, 110, 0.15);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(76, 175, 110, 0.3);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(24px);
  padding: 16px 24px 32px;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.nav-mobile-cta {
  margin-top: 20px;
  background: linear-gradient(135deg, #2d5a3d, #4caf6e);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
}

/* ===== ANIMATIONER ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}


@keyframes scrollLine {
  0%   { top: -40%; }
  100% { top: 120%; }
}

/* ===== KNAPPAR ===== */
.btn-glow {
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #2d5a3d, #4caf6e);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(76, 175, 110, 0.2);
}

.btn-glow:hover {
  box-shadow: 0 0 50px rgba(76, 175, 110, 0.35);
  transform: translateY(-2px);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-glass {
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ===== SEKTIONSPADDING ===== */
.s-pad {
  padding: 140px 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.s-pad-sm {
  padding: 0 48px 140px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ===== SCROLL REVEAL ===== */
.sr {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr.vis {
  opacity: 1;
  transform: none;
}

.sr-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-stagger.vis > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.sr-stagger.vis > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.sr-stagger.vis > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.sr-stagger.vis > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }

/* ===== TYPOGRAFI / DELADE KOMPONENTER ===== */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4caf6e;
  margin-bottom: 16px;
}

.title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.title .serif {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
}

.subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  max-width: 540px;
}

/* ===== CTA-SEKTION ===== */
.cta {
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.3), rgba(45, 90, 61, 0.1));
  border: 1px solid rgba(76, 175, 110, 0.15);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(76, 175, 110, 0.12), transparent 50%);
}

.cta .title,
.cta .subtitle,
.cta .btn-glow {
  position: relative;
  z-index: 2;
}

.cta .subtitle {
  margin: 0 auto;
  text-align: center;
}

.cta .btn-glow {
  margin-top: 48px;
  display: inline-flex;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

footer small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
}

/* ===== INSTALLATION ===== */
.inst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inst-left {
  background: rgba(255, 255, 255, 0.02);
  padding: 56px 48px;
}

.inst-left > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 40px;
}

.inst-right {
  overflow: hidden;
  min-height: 450px;
  position: relative;
}

.inst-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.inst-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.3), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #navbar {
    padding: 0 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .s-pad {
    padding: 100px 24px;
  }

  .inst-grid {
    grid-template-columns: 1fr;
  }

  .s-pad-sm {
    padding: 0 24px 100px;
  }

  .cta {
    padding: 56px 32px;
  }

  footer {
    padding: 28px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 250px; height: 250px; }
  .blob-3 { width: 350px; height: 350px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.breadcrumb a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: rgba(255,255,255,0.7);
}
.breadcrumb-sep {
  color: rgba(255,255,255,0.15);
}

/* ===== JÄMFÖRELSETABELL ===== */
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cmp thead th {
  background: rgba(45, 90, 61, 0.3);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.cmp thead th:first-child {
  background: rgba(255, 255, 255, 0.04);
}
.cmp thead th.hl {
  background: rgba(76, 175, 110, 0.4);
}
.cmp tbody td {
  padding: 16px 24px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.01);
}
.cmp tbody tr:last-child td {
  border-bottom: none;
}
.cmp tbody td:first-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}
.cmp tbody td.hl {
  background: rgba(76, 175, 110, 0.06);
  color: #4caf6e;
  font-weight: 600;
}
.ck { color: #4caf6e; font-weight: 700; }
.cx { color: rgba(255, 255, 255, 0.2); }

/* ===== COOKIE BANNER ===== */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

#cookieBanner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

#cookieBanner p a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #2d5a3d, #4caf6e);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.cookie-accept:hover {
  box-shadow: 0 0 20px rgba(76, 175, 110, 0.35);
}

.cookie-decline {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: none;
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.cookie-decline:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  #cookieBanner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-accept {
    flex: 1;
    text-align: center;
  }
}

/* ===== SKIP-LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: #4caf6e;
  color: #050505;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ===== STEG (INSTALLATION) ===== */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.step:last-child {
  border-bottom: none;
}

.step-n {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, rgba(76, 175, 110, 0.15), rgba(76, 175, 110, 0.03));
  border: 1px solid rgba(76, 175, 110, 0.2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #4caf6e;
}

.step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

button.faq-q {
  background: none;
  border: none;
  padding: 24px 0;
  font: inherit;
  width: 100%;
  text-align: left;
}

.faq-q:hover {
  color: #fff;
}

.faq-q .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
  border-color: #4caf6e;
  color: #4caf6e;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.75;
  font-weight: 300;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 24px;
}

.mt-cta { margin-top: 36px; }

/* ===== ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4caf6e;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
