/* Edvis Tattoo — /tattoo-hokksund/ page layer
   Scoped to body.eh-page so nothing leaks into the rest of the site. */

body.eh-page {
  --eh-bg: #0a0a0b;
  --eh-band: #101012;
  --eh-card: #141416;
  --eh-line: #1e1e21;
  --eh-line-2: #2c2c31;
  --eh-field: #26262a;
  --eh-text: #e9e6e0;
  --eh-muted: #b6b1a8;
  --eh-dim: #8d887f;
  --eh-faint: #6f6b64;
  --eh-gold: #cfa75f;
  --eh-gold-hi: #e6c489;
  --eh-max: 1320px;
  --eh-pad-x: 80px;
  --eh-pad: 110px 80px;
  /* Distance from the page edge to the 1320px content column. Used by the
     full-bleed sections (hero, sleeve split, breadcrumb) so their text starts
     on the same line as the constrained sections at any viewport width.
     Must be applied to a full-width element for the % to resolve correctly. */
  --eh-gutter: max(var(--eh-pad-x), calc((100% - var(--eh-max)) / 2));

  background: var(--eh-bg);
  color: var(--eh-text);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.eh-page .site-content,
body.eh-page .ast-container,
body.eh-page .entry-content,
body.eh-page #primary,
body.eh-page #content {
  background: var(--eh-bg);
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

body.eh-page ::selection { background: var(--eh-gold); color: var(--eh-bg); }
body.eh-page a { color: var(--eh-gold); text-decoration: none; }
body.eh-page a:hover,
body.eh-page a:focus { color: var(--eh-gold-hi); }

/* Astra forces its own colours onto headings and paragraphs — override once,
   with enough specificity to win, rather than sprinkling !important. */
body.eh-page .entry-content h1,
body.eh-page .entry-content h2,
body.eh-page .entry-content h3,
body.eh-page .entry-content h4 {
  color: var(--eh-text);
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  margin: 0;
}
body.eh-page .entry-content p { color: var(--eh-muted); margin: 0; }

/* Kill the flow margin Gutenberg puts on every child after the first, which
   otherwise breaks the grids these sections are built from. */
body.eh-page .entry-content > .wp-block-group,
body.eh-page .eh-grid > *,
body.eh-page .eh-sec > * {
  margin-block-start: 0;
}

/* Gutenberg's flow layout adds a top margin to every child after the first,
   which pulls our grid and flex children out of alignment. Reset inside the
   page's own containers only. */
body.eh-page .entry-content :where(
  .eh-hero,
  .eh-hero__text,
  .eh-sec,
  .eh-inner,
  .eh-grid,
  .eh-grid > .wp-block-group,
  .eh-split,
  .eh-split__text,
  .eh-cta__inner,
  .eh-gallery-head,
  .eh-callout,
  .eh-stat,
  .eh-stats,
  .eh-contact-grid,
  .eh-cards,
  .eh-tags,
  .eh-btns,
  .eh-pair
) > * {
  margin-block-start: 0;
}

/* Fixed-height image panel used beside the black & grey section. */
.eh-media-tall { position: relative; min-width: 0; height: 520px; }
.eh-media-tall img,
.eh-media-tall figure { width: 100%; height: 100%; margin: 0; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .eh-media-tall { height: 360px; }
}

/* ---------- Section shell ---------- */

/* Astra pads every `.entry-content > .wp-block-group` from its own custom
   properties, at a higher specificity than a bare class. Reset our top-level
   sections and restate their real padding at matching specificity. */
body.eh-page .entry-content > .wp-block-group {
  padding: 0;
}
body.eh-page .entry-content > .wp-block-group.eh-sec {
  padding: var(--eh-pad);
}
body.eh-page .entry-content > .wp-block-group.eh-cta {
  padding: 130px 80px;
}
/* Same specificity as the reset above, or the shorthand `padding: 0` wins and
   the full-bleed sections lose their gutter. */
body.eh-page .entry-content > .wp-block-group.eh-hero,
body.eh-page .entry-content > .wp-block-group.eh-split {
  padding-inline-start: var(--eh-gutter);
}

.eh-sec {
  padding: var(--eh-pad);
  border-bottom: 1px solid var(--eh-line);
}
.eh-sec--band { background: var(--eh-band); }
.eh-sec--flush { padding: 0; }
.eh-inner {
  max-width: var(--eh-max);
  margin-inline: auto;
}

/* ---------- Type ---------- */

.eh-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Oswald, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
body.eh-page .entry-content p.eh-eyebrow { color: var(--eh-gold); }
.eh-eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 1px;
  background: currentColor;
}
.eh-eyebrow--plain::before { display: none; }

body.eh-page .entry-content h1.eh-h1 {
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
body.eh-page .entry-content h1.eh-h1 em {
  color: var(--eh-gold);
  font-style: normal;
}
body.eh-page .entry-content h2.eh-h2 {
  font-weight: 500;
  font-size: 42px;
  line-height: 1.08;
  margin-bottom: 22px;
}
body.eh-page .entry-content h2.eh-h2--sm { font-size: 38px; line-height: 1.1; }
body.eh-page .entry-content h3.eh-h3 {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
}

body.eh-page .entry-content p.eh-lead { font-size: 19px; max-width: 560px; text-wrap: pretty; }
body.eh-page .entry-content p.eh-body { text-wrap: pretty; margin-bottom: 16px; }
body.eh-page .entry-content p.eh-body--dim { color: var(--eh-dim); }
body.eh-page .entry-content p.eh-statement {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eh-text);
  margin-bottom: 10px;
}
body.eh-page .entry-content .eh-body strong,
body.eh-page .entry-content .eh-lead strong { color: var(--eh-text); font-weight: 600; }

.eh-label {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
body.eh-page .entry-content p.eh-label { color: var(--eh-dim); }

/* ---------- Buttons ---------- */

body.eh-page .eh-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
body.eh-page .eh-btn .wp-block-button__link,
body.eh-page a.eh-btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 0;
  background: var(--eh-gold);
  color: var(--eh-bg);
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--eh-gold);
  transition: background 0.18s ease, color 0.18s ease;
}
body.eh-page .eh-btn .wp-block-button__link:hover,
body.eh-page a.eh-btn:hover { background: var(--eh-gold-hi); border-color: var(--eh-gold-hi); color: var(--eh-bg); }

body.eh-page .eh-btn--ghost .wp-block-button__link,
body.eh-page a.eh-btn--ghost {
  background: transparent;
  color: var(--eh-text);
  border: 1px solid var(--eh-line-2);
  font-weight: 300;
}
body.eh-page .eh-btn--ghost .wp-block-button__link:hover,
body.eh-page a.eh-btn--ghost:hover { border-color: var(--eh-gold); color: var(--eh-gold); background: transparent; }

body.eh-page .eh-btn--gold-outline .wp-block-button__link,
body.eh-page a.eh-btn--gold-outline {
  background: transparent;
  color: var(--eh-gold);
  border: 1px solid var(--eh-gold);
  font-weight: 400;
  font-size: 13px;
  padding: 15px 28px;
}
body.eh-page .eh-btn--gold-outline .wp-block-button__link:hover,
body.eh-page a.eh-btn--gold-outline:hover { background: var(--eh-gold); color: var(--eh-bg); }

/* ---------- Hero ---------- */

.eh-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  border-bottom: 1px solid var(--eh-line);
  /* Gutter lives on the full-width grid so the text lines up with the rest of
     the page; the image column still bleeds to the right edge. */
  padding-inline-start: var(--eh-gutter);
}
.eh-hero__text {
  padding: 96px 40px 96px 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  max-width: 720px;
}
.eh-hero__text > * { margin: 0; }
.eh-hero__media { position: relative; min-width: 0; min-height: 660px; }
/* Pinned rather than in flow: a portrait photo would otherwise set the hero's
   height from its own aspect ratio instead of cropping into the panel. */
.eh-hero__media figure,
.eh-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  display: block;
}
.eh-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--eh-bg) 0%, rgba(10, 10, 11, 0.45) 22%, rgba(10, 10, 11, 0) 55%);
}

.eh-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--eh-line);
  font-family: Oswald, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  list-style: none;
  padding-inline-start: 0;
}
body.eh-page .entry-content ul.eh-facts { color: var(--eh-dim); margin: 0; padding-left: 0; }
body.eh-page .entry-content ul.eh-facts li { margin: 0; }

/* ---------- Two-column layouts ---------- */

.eh-grid { display: grid; gap: 70px; max-width: var(--eh-max); margin-inline: auto; }
.eh-grid--a { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.eh-grid--even { grid-template-columns: 1fr 1fr; }
.eh-grid--center { grid-template-columns: 1fr 1fr; align-items: center; }

/* ---------- Numbered / hairline card grids ---------- */

.eh-cards {
  display: grid;
  gap: 1px;
  background: var(--eh-line);
  border: 1px solid var(--eh-line);
  list-style: none;
  counter-reset: eh-card;
}
body.eh-page .entry-content ol.eh-cards,
body.eh-page .entry-content ul.eh-cards { margin: 0; padding-left: 0; }

.eh-cards--2 { grid-template-columns: 1fr 1fr; }
.eh-cards--1 { grid-template-columns: 1fr; }

body.eh-page .entry-content .eh-cards li {
  counter-increment: eh-card;
  background: var(--eh-band);
  padding: 26px 24px;
  margin: 0;
  color: var(--eh-text);
}
body.eh-page .entry-content .eh-cards li::before {
  content: counter(eh-card, decimal-leading-zero);
  display: block;
  font-family: Oswald, sans-serif;
  color: var(--eh-gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

/* Inline variant: number sits beside the text on one row. */
.eh-cards--inline { grid-template-columns: 1fr; }
body.eh-page .entry-content .eh-cards--inline li {
  background: var(--eh-bg);
  padding: 18px 24px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
body.eh-page .entry-content .eh-cards--inline li::before {
  margin-bottom: 0;
  font-size: 12px;
  flex: none;
}

/* ---------- Tag pills ---------- */

body.eh-page .entry-content ul.eh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 32px;
  padding-left: 0;
}
body.eh-page .entry-content ul.eh-tags li {
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--eh-line-2);
  font-family: Oswald, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-muted);
}
body.eh-page .entry-content ul.eh-tags--solid li {
  border: none;
  background: var(--eh-card);
  padding: 8px 14px;
}
body.eh-page .entry-content ul.eh-tags--dim li { color: var(--eh-dim); padding: 8px 14px; }

/* ---------- Gold-rule callout ---------- */

.eh-callout {
  padding: 28px 30px;
  border-left: 2px solid var(--eh-gold);
  background: var(--eh-bg);
}
.eh-callout > * { margin: 0; }
body.eh-page .entry-content .eh-callout h3 { margin-bottom: 10px; }
body.eh-page .entry-content .eh-callout p { color: var(--eh-dim); margin-bottom: 20px; }

/* ---------- Gallery ---------- */

body.eh-page .eh-gallery.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}
/* core/gallery sizes its figures at `width: calc(50% - gap/2)` through a
   `:not(#individual-image)` selector — an ID-level specificity hack no number
   of classes can outrank. Inside our grid that collapses every tile to a
   sliver, so the override borrows the same hack. */
body.eh-page .entry-content .eh-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  margin: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: none;
}
body.eh-page .entry-content .eh-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Tile rhythm from the design: tall, tall, then a wide one. */
body.eh-page .entry-content .eh-gallery.wp-block-gallery figure.wp-block-image:nth-child(1) { grid-row: span 2; }
body.eh-page .entry-content .eh-gallery.wp-block-gallery figure.wp-block-image:nth-child(4) { grid-row: span 2; }
body.eh-page .entry-content .eh-gallery.wp-block-gallery figure.wp-block-image:nth-child(5) { grid-column: span 2; }

.eh-gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
body.eh-page .entry-content .eh-gallery-head p { max-width: 420px; color: var(--eh-dim); }

/* ---------- Split section with flush image ---------- */

.eh-split {
  display: grid;
  /* `auto` so the image column is exactly as wide as the photo it holds — a
     fixed half would letterbox a portrait shot and leave dead space. */
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-inline-start: var(--eh-gutter);
}
.eh-split__text { padding: 110px 70px 110px 0; min-width: 0; }
/* The photo sets the column width at a fixed height, so the whole sleeve is
   visible with no letterboxing either side. */
.eh-split__media { position: relative; min-width: 0; height: 660px; }
.eh-split__media figure {
  margin: 0;
  height: 100%;
  display: block;
}
.eh-split__media img {
  height: 100%;
  width: auto;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  display: block;
}

.eh-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.eh-pair > div {
  padding: 22px 24px;
  border: 1px solid var(--eh-line-2);
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Stat row ---------- */

.eh-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--eh-line);
  border: 1px solid var(--eh-line);
}
.eh-stat { background: var(--eh-bg); padding: 34px 26px; }
.eh-stat__num {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 30px;
  color: var(--eh-gold);
  margin-bottom: 12px;
}
body.eh-page .entry-content .eh-stat h3 {
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
body.eh-page .entry-content .eh-stat p { font-size: 15px; color: var(--eh-dim); }

/* ---------- Contact ---------- */

.eh-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 34px;
  gap: 1px;
  background: var(--eh-line);
  border: 1px solid var(--eh-line);
}
.eh-contact-grid > * { background: var(--eh-bg); padding: 26px 24px; }
body.eh-page .entry-content p.eh-contact-label {
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--eh-dim);
  margin-bottom: 8px;
}
body.eh-page .entry-content p.eh-contact-value {
  margin: 0;
  font-size: 16px;
  color: var(--eh-text);
}

/* ---------- Closing CTA ---------- */

.eh-cta { position: relative; padding: 130px 80px; text-align: center; overflow: hidden; }
.eh-cta__bg { position: absolute; inset: 0; opacity: 0.28; }
.eh-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.eh-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--eh-bg) 0%, rgba(10, 10, 11, 0.72) 40%, var(--eh-bg) 100%);
}
.eh-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.eh-cta__inner > * { margin: 0; }
body.eh-page .entry-content .eh-cta__inner .eh-eyebrow { justify-content: center; }
body.eh-page .entry-content h2.eh-cta__title {
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  text-wrap: balance;
  margin-bottom: 0;
}
body.eh-page .entry-content p.eh-cta__lead { font-size: 18px; text-wrap: pretty; max-width: none; }
body.eh-page .entry-content p.eh-cta__tag {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eh-text);
}

/* Contact section runs full width; the form follows the details and buttons. */
body.eh-page .entry-content #kontakt .eh-h3 {
  margin-top: 52px;
  margin-bottom: 16px;
}
#kontakt .edvis-form { max-width: 720px; }

/* Form and map side by side, filling the width the buttons leave empty. */
.eh-form-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  margin-top: 48px;
}
.eh-form-map > * { margin-block-start: 0; }
.eh-map { position: relative; min-width: 0; min-height: 100%; }
.eh-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--eh-line);
  filter: grayscale(1) contrast(1.05) brightness(0.85);
  transition: filter 0.25s ease;
}
.eh-map iframe:hover { filter: none; }

@media (max-width: 900px) {
  .eh-form-map { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .eh-map iframe { min-height: 320px; }
  body.eh-page .entry-content #kontakt .eh-h3 { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .eh-map iframe { transition: none; }
}

/* ---------- Site header ---------- */

/* Astra's transparent header only applies on the front page, so elsewhere the
   primary bar falls back to its Customizer blue — which fights this page's
   palette. Restate it as the design's header, scoped to this page alone. */
body.eh-page .ast-primary-header-bar,
body.eh-page .ast-below-header-bar,
body.eh-page .ast-mobile-header-wrap .ast-primary-header-bar {
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--eh-line);
}

/* Astra's header container is unconstrained, so the logo sits on the left page
   edge and the icons on the right while the page content is a 1320px column.
   Constrain the header's inner row to that same column — the bar's background
   stays full-bleed because it is painted on the outer element. */
body.eh-page .ast-primary-header-bar .ast-container,
body.eh-page .ast-mobile-header-wrap .ast-container {
  max-width: calc(var(--eh-max) + 2 * var(--eh-pad-x));
  margin-inline: auto;
  padding-inline: var(--eh-pad-x);
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  body.eh-page { --eh-pad-x: 48px; --eh-pad: 90px 48px; }
  body.eh-page .entry-content > .wp-block-group.eh-cta { padding: 110px 48px; }
  .eh-grid { gap: 48px; }
  .eh-stats { grid-template-columns: repeat(3, 1fr); }
  .eh-split__text { padding: 90px 48px 90px 0; }
  body.eh-page .eh-gallery.wp-block-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  body.eh-page { --eh-pad-x: 24px; --eh-pad: 72px 24px; }
  body.eh-page .entry-content > .wp-block-group.eh-cta { padding: 90px 24px; }
  /* Single column from here: the image is full-bleed again, so the gutter goes
     back onto the text blocks themselves. */
  body.eh-page .entry-content > .wp-block-group.eh-hero,
  body.eh-page .entry-content > .wp-block-group.eh-split { padding-inline-start: 0; }
  .eh-hero { grid-template-columns: 1fr; min-height: 0; }
  .eh-hero__text { padding: 64px 24px 48px; max-width: none; gap: 22px; }
  .eh-hero__media { min-height: 420px; order: -1; }
  .eh-hero__media::after {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0) 40%, var(--eh-bg) 100%);
  }
  .eh-grid--a,
  .eh-grid--even,
  .eh-grid--center,
  .eh-split { grid-template-columns: 1fr; }
  .eh-split__text { padding: 72px 24px; }
  .eh-split__media { min-height: 380px; order: -1; }
  .eh-stats { grid-template-columns: repeat(2, 1fr); }
  .eh-contact-grid { grid-template-columns: repeat(2, 1fr); }
  body.eh-page .entry-content h2.eh-h2,
  body.eh-page .entry-content h2.eh-h2--sm { font-size: 32px; }
  .eh-cta { padding: 90px 24px; }
}

@media (max-width: 640px) {
  .eh-cards--2 { grid-template-columns: 1fr; }
  .eh-contact-grid { grid-template-columns: 1fr; }
  .eh-stats { grid-template-columns: 1fr; }
  .eh-pair { grid-template-columns: 1fr; }
  body.eh-page .eh-gallery.wp-block-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  body.eh-page .entry-content .eh-gallery.wp-block-gallery figure.wp-block-image:nth-child(5) { grid-column: span 2; }
  .eh-facts { gap: 18px; }
}
