/* =============================================
   ERIKSSONWOOD AB — Stylesheet
   Scandinavian natural aesthetic
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --bg: #F7F4EE;
  --bg-alt: #EFF5E8;
  --green-dark: #1E3D10;
  --green-mid: #3B6E1F;
  --green-light: #6B9E3A;
  --wood: #A0622A;
  --wood-light: #D4935C;
  --text: #1A1A1A;
  --text-muted: #5A5A4A;
  --white: #FFFFFF;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);

  --transition: 0.25s ease;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

em {
  font-style: italic;
  color: var(--green-mid);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  background-color: var(--green-mid);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Facebook button in hero */
.btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--green-mid);
  border: 2px solid rgba(59, 110, 31, 0.35);
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), transform var(--transition), background-color var(--transition);
}

.btn-facebook:hover {
  background-color: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  background-color: transparent;
  color: var(--green-mid);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--green-mid);
  border-radius: var(--radius-full);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--green-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-large {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* --- Section Helpers --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  background-color: rgba(107, 158, 58, 0.12);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 560px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- Image Placeholders --- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.placeholder-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

/* Real image — sits on top of the placeholder gradient once loaded */
.real-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  z-index: 1;
}

.real-img.loaded {
  display: block;
}

/* --- Scroll Animations --- */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .animate-up:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-up:nth-child(3) { transition-delay: 0.15s; }
.services-grid .animate-up:nth-child(4) { transition-delay: 0.2s; }
.services-grid .animate-up:nth-child(5) { transition-delay: 0.25s; }
.services-grid .animate-up:nth-child(6) { transition-delay: 0.3s; }

.process-steps .animate-up:nth-child(3) { transition-delay: 0.1s; }
.process-steps .animate-up:nth-child(5) { transition-delay: 0.2s; }
.process-steps .animate-up:nth-child(7) { transition-delay: 0.3s; }
.process-steps .animate-up:nth-child(9) { transition-delay: 0.4s; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background-color var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Groups the Facebook icon + CTA button on the right side of the nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

/* Smaller version of btn-facebook for the nav */
.nav-facebook {
  width: 38px;
  height: 38px;
}

.nav-logo-img {
  height: 100px;
  width: auto;
  display: block;
  /* Removes white background on light nav — white × cream = cream (invisible) */
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-mid);
  background-color: rgba(59, 110, 31, 0.07);
}

.nav-cta {
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.hamburger:hover {
  background-color: rgba(59, 110, 31, 0.08);
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-link {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.mobile-link:hover {
  background-color: var(--bg-alt);
  color: var(--green-mid);
}

.mobile-cta {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  position: relative;
  padding-top: var(--nav-height);
  /* Egen bottom-padding hanteras av .hero-container — utan denna nollställning
     lägger den generiska "section"-regeln (5rem 0) på ytterligare 80px extra tomrum. */
  padding-bottom: 0;
  background: linear-gradient(160deg, var(--bg) 60%, var(--bg-alt) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-container {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Hero Left */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-mid);
  background-color: rgba(59, 110, 31, 0.1);
  border: 1px solid rgba(59, 110, 31, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

#hero h1 {
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--green-mid);
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero Right */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--green-mid) 0%, var(--green-dark) 60%, #2a1a08 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge-float {
  position: absolute;
  bottom: -1.2rem;
  left: -1.2rem;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.badge-years {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-mid);
  line-height: 1;
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Hero Divider */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
#tjanster {
  background-color: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(59, 110, 31, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-top-color: var(--green-mid);
}

.service-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(59, 110, 31, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-top: 0.25rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
  background-color: rgba(107, 158, 58, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#om-oss {
  background-color: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-image-wrap {
  position: relative;
}

.about-accent-bar {
  position: absolute;
  left: -16px;
  top: 10%;
  bottom: 10%;
  width: 4px;
  background: linear-gradient(to bottom, var(--green-light), var(--green-mid));
  border-radius: 4px;
  z-index: 1;
}

.about-img {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-dark) 70%, #1a0e05 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 480px;
}

.about-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text-col .section-label {
  width: fit-content;
}

.about-text-col h2 {
  color: var(--green-dark);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(59, 110, 31, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-mid);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
#process {
  background-color: var(--white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 110, 31, 0.3);
  position: relative;
  z-index: 2;
}

.step-content h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.process-connector {
  flex: 0 0 auto;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--green-light), var(--green-mid));
  margin-top: 26px;
  opacity: 0.4;
  border-radius: 2px;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
#galleri {
  background-color: var(--bg);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
#kontakt {
  background-color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Form */
.contact-form-col form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--white);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(59, 110, 31, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(90, 90, 74, 0.5);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background-color: rgba(107, 158, 58, 0.1);
  border: 1px solid rgba(107, 158, 58, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-mid);
  margin-top: 0.25rem;
}

/* Contact Card */
.contact-card {
  background: var(--white);
  border: 1px solid rgba(59, 110, 31, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card h3 {
  font-size: 1.2rem;
  color: var(--green-dark);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(59, 110, 31, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(59, 110, 31, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

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

.contact-divider {
  height: 1px;
  background: rgba(59, 110, 31, 0.1);
  margin: 0.25rem 0;
}

.contact-highlight {
  background: linear-gradient(135deg, rgba(107, 158, 58, 0.1), rgba(59, 110, 31, 0.06));
  border: 1px solid rgba(107, 158, 58, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.contact-highlight strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.contact-highlight p {
  font-size: 0.85rem;
  margin: 0;
}

.contact-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-mid);
  background-color: rgba(107, 158, 58, 0.1);
  border: 1px solid rgba(107, 158, 58, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background-color: var(--green-dark);
  color: rgba(255,255,255,0.85);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-area-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  display: block;
  /* Turns the dark logo white for the dark footer background */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  max-width: 280px;
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-contact-quick a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-contact-quick a:hover {
  color: var(--white);
}

/* Facebook link in footer */
.footer-social {
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  border-radius: var(--radius-full);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.social-icon:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.footer-col h4,
.footer-col .footer-heading {
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-info li svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-info a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-info a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-credit {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit:hover {
  color: var(--white);
}

/* the sticky chat bubble sits bottom right; keep the credit link clear of it */
@media (min-width: 769px) {
  .footer-bottom { padding-right: 76px; }
}

/* =============================================
   FAQ SECTION
   ============================================= */
#faq {
  background-color: var(--white);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(59, 110, 31, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(59, 110, 31, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.faq-question:hover {
  background-color: rgba(59, 110, 31, 0.04);
  color: var(--green-dark);
}

.faq-question[aria-expanded="true"] {
  color: var(--green-dark);
  background-color: rgba(59, 110, 31, 0.05);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--green-mid);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer.open {
  display: block;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--green-mid);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .animate-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .badge-dot {
    animation: none;
  }

  .mobile-menu {
    transition: none;
  }
}

/* =============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 3rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =============================================
   RESPONSIVE — TABLET (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  section {
    padding: 3.5rem 0;
  }

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

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 4rem;
    gap: 3rem;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    order: 1;
  }

  .hero-right {
    order: 0;
  }

  .hero-desc {
    text-align: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-image-wrap {
    max-width: 360px;
  }

  .hero-badge-float {
    bottom: -1rem;
    left: -0.75rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-col {
    order: 0;
  }

  .about-accent-bar {
    left: -10px;
  }

  .about-img {
    max-height: 320px;
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Process */
  .process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 1.5rem 0;
    gap: 1.25rem;
  }

  .process-connector {
    width: 2px;
    height: 24px;
    margin: 0 0 0 25px;
    background: linear-gradient(to bottom, var(--green-light), var(--green-mid));
    align-self: stretch;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  .nav-logo-img {
    height: 72px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}


/* =============================================
   CHATTBUBBLA — AI-assistent
   ============================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transition: transform var(--transition), box-shadow var(--transition);
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(30, 61, 16, 0.32);
}

.chat-fab:focus-visible {
  outline: 3px solid var(--wood-light);
  outline-offset: 3px;
}

/* Diskret puls som drar blicken tills chatten öppnats en gång.
   Egen ring i ::after — animerar vi knappen krockar det med hover-transformen. */
.chat-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 2px solid var(--green-light);
  pointer-events: none;
  animation: chatPulse 2.8s ease-out infinite;
}

@keyframes chatPulse {
  0%        { transform: scale(1);    opacity: 0.5; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.chat-fab.seen::after,
.chat-fab.open::after,
.chat-fab:hover::after {
  animation: none;
  opacity: 0;
}

.chat-fab svg {
  width: 26px;
  height: 26px;
  grid-area: 1 / 1;
  transition: opacity var(--transition), transform var(--transition);
}

.chat-fab .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.chat-fab.open .icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.chat-fab.open .icon-close {
  opacity: 1;
  transform: none;
}

/* Liten prick som visar att assistenten finns, tills den öppnats en gång */
.chat-fab .chat-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--wood-light);
  border: 2px solid var(--white);
}

.chat-fab.seen .chat-dot {
  display: none;
}

/* Knappen poppar in efter laddning. Animationen ligger på `scale` (inte transform)
   så att hover-transformen fortsätter fungera. */
.chat-fab.pop-in {
  animation: chatFabPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

@keyframes chatFabPop {
  0%   { scale: 0; }
  60%  { scale: 1.15; }
  80%  { scale: 0.95; }
  100% { scale: 1; }
}

/* --- Teaser-pratbubbla --- */
.chat-teaser {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: 270px;
  max-width: calc(100vw - 48px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.6);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
}

.chat-teaser.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, visibility 0s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-teaser-body {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.9rem 2.2rem 0.9rem 1.05rem;
  border-radius: var(--radius-lg);
  border-bottom-right-radius: 4px;
  box-shadow: 0 14px 40px rgba(30, 61, 16, 0.22), 0 2px 6px rgba(30, 61, 16, 0.08);
  border: 1px solid rgba(30, 61, 16, 0.08);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}

.chat-teaser-body:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(30, 61, 16, 0.28), 0 2px 6px rgba(30, 61, 16, 0.08);
}

.chat-teaser-body:focus-visible,
.chat-teaser-close:focus-visible {
  outline: 3px solid var(--wood-light);
  outline-offset: 2px;
}

.chat-teaser-text strong {
  color: var(--green-dark);
}

.chat-teaser-text {
  display: none;
}

.chat-teaser.typed .chat-teaser-text {
  display: inline;
  animation: chatTeaserText 0.35s ease both;
}

@keyframes chatTeaserText {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.chat-teaser-typing {
  display: inline-flex;
  gap: 5px;
  padding: 0.35rem 0;
}

.chat-teaser.typed .chat-teaser-typing {
  display: none;
}

.chat-teaser-typing span {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  animation: chatBounce 1.1s infinite ease-in-out;
}

.chat-teaser-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-teaser-typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-teaser-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.chat-teaser-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.chat-teaser-close svg {
  width: 13px;
  height: 13px;
}

/* --- Panel --- */
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.chat-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 1.1rem 1.25rem;
  flex-shrink: 0;
}

.chat-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

/* Explicit vit — global p-regel sätter annars --text-muted och gör texten oläslig */
.chat-header p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0.15rem 0 0;
}

/* --- Meddelanden --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg);
}

.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-msg.bot {
  background: var(--bg-alt);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--green-mid);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.error {
  background: #FBE9E7;
  color: #8A2A1F;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* --- Skrivindikator --- */
.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.8rem 0.9rem;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  animation: chatBounce 1.3s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes chatBounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.45; }
  35%           { transform: translateY(-5px); opacity: 1; }
}

/* --- Inmatning --- */
.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(30, 61, 16, 0.12);
  background: var(--white);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text);
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(30, 61, 16, 0.18);
  border-radius: var(--radius-full);
  background: var(--bg);
  transition: border-color var(--transition);
}

.chat-form input:focus {
  outline: none;
  border-color: var(--green-light);
}

.chat-form button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--green-dark);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background var(--transition), opacity var(--transition);
}

.chat-form button:hover:not(:disabled) {
  background: var(--green-mid);
}

.chat-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-form button svg {
  width: 18px;
  height: 18px;
}

.chat-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.75rem 0.6rem;
  background: var(--white);
  flex-shrink: 0;
}

/* --- Mobil --- */
@media (max-width: 480px) {
  .chat-fab {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .chat-teaser {
    right: 16px;
    bottom: 84px;
    max-width: calc(100vw - 32px);
  }

  .chat-panel {
    right: 12px;
    left: 12px;
    bottom: 82px;
    width: auto;
    max-width: none;
    height: auto;
    top: 76px;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab,
  .chat-fab svg,
  .chat-panel {
    transition: none;
  }

  .chat-fab::after {
    animation: none;
    opacity: 0;
  }

  .chat-typing span,
  .chat-teaser-typing span,
  .chat-fab.pop-in,
  .chat-teaser.typed .chat-teaser-text {
    animation: none;
  }

  .chat-teaser,
  .chat-teaser.show,
  .chat-teaser-body {
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
}
