/*
Theme Name: Trad Custom Kungsbacka
Theme URI: https://xn--trdfllningkungsbacka-czbc.se
Description: Lightweight custom theme for Fjare Tradservice lead gen
Version: 1.0
*/

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

:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-cta: #4CAF50;
  --green-light: #E8F5E9;
  --text: #222;
  --text-muted: #555;
  --border: #C8E6C9;
  --white: #fff;
  --max-w: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; font-weight: 700; color: var(--text); }
h2 { font-size: 1.9rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===========================
   NAV
=========================== */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  padding: 0 20px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

.nav-cta {
  background: #fff;
  color: var(--green) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--green-light) !important; }

/* ===========================
   HERO
=========================== */
#hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: url('https://tradfallningtaby.se/wp-content/uploads/2026/03/tradfallning4.jpg') center 30% / cover no-repeat;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,30,15,0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  max-width: 660px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.hero-checks {
  list-style: none;
  margin-bottom: 2rem;
}
.hero-checks li {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-checks li::before {
  content: '\2713';
  color: #81C784;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  background: var(--green-cta) !important;
  color: #fff !important;
  padding: 15px 38px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 18px rgba(76,175,80,0.38) !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s !important;
  text-decoration: none !important;
}
.btn:hover {
  background: #388E3C !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 22px rgba(76,175,80,0.45) !important;
  text-decoration: none !important;
}

#hero .btn {
  background: #fff !important;
  color: var(--green) !important;
  box-shadow: 0 5px 22px rgba(0,0,0,0.28) !important;
  font-size: 1.1rem !important;
  padding: 16px 40px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}
#hero .btn:hover {
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
  transform: translateY(-2px) !important;
}

/* ===========================
   TRUST BAR
=========================== */
#trust {
  background: var(--green-dark);
  padding: 16px 20px;
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: center;
}
.trust-item {
  color: rgba(255,255,255,0.93);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item::before {
  content: '\2713';
  color: #81C784;
  font-weight: 700;
}

/* ===========================
   SECTION COMMON
=========================== */
.section-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.section-intro { max-width: 560px; margin-bottom: 3rem; }

/* ===========================
   SERVICES GRID
=========================== */
#tjanster {
  padding: 72px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 2.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.service-card-body {
  padding: 18px 20px;
}
.service-card-icon {
  width: 100%;
  height: 140px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.service-card h3 { margin-bottom: 0; color: var(--green-dark); }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===========================
   TESTIMONIALS
=========================== */
#omdomen {
  background: var(--green-light);
  padding: 72px 20px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.review-stars { color: #FFC107; font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: #444; line-height: 1.65; font-style: italic; margin-bottom: 14px; }
.review-author { font-weight: 700; font-size: 0.88rem; color: var(--green-dark); }
.review-location { font-size: 0.78rem; color: #888; margin-top: 2px; }

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===========================
   ABOUT SECTION
=========================== */
#om-oss {
  padding: 72px 20px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-image-placeholder {
  background: var(--green-light);
  border-radius: 10px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 2px solid var(--border);
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1.2rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-placeholder { height: 200px; }
}

/* ===========================
   AREAS
=========================== */
#omraden {
  background: #f7f9f7;
  padding: 60px 20px;
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.area-tag {
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===========================
   FAQ
=========================== */
#faq {
  padding: 72px 20px;
  background: #fafaf8;
}
#faq .wrap { max-width: 900px; }
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e0e8e2;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.faq-item summary {
  padding: 1.4rem 1.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: #1a1a1a;
  line-height: 1.4;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #888;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f1ec;
  transition: all .2s;
}
.faq-item[open] summary::after {
  content: '\2212';
  background: var(--green);
  color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 1.75rem 1.5rem;
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

/* ===========================
   CTA STRIP
=========================== */
#cta-bottom {
  background: var(--green-dark);
  padding: 72px 20px;
  text-align: center;
}
#cta-bottom h2 { color: #fff; margin-bottom: 1rem; }
#cta-bottom p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 2rem; }
#cta-bottom .btn {
  background: #fff !important;
  color: var(--green) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22) !important;
}
#cta-bottom .btn:hover {
  background: var(--green-light) !important;
}

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: #0D1F10;
  padding: 40px 20px;
  text-align: center;
}
#site-footer p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
#site-footer a { color: rgba(255,255,255,0.7); }

/* ===========================
   MOBILE NAV TOGGLE
=========================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  margin-right: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 1rem 0;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: #fff !important;
    padding: 12px 24px !important;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  #site-nav { position: relative; }
  .hero-content h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  #hero { min-height: 420px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===========================
   LEAD FORM MODAL
=========================== */
.lf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.lf-overlay.open { display: flex; }

.lf-modal {
  background: #fff;
  width: 100%;
  max-width: 540px;
  border-radius: 20px 20px 0 0;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  animation: lfSlideUp 0.32s cubic-bezier(.22,.68,0,1.2);
}
@keyframes lfSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 600px) {
  .lf-overlay { align-items: center; padding: 20px; }
  .lf-modal { border-radius: 20px; }
}

.lf-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 20px 24px 18px;
  border-radius: 20px 20px 0 0;
  color: #fff;
  position: relative;
}
.lf-steps-bar { display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.lf-step-pill {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
  transition: background 0.25s, transform 0.2s;
}
.lf-step-pill.active { background: #fff; color: var(--green); transform: scale(1.12); }
.lf-step-pill.done   { background: rgba(255,255,255,0.9); color: var(--green); }
.lf-step-line {
  flex: 1; height: 2px; background: rgba(255,255,255,0.2); transition: background 0.3s;
}
.lf-step-line.done { background: rgba(255,255,255,0.7); }
.lf-step-label { font-size: 1.1rem; font-weight: 700; color: #fff; }
.lf-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; color: #fff; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lf-close:hover { background: rgba(255,255,255,0.3); }

.lf-step { display: none; padding: 22px 24px 24px; }
.lf-step.active { display: block; }
.lf-step.slide-in { animation: lfFadeIn 0.22s ease; }
@keyframes lfFadeIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.lf-sub { color: #666; font-size: 0.9rem; margin-bottom: 18px; }

.lf-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lf-service {
  border: 2px solid #e8e8e8; border-radius: 12px; padding: 14px 10px;
  cursor: pointer; text-align: center; background: #fff;
  transition: all 0.18s; position: relative; overflow: hidden;
}
.lf-service:hover { border-color: var(--green); background: var(--green-light); transform: translateY(-1px); }
.lf-service.selected { border-color: var(--green); background: var(--green-light); }
.lf-service-icon { font-size: 1.6rem; display: block; margin-bottom: 5px; }
.lf-service-name { font-size: 0.88rem; font-weight: 600; color: #222; display: block; }
.lf-service-check {
  position: absolute; top: 6px; right: 8px; font-size: 0.8rem;
  color: var(--green); font-weight: 800; opacity: 0; transition: opacity 0.18s;
}
.lf-service.selected .lf-service-check { opacity: 1; }

.lf-input-wrap { position: relative; }
.lf-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; pointer-events: none; line-height: 1;
}
.lf-field { margin-bottom: 14px; }
.lf-field label { display: block; font-size: 0.83rem; font-weight: 600; color: #333; margin-bottom: 5px; }
.lf-optional { color: #aaa; font-weight: 400; }
.required { color: #e44; }
.lf-field input, .lf-field textarea {
  width: 100%; border: 1.5px solid #ddd; border-radius: 10px;
  padding: 12px 14px 12px 38px; font-size: 1rem; font-family: inherit;
  color: #222; transition: border-color 0.2s, box-shadow 0.2s; background: #fafafa;
}
.lf-field textarea { padding-left: 14px; resize: none; min-height: 100px; }
.lf-field input:focus, .lf-field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.lf-trust-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px;
  font-size: 0.78rem; color: #666;
}
.lf-trust-strip span { white-space: nowrap; }

.lf-what-next {
  background: var(--green-light); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 14px; font-size: 0.85rem; color: var(--green);
  display: flex; gap: 8px; align-items: flex-start;
}
.lf-what-next strong { display: block; margin-bottom: 2px; font-size: 0.82rem; color: var(--green-dark); }

.lf-btn-row { display: flex; gap: 10px; }
.lf-btn-back {
  background: #f2f2f2; color: #555; border: none; border-radius: 10px;
  padding: 14px 18px; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; transition: background 0.18s;
}
.lf-btn-back:hover { background: #e8e8e8; }
.lf-btn-next {
  flex: 1; background: var(--green-cta); color: #fff; border: none; border-radius: 10px;
  padding: 14px 20px; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 1rem;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(76,175,80,0.35);
}
.lf-btn-next:hover { background: #388E3C; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(76,175,80,0.42); }
.lf-btn-next:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.lf-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: lfSpin 0.6s linear infinite; vertical-align: middle; margin-right: 6px;
}
@keyframes lfSpin { to { transform: rotate(360deg); } }

@keyframes lfShake {
  0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 60% { transform: translateX(6px); }
}
.lf-shake { animation: lfShake 0.5s ease; }

.lf-error {
  background: #fff0f0; border: 1px solid #f5c6c6; color: #c00;
  border-radius: 8px; padding: 10px 14px; font-size: 0.87rem; margin-top: 8px; display: none;
}

.lf-success { display: none; padding: 32px 24px 28px; text-align: center; }
.lf-success.show { display: block; animation: lfFadeIn 0.3s ease; }
.lf-success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--green-cta); border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  animation: lfPop 0.4s cubic-bezier(.22,.68,0,1.4);
}
@keyframes lfPop { from { transform: scale(0); } to { transform: scale(1); } }
.lf-success-icon svg { width: 36px; height: 36px; stroke: #fff; stroke-width: 3; }
.lf-success h3 { font-size: 1.3rem; color: #1a2e1e; margin-bottom: 8px; }
.lf-success #lf-success-name { color: #555; font-size: 0.95rem; margin-bottom: 24px; }
.lf-next-steps { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.lf-next-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: #333; background: var(--green-light);
  border-radius: 10px; padding: 10px 14px;
}
.lf-ns-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 700; font-size: 0.78rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
