/* ALJO Bygg AB – design system */
:root {
  --charcoal: #1C1E21;
  --charcoal-2: #25282C;
  --charcoal-border: #32363C;
  --orange: #E56725;
  --orange-hover: #C95519;
  --off-white: #F9F8F6;
  --neutral-bg: #F4F3EF;
  --card: #FFFFFF;
  --card-border: #E4E2DC;
  --text: #1C1E21;
  --text-2: #52565E;
  --text-3: #7B808A;
  --text-light: #FFFFFF;
  --text-light-2: #C8CBD0;
  --text-light-3: #8E939D;
  --success: #2D8A56;
  --error: #B3392E;
  --font-head: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Manrope', 'Inter', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.12);
  --container: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: rgba(229, 103, 37, 0.55); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--orange); color: var(--charcoal); font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 8px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--charcoal); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.overline {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-2); max-width: 44rem; }
.section-dark .lead { color: var(--text-light-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.75rem; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2; min-height: 48px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--charcoal); }
.btn-primary:hover { background: var(--orange-hover); color: #fff; }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.hero .btn-outline-light, .page-hero .btn-outline-light { background: rgba(20, 21, 23, 0.5); }
.hero .btn-outline-light:hover, .page-hero .btn-outline-light:hover { background: rgba(20, 21, 23, 0.7); border-color: #fff; }
.btn-text { background: none; border: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; padding: 0.5rem; min-height: 44px; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; min-height: 42px; }
.linklike { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--orange); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--text-light);
  border-bottom: 1px solid var(--charcoal-border);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand img { height: 44px; width: auto; }
.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--text-light-2); text-decoration: none; padding: 0.4rem 0; position: relative;
  transition: color 0.18s ease;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover, .main-nav a[aria-current='page'] { color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.header-phone {
  display: none; align-items: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--text-light-2); text-decoration: none;
}
.header-phone:hover { color: var(--orange); }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 1px solid var(--charcoal-border);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.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); }
.mobile-menu { background: var(--charcoal-2); border-top: 1px solid var(--charcoal-border); }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 1rem 1.25rem; font-family: var(--font-head); font-weight: 600;
  font-size: 1.1rem; color: var(--text-light); text-decoration: none;
  border-bottom: 1px solid var(--charcoal-border); min-height: 48px;
}
.mobile-menu a[aria-current='page'] { color: var(--orange); }
.mobile-menu-phone { color: var(--orange) !important; }
@media (min-width: 1000px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-menu { display: none; }
}
@media (min-width: 1160px) { .header-phone { display: inline-flex; } }

/* Hero */
.hero { position: relative; background: var(--charcoal); color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media picture, .page-hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20, 21, 23, 0.62) 0%, rgba(20, 21, 23, 0.28) 38%, rgba(20, 21, 23, 0) 62%);
}
.hero-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start;
  min-height: min(88vh, 54rem); padding-top: clamp(2.5rem, 7vh, 5rem); padding-bottom: 4.5rem;
}
.hero h1 { max-width: 16ch; text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Page hero (subpages) */
.page-hero { position: relative; background: var(--charcoal); color: #fff; overflow: hidden; }
.page-hero.has-image .page-hero-media { position: absolute; inset: 0; }
.page-hero.has-image .page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero.has-image .page-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(20, 21, 23, 0.68) 0%, rgba(20, 21, 23, 0.42) 32%, rgba(20, 21, 23, 0) 58%),
    linear-gradient(to top, rgba(20, 21, 23, 0.45) 0%, rgba(20, 21, 23, 0) 42%);
}
/* Textskugga ger skärpa utan att mörka hela motivet */
.page-hero.has-image .page-hero-inner h1,
.page-hero.has-image .page-hero-inner .overline { text-shadow: 0 1px 14px rgba(20, 21, 23, 0.4); }
.page-hero.has-image .page-hero-inner .lead {
  text-shadow: 0 1px 3px rgba(20, 21, 23, 0.6), 0 2px 18px rgba(20, 21, 23, 0.45);
}
@media (max-width: 700px) {
  .page-hero.has-image .page-hero-media::after {
    background:
      linear-gradient(102deg, rgba(20, 21, 23, 0.72) 0%, rgba(20, 21, 23, 0.5) 45%, rgba(20, 21, 23, 0.08) 78%),
      linear-gradient(to top, rgba(20, 21, 23, 0.55) 0%, rgba(20, 21, 23, 0) 45%);
  }
}
.page-hero-inner {
  position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 3.5rem;
  min-height: clamp(26rem, 56vh, 36rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { color: #fff; font-weight: 600; }

/* Breadcrumb – diskret, direkt under hero */
.breadcrumb { padding-top: 0.9rem; padding-bottom: 0; font-size: 0.82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: var(--text-3); }
.breadcrumb li:last-child { color: var(--text-3); }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 700px) { .section { padding: 6.5rem 0; } }
.section-tint { background: var(--neutral-bg); }
.section-dark { background: var(--charcoal); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 48rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: left; }

/* Trust bar */
.trust-bar { background: var(--charcoal); color: #fff; border-top: 1px solid var(--charcoal-border); }
.trust-grid { display: grid; gap: 1.5rem; padding: 2.5rem 0; grid-template-columns: 1fr; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { border-left: 2px solid var(--orange); padding-left: 1.1rem; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.25rem; }
.trust-item span { color: var(--text-light-2); font-size: 0.92rem; }

/* Split */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split.reverse .split-media { order: 2; }
}
.split-media img { border-radius: var(--radius-lg); width: 100%; }
.split-media picture { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* Process */
.process-list { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 700px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-list { grid-template-columns: repeat(6, 1fr); } }
.process-step {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 1100px) {
  .process-step { grid-column: span 2; }
  .process-step:nth-child(4), .process-step:nth-child(5) { grid-column: span 3; }
}
.process-img picture, .process-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.process-num {
  font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--orange);
  padding: 1.5rem 1.5rem 0; line-height: 1; opacity: 0.9;
}
.process-body { padding: 1.5rem; }
.process-img + .process-body { padding-top: 1.25rem; }
.process-index { font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: 0.85rem; letter-spacing: 0.15em; }
.process-body h3 { margin-top: 0.35rem; }
.process-body p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* Project cards */
.project-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.project-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: inherit; }
.project-card-img picture, .project-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-card-body { padding: 1.5rem 1.5rem 1.75rem; }
.project-card-body h3 { margin: 0.5rem 0 0.35rem; }
.project-card-body p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 0.75rem; }
.project-card-link { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--orange); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); background: rgba(229, 103, 37, 0.12);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* Concept cards */
.concept-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .concept-grid { grid-template-columns: 1fr 1fr; } }
.concept-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.concept-card-img picture, .concept-card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.concept-card-body { padding: 2rem; }
.concept-card-body h3 { color: var(--text); }
.concept-card-body p { color: var(--text-2); }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; color: var(--text-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 0.85rem; height: 0.85rem;
  background: var(--orange); border-radius: 2px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Interior grid */
.interior-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .interior-grid { grid-template-columns: repeat(4, 1fr); } }
.interior-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.interior-grid picture, .interior-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.interior-grid figure.tall { grid-row: span 2; }
.interior-grid figure.tall picture, .interior-grid figure.tall img { aspect-ratio: 3 / 4.1; }

/* Dual blocks */
.dual-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .dual-grid { grid-template-columns: 1fr 1fr; } }
.dual-card {
  border-radius: var(--radius-lg); padding: 2.25rem; background: var(--charcoal-2);
  border: 1px solid var(--charcoal-border); color: var(--text-light);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.dual-card h3 { color: #fff; }
.dual-card p { color: var(--text-light-2); }
.dual-card .btn { align-self: flex-start; margin-top: 0.75rem; }
.dual-icon {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(229, 103, 37, 0.14);
  display: grid; place-items: center; color: var(--orange); margin-bottom: 0.75rem;
}

/* Team */
.team-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.team-photo img { width: 100%; }
.person-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .person-grid { grid-template-columns: repeat(3, 1fr); } }
.person-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.section-dark .person-card { background: var(--charcoal-2); border-color: var(--charcoal-border); }
.person-role { color: var(--orange); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.person-phone, .person-email { display: block; font-family: var(--font-head); font-weight: 600; text-decoration: none; padding: 0.15rem 0; }
.person-phone { font-size: 1.1rem; }
.person-email { color: var(--text-2); font-size: 0.95rem; }
.section-dark .person-email { color: var(--text-light-2); }
.person-phone:hover, .person-email:hover { color: var(--orange); }

/* Areas */
.area-list { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem; border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card); font-family: var(--font-head); font-weight: 600; text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease; min-height: 48px;
}
.area-list a:hover { border-color: var(--orange); transform: translateY(-2px); color: inherit; }
.area-list a span { color: var(--orange); }

/* CTA band */
.cta-band { padding: 4.5rem 0; background: var(--neutral-bg); }
.cta-dark { background: var(--charcoal); color: #fff; }
.cta-dark p { color: var(--text-light-2); }
.cta-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Video */
.video-facade { max-width: 56rem; }
.video-play {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal);
}
.video-play picture, .video-play img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-play::after { content: ''; position: absolute; inset: 0; background: rgba(20, 21, 23, 0.25); transition: background 0.2s ease; }
.video-play:hover::after { background: rgba(20, 21, 23, 0.12); }
.video-play-icon {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; z-index: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--orange); color: var(--charcoal);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play:hover .video-play-icon { transform: scale(1.07); background: var(--orange-hover); color: #fff; }
.video-note { font-size: 0.85rem; color: var(--text-3); margin-top: 0.75rem; }
.section-dark .video-note { color: var(--text-light-3); }
.video-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { max-width: 48rem; }
.faq-item { border-bottom: 1px solid var(--card-border); }
.section-dark .faq-item { border-color: var(--charcoal-border); }
.faq-item summary {
  cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; list-style: none;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0.25rem; top: 0.9rem;
  font-size: 1.4rem; color: var(--orange); font-weight: 400; transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 2rem 1.25rem 0; color: var(--text-2); }
.faq-body p { margin: 0; }
.section-dark .faq-body { color: var(--text-light-2); }

/* Forms */
.lead-form { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }
@media (min-width: 700px) { .lead-form { padding: 2.25rem; } }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #CFCCC4; border-radius: 8px; padding: 0.7rem 0.9rem;
  min-height: 48px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(229, 103, 37, 0.22);
}
.hp { position: absolute; left: -100vw; top: 0; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--text-3); margin: 1.1rem 0 1.25rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.lead-form.is-sent { border-color: var(--success); }

/* Contact layout */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.contact-path-head { margin-bottom: 1.5rem; }
.contact-people { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.contact-chip {
  border: 1px solid var(--card-border); background: #fff; border-radius: var(--radius);
  padding: 0.9rem 1.2rem; font-size: 0.95rem;
}
.contact-chip strong { display: block; font-family: var(--font-head); }
.contact-chip a { color: var(--text-2); text-decoration: none; }
.contact-chip a:hover { color: var(--orange); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--text-light-2); margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; padding: 4rem 0 3rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.92rem; max-width: 22rem; }
.footer-social { display: inline-flex; padding: 0.6rem; border: 1px solid var(--charcoal-border); border-radius: 8px; color: var(--text-light-2); transition: color 0.18s ease, border-color 0.18s ease; }
.footer-social:hover { color: var(--orange); border-color: var(--orange); }
.footer-heading { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-light-2); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: 0.95rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--charcoal-border); padding-top: 1.5rem; padding-bottom: 6.5rem;
  font-size: 0.85rem;
}
@media (min-width: 800px) { .footer-bottom { padding-bottom: 2rem; } }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: var(--text-light-2); }

/* Consent */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 150; padding: 1rem;
  display: flex; justify-content: center; pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-inner {
  pointer-events: auto; max-width: 62rem; width: 100%;
  background: var(--charcoal-2); color: var(--text-light-2);
  border: 1px solid var(--charcoal-border); border-radius: var(--radius-lg);
  padding: 1.5rem; display: grid; gap: 1.25rem; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
@media (min-width: 900px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; padding: 1.75rem 2rem; } }
.consent-text p { margin: 0 0 0.35rem; font-size: 0.92rem; }
.consent-text strong { color: #fff; font-family: var(--font-head); }
.consent-text a { color: #fff; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.consent-actions .btn { min-height: 46px; }
.consent-modal-backdrop {
  position: fixed; inset: 0; z-index: 160; background: rgba(15, 16, 18, 0.65);
  display: grid; place-items: center; padding: 1rem;
}
.consent-modal-backdrop[hidden] { display: none; }
.consent-modal {
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  max-width: 34rem; width: 100%; padding: 2rem; max-height: 90vh; overflow: auto;
}
.consent-modal h2 { font-size: 1.5rem; }
.consent-category {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0.9rem 0;
}
.consent-category h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.consent-category p { font-size: 0.88rem; color: var(--text-2); margin: 0; }
.consent-always { font-size: 0.8rem; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.consent-modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.consent-modal-note { font-size: 0.85rem; color: var(--text-3); margin: 1rem 0 0; }
.switch { position: relative; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  display: block; width: 52px; height: 30px; border-radius: 999px; background: #CFCCC4;
  transition: background 0.18s ease; position: relative;
}
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform 0.18s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .switch-track { background: var(--orange); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 1px; background: var(--charcoal-border);
  border-top: 1px solid var(--charcoal-border);
}
.sticky-cta-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 56px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; background: var(--charcoal); color: #fff;
}
.sticky-cta-form { background: var(--orange); color: var(--charcoal); }
.sticky-cta-btn:hover { color: inherit; filter: brightness(1.08); }
@media (min-width: 800px) { .sticky-cta { display: none; } }

/* Legal / prose */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul.bullets { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.prose ul.bullets li { margin-bottom: 0.35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border: 1px solid var(--card-border); vertical-align: top; }
.prose th { background: var(--neutral-bg); font-family: var(--font-head); }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .hero-inner.reveal { transform: translateY(30px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 404 */
.notfound { min-height: 50vh; display: flex; align-items: center; }

/* WCAG AA: mörkare orange för text på ljus bakgrund (#E56725 når endast ~3,2:1 mot off-white) */
:root { --orange-aa: #A6460B; }
.overline { color: var(--orange-aa); }
.hero .overline, .page-hero .overline, .section-dark .overline { color: var(--orange); }
.hero .overline, .page-hero.has-image .page-hero-inner .overline { color: #fff; }
.tag { color: var(--orange-aa); }
.process-index, .person-role, .project-card-link { color: var(--orange-aa); }
.section-dark .person-role { color: var(--orange); }
a:hover { color: var(--orange-aa); }
.site-header a:hover, .site-footer a:hover, .section-dark a:hover, .consent a:hover { color: var(--orange); }

/* PTS: Acceptera och Neka med samma visuella tyngd */
.btn-reject { background: #3A3E44; border-color: #3A3E44; color: #fff; }
.btn-reject:hover { background: #4A4F57; border-color: #4A4F57; color: #fff; }
.consent-actions .btn { flex: 1 1 0; }
@media (min-width: 900px) { .consent-actions .btn { flex: 0 0 auto; } }

/* Layout-fix: shorthand-padding får inte radera containers horisontella padding */
.page-hero-inner, .trust-grid, .footer-grid { padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) {
  .page-hero-inner, .trust-grid, .footer-grid { padding-left: 2rem; padding-right: 2rem; }
}

/* Processteaser på startsidan */
.process-teaser { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
@media (min-width: 900px) { .process-teaser { grid-template-columns: repeat(5, 1fr); } }
.process-teaser li {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.25rem;
}
.process-teaser h3 { font-size: 1.05rem; margin: 0.35rem 0 0; }

/* Interiörgalleri: exakt samma bildram för alla bilder */
.interior-grid figure.tall { grid-row: auto; }
.interior-grid figure.tall picture, .interior-grid figure.tall img { aspect-ratio: 4 / 3; }

/* Formulärväljare */
.form-switch {
  display: inline-flex; gap: 4px; background: #ECEAE4; border-radius: 999px;
  padding: 4px; margin: 0.25rem 0 1.5rem;
}
.form-switch button {
  border: 0; border-radius: 999px; padding: 0.7rem 1.4rem; min-height: 44px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.form-switch button[aria-pressed='true'] { background: var(--charcoal); color: #fff; }
.form-panel-title { margin-bottom: 0.25rem; }
.form-panel-sub { color: var(--text-2); margin-bottom: 1.25rem; }

/* Kontaktsidans informationskort */
.info-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.info-card h3 { margin-bottom: 0.6rem; }
.info-card p:last-child { margin-bottom: 0; }

/* Footer: tätare rytm och tydlig gruppering */
.footer-brand p { font-size: 0.9rem; max-width: 18rem; }
.footer-adr { font-size: 0.9rem; color: var(--text-light-2); margin-bottom: 1rem; }
.footer-row { margin: 0 0 0.6rem; line-height: 1.4; }
.footer-row > a { font-family: var(--font-head); font-weight: 600; }
.footer-dim { display: block; color: var(--text-light-3); font-size: 0.8rem; }
.footer-dim a { color: var(--text-light-3); }
.footer-dim a:hover { color: var(--orange); }


/* ================= Designlyft (diskret): kapitel, urvalsfärg, bild-hover ================= */
::selection { background: var(--orange); color: var(--charcoal); }

[id] { scroll-margin-top: 96px; }

/* Numrerade kapitel (statiska) */
.chapter-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 0.9rem; color: rgba(28, 30, 33, 0.14);
}
.section-dark .chapter-num { color: rgba(255, 255, 255, 0.16); }
@supports ((-webkit-text-stroke: 1px black)) {
  .chapter-num { color: transparent; -webkit-text-stroke: 1.5px rgba(28, 30, 33, 0.2); }
  .section-dark .chapter-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.26); }
}

/* Bild-hover: långsam zoom i ramar (endast vid hovring) */
.project-card-img, .process-img { overflow: hidden; }
.project-card-img img, .concept-card-img img, .process-img img, .interior-grid figure img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-card-img img,
.concept-card:hover .concept-card-img img,
.process-step:hover .process-img img,
.interior-grid figure:hover img { transform: scale(1.05); }
/* ================= Bildvisare (lightbox) på /projekt/ ================= */
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 170;
  background: rgba(15, 16, 18, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox-stage img {
  max-width: 100%; max-height: 76vh; width: auto; height: auto; margin-inline: auto;
  border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-stage figcaption { color: var(--text-light-2); margin-top: 1rem; font-size: 0.95rem; }
.lightbox-counter {
  position: absolute; top: 1.2rem; left: 1.5rem; margin: 0;
  color: var(--text-light-3); font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.12em;
}
.lightbox-close {
  position: absolute; top: 0.6rem; right: 1rem; width: 52px; height: 52px;
  border: 0; background: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 8px;
}
.lightbox-close:hover { color: var(--orange); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(20, 21, 23, 0.55);
  color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.lightbox-nav:hover { border-color: var(--orange); color: var(--orange); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox { animation: lb-in 0.2s ease; }
  @keyframes lb-in { from { opacity: 0; } }
}

/* ================= Redaktionellt galleri på /projekt/ ================= */
.gallery-edit { display: grid; gap: 2.25rem 1.5rem; grid-template-columns: repeat(12, 1fr); }
.gallery-edit .g-item { grid-column: span 12; margin: 0; }
@media (min-width: 700px) {
  .gallery-edit .g-item { grid-column: span 6; }
  .gallery-edit .g-item.s12 { grid-column: span 12; }
}
@media (min-width: 1100px) {
  .gallery-edit { gap: 3rem 1.75rem; }
  .gallery-edit .g-item.s4 { grid-column: span 4; }
  .gallery-edit .g-item.s5 { grid-column: span 5; }
  .gallery-edit .g-item.s7 { grid-column: span 7; }
}
/* Bilden är hela kortet – ingen box, bara motivet */
.gallery-edit .gallery-open { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.gallery-edit .gallery-open picture,
.gallery-edit .gallery-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (min-width: 1100px) {
  .gallery-edit .g-item.s7 .gallery-open picture,
  .gallery-edit .g-item.s7 .gallery-open img { aspect-ratio: 16 / 10; }
  .gallery-edit .g-item.s12 .gallery-open picture,
  .gallery-edit .g-item.s12 .gallery-open img { aspect-ratio: 21 / 9; }
}
.gallery-edit .gallery-open img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-edit .g-item:hover .gallery-open img { transform: scale(1.04); }
/* Diskret numrerad bildtext */
.g-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin-top: 0.85rem; }
.g-cap .g-num { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--orange-aa); }
.g-cap h3 { font-size: 1.08rem; margin: 0; }
.g-cap .tag { margin-left: auto; }

/* ================= Tydliga telefonrader i kontaktkort ================= */
.ring-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--card-border);
}
.ring-list li:last-child { border-bottom: 0; }
.ring-list strong { font-family: var(--font-head); }
.ring-role { color: var(--text-3); font-size: 0.85rem; }
.ring-list a {
  margin-left: auto; font-family: var(--font-head); font-weight: 700;
  font-size: 1.08rem; text-decoration: none; letter-spacing: 0.01em;
}

/* ================= Mobil: förhindra horisontellt överflöd ================= */
/* Säkerhetsnät: clip skapar ingen scroll-container (sticky header påverkas ej) */
body { overflow-x: clip; }

/* Ort-korten: långa namn får inte pressa ut sidan */
.area-list li, .area-list a { min-width: 0; }
.area-list a { hyphens: auto; }

@media (max-width: 560px) {
  /* Tätare header: logga, CTA och hamburgare ska få plats på en rad */
  .header-inner { gap: 0.75rem; }
  .brand img { height: 36px; }
  .header-actions { gap: 0.5rem; }
  .header-actions .btn { padding: 0.55rem 0.8rem; font-size: 0.85rem; min-height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }
  /* Tätare ort-kort */
  .area-list { gap: 0.6rem; }
  .area-list a { padding: 0.85rem 0.9rem; font-size: 0.92rem; }
}

/* ================= Bildtext i processsteg (visas bara där caption finns) ================= */
.process-caption { margin: 0; padding: 0.65rem 1.5rem 0; font-size: 0.85rem; color: var(--text-3); }

/* ================= Diskret byline i footer ================= */
.footer-credit { color: var(--text-light-3); font-size: 0.8rem; }
.footer-credit a { color: var(--text-light-3); text-decoration: none; }
.footer-credit a:hover { color: var(--orange); }
