/* Grillvagnen — simple landing proposal */

:root {
  --color-soot: #14110f;
  --color-ash: #2c2621;
  --color-smoke: #ebe4db;
  --color-paper: #f6f1ea;
  --color-ember: #c6531a;
  --color-ember-deep: #9e3f12;
  --color-ember-btn: #b34716;
  --color-muted: #6a6056;
  --font-brand: "Bebas Neue", Impact, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --nav-height: 6.5rem;
  --section-pad-top: clamp(2rem, 4.5vw, 3rem);
  --section-pad-bottom: clamp(4rem, 10vw, 7rem);
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Land so the red eyebrow sits just under the fixed header */
  scroll-padding-top: calc(var(--nav-height) + 0.85rem - 2rem);
}

#hyra,
#kontakt {
  scroll-margin-top: calc(var(--nav-height) + 0.85rem - 2rem);
}

@media (min-width: 720px) {
  html {
    scroll-padding-top: calc(var(--nav-height) + 0.85rem - 2.5rem);
  }

  #hyra,
  #kontakt {
    scroll-margin-top: calc(var(--nav-height) + 0.85rem - 2.5rem);
  }
}

html.splash-active,
html.splash-active body {
  overscroll-behavior: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ash);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(198, 83, 26, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(44, 38, 33, 0.06), transparent 50%),
    var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

/* ——— Intro splash ——— */

.splash {
  position: fixed;
  inset: 0;
  z-index: 100001; /* Above WP admin bar so intro never leaves a gap above the site header */
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #000;
  transition: opacity 1s var(--ease);
  overflow: hidden;
}

.splash.is-out {
  opacity: 0;
  pointer-events: none;
}

.splash__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(52vw, 220px);
  height: auto;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: splash-logo-in 0.85s var(--ease) 0.15s forwards;
}

@keyframes splash-logo-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

/* Two-tone ring: visible on ember buttons and dark header/hero. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.hero__playback:focus-visible,
.nav-toggle:focus-visible,
.form-layer__close:focus-visible,
.captcha-row__refresh:focus-visible,
.site-nav__links a:focus-visible {
  outline: 2px solid var(--color-paper);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-soot), 0 0 0 4px var(--color-paper);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  height: var(--nav-height);
  margin: 0;
  display: flex;
  align-items: stretch;
  background: rgba(20, 17, 15, 0.82);
  backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding-block: 0.65rem;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  position: relative;
  z-index: 60;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-logo__img {
  display: block;
  height: 5.5rem;
  width: auto;
  /* Black mark on transparent → white on dark nav */
  filter: invert(1);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-self: flex-end;
  position: relative;
  z-index: 60;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-paper);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-toggle__bars {
  position: relative;
  margin: 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  /* Match .btn--small vertical padding + border so link text lines up with button text */
  padding-bottom: calc(0.55rem + 1.5px);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav__links a {
  color: rgba(246, 241, 234, 0.88);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

.site-nav__cta {
  font-size: 0.95rem;
  border-radius: 0.65rem;
}

.site-nav__links a.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 719px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 300;
    background: rgba(20, 17, 15, 0.92);
    backdrop-filter: blur(12px);
  }

  .site-logo,
  .nav-toggle {
    position: relative;
    z-index: 320;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-bottom: 0.15rem;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    inset: 0;
    z-index: 310;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding:
      calc(var(--nav-height) + 2.25rem)
      1.75rem
      2.5rem;
    background:
      radial-gradient(ellipse 70% 45% at 80% 10%, rgba(198, 83, 26, 0.18), transparent 55%),
      #14110f;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    text-align: center;
  }

  .site-nav__links a {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-paper);
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s var(--ease);
  }

  .site-nav.is-open .site-nav__links a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open .site-nav__links a:nth-child(1) {
    transition-delay: 0.08s;
  }

  .site-nav.is-open .site-nav__links a:nth-child(2) {
    transition-delay: 0.14s;
  }

  .site-nav__links a.is-active {
    color: var(--color-ember);
    text-decoration: none;
  }

  .site-nav__cta {
    align-self: center;
    margin-top: 2rem;
    padding: 0.9rem 1.35rem;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.25s var(--ease);
  }

  .site-nav.is-open .site-nav__cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background: rgba(20, 17, 15, 0.92);
    backdrop-filter: blur(12px);
  }
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-paper);
  background: var(--color-ember-btn);
  border: 1.5px solid var(--color-ember-btn);
  border-radius: 0.65rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--color-ember-deep);
  border-color: var(--color-ember-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-paper);
  border-color: rgba(246, 241, 234, 0.45);
}

.btn--ghost:hover {
  background: rgba(246, 241, 234, 0.1);
  border-color: var(--color-paper);
}

.btn--small {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-paper);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  z-index: 0;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
}

.hero__playback {
  position: absolute;
  z-index: 2;
  right: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 1.25rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
  background: rgba(20, 17, 15, 0.55);
  color: var(--color-paper);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.hero__playback:hover,
.hero__playback:focus-visible {
  background: rgba(20, 17, 15, 0.75);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero__playback.is-obscured {
  visibility: hidden;
  pointer-events: none;
}

.hero__playback[hidden] {
  display: none;
}

body.is-ready .hero__slide.is-active img {
  animation: hero-drift 12s var(--ease) forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.45) 0%, rgba(20, 17, 15, 0.25) 35%, rgba(20, 17, 15, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 17, 15, 0.55) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.5rem + 20px) 0 4.5rem;
}

@media (min-width: 960px) {
  .hero__content {
    /* Lift content on tall screens; +20px extra gap under navbar. */
    padding: calc(var(--nav-height) + 1.5rem + 20px) 0 calc(4.5rem + 12vh);
    margin-bottom: max(0px, calc(min(18vh, 10rem) - 20px));
  }
}

/* Guard against wpautop <br>/<p> inside chrome & form */
.site-header br,
.section-rail br,
.hero br,
.form-layer br,
.site-footer br {
  display: none !important;
}

.form-layer > p:empty {
  display: none !important;
}

.hero__brand {
  margin: 0 0 1rem;
  line-height: 0;
  opacity: 0;
}

.hero__brand-img {
  display: block;
  height: clamp(3.4rem, 12vw, 7.5rem);
  width: auto;
  max-width: min(92vw, 28rem);
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  opacity: 0;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32ch;
  font-size: 1.05rem;
  color: rgba(246, 241, 234, 0.88);
  opacity: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
}

body.is-ready .hero__brand {
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

body.is-ready .hero__title {
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

body.is-ready .hero__lead {
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

body.is-ready .hero__actions {
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  to {
    transform: scale(1);
  }
}

/* ——— Sections ——— */

.section {
  padding: var(--section-pad-top) 0 var(--section-pad-bottom);
}

.section__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section__inner--narrow {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ember);
}

.section__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 550;
  line-height: 1.15;
  color: var(--color-soot);
}

.section__text {
  margin: 0;
  max-width: 38rem;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.section__text--rich > *:first-child {
  margin-top: 0;
}

.section__text--rich > *:last-child {
  margin-bottom: 0;
}

.section__text--rich p {
  margin: 0 0 0.85rem;
}

.section__text--rich ul,
.section__text--rich ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.section__text--rich a {
  color: var(--color-ember);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section--hyra {
  background:
    linear-gradient(180deg, transparent, rgba(235, 228, 219, 0.65) 20%, rgba(235, 228, 219, 0.65) 80%, transparent);
}

.pillars {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillars li {
  display: grid;
  gap: 0.45rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(44, 38, 33, 0.16);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.pillars li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pillars li:nth-child(2) {
  transition-delay: 0.08s;
}

.pillars li:nth-child(3) {
  transition-delay: 0.16s;
}

.pillars__label {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--color-ember);
}

.pillars strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--color-soot);
}

.pillars span:last-child {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* ——— Contact ——— */

.section--kontakt .section__title {
  max-width: 16ch;
}

.contact-block {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.contact-block__mail {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 550;
  color: var(--color-soot);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

.contact-block__mail:hover {
  color: var(--color-ember);
}

.contact-block__address {
  margin: 0 0 0.5rem;
  color: var(--color-muted);
}

/* ——— Split: text + image ——— */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .section--split-left .split__media {
    order: -1;
  }
}

.split__copy .section__title {
  max-width: 14ch;
}

.split__media {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem;
  aspect-ratio: 4 / 5;
  background: #1a1613;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Statement ——— */

.section--statement {
  background: var(--color-soot);
  color: var(--color-paper);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.statement__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-paper);
}

.statement__text p {
  margin: 0 0 0.75rem;
}

.statement__text p:last-child {
  margin-bottom: 0;
}

.statement__source {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 234, 0.55);
}

/* ——— Card grid ——— */

.section--kort {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(198, 83, 26, 0.07), transparent 55%),
    var(--color-paper);
}

.feature-cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 980px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-cards__item {
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(44, 38, 33, 0.1);
  border-radius: 0.35rem;
}

.feature-cards__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--color-soot);
}

.feature-cards__text {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.feature-cards__text > *:first-child {
  margin-top: 0;
}

.feature-cards__text > *:last-child {
  margin-bottom: 0;
}

.feature-cards__text p {
  margin: 0 0 0.65rem;
}

/* ——— Offer form layer ——— */

.form-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 17, 15, 0.88);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.form-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-layer__close {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 410;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.65rem;
  background: rgba(246, 241, 234, 0.1);
  color: var(--color-paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease);
}

.form-layer__close:hover {
  background: rgba(246, 241, 234, 0.18);
}

.form-layer__close span,
.form-layer__close span::before,
.form-layer__close span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.form-layer__close span {
  position: relative;
  background: transparent;
}

.form-layer__close span::before,
.form-layer__close span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.form-layer__close span::before {
  transform: rotate(45deg);
}

.form-layer__close span::after {
  transform: rotate(-45deg);
}

.form-layer__scroll {
  height: 100%;
  height: 100dvh;
  overflow: auto;
  padding: clamp(4.5rem, 10vw, 6rem) 1.25rem 3rem;
}

.form-layer.is-thanks .form-layer__scroll {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.form-layer__panel {
  width: min(100%, 52rem);
  margin-inline: auto;
}

.form-layer.is-thanks [data-form-panel] {
  display: none;
}

.form-layer__thanks {
  display: none;
  width: min(100%, 22rem);
  margin-inline: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(0.6rem);
}

.form-layer.is-thanks .form-layer__thanks {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  animation: form-thanks-in 0.7s var(--ease) forwards;
}

.form-layer__thanks-logo {
  width: min(46vw, 180px);
  height: auto;
}

.form-layer__thanks-text {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 550;
  line-height: 1.3;
  color: var(--color-paper);
}

@keyframes form-thanks-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Guard against WP core form styles inside offer layer */
.form-layer .field,
.form-layer .field__input,
.form-layer .btn,
.form-layer .captcha-row__refresh {
  box-sizing: border-box;
}

.form-layer .field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.form-layer label.field {
  cursor: text;
}

.form-layer input.field__input,
.form-layer textarea.field__input,
.form-layer select.field__input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-paper);
  background: rgba(246, 241, 234, 0.08);
  border: 1.5px solid rgba(246, 241, 234, 0.14);
  border-radius: 0.65rem;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-layer input.field__input:focus-visible,
.form-layer textarea.field__input:focus-visible,
.form-layer select.field__input:focus-visible {
  outline: 2px solid var(--color-paper);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-soot), 0 0 0 4px var(--color-paper);
}

.form-layer input.field__input.is-invalid,
.form-layer textarea.field__input.is-invalid,
.form-layer select.field__input.is-invalid {
  border-color: #e05a4f;
  background-color: rgba(224, 90, 79, 0.12);
}

.form-layer .btn {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-paper);
  background: var(--color-ember-btn);
  border: 1.5px solid var(--color-ember-btn);
  border-radius: 0.65rem;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.form-layer .btn:hover {
  background: var(--color-ember-deep);
  border-color: var(--color-ember-deep);
}

.form-layer .btn:focus-visible,
.form-layer .captcha-row__refresh:focus-visible,
.form-layer__close:focus-visible {
  outline: 2px solid var(--color-paper);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-soot), 0 0 0 4px var(--color-paper);
}

.form-layer .field--honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.form-layer__intro {
  margin-bottom: 2rem;
}

.form-layer__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 550;
  line-height: 1.15;
  color: var(--color-paper);
}

.offer-form__grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .offer-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.65);
}

.field__label abbr {
  text-decoration: none;
  color: var(--color-ember);
}

.field__input {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-paper);
  background: rgba(246, 241, 234, 0.08);
  border: 1.5px solid rgba(246, 241, 234, 0.14);
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field__input:hover {
  background: rgba(246, 241, 234, 0.12);
}

.field__input:focus {
  background: rgba(246, 241, 234, 0.14);
  border-color: var(--color-ember);
  box-shadow: 0 0 0 3px rgba(198, 83, 26, 0.25);
}

.field__input--area {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.field__input.is-invalid {
  border-color: #e05a4f;
  background: rgba(224, 90, 79, 0.12);
}

.field__error {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #f0a8a2;
}

.offer-form__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}

.offer-form__note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(246, 241, 234, 0.55);
}

.offer-form__status {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.offer-form__status.is-success {
  color: #d8f5e2;
  background: rgba(46, 160, 90, 0.18);
  border: 1px solid rgba(46, 160, 90, 0.35);
}

.offer-form__status.is-error {
  color: #ffd4cf;
  background: rgba(224, 90, 79, 0.16);
  border: 1px solid rgba(224, 90, 79, 0.35);
}

.field--honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.offer-form.is-sending [data-offer-submit] {
  opacity: 0.7;
  pointer-events: none;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 8rem) auto;
  gap: 0.75rem;
  align-items: center;
}

.captcha-row__question {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  color: var(--color-paper);
  white-space: nowrap;
}

.captcha-row__input {
  text-align: center;
}

.captcha-row__refresh {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(246, 241, 234, 0.85);
  background: rgba(246, 241, 234, 0.08);
  border: 1.5px solid rgba(246, 241, 234, 0.14);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.captcha-row__refresh:hover {
  background: rgba(246, 241, 234, 0.14);
  border-color: rgba(246, 241, 234, 0.28);
}

@media (max-width: 520px) {
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-row__input {
    max-width: 8rem;
  }
}

body.form-open {
  overflow: hidden;
}

button.btn {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid rgba(44, 38, 33, 0.12);
  padding: 1.75rem 0 1.5rem;
  background: #fff;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand-col {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.site-footer__brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-footer__brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-footer__logo {
  display: block;
  height: 3.25rem;
  width: auto;
}

.site-footer__mail {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer__mail:hover {
  color: var(--color-ember);
  text-decoration: none;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-footer__meta-mail {
  color: inherit;
  text-decoration: none;
}

.site-footer__meta-mail:hover {
  color: var(--color-ember);
  text-decoration: none;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ash);
  text-decoration: none;
}

.site-footer__social a:hover {
  color: var(--color-ember);
  text-decoration: none;
}

.site-footer__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.site-footer__credit {
  width: min(100% - 2rem, var(--max));
  margin: 1.15rem auto 0;
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-footer__credit a {
  color: inherit;
  text-decoration: none;
}

.site-footer__credit a:hover {
  color: var(--color-ember);
  text-decoration: none;
}

@media (max-width: 719px) {
  .site-footer__mail {
    display: block;
  }

  .site-footer__meta-sep,
  .site-footer__meta-mail {
    display: none;
  }
}

/* ——— Floating section rail ——— */

.section-rail {
  position: fixed;
  top: 50%;
  right: clamp(0.55rem, 2.5vw, 1.5rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  transform: translateY(-50%);
}

body.nav-open .section-rail {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 719px) {
  .section-rail {
    gap: 0.4rem;
  }

  .section-rail__link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.85rem;
  }

  .section-rail__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 1;
    transform: none;
    pointer-events: none;
  }
}

.section-rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(246, 241, 234, 0.55);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.section-rail__link:hover {
  color: rgba(246, 241, 234, 0.95);
  text-decoration: none;
}

.section-rail__link.is-active {
  color: var(--color-paper);
}

.section-rail__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(20, 17, 15, 0.2);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), width 0.3s var(--ease), border-radius 0.3s var(--ease);
  order: 2;
}

.section-rail__link.is-active .section-rail__dot {
  width: 1.15rem;
  border-radius: 999px;
  background: var(--color-ember);
  box-shadow: none;
}

.section-rail__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(0.4rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  order: 1;
}

.section-rail__link:hover .section-rail__label,
.section-rail__link.is-active .section-rail__label,
.section-rail__link:focus-visible .section-rail__label {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 719px) {
  .section-rail__label,
  .section-rail__link:hover .section-rail__label,
  .section-rail__link.is-active .section-rail__label,
  .section-rail__link:focus-visible .section-rail__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 1;
    transform: none;
  }
}

/* Light sections: darker rail marks */
.section-rail.is-on-light .section-rail__link {
  color: rgba(44, 38, 33, 0.35);
}

.section-rail.is-on-light .section-rail__link:hover,
.section-rail.is-on-light .section-rail__link.is-active {
  color: var(--color-ash);
}

.section-rail.is-on-light .section-rail__link.is-active .section-rail__dot {
  background: var(--color-ember);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .splash__logo,
  .hero__slide img,
  body.is-ready .hero__brand,
  body.is-ready .hero__title,
  body.is-ready .hero__lead,
  body.is-ready .hero__actions,
  .pillars li {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__slide,
  .section-rail__link,
  .section-rail__dot,
  .section-rail__label,
  .site-nav,
  .site-nav__links a,
  .site-nav__cta,
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after,
  .form-layer,
  .form-layer__thanks {
    transition: none;
  }

  .splash {
    transition: none;
  }
}

/* WordPress block canvas / editable front page */
.wp-site-blocks {
  padding: 0;
  margin: 0;
}

.wp-site-blocks .wp-block-post-content {
  margin: 0;
  max-width: none;
}

.wp-block-post-content > *:first-child {
  margin-top: 0;
}

.gv-main {
  margin: 0;
}

.gv-page {
  padding: calc(var(--nav-height) + 2rem) 1.25rem 4rem;
  min-height: 60vh;
}

.gv-page .wp-block-heading,
.gv-page .wp-block-post-title {
  font-family: var(--font-display);
  color: var(--color-ash);
}

/* ——— Page hero template ——— */

.page-hero {
  position: relative;
  min-height: clamp(16rem, 42vw, 26rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-paper);
  background: var(--color-soot);
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.35) 0%, rgba(20, 17, 15, 0.72) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 0 2.75rem;
}

.page-hero__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 550;
  line-height: 1.12;
  color: var(--color-paper);
}

.page-hero--plain .page-hero__content {
  padding-bottom: 2.5rem;
}

.gv-article {
  padding: clamp(2.5rem, 5vw, 4rem) 0 4.5rem;
}

.gv-article__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

/* Article typography: h1–h3 (+ body) */
.gv-article__inner > *:first-child {
  margin-top: 0;
}

.gv-article__inner h1,
.gv-article__inner h2,
.gv-article__inner h3,
.gv-article__inner h4 {
  font-family: var(--font-display);
  color: var(--color-soot);
  line-height: 1.2;
  font-weight: 550;
}

.gv-article__inner h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}

.gv-article__inner h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
}

.gv-article__inner h3 {
  margin: 1.75rem 0 0.55rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.gv-article__inner h4 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.1rem;
}

.gv-article__inner p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.gv-article__inner ul,
.gv-article__inner ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.gv-article__inner li {
  margin-bottom: 0.35rem;
}

.gv-article__inner a {
  color: var(--color-ember);
}

.gv-article__inner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.35rem;
}

.gv-article__inner figure {
  margin: 1.5rem 0;
}

.gv-article__inner figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.section.wp-block-group {
  max-width: none;
}

.section.wp-block-group > .section__inner {
  max-width: var(--max);
  margin-inline: auto;
}

/* Site header always flush to the browser viewport top. */
body.admin-bar .site-header {
  top: 0 !important;
}
