/* shared.css — styles used by both index.html and utveckling.html.
   Page-specific styles stay in each page's own <style> block, which
   loads AFTER this file and therefore wins on equal specificity. */

/* Inter, self-hosted (SIL Open Font License — see fonts/OFL-LICENSE.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/inter-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden}
body{font-family:"Inter",-apple-system,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden;max-width:100%}
img{display:block;max-width:100%}
a{color:inherit}
.wrap{max-width:1100px;margin:0 auto;padding:0 32px;width:100%}
.eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--green)}
.green{color:var(--green)}
/* ---------- nav ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:20;transition:background .3s ease,box-shadow .3s ease}
.nav.solid{background:rgba(11,11,13,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
    box-shadow:0 1px 0 rgba(255,255,255,.08), 0 8px 30px rgba(0,0,0,.35)}
.nav.solid::before{opacity:0}
.nav.solid .row{padding:13px 32px}
.nav.solid .brand img{height:26px}
/* thin top scrim so nav stays legible over any hero image */
.nav::before{content:"";position:absolute;top:0;left:0;right:0;height:120px;z-index:-1;pointer-events:none;transition:opacity .3s ease;
    background:linear-gradient(180deg, rgba(8,8,10,.45) 0%, rgba(8,8,10,.18) 45%, rgba(8,8,10,0) 100%)}
.nav .row{display:flex;justify-content:space-between;align-items:center;padding:26px 32px;transition:padding .25s ease}
.nav .brand{font-weight:700;letter-spacing:-.01em;font-size:17px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.nav .brand img{height:26px;width:auto;display:block;transition:height .25s ease;
    filter:drop-shadow(0 2px 6px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(0,0,0,.35))}
.nav .brand b{color:#ff8c42;position:relative;top:.13em}
.nav .links a{position:relative;color:#e8eaed;text-decoration:none;font-size:14px;font-weight:600;margin-left:28px;
    padding-bottom:4px;text-shadow:0 1px 6px rgba(0,0,0,.7);transition:color .18s ease}
/* underline used for both hover and active - scales in from the left on hover */
.nav .links a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
    background:var(--green);border-radius:2px;box-shadow:0 0 8px rgba(161,210,70,.6);
    transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.nav .links a:hover{color:#fff}
.nav .links a:hover::after{transform:scaleX(1)}
.nav .links a.active{color:#fff}
.nav .links a.active::after{transform:scaleX(1)}
/* mobile: links keep natural width, the logo flexes into whatever space is left —
   the row can never overflow regardless of screen width */
@media(max-width:680px){
    .nav .row{gap:14px}
    .nav .brand{flex:0 1 auto;min-width:0}
    .nav .brand a{display:block}
    .nav .brand img,.nav.solid .brand img{height:auto;width:min(150px,100%)}
    .nav .links{flex:none;white-space:nowrap}
    .nav .links a{margin-left:14px;font-size:13px}
  }
@media(max-width:360px){.nav .links a{margin-left:10px;font-size:12px}}
.bg-toggle{position:absolute;top:88px;right:24px;z-index:5;width:38px;height:38px;border-radius:9px;
    display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.35;
    background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.18);color:#e8eaed;transition:all .15s}
.bg-toggle:hover{opacity:1;background:var(--green);color:#000;border-color:var(--green)}
.bg-toggle svg{width:19px;height:19px}
.hero.no-bg .bg-toggle{background:rgba(255,255,255,.08)}
/* ===== 3-COLUMN GRID - shared alignment system; sections snap to the same 3 columns ===== */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:start}
.grid3 .g-text{grid-column:1 / 3}
/* text spans cols 1–2 */
.grid3 .g-photo{grid-column:3 / 4}
/* item sits in col 3 */
.grid3 .g-photo img{width:100%;height:auto;border-radius:18px;border:1px solid var(--line);display:block}
.grid3 .g-span2{grid-column:1 / 3}
/* content block on cols 1–2, col 3 = breathing space */
.grid3 .g-col3{grid-column:3 / 4}          /* non-photo item in col 3 */
.grid3 .g-full{grid-column:1 / -1}
@media(max-width:820px){.grid3{grid-template-columns:1fr}
  .grid3 .g-text,.grid3 .g-photo,.grid3 .g-span2,.grid3 .g-col3{grid-column:1/-1}
  .grid3 .g-photo{order:-1;max-width:380px}}
/* mobile portrait used by area 2 on both pages (layout rules per page) */
.portrait-mobile{display:none;border-radius:16px;border:1px solid var(--line)}
/* ---------- generic section ---------- */
section.block{padding:110px 0;border-top:1px solid var(--line)}
.block.alt{background:var(--bg3)}
/* contact / close - bright white fika background, DARK text on the light left */
#kontakt{position:relative;border-top:1px solid var(--line);padding:0;overflow:hidden;
    background:#f4f2ed url('pictures/hero/fika-white.webp') center/cover no-repeat}
#kontakt .wrap{position:relative;z-index:2}
.close2{padding:120px 0}
.close2 h2{font-size:clamp(32px,4.8vw,54px);letter-spacing:-.02em;line-height:1.08;font-weight:800;color:#14140f}
.close2 h2 .green{color:var(--green-deep)}
.close2 .fika{margin-top:18px;color:#4a4a44;font-size:18px;line-height:1.55}
/* <=990px: break the fika line after "besök -" and shorten it, so it clears the bg image */
.fika-br{display:none}
@media(max-width:990px){.fika-br{display:inline}.fika-xtra{display:none}}
/* mobile: drop "jag" so it reads "älskar att brainstorma" */
@media(max-width:990px){.fika-jag{display:none}}
.close2 .contact{margin-top:40px;display:flex;flex-direction:column;gap:22px}
.close2 .lbl{display:block;font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:#8a8a80}
.close2 .tel{display:block;margin-top:6px;font-size:clamp(24px,3.4vw,34px);font-weight:800;letter-spacing:-.01em;color:#14140f;text-decoration:none;transition:color .15s}
.close2 .tel:hover{color:var(--green-deep)}
.close2 .mail2{display:block;margin-top:6px;font-size:18px;font-weight:600;color:#14140f;text-decoration:none;transition:color .15s}
.close2 .mail2:hover{color:var(--green-deep)}
@media(max-width:760px){.close2{padding:90px 0}}
footer .b img{height:20px;width:auto;display:block;opacity:.9}
footer .fine{color:var(--muted2)}
footer .foot-left{display:flex;flex-direction:column;gap:9px}
footer .foot-cities{font-size:13px;opacity:.75}
footer .ver{display:block;font-size:10px;color:var(--muted2);opacity:.55;user-select:all}
