/* Nordvista — #364b46 / #f9f6ee */

:root {
  --green: #364b46;
  --cream: #f9f6ee;
  --green-deep: #2a3b37;
  --green-mid: #4a615b;
  --cream-soft: #fffdf8;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --util-h: 42px;
  --pad: clamp(1rem, 4vw, 2.25rem);
  --max: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--cream);
  --fg: var(--green);
  --muted: rgba(54, 75, 70, 0.72);
  --card: var(--cream-soft);
  --line: rgba(54, 75, 70, 0.16);
  --util-bg: var(--green);
  --util-fg: var(--cream);
  --btn-bg: var(--green);
  --btn-fg: var(--cream);
  --shadow: 0 18px 40px rgba(54, 75, 70, 0.12);
  --theme-color: #f9f6ee;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--green);
  --fg: var(--cream);
  --muted: rgba(249, 246, 238, 0.74);
  --card: #314540;
  --line: rgba(249, 246, 238, 0.16);
  --util-bg: var(--green-deep);
  --util-fg: var(--cream);
  --btn-bg: var(--cream);
  --btn-fg: var(--green);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --theme-color: #364b46;
}
html[data-theme="dark"] .utility-nav {
  background: #2a3b37;
  color: #f9f6ee;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #364b46;
  color: var(--fg);
  background: #f9f6ee;
  background: var(--bg);
  min-height: 100vh;
}
html[data-theme="dark"] body {
  color: #f9f6ee;
  background: #364b46;
}
html[data-theme="dark"] .welcome,
html[data-theme="dark"] .section,
html[data-theme="dark"] .site-footer {
  background: #364b46;
  color: #f9f6ee;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--green);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}
.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Utility nav */
.utility-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 42px;
  height: var(--util-h);
  background: #364b46;
  background: var(--util-bg);
  color: #f9f6ee;
  color: var(--util-fg);
  border-bottom: 1px solid rgba(249, 246, 238, 0.12);
}

.utility-nav .wrap {
  height: 100%;
  overflow: hidden;
}

.utility-contact {
  float: left;
  display: flex;
  align-items: center;
  height: 42px;
  height: var(--util-h);
}
.utility-contact > * + * {
  margin-left: 1.15rem;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f9f6ee;
  color: var(--util-fg);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.92;
  line-height: 42px;
  line-height: var(--util-h);
}
.utility-link:hover {
  opacity: 1;
}
.utility-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.util-label {
  opacity: 0.7;
  margin-right: 0.35rem;
}

.utility-tools {
  float: right;
  height: 42px;
  height: var(--util-h);
  white-space: nowrap;
}
.utility-tools::before {
  content: "";
  display: inline-block;
  height: 42px;
  height: var(--util-h);
  vertical-align: middle;
}
.lang-switch {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
}
.lang-switch a {
  color: #f9f6ee;
  color: var(--util-fg);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.4rem;
  opacity: 0.7;
  text-transform: uppercase;
}
.lang-switch a[aria-current="page"] {
  opacity: 1;
  box-shadow: inset 0 -1px 0 currentColor;
}

.lang-select {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
  margin: 0 0.35rem 0 0;
  background-color: #f9f6ee;
  color: #364b46;
  border: 1px solid #f9f6ee;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.7rem 0.4rem 0.75rem;
  cursor: pointer;
  line-height: 1.2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23364b46' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 10px 7px;
}

.theme-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f9f6ee;
  color: var(--util-fg);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  box-shadow: none;
}
.theme-toggle:hover {
  background: transparent;
  opacity: 0.8;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0;
}
.theme-toggle .icon-sun {
  display: none;
}
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* Welcome */
.welcome {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  min-height: calc(100svh - 42px);
  min-height: calc(100svh - var(--util-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.welcome .wrap {
  position: relative;
  z-index: 1;
}

.welcome-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.welcome-lines span {
  position: absolute;
  top: var(--t);
  left: var(--l);
  width: var(--w);
  height: var(--h);
  background: currentColor;
  opacity: 0;
  transform: rotate(var(--a)) translate3d(-18%, -18%, 0);
  transform-origin: 0 50%;
  animation: welcome-line var(--dur) ease-in-out var(--del) infinite;
}
html[data-theme="light"] .welcome-lines {
  color: #364b46;
}
html[data-theme="dark"] .welcome-lines {
  color: #f9f6ee;
}

@keyframes welcome-line {
  0% {
    opacity: 0;
    transform: rotate(var(--a)) translate3d(-24%, -24%, 0);
  }
  12% {
    opacity: 0.16;
  }
  38% {
    opacity: 0.08;
    transform: rotate(var(--a)) translate3d(18%, 18%, 0);
  }
  62% {
    opacity: 0.2;
    transform: rotate(var(--a)) translate3d(42%, 42%, 0);
  }
  82% {
    opacity: 0.05;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translate3d(72%, 72%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-lines span {
    animation: none;
    opacity: 0.08;
    transform: rotate(var(--a));
  }
}

.welcome-logo {
  width: min(34rem, 88vw);
  margin: 0 auto 1.75rem;
}
.welcome-logo img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}
html[data-theme="light"] .logo-light {
  mix-blend-mode: multiply;
}
.logo-dark {
  display: none;
}
html[data-theme="dark"] .logo-light {
  display: none;
}
html[data-theme="dark"] .logo-dark {
  display: block;
}

.welcome-tagline {
  font-family: "Cinzel", Palatino, serif;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.welcome-intro {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: rgba(54, 75, 70, 0.72);
  color: var(--muted);
  font-size: 1.08rem;
}
html[data-theme="dark"] .welcome-intro,
html[data-theme="dark"] .lede,
html[data-theme="dark"] .service-copy p,
html[data-theme="dark"] .footer-meta,
html[data-theme="dark"] .copyright,
html[data-theme="dark"] .form-hint {
  color: rgba(249, 246, 238, 0.74);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #364b46;
  background: var(--btn-bg);
  color: #f9f6ee;
  color: var(--btn-fg);
  text-decoration: none;
  border: 1px solid #364b46;
  border-color: var(--btn-bg);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), opacity 180ms;
}
html[data-theme="dark"] .btn {
  background: #f9f6ee;
  color: #364b46;
  border-color: #f9f6ee;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.section {
  padding: 4.5rem 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.55rem;
}

.section h2,
.section h1 {
  font-family: "Cinzel", Palatino, serif;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

/* Main service */
.service-grid {
  overflow: hidden;
}
.service-copy {
  float: left;
  width: 42%;
  padding-right: 2rem;
  box-sizing: border-box;
}
.service-figure {
  float: right;
  width: 54%;
}

.service-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  white-space: pre-line;
}

.service-figure {
  margin: 0;
  cursor: zoom-in;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}
.service-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-figure figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(54, 75, 70, 0.82);
  color: #f9f6ee;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.gallery {
  clear: both;
  margin-top: 0.9rem;
  overflow: hidden;
}
.gallery button {
  appearance: none;
  border: 0;
  padding: 0;
  background: #fffdf8;
  background: var(--card);
  cursor: zoom-in;
  float: left;
  width: 15%;
  margin: 0 2% 0.55rem 0;
}
.gallery button:nth-child(6n) {
  margin-right: 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery button:hover img,
.service-figure:hover img {
  filter: brightness(1.04);
}

/* Extra services — inverted */
.section-services {
  background: #364b46;
  color: #f9f6ee;
}
html[data-theme="dark"] .section-services {
  background: #f9f6ee;
  color: #364b46;
}
.section-services .kicker,
.section-services .lede,
.section-services .service-item p {
  color: rgba(249, 246, 238, 0.78);
}
html[data-theme="dark"] .section-services .kicker,
html[data-theme="dark"] .section-services .lede,
html[data-theme="dark"] .section-services .service-item p {
  color: rgba(54, 75, 70, 0.78);
}

.service-list {
  overflow: hidden;
  border: 0;
}
.service-item {
  float: left;
  width: 50%;
  box-sizing: border-box;
  background: transparent;
  padding: 1.25rem 1.75rem 1.25rem 0;
  border: 0;
}
html[data-theme="dark"] .service-item {
  background: transparent;
}
.service-item h3 {
  font-family: "Cinzel", Palatino, serif;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.slash-mark {
  width: 1.35rem;
  height: 0.85rem;
  flex-shrink: 0;
  display: block;
}
.service-item p {
  margin: 0;
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  overflow: hidden;
}
.contact-form {
  float: left;
  width: 56%;
  padding-right: 2rem;
  box-sizing: border-box;
}
.contact-aside {
  float: right;
  width: 40%;
}

.form-row {
  margin-bottom: 0.95rem;
}
.form-row-split {
  overflow: hidden;
  display: flex;
  gap: 0.9rem;
}
.form-row-split > .form-row {
  float: left;
  width: 48%;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
}
.form-row-split > .form-row + .form-row {
  float: right;
}
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: #364b46;
  color: var(--fg);
  background: #fffdf8;
  background: var(--card);
  border: 1px solid rgba(54, 75, 70, 0.16);
  border-color: var(--line);
  padding: 0.7rem 0.8rem;
  border-radius: 0;
}
html[data-theme="dark"] .form-row input,
html[data-theme="dark"] .form-row textarea {
  color: #f9f6ee;
  background: #314540;
}
.form-row textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.form-status.ok {
  color: var(--fg);
}
.form-status.err {
  color: #9b2c2c;
}
html[data-theme="dark"] .form-status.err {
  color: #f3c1c1;
}

.form-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.7rem 0 0;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
  font-size: 0.92rem;
}
.form-consent input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}

.contact-aside {
  background: #fffdf8;
  background: var(--card);
  border: 1px solid rgba(54, 75, 70, 0.16);
  border-color: var(--line);
  padding: 1.4rem 1.3rem;
}
html[data-theme="dark"] .contact-aside {
  background: #314540;
}
.contact-aside h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
}
.contact-aside dl {
  margin: 0;
}
.contact-aside dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 0.75rem;
}
.contact-aside dt:empty {
  display: none;
}
.contact-aside dd {
  margin: 0.15rem 0 0;
}
.contact-aside a {
  text-decoration: none;
}
.contact-aside a:hover {
  text-decoration: underline;
}

/* Partners */
.section-partners {
  padding: 2.6rem 0 2.4rem;
}
.section-partners h2 {
  margin-bottom: 1.35rem;
}
.section-partners .lede {
  margin-bottom: 1.35rem;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
}
.partner-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  background: #fff;
  padding: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms var(--ease);
}
html[data-theme="dark"] .partner-item {
  background: #f9f6ee;
}
.partner-item img {
  height: 5rem;
  width: auto;
  max-width: min(16rem, 78vw);
  object-fit: contain;
}
.partner-item:hover {
  transform: translateY(-1px);
}
.partner-item:focus {
  outline: none;
}
.partner-item:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Customer feedback — inverted band above the footer */
.section.section-feedback {
  background: #364b46;
  color: #f9f6ee;
  text-align: center;
  border-top: 0;
  padding: 3.6rem 0 3.1rem;
}
html[data-theme="dark"] .section.section-feedback {
  background: #f9f6ee;
  color: #364b46;
}
.section-feedback .kicker {
  opacity: 1;
  color: rgba(249, 246, 238, 0.82);
}
html[data-theme="dark"] .section-feedback .kicker,
html[data-theme="dark"] .section-feedback .feedback-detail {
  color: rgba(54, 75, 70, 0.72);
}
.section-feedback h2 {
  margin-bottom: 1.5rem;
}
.feedback-viewport {
  display: grid;
  max-width: 40rem;
  margin: 0 auto;
}
.feedback-slide {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 480ms var(--ease), visibility 0s linear 480ms;
}
.feedback-slide.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 480ms var(--ease);
}
.feedback-mark {
  display: block;
  font-family: "Cinzel", Palatino, serif;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  opacity: 0.55;
  margin: 0 0 0.35rem;
}
.feedback-slide p {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  font-style: italic;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.feedback-slide footer {
  margin-top: 1.25rem;
  font-style: normal;
}
.feedback-name {
  display: block;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.feedback-detail {
  display: block;
  margin-top: 0.28rem;
  color: rgba(249, 246, 238, 0.82);
  font-size: 0.95rem;
}
.feedback-controls {
  margin-top: 1.5rem;
  text-align: center;
}
.feedback-nav,
.feedback-pause,
.feedback-dots {
  display: inline-block;
  vertical-align: middle;
}
.feedback-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}
.feedback-nav,
.feedback-pause,
.feedback-dot {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-family: var(--font-body);
  color: inherit;
}
.feedback-nav {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(249, 246, 238, 0.45);
  background: transparent;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
}
html[data-theme="dark"] .feedback-nav {
  border-color: rgba(54, 75, 70, 0.35);
}
.feedback-nav:hover,
.feedback-pause:hover {
  opacity: 0.75;
}
.feedback-dots {
  display: inline-block;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  max-width: min(100%, 18rem);
}
.feedback-dot {
  width: 1.7rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.feedback-dot::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  right: 0.28rem;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(249, 246, 238, 0.4);
}
html[data-theme="dark"] .feedback-dot::before {
  background: rgba(54, 75, 70, 0.28);
}
.feedback-dot[aria-selected="true"]::before {
  height: 3px;
  background: currentColor;
}
.feedback-pause {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.4rem 0.15rem;
}
.section-feedback :focus-visible {
  outline-color: currentColor;
}
@media (max-width: 640px) {
  .section.section-feedback {
    padding: 2.7rem 0 2.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-slide,
  .feedback-slide.is-on {
    transition: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-logo {
  width: min(14rem, 70vw);
  height: auto;
}
html[data-theme="dark"] .footer-logo {
  mix-blend-mode: screen;
}
html[data-theme="light"] .footer-logo {
  filter: invert(1);
}
.footer-meta {
  color: var(--muted);
  margin: 0.35rem 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}
.footer-nav a,
.footer-nav .link-btn {
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: inherit;
  white-space: nowrap;
  margin: 0 1rem 0.4rem 0;
}
.copyright {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-badge {
  display: block;
  margin: 1.6rem auto 0;
  height: 3.4rem;
  width: auto;
  max-width: min(13rem, 72vw);
}
.footer-badge-dark {
  display: none;
}
html[data-theme="dark"] .footer-badge-light {
  display: none;
}
html[data-theme="dark"] .footer-badge-dark {
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--green) 92%, black);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.2rem 4.2rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  text-align: center;
  color: var(--cream);
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0 4rem;
  pointer-events: none;
}
.lightbox-btn {
  position: absolute;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  background: transparent;
  color: var(--cream);
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lightbox-close {
  top: 0.8rem;
  right: 0.8rem;
}
.lightbox-prev {
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-btn:hover {
  background: color-mix(in srgb, var(--cream) 12%, transparent);
}

body.lb-open,
body.modal-open {
  overflow: hidden;
}

/* Cookie policy on the page */
.section-legal {
  padding: 3rem 0;
}
.legal-body {
  max-width: 40rem;
  color: var(--muted);
  white-space: pre-line;
}

/* Policy modal */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(54, 75, 70, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.policy-modal.is-open {
  display: flex;
}
.policy-panel {
  background: #f9f6ee;
  color: #364b46;
  max-width: 36rem;
  width: 100%;
  max-height: min(80vh, 40rem);
  overflow: auto;
  padding: 1.6rem 1.5rem 1.8rem;
  position: relative;
}
html[data-theme="dark"] .policy-panel {
  background: #2a3b37;
  color: #f9f6ee;
}
.policy-panel h2 {
  font-family: "Cinzel", Palatino, serif;
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 2rem 1rem 0;
  font-size: 1.35rem;
}
.policy-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.policy-text {
  white-space: pre-line;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.cookie-actions .btn {
  flex: 1 1 8rem;
}
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
html[data-theme="dark"] .btn-ghost {
  background: transparent;
  color: #f9f6ee;
  border-color: #f9f6ee;
}
.cookie-actions .is-chosen {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.toast {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  background: #364b46;
  color: #f9f6ee;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms, transform 180ms;
}
.toast.is-on {
  opacity: 1;
  transform: none;
}
html[data-theme="dark"] .toast {
  background: #f9f6ee;
  color: #364b46;
}

@media (max-width: 860px) {
  .service-copy,
  .service-figure,
  .contact-form,
  .contact-aside,
  .service-item {
    float: none;
    width: 100%;
    padding-right: 0;
  }
  .service-figure {
    margin-top: 1.2rem;
  }
  .gallery button {
    width: 31.3%;
  }
  .gallery button:nth-child(6n) {
    margin-right: 2%;
  }
  .gallery button:nth-child(3n) {
    margin-right: 0;
  }
  .form-row-split {
    display: flex;
  }
  .utility-link .util-label,
  .utility-link .util-value {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .utility-link {
    width: 36px;
    justify-content: center;
    line-height: 1;
  }
  .utility-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .lang-switch {
    display: none;
  }
  .lang-select {
    display: inline-block;
  }
  .welcome {
    padding: 2.4rem 0 3rem;
    min-height: 70vh;
  }
  .gallery button {
    width: 48%;
  }
  .gallery button:nth-child(3n) {
    margin-right: 2%;
  }
  .gallery button:nth-child(2n) {
    margin-right: 0;
  }
  .lightbox {
    padding: 4rem 0.6rem 6.4rem;
  }
  .lightbox-caption {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 3.5rem;
    padding: 0 0.2rem;
    font-size: 0.82rem;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.7rem;
    transform: none;
  }
  .lightbox-prev {
    left: 0.7rem;
  }
  .lightbox-next {
    right: 0.7rem;
  }
}
