/* ==========================================================================
   GUG4 Care & Construction AB — style.css
   Identitet: marinblå + guld, Playfair Display (rubriker) + Inter (brödtext)
   Ljus, varm bas för innehållet; navy i header/hero/galleri/sidfot.
   ========================================================================== */

/* ---------- Typsnitt (self-hostade, latin-subset) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/lora-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #0A1324;
  --navy-2: #111C32;
  --gold: #D4A435;
  --gold-deep: #A97F1E;   /* guld med kontrast mot ljus botten */
  --gold-2: #E4BC5C;
  --gold-rgb: 212, 164, 53;
  --gold-deep-rgb: 169, 127, 30;
  --paper: #F7F4ED;       /* varm cremevit */
  --card: #FFFFFF;
  --ink: #1A2333;         /* mörk text på ljus botten */
  --muted: #5C6572;
  --text-on-dark: #F5F1EA;
  --dim-on-dark: #B9BFCC;
  --line-light: #E6DFCF;
  --line-gold: rgba(var(--gold-deep-rgb), 0.35);
  --line-dark: rgba(245, 241, 234, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1160px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 14px 34px -18px rgba(26, 35, 51, 0.35);
}

/* ---------- Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
/* Dubbla klasser ger högre specificitet än länkregler som .projects-more a,
   så knapptexten alltid behåller sin kontrastfärg. */
.btn.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn.btn-gold:hover, .btn.btn-gold:focus-visible {
  background: var(--gold-2);
  color: var(--navy);
}
.btn.btn-outline {
  border-color: rgba(245, 241, 234, 0.55);
  color: var(--text-on-dark);
}
.btn.btn-outline:hover, .btn.btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold-2);
}
.btn-block { width: 100%; }

/* ---------- Header (navy) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 19, 36, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand img { width: auto; height: 46px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav ul a:hover, .site-nav ul a:focus-visible {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}
.nav-cta { padding: 0.6rem 1.2rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (navy, tvåspalt, riktigt foto) ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--text-on-dark);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero-kicker {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--dim-on-dark);
  max-width: 38rem;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--dim-on-dark);
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-points svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.hero-figure { margin: 0; position: relative; }
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.55;
  pointer-events: none;
}
.hero-figure img {
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}
.hero-figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--dim-on-dark);
}

/* ---------- Sektioner ---------- */
.section { padding-block: clamp(3.6rem, 8vw, 5.8rem); }
.section-white { background: var(--card); }
.section-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.accent { color: var(--gold-deep); }
.hero .accent, .projects .accent, .contact .accent { color: var(--gold); }
.section-lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 2.2rem;
}
.subsection-title {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  margin-top: 2.8rem;
}
.subsection-lead { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Välkommen / Om oss ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.welcome-text p { max-width: 36rem; }
.about-badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0;
}
.about-badges li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(var(--gold-rgb), 0.14);
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
}
.badge-icon svg { width: 20px; height: 20px; }
.welcome-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.welcome-photos figure { margin: 0; }
.welcome-photos img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}
.welcome-photos figure:first-child {
  grid-column: 1 / -1;
}
.welcome-photos figure:first-child img { aspect-ratio: 16 / 9; }

/* ---------- Tjänster ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.7rem 1.5rem;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(var(--gold-rgb), 0.14);
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 1.28rem; }
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
  color: var(--muted);
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}
.process-step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.3rem;
}
.process-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.process-icon svg { width: 26px; height: 26px; }
.process-number {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
}
.process-step h3 { font-size: 1.12rem; }
.process-step p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* ---------- ROT/RUT ---------- */
.deduction-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.deduction-stats-2col { grid-template-columns: repeat(2, 1fr); max-width: 46rem; }
@media (max-width: 560px) { .deduction-stats-2col { grid-template-columns: 1fr; } }
.deduction-stat {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.2rem;
  text-align: center;
}
.section-white .deduction-stat { background: var(--paper); }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-deep);
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.2rem;
}
.section-white .info-card { background: var(--paper); }
.info-card h4 { font-size: 1.06rem; color: var(--ink); margin-bottom: 0.35rem; }
.info-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.info-card-note { border-color: var(--line-gold); }
.notice {
  margin-top: 1.7rem;
  border-left: 3px solid var(--gold-deep);
  background: rgba(var(--gold-rgb), 0.09);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
}
.notice h4 { font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.notice p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* ---------- Projekt (navy) ---------- */
.projects {
  background: var(--navy);
  color: var(--text-on-dark);
}
.projects .section-kicker { color: var(--gold-2); }
.projects .section-title { color: var(--text-on-dark); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.project-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.project-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}
.project-card:hover img { transform: scale(1.04); }
.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
@media (min-width: 620px) {
  .project-card-wide { grid-column: span 2; }
  .project-card-wide .project-card-media { aspect-ratio: 16 / 8.5; }
}
.project-card-wide figcaption { position: absolute; pointer-events: none; }
.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, rgba(10, 19, 36, 0) 0%, rgba(10, 19, 36, 0.92) 78%);
}
.project-card figcaption span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.project-card figcaption h3 { font-size: 1.1rem; margin: 0.1rem 0 0; color: var(--text-on-dark); }
.projects .section-lead { color: var(--dim-on-dark); }
.projects-more { margin-top: 1.7rem; color: var(--dim-on-dark); font-size: 0.95rem; }
.projects-more a { color: var(--gold-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; }
.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin-bottom: 0.8rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-deep);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.96rem; }

/* ---------- Recensioner ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.review-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.7rem 1.6rem;
}
.review-card p { font-size: 1rem; margin-bottom: 1.1rem; color: var(--ink); }
.review-card footer { display: flex; flex-direction: column; gap: 0.1rem; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--ink); }
.review-card footer span { font-size: 0.87rem; color: var(--muted); }

/* ---------- Kontakt (navy) ---------- */
.contact {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: var(--text-on-dark);
}
.contact .section-kicker { color: var(--gold-2); }
.contact .section-lead { color: var(--dim-on-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-item {
  margin-bottom: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(var(--gold-rgb), 0.14);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  color: var(--gold);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.2rem;
}
.contact-item p { margin: 0; font-size: 1.04rem; }
.contact-item a { color: var(--text-on-dark); text-decoration: none; border-bottom: 1px solid var(--line-gold); }
.contact-item a:hover, .contact-item a:focus-visible { color: var(--gold-2); border-bottom-color: var(--gold); }
.contact-hint {
  margin-top: 1.8rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(var(--gold-rgb), 0.45);
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
  color: var(--dim-on-dark);
}
.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}
.form-row { margin-bottom: 1.05rem; }
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}
.contact-form label {
  display: block;
  font-size: 0.89rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.contact-form label span { color: var(--gold-deep); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; margin: 0; }
.file-input { padding: 0.5rem 0.85rem; }
.file-input::file-selector-button {
  background: transparent;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-right: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.file-input::file-selector-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.form-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.thanks { min-height: 55vh; display: flex; align-items: center; }

/* ---------- Footer (navy) ---------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  padding-block: 2.6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.footer-brand img { width: auto; height: 44px; }
.footer-social { display: flex; gap: 1.6rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--dim-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-social a:hover, .footer-social a:focus-visible { color: var(--gold-2); }
.footer-social svg { width: 20px; height: 20px; }
.footer-copy { margin: 0; font-size: 0.85rem; color: var(--dim-on-dark); }

/* ---------- Portfolio ---------- */
.portfolio-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--text-on-dark);
  padding-block: clamp(2.8rem, 7vw, 4.5rem);
}
.portfolio-hero .section-title { color: var(--text-on-dark); margin-bottom: 0.6rem; }
.portfolio-hero .accent { color: var(--gold); }
.portfolio-hero .hero-lead { margin-bottom: 0; }
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.filter-chip {
  border: 1px solid var(--line-gold);
  background: var(--card);
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-chip:hover { background: rgba(var(--gold-rgb), 0.12); }
.filter-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.portfolio-status { color: var(--muted); }
.portfolio-card {
  display: block;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.portfolio-card-media { display: block; overflow: hidden; }
.portfolio-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card-media img { transform: scale(1.04); }
.portfolio-card-body { display: block; padding: 0.9rem 1.1rem 1.1rem; }
.portfolio-card-cat {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.portfolio-card-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  margin-top: 0.15rem;
}
.portfolio-card-count { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

.portfolio-card-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  z-index: 1;
}
.portfolio-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.portfolio-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-wide .portfolio-card-badge {
  top: auto;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}
@media (min-width: 620px) {
  .portfolio-card-wide { grid-column: span 2; }
  .portfolio-card-wide .portfolio-card-media { aspect-ratio: 16 / 8.5; }
}
.filter-chip small {
  opacity: 0.65;
  font-size: 0.78em;
  font-weight: 600;
}

/* Skeleton-laddning */
.skeleton-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: var(--card);
  aspect-ratio: 4 / 4.4;
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(230, 223, 207, 0.55) 50%, transparent 70%);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Kortens intro-animation */
.card-enter {
  opacity: 0;
  animation: cardEnter 0.5s ease forwards;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card-enter { animation: none; opacity: 1; }
  .skeleton-card::after { animation: none; }
}

/* ---------- Före/efter-vy ---------- */
.compare {
  position: relative;
  width: min(860px, 88vw);
  max-height: 70vh;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  pointer-events: none;
}
/* Före-bilden ligger i exakt samma box som efter-bilden och klipps med
   clip-path – ger pixelperfekt övergång när kameravinkeln är densamma. */
.compare-before { clip-path: inset(0 50% 0 0); }

/* Mini-variant inne i portfoliokorten */
.compare-mini {
  touch-action: pan-y;
  width: 100%;
  aspect-ratio: auto;
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
}
.compare-mini .compare-handle span { width: 32px; height: 32px; }
.compare-mini .compare-label { font-size: 0.68rem; padding: 0.22rem 0.6rem; top: 0.6rem; }
.compare-mini .compare-label-before { left: 0.6rem; }
.compare-mini .compare-label-after { right: 0.6rem; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.compare-handle span::before {
  content: '⟷';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
}
.compare-label {
  position: absolute;
  top: 0.8rem;
  background: rgba(10, 19, 36, 0.78);
  color: var(--text-on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  pointer-events: none;
}
.compare-label-before { left: 0.8rem; }
.compare-label-after { right: 0.8rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 19, 36, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 3vw, 2rem);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}
.lightbox-stage { display: flex; justify-content: center; }
.lightbox-stage > img {
  max-width: 100%;
  max-height: 66vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.lightbox-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.lightbox-thumb {
  position: relative;
  width: 56px;
  height: 42px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb.is-active, .lightbox-thumb:hover { opacity: 1; border-color: var(--gold); }
.lightbox-thumb span {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(10, 19, 36, 0.85);
  color: var(--gold-2);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 0;
}
.lightbox-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.6rem;
}
.lightbox-share {
  background: none;
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lightbox-share:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lightbox-figure figcaption {
  margin-top: 1rem;
  color: var(--dim-on-dark);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.lightbox-figure figcaption strong {
  color: var(--text-on-dark);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.lightbox-count { font-size: 0.85rem; color: var(--gold-2); }
.lightbox-close,
.lightbox-arrow {
  position: fixed;
  background: rgba(245, 241, 234, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(var(--gold-rgb), 0.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Admin ---------- */
.admin-narrow { max-width: 30rem; }
.admin-headertools { display: flex; gap: 0.7rem; align-items: center; }
.admin-headertools .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn.btn-outline-dark, .btn-outline-dark {
  border-color: var(--line-gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn.btn-outline-dark:hover, .btn.btn-outline-dark:focus-visible {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: rgba(var(--gold-rgb), 0.1);
}
.admin-msg { color: var(--muted); font-size: 0.9rem; }
.admin-newproject { margin-bottom: 2rem; }
.admin-newproject summary {
  list-style: none;
  display: inline-block;
  cursor: pointer;
}
.admin-newproject summary::-webkit-details-marker { display: none; }
.admin-newproject .admin-form { margin-top: 1.2rem; }
.admin-project {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.3rem;
}
.admin-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-project-head h2 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.admin-project-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.admin-toggles { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.admin-toggle input { width: 20px; height: 20px; accent-color: var(--gold-deep); cursor: pointer; }
.admin-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.7rem;
  margin-block: 1rem;
}
.admin-image {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
}
.admin-image.is-cover { border-color: var(--gold); }
.admin-image.is-before { border-color: var(--muted); }
.admin-image.is-before::after {
  content: 'Före';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(92, 101, 114, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.15rem;
}
.admin-image.is-cover::after {
  content: 'Omslag';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(10, 19, 36, 0.75);
  color: var(--gold-2);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.15rem;
}
.admin-image img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.admin-image-tools {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: flex;
  gap: 0.3rem;
}
.admin-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 19, 36, 0.75);
  color: var(--text-on-dark);
  font-size: 0.9rem;
  cursor: pointer;
}
.admin-mini:hover { background: var(--gold); color: var(--navy); }
.admin-project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.admin-project-tools .btn { padding: 0.55rem 1rem; font-size: 0.88rem; }
.admin-upload { position: relative; }
.admin-danger { border-color: #C0392B; color: #C0392B; }
.admin-danger:hover { background: rgba(192, 57, 43, 0.08); border-color: #C0392B; }
.admin-footer { margin-top: 2rem; }
.admin-box { margin-bottom: 1rem; }
.admin-help { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--line-light);
}
.admin-project-head { align-items: center; }
.admin-order { display: flex; flex-direction: column; gap: 0.3rem; }
.admin-order .admin-mini {
  background: var(--paper);
  border: 1px solid var(--line-light);
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.admin-order .admin-mini:hover:not(:disabled) { background: var(--gold); color: var(--navy); }
.admin-order .admin-mini:disabled { opacity: 0.3; cursor: default; }
.admin-project-titles { flex: 1; min-width: 160px; }
.admin-mini-danger:hover { background: #C0392B; color: #fff; }
.admin-edit-form {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-light);
}
.admin-edit-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.admin-edit-form input,
.admin-edit-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
}
.admin-edit-form input:focus,
.admin-edit-form textarea:focus { outline: none; border-color: var(--gold-deep); }
.admin-edit-actions { display: flex; gap: 0.7rem; }
.admin-edit-actions .btn { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: var(--text-on-dark);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  max-width: min(92vw, 480px);
  text-align: center;
}
.admin-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.admin-toast.is-error { border-color: #C0392B; }

/* ---------- Aktuellt-notis på startsidan ---------- */
.site-notice {
  background: var(--gold);
  color: var(--navy);
  padding-block: 0.7rem;
  font-size: 0.95rem;
}
.site-notice strong { font-weight: 600; }

/* ---------- Adminflikar ---------- */
.admin-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-light);
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.admin-h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}
.admin-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  white-space: nowrap;
}
.admin-status-active { background: #d9efd7; color: #1E6B2E; }
.admin-status-scheduled { background: rgba(var(--gold-rgb), 0.18); color: var(--gold-deep); }
.admin-status-ended, .admin-status-unpublished { background: #ECE8DE; color: var(--muted); }
.admin form select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 0.7rem 0.85rem;
}
.admin form select:focus { outline: none; border-color: var(--gold-deep); }
.admin-edit-form select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
}

/* ---------- Kampanjbanner ---------- */
.campaign { padding-block: clamp(2rem, 5vw, 3rem); }
.campaign-gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--navy);
}
.campaign-navy {
  background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy) 100%);
  color: var(--text-on-dark);
  border-block: 1px solid var(--line-gold);
}
.campaign-inner { display: grid; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.campaign-inner.has-image { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.campaign-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.9rem;
}
.campaign-gold .campaign-badge { background: var(--navy); color: var(--gold-2); }
.campaign-navy .campaign-badge { background: var(--gold); color: var(--navy); }
.campaign h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.campaign p { max-width: 38rem; margin-bottom: 0.6rem; }
.campaign-gold p { color: rgba(10, 19, 36, 0.82); }
.campaign-navy p { color: var(--dim-on-dark); }
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.btn.btn-navy {
  background: var(--navy);
  color: var(--gold-2);
}
.btn.btn-navy:hover, .btn.btn-navy:focus-visible {
  background: var(--navy-2);
  color: var(--gold-2);
}
.campaign-countdown {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.campaign-countdown::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.campaign-image img {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 700px) {
  .campaign-inner.has-image { grid-template-columns: 1fr; }
  .campaign-image { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-countdown::before { animation: none; }
}

/* ---------- Egna sektioner ---------- */
.custom-section:nth-of-type(odd) { background: var(--card); }
.custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.custom-image-left .custom-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.custom-image { margin: 0; }
.custom-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.custom-text p { color: var(--muted); max-width: 40rem; }
@media (max-width: 800px) {
  .custom-grid, .custom-image-left .custom-grid { grid-template-columns: 1fr; }
  /* Layoutvalet styr mobilordningen: "Bild till vänster" hamnar över texten,
     "Bild till höger" under – DOM-ordningen gör jobbet. */
  .custom-image { max-width: 480px; }
}

/* ---------- Förhandsvisning & utkast ---------- */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  background: repeating-linear-gradient(45deg, #1A2333, #1A2333 12px, #2A3345 12px, #2A3345 24px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}
.preview-bar a { color: var(--gold-2); }
.draft-badge {
  display: block;
  text-align: center;
  background: #C0392B;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem;
}
.draft-badge-card {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

/* ---------- Utseende-väljaren i admin ---------- */
.design-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}
.design-option {
  background: var(--card);
  border: 2px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease;
}
.design-option:hover { border-color: var(--line-gold); }
.design-option.is-active { border-color: var(--gold-deep); }
.design-sample {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.design-label { display: block; font-size: 0.85rem; color: var(--muted); }
.design-swatches { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.design-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: 2px solid var(--line-light);
  border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.6rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s ease;
}
.design-swatch:hover { border-color: var(--line-gold); }
.design-swatch.is-active { border-color: var(--gold-deep); }
.design-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card img { transition: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: clamp(2.8rem, 7vw, 4rem); }
  .hero-figure { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-grid, .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .deduction-stats { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.8rem 1.2rem 1.4rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav ul a {
    display: block;
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.02rem;
  }
  .nav-cta { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  /* Centrera stegen på mobil – vänsterställda cirkelikoner ser obalanserat ut i en kolumn */
  .process .section-kicker,
  .process .section-title,
  .process-step { text-align: center; }
  .process-step { border-top-width: 0; padding-top: 0.4rem; }
  .process-step + .process-step { border-top-width: 1px; padding-top: 1.6rem; }
  .info-grid { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr; }
  .brand img, .footer-brand img { height: 38px; }
  .hero-figure::after { display: none; }
}
