/* ===========================================================
   Quickfix Garden — styles.css
   =========================================================== */

:root {
  --green-900: #142a1d;
  --green-800: #1f3d2b;
  --green-700: #2d5a3d;
  --green-600: #3d7a4f;
  --green-100: #e8f0e7;
  --green-50:  #f3f7f1;

  --cream: #faf8f3;
  --paper: #ffffff;
  --ink:   #16221b;
  --muted: #5a6b5f;
  --line:  #d8dcd1;

  --accent: #e9c46a;

  --max: 1180px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 42, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 42, 29, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 42, 29, 0.12);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--green-900);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; font-weight: 400; }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 { font-size: 1.15rem; }
em { font-style: italic; color: var(--green-700); }
p  { margin: 0 0 1em; color: var(--ink); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .section-lead { color: var(--muted); font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--green-900);
  border: 1.5px solid var(--green-900);
}
.btn--ghost:hover { background: var(--green-900); color: #fff; }
.btn--small {
  padding: 10px 18px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.95);
  color: var(--green-900);
}
.btn--small:hover { background: var(--green-800); color: #fff; }
.btn--block { width: 100%; padding: 16px; font-size: 1rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}
.logo:hover .logo__img { transform: scale(1.05); }

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { background: var(--green-100); color: var(--green-900); }
.nav__links .nav__cta {
  background: var(--green-800);
  color: #fff;
  padding: 10px 20px;
  margin-left: 8px;
}
.nav__links .nav__cta:hover { background: var(--green-900); color: #fff; }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(61, 122, 79, 0.18), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(233, 196, 106, 0.15), transparent 60%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 80px;
  max-width: 900px;
}
.hero__title { margin-top: 8px; margin-bottom: 24px; }
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

.hero__badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--green-700);
  font-weight: 500;
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--green-900);
  color: var(--cream);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.marquee__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
}
.marquee__track span { flex-shrink: 0; }
.marquee__track span:nth-child(odd) { color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   TJÄNSTER — tre stora rena bildkort som länkar till sidor
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--paper);
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  transition: transform 0.4s ease;
}
.tile:hover {
  transform: translateY(-4px);
}
.tile__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--green-900);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}
.tile:hover .tile__label { color: var(--green-700); }

.tile__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-50);
}
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tile:hover .tile__img { transform: scale(1.04); }

/* Tjänstesidor — service-list styling */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.service-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
}
.service-list li:last-child { border-bottom: 0; }
.service-list li strong {
  color: var(--green-900);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

/* Sub-page hero (för tjänstesidorna) */
.subhero {
  position: relative;
  height: 380px;
  overflow: hidden;
  isolation: isolate;
}
.subhero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 42, 29, 0.25) 0%,
    rgba(20, 42, 29, 0.65) 100%
  );
  z-index: 1;
}
.subhero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
  color: #fff;
}
.subhero__inner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.subhero__inner h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  margin: 0;
  line-height: 1;
}
.subhero__inner em { color: var(--accent); }

.breadcrumb {
  padding: 24px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.breadcrumb a { color: var(--green-700); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

.subpage {
  padding: 40px 0 100px;
}
.subpage-content {
  max-width: 720px;
  margin: 0 auto;
}
.subpage-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 48px;
  max-width: 600px;
}

/* Tjänstelistan på subsidor */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--line);
}
.service-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
}
.service-list li strong {
  color: var(--green-900);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.subpage-cta {
  padding: 40px 32px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--line);
}
.subpage-cta h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}
.subpage-cta p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* Work-gallery på subsidor */
.work-gallery {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.work-gallery .eyebrow {
  text-align: center;
  margin-bottom: 24px;
}
.work-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.work-gallery__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Why */
.why {
  padding: 100px 0;
  background: var(--cream);
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.why__head { position: sticky; top: 100px; }
.why__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.why__item { padding-top: 24px; border-top: 1.5px solid var(--green-900); }
.why__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green-600);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.why__item h4 { margin-bottom: 8px; color: var(--green-900); }
.why__item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* About */
.about {
  padding: 100px 0;
  background: var(--green-50);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text p { color: var(--ink); font-size: 1.08rem; }
.about__visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__sticker {
  position: absolute;
  background: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  z-index: 2;
}
.about__sticker--1 { top: -2%; left: -8%; transform: rotate(-6deg); }
.about__sticker--2 { top: 45%; right: -8%; transform: rotate(4deg); }
.about__sticker--3 { bottom: -2%; left: 5%; transform: rotate(-2deg); }

/* Reviews */
.reviews {
  padding: 100px 0;
  background: var(--paper);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 32px;
}
.review {
  margin: 0;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.review__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--green-100);
}
.review__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--green-100);
}
.review blockquote {
  margin: 0;
  padding: 28px 28px 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--green-900);
  flex: 1;
}
.review figcaption {
  padding: 0 28px 28px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Projektkort (amfiteater) — utan recensionstext */
.project-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--green-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  color: var(--cream);
}
.project-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--green-900);
  min-height: 280px;
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card__text {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-card__text .eyebrow { color: var(--accent); margin-bottom: 14px; }
.project-card__text h3 {
  color: var(--cream);
  font-size: 2rem;
  margin-bottom: 12px;
}
.project-card__text p {
  color: rgba(250, 248, 243, 0.78);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* About-photos (Om oss) */
.about__photos {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.about__photo {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--paper);
}
.about__photo--1 {
  top: 0;
  left: 8%;
  width: 65%;
  aspect-ratio: 4 / 5;
  z-index: 2;
  transform: rotate(-3deg);
}
.about__photo--2 {
  bottom: 0;
  right: 0;
  width: 60%;
  aspect-ratio: 3 / 4;
  z-index: 1;
  transform: rotate(4deg);
}
.about__sticker { z-index: 3; }

/* Contact */
.contact {
  padding: 100px 0;
  background: var(--green-900);
  color: var(--cream);
}
.contact h2 { color: var(--cream); }
.contact h2 em { color: var(--accent); }
.contact .eyebrow { color: var(--accent); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact__info p { color: rgba(250, 248, 243, 0.75); }
.contact__details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  transition: color 0.2s;
}
a.contact__row:hover { color: var(--accent); }
.contact__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  flex-shrink: 0;
}
.contact__social {
  margin-top: 32px;
  display: flex;
  gap: 12px;
}
.contact__social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.contact__social a:hover {
  background: var(--accent);
  color: var(--green-900);
  border-color: var(--accent);
}

.contact__form {
  background: var(--paper);
  color: var(--ink);
  padding: 36px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  font-weight: 400;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--paper);
}
.contact__form textarea { resize: vertical; min-height: 100px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer {
  background: var(--green-900);
  color: var(--cream);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  height: 70px;
  width: auto;
  display: block;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.footer__tag { color: rgba(250, 248, 243, 0.6); margin-top: 8px; font-size: 0.95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.footer__cols p { font-size: 0.95rem; color: rgba(250, 248, 243, 0.75); }
.footer__cols a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 24px;
  color: rgba(250, 248, 243, 0.5);
  font-size: 0.82rem;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open a { width: 100%; padding: 14px 18px; }

  .tile-grid { grid-template-columns: 1fr; gap: 24px; }
  .tile__img-wrap { aspect-ratio: 16 / 10; }

  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__head { position: static; }
  .why__items { grid-template-columns: 1fr 1fr; }

  .about__inner { grid-template-columns: 1fr; gap: 60px; }
  .about__photos { min-height: 420px; max-width: 480px; margin: 0 auto; }

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

  .project-card { grid-template-columns: 1fr; }
  .project-card__images { min-height: 220px; }
  .project-card__text { padding: 28px 32px 32px; }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr 1fr; }

  .subhero { height: 300px; }
  .subhero__inner { padding-bottom: 36px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .services, .why, .about, .reviews, .contact { padding: 70px 0; }
  .why__items { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
  .review blockquote { padding: 24px 22px 10px; font-size: 1.05rem; }
  .review figcaption { padding: 0 22px 24px; }
  .logo__img { height: 40px; }
  .subhero { height: 260px; }
  .subpage { padding: 30px 0 70px; }
  .subpage-cta { padding: 32px 24px; }

  .about__photos { min-height: 360px; }
  .about__photo--1 { width: 70%; }
  .about__photo--2 { width: 65%; }
  .about__sticker--1 { left: 0; }
  .about__sticker--2 { right: 0; }

  .project-card__images { grid-template-columns: 1fr; min-height: 0; }
  .project-card__images img { aspect-ratio: 4 / 3; }
  .project-card__text { padding: 28px 24px; }
  .project-card__text h3 { font-size: 1.6rem; }

  .work-gallery__grid { grid-template-columns: 1fr; }
}
