/* Färger och typsnitt */
:root {
  --bg: #f2f0eb;        /* ljus betong */
  --bg-alt: #e7e4dd;
  --ink: #1d1d1b;
  --muted: #5d5a54;
  --line: #cbc6bc;
  --yellow: #e2b13c;    /* grävmaskinsgul, från bilderna */
  --font: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 5.4vw, 68px); max-width: 12ch; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
p { margin: 0 0 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.btn { display: inline-block; background: var(--yellow); color: var(--ink); font: 700 16px/1 var(--font); text-decoration: none; padding: 15px 22px; border: 0; border-radius: 2px; cursor: pointer; }
.btn:hover { background: #edc152; }

/* Meny */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); color: #fff; transition: background .2s; }
.nav.solid { background: var(--ink); }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a, .nav-phone { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover, .nav-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-phone { font-weight: 700; }

/* Scroll-berättelse */
.story { position: relative; background: #2b2a28; color: #fff; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-inner { position: absolute; inset: 0; will-change: transform; }
.layer { position: absolute; inset: 0; background-size: cover; background-position: 60% center; background-color: #3a3936; }
.l2, .l3, .l4 { opacity: 0; }
.stage-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 18%),
  linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.05) 75%); }

.chapters { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; }
.chapter { display: flex; align-items: center; padding: 96px var(--gutter) 48px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
.ch-hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.ch-scene { min-height: 85vh; }
.chapter-copy { max-width: 440px; }
.chapter-copy p, .lead { font-size: 19px; color: rgba(255,255,255,.9); }
.lead { max-width: 30ch; }

/* Offertformulär */
.form { background: var(--bg); color: var(--ink); padding: 28px; border-radius: 2px; }
.form h2 { font-size: 26px; margin-bottom: 18px; }
.form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 5px; font: 400 16px/1.3 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 11px 12px; }
.form textarea { resize: vertical; }
.form .invalid { border-color: #b23a1c; }
.form .btn { width: 100%; margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.form-note.ok { color: #22642f; }
.form-note.err { color: #b23a1c; }

/* Sektioner */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(680px + 2 * var(--gutter)); margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.section p { color: #34322e; }
.contact-line { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; margin-bottom: 6px; }
.contact-line a { font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
#kontakt .btn { margin-top: 18px; }

.footer { background: var(--ink); color: rgba(255,255,255,.65); font-size: 15px; padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Mobil */
@media (max-width: 900px) {
  .ch-hero { grid-template-columns: 1fr; padding-top: 104px; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-phone { margin-left: auto; }
  .logo { font-size: 17px; }
  .stage-shade { background: rgba(0,0,0,.55); }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px 18px; }
  .ch-scene { min-height: 75vh; }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-inner { transform: none !important; }
}

/* Fälla för spam-robotar */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Länk till Tjänster från scenerna */
.more { color: #fff; font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Undersidor (Tjänster) */
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.page-head { padding: 140px 0 40px; }
.page-head h1 { max-width: none; }
.page-lead { font-size: 20px; color: var(--muted); max-width: 46ch; }
.service { padding: 56px 0; border-top: 1px solid var(--line); }
.service-alt { background: var(--bg-alt); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.service-text { max-width: 560px; }
.service-text p { color: #34322e; }
.service-text ul { margin: 6px 0 28px; padding-left: 20px; color: #34322e; }
.service-text li { margin-bottom: 4px; }
.service-text .btn { margin-top: 8px; }
.service-img { aspect-ratio: 16 / 10; background: var(--bg-alt) center / cover no-repeat; border-radius: 2px; }
.service-img.missing { display: none; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: rgba(255,255,255,.85); }
.section-dark a { font-weight: 700; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.offer-wrap { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: start; }

@media (max-width: 900px) {
  .service-grid, .offer-wrap { grid-template-columns: 1fr; gap: 28px; }
  .service-img { order: -1; }
}

/* Mobilmeny: länkarna på en egen rad under logotypen */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: 8px; padding-top: 12px; padding-bottom: 10px; }
  .nav-links { display: flex; order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .nav-links a { font-size: 15px; }
  .nav-phone { font-size: 15px; }
  .ch-hero { padding-top: 132px; }
  .page-head { padding-top: 140px; }
  html { scroll-padding-top: 96px; }
}

/* Sidfot med kontaktuppgifter och tjänster */
.footer { padding: 48px 0 40px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer p { margin: 0 0 6px; line-height: 1.7; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.footer-name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-head { color: #fff; font-weight: 700; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; gap: 20px; } }

/* Knappen Kontakt & Boka uppe till höger */
.nav-cta { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; padding: 13px 22px; border-radius: 2px; white-space: nowrap; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: #edc152; }
.nav-links { margin-left: auto; }
.nav-phone { margin-left: 4px; }

/* Startsidans slogan, nu utan formulär */
.ch-hero { grid-template-columns: 1fr; }
.ch-hero h1 { max-width: none; font-size: clamp(40px, 6vw, 80px); }
.ch-hero .lead { max-width: 36ch; font-size: clamp(19px, 1.7vw, 22px); }

/* Personligt, hela vägen */
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.intro { font-size: 20px; }
.points p { margin-bottom: 18px; }

/* Kvalitet och Arbetsmiljö bredvid varandra */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col p { max-width: 46ch; }

.contact-more { margin-top: 18px; }
.contact-more a { font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Kontakt & Boka-sidan */
.contact-page { padding: 8px 0 80px; }
.contact-area { margin-top: 20px; color: var(--muted); }
.form-alt { background: var(--bg-alt); }

@media (max-width: 900px) {
  .split-intro, .two-col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-phone { display: none; }
  .nav-cta { margin-left: auto; font-size: 16px; padding: 11px 14px; }
  .intro { font-size: 18px; }
  .contact-page { padding-bottom: 56px; }
}

/* ===== Gult tema ===== */
:root { --yellow: #f2bd2c; --yellow-dark: #d9a514; }

/* Knappar: gula, blir svarta med gul text när man håller musen över */
.btn, .nav-cta { background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--yellow); border-color: var(--ink); transform: translateY(-1px); }
.nav-cta:hover, .nav-cta:focus-visible { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.nav-cta[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.btn:active, .nav-cta:active { transform: translateY(0); }

/* Länkar */
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--yellow); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--yellow); text-decoration: none; }
.nav-phone:hover { color: var(--yellow); text-decoration: none; }
.text-link { font-weight: 700; color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: background .15s; }
.text-link:hover { background: var(--yellow); color: var(--ink); text-decoration: none; }
.contact-line a:hover, .contact-more a:hover { background: var(--yellow); text-decoration: none; }
.more:hover { color: var(--yellow); }
.footer-head { color: var(--yellow); }
.footer a:hover { color: var(--yellow); text-decoration: none; }
.section-dark h2 { color: var(--yellow); }
.section-dark a:hover { color: var(--yellow); }

/* Gula ytor */
#nara { background: var(--yellow); color: var(--ink); }
#nara p { color: var(--ink); }
.page-head { background: var(--yellow); padding-bottom: 48px; margin-bottom: 0; }
.page-head .page-lead { color: var(--ink); }
#nara :focus-visible, .page-head :focus-visible { outline-color: var(--ink); }
.contact-page { padding-top: 56px; }

/* Om oss med bild */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.about p { max-width: 60ch; }
.about-img { aspect-ratio: 4 / 5; background: var(--bg) center / cover no-repeat; border-radius: 2px; }
.about-img.missing { display: none; }
.about:has(.about-img.missing) { grid-template-columns: 1fr; }

/* Arbetsmiljö-sidan */
.safety h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 40px 0 10px; padding-left: 16px; border-left: 4px solid var(--yellow); }
.safety h2:first-child { margin-top: 0; }

/* Kryssruta för ROT i formuläret */
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.form label.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.small { font-size: 15px; }

@media (max-width: 1100px) { .nav-phone { display: none; } }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 28px; } .about-img { max-width: 420px; } }
@media (max-width: 640px) { .nav-links { gap: 16px; } }

/* Loggan i menyn (visas när assets/logo.png finns) */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 640px) { .logo-img { width: 36px; height: 36px; } }

/* Tjänster: snabblänkar och deltjänster */
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.jump a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.jump a:hover { background: var(--ink); color: var(--yellow); text-decoration: none; }
.subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 48px; }
.sub h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.sub p { color: #34322e; font-size: 17px; margin-bottom: 8px; }
.sub .text-link { font-size: 16px; }
.service .narrow .btn { margin-top: 8px; }
@media (max-width: 900px) { .subs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .subs { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 640px) {
  .logo { gap: 8px; }
  .logo-text { font-size: 15px; }
  .nav-cta { font-size: 15px; padding: 10px 12px; }
}
@media (max-width: 370px) { .logo-text { display: none; } }

/* Språkväljare med flaggor */
.lang { display: flex; gap: 6px; align-items: center; }
.lang a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 2px solid transparent; border-radius: 2px; text-decoration: none; font-size: 14px; font-weight: 700; opacity: .7; transition: opacity .15s, border-color .15s; }
.lang a:hover { opacity: 1; border-color: var(--yellow); }
.lang a[aria-current="true"] { opacity: 1; border-color: rgba(255,255,255,.35); }
.lang .flag { display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
@media (max-width: 640px) {
  .lang { order: 4; margin-left: auto; gap: 2px; }
  .lang span { display: none; }
  .lang a { padding: 4px 5px; }
  .nav-links { width: auto; flex: 1; gap: 12px; }
  .nav-links a { font-size: 14px; }
}
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) { .nav-phone { display: none; } }
@media (max-width: 640px) {
  .nav-links { gap: 10px; }
  .lang a { padding: 3px 4px; }
}
@media (max-width: 380px) { .nav-links a { font-size: 13px; } .nav-links { gap: 8px; } }
@media (max-width: 380px) { .ch-hero h1 { font-size: 34px; } }
