/* ==========================================================================
   Eskebæks Malerservice
   Designretning A, "Nordisk galleri"
   ========================================================================== */

/* --- Fonte ---------------------------------------------------------------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/karla-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: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/karla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --paper:      #F3F0EA;
  --paper-alt:  #E9E5DC;
  --ink:        #16180F;
  --ink-soft:   #55584B;
  --muted:      #6B6E5F;
  --muted-2:    #7F8271;
  --line:       #DDD8CE;
  --dark:       #23291F;
  --dark-deep:  #16180F;
  --dark-line:  #3E4738;
  --sage:       #9AA08A;
  --sage-light: #C3CBB4;
  --sage-text:  #A8AF9C;
  --sage-dim:   #7C8272;
  --green:      #37483A;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans:  'Karla', system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto er nødvendig. width/height-attributterne på <img> sætter en
   præsentations-højde der ellers slår aspect-ratio ud af kraft. */
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Grid-børn har min-width:auto som default, så et langt, ubrydeligt ord
   (fx en e-mailadresse) kan sprænge kolonnen på smalle skærme. */
.farver__grid > *, .om > *, .kontakt__grid > *, .ydelser > *, .case__text > * { min-width: 0; }

/* --- Fælles typografi ----------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow--light { color: rgba(255,255,255,.72); }

.sechead { padding-top: clamp(64px, 9vw, 96px); display: grid; gap: 20px; }
.sechead__title {
  max-width: 11em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.sechead__title--md { max-width: 14em; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 26px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.nav__brand { display: flex; align-items: center; gap: 13px; }
.nav__logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
.nav__name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .01em;
  color: #fff;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: rgba(255,255,255,.82); transition: color .15s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  font-weight: 600; color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
  padding: 10px 20px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav__cta:hover { background: #fff; color: var(--ink) !important; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 780px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
  background: var(--dark-deep);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,20,14,.66), rgba(18,20,14,.42) 40%, rgba(18,20,14,.8));
}
.hero__inner { position: relative; display: grid; justify-items: center; }
.hero__title {
  margin-top: 22px;
  max-width: 13em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: #fff;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 24px;
  max-width: 27em;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,.86);
}
.hero__actions {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.hero__note { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.6); }

/* --- Knapper -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
  padding: 18px 30px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.btn--solid { background: #fff; color: var(--ink); font-weight: 700; padding-inline: 32px; }
.btn--solid:hover { background: var(--green); color: #fff; }
.btn--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--send {
  background: var(--paper); color: var(--dark);
  font-weight: 700; font-size: 17px; padding: 17px;
  border: none; cursor: pointer; width: 100%;
}
.btn--send:hover { background: var(--sage-light); }
.btn--send[disabled] { opacity: .6; cursor: progress; }

/* --- Fakta-stribe --------------------------------------------------------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.fact { display: grid; gap: 6px; align-content: start; }
.fact__title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 26px); line-height: 1.15; }
.fact__body { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* --- Cases ---------------------------------------------------------------- */
.cases { padding-top: 48px; display: grid; gap: clamp(48px, 7vw, 72px); }
.case { display: grid; gap: 20px; }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.shot { position: relative; margin: 0; }
.shot img { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.shot--portrait img { aspect-ratio: .746; }
.case--solo { justify-items: center; gap: 22px; }
.case--solo .shot { width: min(46%, 520px); }
.tag {
  position: absolute; left: 18px; top: 18px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.tag--dark  { color: #fff; background: rgba(22,24,15,.7); }
.tag--light { color: var(--ink); background: rgba(255,255,255,.92); }
.case__pair .shot:first-child img { filter: saturate(.92); }

.case__text { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.case__text p { max-width: 34em; line-height: 1.7; color: var(--ink-soft); }
.case__title { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3vw, 30px); line-height: 1.15; }
.case__text--center {
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  gap: 12px; max-width: 30em;
}

/* --- Farver --------------------------------------------------------------- */
.farver { margin-top: clamp(72px, 11vw, 110px); background: var(--paper-alt); padding: clamp(64px, 9vw, 90px) 0; }
.farver__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.farver__text { display: grid; gap: 20px; align-content: start; }
.farver__text p { line-height: 1.7; color: var(--ink-soft); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.swatches li { display: grid; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.swatch { display: block; aspect-ratio: 1; background: var(--c); }

/* --- Ydelser -------------------------------------------------------------- */
.ydelser {
  padding-top: clamp(64px, 9vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px);
}
.ydelse__title { margin-bottom: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 34px); }
.liste li { padding: 15px 0; border-top: 1px solid var(--line); }
.liste li:last-child { border-bottom: 1px solid var(--line); }

/* --- Trin ----------------------------------------------------------------- */
.trin {
  padding-top: clamp(64px, 9vw, 96px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 56px);
}
.trin__item { display: grid; gap: 12px; align-content: start; }
.trin__nr { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--sage); }
.trin__navn { font-size: 20px; font-weight: 600; }
.trin__tekst { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* --- Om os ---------------------------------------------------------------- */
.om {
  padding-top: clamp(72px, 11vw, 110px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.om__foto { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.om__text { display: grid; gap: 20px; align-content: start; }
.om__text p { line-height: 1.75; color: var(--ink-soft); text-wrap: pretty; }

/* --- Kontakt -------------------------------------------------------------- */
.kontakt { margin-top: clamp(72px, 11vw, 110px); background: var(--dark); padding: clamp(64px, 9vw, 96px) 0; }
.kontakt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.kontakt__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.06; color: var(--paper);
  text-wrap: balance;
}
.kontakt__numre { margin-top: 22px; display: grid; gap: 4px; }
.kontakt__numre a {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.12;
  color: #fff;
  transition: color .15s ease;
}
.kontakt__numre a:hover { color: var(--sage-light); }
.kontakt__fakta { margin-top: 22px; display: grid; gap: 11px; font-size: 16px; color: var(--sage-text); }
.kontakt__fakta > div { display: flex; gap: 18px; }
.kontakt__fakta dt { width: 8em; flex: none; color: var(--sage-dim); }
.kontakt__fakta dd { margin: 0; }
.kontakt__fakta a { color: #DCE0D2; text-decoration: underline; text-underline-offset: 3px; }
.kontakt__fakta dd, .footer__inner { overflow-wrap: anywhere; }

/* --- Formular ------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form__intro { font-size: 15px; color: var(--sage-text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 0; }
.field__label {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.form input, .form textarea {
  background: transparent;
  border: 1px solid var(--dark-line);
  color: var(--paper);
  padding: 16px;
  font-size: 15px;
  width: 100%;
  border-radius: 0;
}
.form textarea { resize: vertical; min-height: 118px; }
.form input::placeholder, .form textarea::placeholder { color: var(--sage-dim); opacity: 1; }
.form input:focus-visible, .form textarea:focus-visible { outline-color: var(--sage-light); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #C58B72; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--sage-dim); }
.form__status { font-size: 15px; color: var(--sage-light); min-height: 0; }
.form__status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formwrap--sent { display: grid; gap: 12px; align-content: start; }
.formwrap--sent h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--paper); }
.formwrap--sent p { font-size: 16px; line-height: 1.65; color: var(--sage-text); }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--dark-deep); color: var(--sage-dim); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.footer a { color: var(--sage-text); }
.footer a:hover { color: var(--sage-light); }

/* --- Mobil ring-bar ------------------------------------------------------- */
.ringbar {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 40;
  align-items: baseline; justify-content: center; gap: 10px;
  background: var(--green); color: #fff;
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  font-size: 15px;
  box-shadow: 0 -6px 24px rgba(22,24,15,.22);
}
.ringbar strong { font-size: 19px; font-weight: 700; letter-spacing: .01em; }

/* --- Reveal ---------------------------------------------------------------
   Skjules kun når JS er i live. Fejler scriptet, står indholdet bare der. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-static { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .farver__grid,
  .om,
  .kontakt__grid { grid-template-columns: 1fr; }
  .om__foto { order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .trin { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav { padding-block: 18px; gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__name { font-size: 19px; }
  .nav__logo { height: 32px; }
  .nav__cta { padding: 9px 16px; font-size: 14px; }

  .hero { min-height: 0; padding-top: 120px; padding-bottom: 64px; }
  .hero__inner { min-height: 62vh; align-content: center; }

  .ydelser { grid-template-columns: 1fr; }
  .case__text { grid-template-columns: 1fr; gap: 12px; }
  .case--solo .shot { width: min(72%, 420px); }
  .form__row { grid-template-columns: 1fr; }

  .kontakt__fakta > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
  .kontakt__fakta dt { width: auto; }
}

@media (max-width: 400px) {
  .kontakt__fakta > div { grid-template-columns: 1fr; gap: 2px; }
  .kontakt__fakta { gap: 15px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; gap: 26px; padding-block: 34px; }
  .swatches { gap: 14px; }
  .tag { left: 10px; top: 10px; padding: 5px 9px; font-size: 10px; letter-spacing: .16em; }
  .case--solo .shot { width: 100%; }
  .footer__inner { flex-direction: column; }

  /* Plads til ring-baren */
  .ringbar { display: flex; }
  .footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
