/* COMPANY — Trädgårdsanläggning
   Site styles: mobile-first, earthy green palette */

:root {
  --green-900: #0f2a1c;
  --green-800: #1a3a2a;
  --green-700: #26553c;
  --green-600: #3a7a52;
  --green-100: #e8f5e9;
  --sand-100: #f5f1e8;
  --sand-200: #ebe5d6;
  --text: #1a2a20;
  --text-light: #4a5a4a;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

/* ── Header ─────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--green-800);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon { font-size: 1.5rem; }

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--green-600); }

.nav-cta {
  background: var(--green-700);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--green-800); }

/* Language toggle */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--green-600);
  color: var(--green-600);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: none;
}

.lang-toggle:hover {
  background: var(--green-600);
  color: var(--white);
}

@media (min-width: 900px) {
  .lang-toggle { display: block; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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); }

/* Mobile nav open state */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem;
  gap: 1rem;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.main-nav.open a {
  width: 100%;
  padding: 0.6rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* ── Hero ───────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 1.25rem 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-accent {
  color: var(--green-100);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(1rem, 3vw, 1.25rem);
  max-width: 36rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

/* ── Buttons ────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--white);
  color: var(--green-800);
}

.btn-primary:hover {
  background: var(--green-100);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ── Trust bar ──────────────────────────────────── */

.trust-bar {
  background: var(--green-900);
  color: var(--green-100);
  padding: 1.25rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-around;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-icon { font-size: 1.1rem; }

/* ── Section general ────────────────────────────── */

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

/* ── Services ───────────────────────────────────── */

.services {
  padding: 4rem 0;
  background: var(--sand-100);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── Projects ───────────────────────────────────── */

.projects {
  padding: 4rem 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--green-100);
  position: relative;
}

/* Placeholder gradients until real photos */
.placeholder-1 { background: linear-gradient(135deg, #a5d6a7, #66bb6a); }
.placeholder-2 { background: linear-gradient(135deg, #c8e6c9, #81c784); }
.placeholder-3 { background: linear-gradient(135deg, #b2dfdb, #4db6ac); }
.placeholder-4 { background: linear-gradient(135deg, #dcedc8, #aed581); }

.project-card figcaption {
  padding: 1.25rem;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 0.25rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── About ──────────────────────────────────────── */

.about {
  padding: 4rem 0;
  background: var(--green-800);
  color: var(--white);
}

.about .section-title { color: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.about-list {
  list-style: none;
  margin-top: 1.25rem;
}

.about-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

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

.about-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.about-badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-100);
}

.about-badge-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ── ROT-avdrag ─────────────────────────────────── */

.rot-info {
  padding: 4rem 0;
  background: var(--sand-200);
}

.rot-info h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 1.5rem;
}

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

.rot-col p {
  margin-bottom: 1rem;
  color: var(--text);
}

.rot-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rot-table th, .rot-table td {
  padding: 0.8rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.rot-table th {
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  width: 35%;
}

.rot-table tr:last-child th,
.rot-table tr:last-child td { border-bottom: none; }

/* ── Contact ────────────────────────────────────── */

.contact {
  padding: 4rem 0;
}

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

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

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #d0d5d0;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(58,122,82,0.1);
}

.form-row textarea { resize: vertical; }

.btn-primary.btn-full {
  background: var(--green-700);
  color: var(--white);
  margin-top: 0.5rem;
}

.btn-primary.btn-full:hover {
  background: var(--green-800);
}

.form-status {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.25rem;
}

.form-status.success { color: var(--green-600); font-weight: 600; }
.form-status.error { color: #c62828; font-weight: 600; }

/* Contact info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--sand-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-card p:last-child { margin-bottom: 0; }

.placeholder {
  color: var(--text-light);
  opacity: 0.5;
  font-style: italic;
}

/* ── Footer ─────────────────────────────────────── */

.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--green-100);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover { opacity: 1; }

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Responsive: tablet ─────────────────────────── */

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .rot-grid { grid-template-columns: 1.5fr 1fr; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
  .footer-brand { justify-content: flex-start; }
  .footer-copy { border-top: none; padding-top: 0; }
}

/* ── Responsive: desktop ────────────────────────── */

@media (min-width: 900px) {
  .main-nav {
    display: flex !important;
  }
  .nav-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1.5fr 1fr; }
  .hero { min-height: 80vh; }
  .hero-content { padding-top: 6rem; }
}

/* ── Accessibility ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
}

/* ── Before/After slider ─────────────────────────── */

.ba-slider-wrapper {
  margin-top: 2.5rem;
}

.ba-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 1rem;
  text-align: center;
}

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: ew-resize;
  user-select: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  pointer-events: none;
  z-index: 2;
}

.ba-handle-line {
  width: 2px;
  flex: 1;
  background: rgba(255,255,255,0.7);
}

.ba-handle-knob {
  background: var(--white);
  color: var(--green-800);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.ba-label {
  position: absolute;
  top: 0.75rem;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
}

.ba-label-before { left: 0.75rem; }
.ba-label-after { right: 0.75rem; }

/* ── Testimonials ───────────────────────────────── */

.testimonials {
  padding: 4rem 0;
  background: var(--sand-100);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-600);
}

.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
  font-weight: 600;
}

/* ── FAQ ─────────────────────────────────────────── */

.faq {
  padding: 4rem 0;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.5rem 0;
}

.faq-item summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-800);
  cursor: pointer;
  padding: 0.75rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Sticky mobile CTA bar ───────────────────────── */

.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0;
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.sticky-btn:last-child { border-right: none; }

.sticky-offert {
  background: var(--green-700);
  color: var(--white);
}

.sticky-offert:active { background: var(--green-800); }

.sticky-call {
  background: var(--white);
  color: var(--green-800);
}

.sticky-whatsapp {
  background: var(--white);
  color: #25D366;
}

@media (max-width: 768px) {
  .sticky-mobile-bar { display: flex; }
  body { padding-bottom: 3.5rem; }
}

/* ── Responsive: testimonials grid ───────────────── */

@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Print ──────────────────────────────────────── */

@media print {
  .site-header,
  .nav-toggle,
  .hero-cta .btn,
  .contact-form,
  .footer-nav,
  .nav-toggle,
  .main-nav,
  .sticky-mobile-bar { display: none !important; }

  .hero {
    min-height: auto;
    background: var(--green-800) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 2rem 0;
  }

  .hero-overlay { display: none; }

  body { font-size: 12pt; line-height: 1.5; }

  .container { max-width: 100%; padding: 0; }

  section { page-break-inside: avoid; padding: 1rem 0; }

  .service-card,
  .project-card,
  .contact-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .about {
    background: transparent !important;
    color: #000 !important;
  }

  .about .section-title,
  .about p,
  .about li { color: #000 !important; }

  .about-visual { display: none; }

  a { color: #000 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; }

  .footer-copy { border-top: 1px solid #ccc; }
}