/* Fully Covered — Roofing and Building Specialists
   Slate-dark one-man portfolio. Big Shoulders + Familjen Grotesk.
   Brand green from the real logo: #a9ce39 / #8cb50e. */

@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bigshoulders/v4/qFdC35CPh40oITJ69S3GFqy50hgojnA4PLA.woff2) format('woff2');
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/familjengrotesk/v11/Qw3GZR9ZHiDnImG6-NEMQ41wby8WbHoEj7E49PA.woff2) format('woff2');
}

:root {
  --bg: #101312;
  --surface: #181d1a;
  --surface-2: #1f2521;
  --line: #2a322c;
  --ink: #f2f4f0;
  --muted: #aab5ac;
  --green: #a9ce39;
  --green-deep: #8cb50e;
  --silver: #d1d1d1;
  --radius: 10px;
  --display: 'Big Shoulders', 'Arial Narrow', sans-serif-condensed, sans-serif;
  --body: 'Familjen Grotesk', 'Segoe UI', system-ui, sans-serif;
  --z-sticky: 30;
  --z-callbar: 40;
  --z-modal: 50;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #101312; padding: 12px 18px;
  font-weight: 600; z-index: 60; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 40px); } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.head-logo { display: flex; align-items: center; }
.head-logo img { width: auto; height: 34px; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.head-phone {
  color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.01em; padding: 10px 2px;
}
.head-phone span { color: var(--green); }
.head-phone:hover span { color: var(--green-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--body); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-green { background: var(--green); color: #131709; }
.btn-green:hover { background: #bcdf50; transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-line:hover { border-color: var(--green); color: var(--green); }
.btn svg { flex: none; }

@media (max-width: 720px) {
  .head-phone { display: none; }
  .head-logo img { height: 30px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(78deg, rgba(13,16,14,0.96) 8%, rgba(13,16,14,0.82) 34%, rgba(13,16,14,0.28) 68%, rgba(13,16,14,0.42) 100%),
    linear-gradient(to top, rgba(13,16,14,0.92) 0%, rgba(13,16,14,0) 42%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(72px, 12vh, 148px) 0 clamp(64px, 10vh, 120px);
  max-width: 640px;
}
.hero-logo { width: min(340px, 72vw); height: auto; margin-bottom: clamp(28px, 5vh, 48px); }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.1rem, 8.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub {
  margin-top: 22px; max-width: 46ch;
  color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

@media (max-width: 720px) {
  .hero-media::after {
    background:
      linear-gradient(to top, rgba(13,16,14,0.96) 0%, rgba(13,16,14,0.82) 46%, rgba(13,16,14,0.55) 100%);
  }
  .hero h1, .hero-sub { text-shadow: 0 1px 14px rgba(8,10,9,0.7); }
}

/* orchestrated load: visible by default, animated only when .js-anim lands
   before first paint (failsafe: no class, no animation, content shows) */
.js-anim .hero-logo,
.js-anim .hero h1,
.js-anim .hero-sub,
.js-anim .hero-ctas {
  animation: rise 0.9s var(--ease) both;
}
.js-anim .hero h1 { animation-delay: 0.08s; }
.js-anim .hero-sub { animation-delay: 0.18s; }
.js-anim .hero-ctas { animation-delay: 0.28s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- statement band ---------- */
.statement { border-block: 1px solid var(--line); background: var(--surface); }
.statement .wrap { padding-block: clamp(40px, 7vh, 72px); }
.statement p {
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.12;
  max-width: 30ch;
}
.statement strong { color: var(--green); font-weight: 800; }

/* ---------- section scaffold ---------- */
.section { padding-block: clamp(72px, 11vh, 130px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 0.98;
}
.section-head h2 em { font-style: normal; color: var(--green); }
.section-head p { margin-top: 18px; color: var(--muted); max-width: 58ch; }

/* ---------- services mosaic ----------
   Two committed rows: a tall lead tile + wide carpentry panorama,
   then four equal portrait tiles. No ragged voids. */
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 500px 440px;
}
.mosaic .tile:nth-child(1) { grid-column: 1 / 5; }
.mosaic .tile:nth-child(2) { grid-column: 5 / 13; }
.mosaic .tile:nth-child(3) { grid-column: 1 / 4; }
.mosaic .tile:nth-child(4) { grid-column: 4 / 7; }
.mosaic .tile:nth-child(5) { grid-column: 7 / 10; }
.mosaic .tile:nth-child(6) { grid-column: 10 / 13; }
.tile {
  position: relative; overflow: hidden; border-radius: 4px;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.7s var(--ease);
}
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,11,0.9) 0%, rgba(10,12,11,0.25) 45%, rgba(10,12,11,0) 70%);
}
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; z-index: 1; }
.tile-text h3 {
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1; color: #fff;
}
.tile-text h3::after {
  content: ''; display: block; width: 44px; height: 3px;
  background: var(--green); margin-top: 10px;
  transition: width 0.4s var(--ease);
}
.tile:hover .tile-text h3::after { width: 74px; }
.tile-text p { margin-top: 10px; color: #cfd6d0; font-size: 0.98rem; line-height: 1.45; max-width: 42ch; }
@media (max-width: 1080px) {
  .mosaic { grid-template-rows: 460px 400px 400px; }
  .mosaic .tile:nth-child(1) { grid-column: 1 / 5; }
  .mosaic .tile:nth-child(2) { grid-column: 5 / 13; }
  .mosaic .tile:nth-child(3) { grid-column: 1 / 7; }
  .mosaic .tile:nth-child(4) { grid-column: 7 / 13; }
  .mosaic .tile:nth-child(5) { grid-column: 1 / 7; }
  .mosaic .tile:nth-child(6) { grid-column: 7 / 13; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 380px; }
  .mosaic .tile { grid-column: 1 / -1 !important; }
}

/* ---------- process strip ---------- */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.strip {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 22px;
  scrollbar-color: var(--green) var(--surface-2);
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 4px; }
.strip::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 4px; }
.stage {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}
.stage figure { position: relative; overflow: hidden; border-radius: 4px; }
.stage img { width: 100%; height: 420px; object-fit: cover; }
.stage-n {
  position: absolute; top: 0; left: 0;
  background: var(--bg); color: var(--green);
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  padding: 8px 16px 10px; border-radius: 0 0 4px 0;
}
.stage h3 {
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-size: 1.5rem; margin-top: 16px;
}
.stage p { color: var(--muted); font-size: 0.99rem; margin-top: 6px; max-width: 38ch; }
.strip-hint { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
@media (min-width: 1240px) {
  .strip { overflow-x: visible; flex-wrap: nowrap; }
  .stage { flex: 1 1 0; }
  .stage img { height: 360px; }
  .strip-hint { display: none; }
}

/* ---------- gallery ---------- */
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; border: 0; padding: 0; margin: 0 0 14px;
  background: none; cursor: pointer; overflow: hidden; border-radius: 4px;
}
.gallery img { width: 100%; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(1100px, 94vw); max-height: 92vh;
  z-index: var(--z-modal);
}
dialog.lightbox::backdrop { background: rgba(8,10,9,0.93); }
.lightbox figure { position: relative; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 84vh;
  width: auto; height: auto; margin-inline: auto; border-radius: 4px;
}
.lightbox figcaption { color: var(--muted); text-align: center; padding: 14px 8px 4px; font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; min-width: 48px; min-height: 48px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--green); border-color: var(--green); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- about ---------- */
.about-band { position: relative; overflow: hidden; min-height: 320px; }
.about-band img { width: 100%; height: clamp(320px, 46vh, 460px); object-fit: cover; object-position: center 64%; }
.about-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(16,19,18,0.1) 40%, rgba(16,19,18,0.15) 60%, var(--bg) 100%);
}
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.about-grid h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 0.98;
  position: sticky; top: 100px;
}
.about-grid h2 em { font-style: normal; color: var(--green); }
.about-copy p + p { margin-top: 18px; }
.about-copy .lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 500; color: var(--ink); }
.about-copy p { color: var(--muted); max-width: 62ch; }
.about-pull {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; color: var(--ink);
  max-width: 26ch;
}
.about-pull strong { color: var(--green); font-weight: 800; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid h2 { position: static; }
}

/* ---------- contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-inner { text-align: left; }
.contact h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.98;
}
.contact h2 em { font-style: normal; color: var(--green); }
.contact-lede { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.contact-phone {
  display: inline-block; margin-top: 34px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1;
  color: var(--green); text-decoration: none; letter-spacing: 0.015em;
}
.contact-phone:hover { color: #bcdf50; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact-note { margin-top: 22px; color: var(--muted); font-size: 0.98rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 120px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-grid img { height: 56px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.foot-links a:hover { color: var(--green); }
.foot-small { margin-top: 22px; color: #7c877e; font-size: 0.9rem; }
@media (min-width: 721px) { .site-foot { padding-bottom: 48px; } }

/* ---------- mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-callbar);
  display: none; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; font-weight: 700; text-decoration: none; font-size: 1.05rem;
}
.callbar .cb-call { background: var(--green); color: #131709; }
.callbar .cb-wa { background: var(--surface-2); color: var(--ink); }
@media (max-width: 720px) { .callbar { display: flex; } }

/* ---------- reveals (enhance-visible; failsafe safe) ---------- */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .hero-logo, .js-anim .hero h1, .js-anim .hero-sub, .js-anim .hero-ctas { animation: none; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .gallery img, .btn, .tile-text h3::after { transition: none; }
}
