/* Myrvollen Maskin – lokal graveentreprenør i Sande/Holmestrand/Vestfold
   Design: "Premium Utilitarian Minimalism" (taste-skill / minimalist-ui).
   Varm monokrom palett, redaksjonell typografi, flate kort, mye luft.
   Ingen gradienter, ingen tunge skygger, ingen emoji. Ren statisk CSS. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --bg: #FBFBFA;          /* varm bone canvas */
  --surface: #FFFFFF;
  --bone: #F7F6F3;
  --ink: #23211E;         /* varm off-black */
  --body: #2F2C28;
  --muted: #807A72;       /* dempet grå */
  --line: #E8E5DF;        /* ultralys ramme */
  --clay: #9A4A2B;        /* dempet terrakotta – eneste aksent */
  --clay-pale: #F3EBE5;   /* tag-bakgrunn */
  --clay-text: #843E22;
  --black: #1A1916;       /* primær CTA */
  --max: 1120px;
  --serif: 'Fraunces', 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--clay-text); text-underline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Typografi ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.24rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--body); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--clay-text);
  background: var(--clay-pale);
  padding: 7px 13px;
  border-radius: 6px;
  margin: 0 0 20px;
}
.section-intro { color: var(--muted); max-width: 58ch; font-size: 1.05rem; margin: 0 0 40px; }

/* ---------- Navigasjon ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 250, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; flex: 0 0 26px; color: var(--clay); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--body); text-decoration: none; padding: 8px 13px; border-radius: 6px; font-size: 0.96rem; font-weight: 500; }
.nav a:hover { background: var(--bone); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--clay); border-radius: 0; }
.nav .btn-call { background: var(--black); color: #fff; margin-left: 8px; padding: 9px 16px; border-radius: 6px; }
.nav .btn-call:hover { background: #333; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: 14px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Seksjoner ---------- */
section { padding: 92px 0; }
section.tight { padding: 64px 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; max-width: 16ch; }
.hero .lead { color: var(--body); max-width: 46ch; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .phoneline { margin-top: 24px; font-size: 1.02rem; color: var(--muted); }
.hero .phoneline a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.3rem; letter-spacing: -0.01em; }

/* ---------- Bilderammer (ekte foto legges i images/) ---------- */
figure { margin: 0; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.ph {
  background:
    radial-gradient(120% 100% at 70% 0%, rgba(154,74,43,0.05), transparent 60%),
    var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 22px;
  color: var(--muted); font-size: 0.88rem; line-height: 1.45;
}
.ph .tag { display: inline-block; font-weight: 700; color: var(--clay-text); letter-spacing: .03em; text-transform: uppercase; font-size: .68rem; margin-bottom: 8px; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- Tjenester (flat liste, ingen slop-ikoner) ---------- */
.alt { background: var(--bone); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.svc { background: var(--surface); padding: 28px 26px; display: flex; flex-direction: column; min-height: 150px; transition: background .2s ease; }
.svc:hover { background: #FCFBF9; }
.svc .num { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; color: var(--clay); margin-bottom: 12px; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 0.97rem; margin: 0 0 16px; }
.svc .more { margin-top: auto; font-size: 0.92rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.svc .more:hover { color: var(--clay-text); }

/* ---------- "I arbeid" strip ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.reverse .txt { order: 2; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--body); }
.checks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--clay); border-radius: 2px; }

/* ---------- Områder ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tags span { background: var(--clay-pale); color: var(--clay-text); border-radius: 9999px; padding: 6px 14px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Kundecase ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.case .case-top { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.case:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.case .body { padding: 22px 24px 26px; }
.case .meta { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.case h3 { font-size: 1.1rem; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px; }
.quote blockquote { font-family: var(--serif); font-size: 1.22rem; line-height: 1.4; color: var(--ink); margin: 0 0 18px; letter-spacing: -0.01em; }
.quote .who { font-size: 0.86rem; color: var(--muted); }
.quote .who strong { color: var(--body); display: block; font-weight: 600; }
.placeholder-note { font-size: 0.82rem; color: var(--muted); background: var(--clay-pale); border-radius: 8px; padding: 12px 16px; margin-top: 26px; }
.is-placeholder { border-style: dashed; }

/* ---------- CTA-bånd (eneste mørke seksjon, for kontrast) ---------- */
.cta-band { background: var(--ink); color: #EDEAE4; text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 12px; }
.cta-band p { color: #C7C2BA; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .phone { font-family: var(--serif); font-size: 1.7rem; color: #fff; text-decoration: none; display: inline-block; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #EDEAE4; }

/* ---------- Artikkel / tjenesteside ---------- */
.breadcrumbs { font-size: 0.86rem; color: var(--muted); padding: 26px 0 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article { max-width: 740px; }
.article h1 { margin-bottom: 18px; }
.article h2 { margin-top: 40px; margin-bottom: 12px; }
.article p { margin: 0 0 16px; }
.article ul { margin: 0 0 18px; padding-left: 20px; }
.article li { margin-bottom: 8px; }

/* ---------- Kontakt / skjema ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--ink); }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--body); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 3px; }
.facts a, .facts span { color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 110px; font-size: 0.95rem; color: var(--muted); }
.footer a { color: var(--body); text-decoration: none; }
.footer a:hover { color: var(--clay-text); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer h4 { font-family: var(--sans); color: var(--ink); margin: 0 0 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .legal { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.84rem; }

/* ---------- Sticky ring-knapp (mobil) ---------- */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; background: var(--black); }
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.call-bar .ico { width: 18px; height: 18px; }

/* ---------- Subtil motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(0.16,1,0.3,1), transform .6s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .txt { order: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .nav { display: none; }
  .nav.compact { display: flex; }
  .nav.compact a:not(.btn-call) { display: none; }
  .call-bar { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 88px; }
  .footer-cols { grid-template-columns: 1fr; }
}
