/* ==========================================================================
 * Samlevisning landing page
 * Template: page-templates/samlevisning.php
 * Plain CSS (no build step). Loaded only on that template, see functions.php.
 * ========================================================================== */

.p-samlevisning {
  --sv-green: #1e3a28;
  --sv-green-light: #3c4d3f;
  --sv-coral: #f2896c;
  --sv-coral-dark: #e3714f;
  --sv-cream: #fbf8f1;
  --sv-ink: #1e3a28;
  --sv-white: #fff;
  --sv-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sv-gutter: 16px;
  --sv-max: 1100px;

  margin: 0;
  background: var(--sv-green);
  color: var(--sv-white);
  font-family: var(--sv-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.p-samlevisning figure {
  margin: 0;
}

.sv {
  overflow: hidden;
}

/* The theme turns on auto-hyphenation; the design doesn't use it. */
.sv,
.sv * {
  -webkit-hyphens: manual !important;
  hyphens: manual !important;
}

.sv-wrap {
  width: 100%;
  max-width: var(--sv-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sv-gutter);
  padding-right: var(--sv-gutter);
}

@media (min-width: 768px) {
  .p-samlevisning {
    --sv-gutter: 40px;
    font-size: 17px;
  }
}

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

.sv-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding-top: 220px;
  padding-bottom: 32px;
}

.sv-hero__figure {
  position: absolute;
  inset: 0 0 -1px;
  z-index: 0;
}

.sv-hero__image {
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: 70% 20%;
}

/* Fade the photo into the green, left and bottom. */
.sv-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      var(--sv-green) 0%,
      rgba(30, 58, 40, 0.85) 30%,
      rgba(30, 58, 40, 0) 70%
    ),
    linear-gradient(
      to right,
      rgba(30, 58, 40, 0.75) 0%,
      rgba(30, 58, 40, 0) 60%
    );
}

.sv-hero__content {
  position: relative;
  z-index: 1;
}

.sv-hero__kicker {
  margin: 0 0 0.25em;
  font-weight: 700;
  font-size: 1rem;
}

.sv-hero__title {
  margin: 0;
  color: var(--sv-coral);
  font-family: var(--sv-font);
  font-weight: 800;
  font-size: clamp(3.25rem, 13vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.sv-hero__date {
  margin: 0.5em 0 0;
  font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.sv-hero__place {
  margin: 0.9em 0 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.sv-hero__badge {
  position: absolute;
  right: var(--sv-gutter);
  bottom: 100%;
  margin: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--sv-coral);
  color: var(--sv-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.15;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .sv-hero {
    min-height: 700px;
    padding-top: 300px;
    padding-bottom: 48px;
  }

  .sv-hero__badge {
    bottom: 30px;
    right: 22%;
    width: 150px;
    height: 150px;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
 * Intro + signup card
 * -------------------------------------------------------------------------- */

.sv-intro {
  display: grid;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 56px;
}

.sv-intro__text p {
  margin: 0 0 1.2em;
}

.sv-intro__signoff {
  font-weight: 700;
  font-style: italic;
}

@media (min-width: 768px) {
  .sv-intro {
    grid-template-columns: 1fr minmax(320px, 400px);
    gap: 64px;
    align-items: start;
  }
}

.sv-card {
  background: var(--sv-cream);
  color: var(--sv-ink);
  padding: 24px 22px 28px;
  scroll-margin-top: 16px;
}

.sv-card__heading {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

.sv-card__heading strong {
  text-transform: uppercase;
  font-weight: 800;
}

/* Undo default editor/theme spacing on the block wrapper */
.sv-card .c-signup-form-container {
  margin: 0;
  padding: 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
 * Signup form (markup from ensign-blocks/blocks/event-signup-form.php)
 * -------------------------------------------------------------------------- */

.sv-card .c-signup-form {
  margin: 0;
}

.sv-card .c-signup-form__item {
  margin-bottom: 14px;
}

.sv-card .c-signup-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
}

.sv-card .c-signup-form__input {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1.5px solid var(--sv-ink);
  border-radius: 0;
  background: transparent;
  color: var(--sv-ink);
  font-family: var(--sv-font);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.sv-card .c-signup-form__input::placeholder {
  color: rgba(30, 58, 40, 0.35);
}

.sv-card .c-signup-form__input:focus {
  outline: none;
  border-bottom-color: var(--sv-coral-dark);
  box-shadow: 0 1.5px 0 var(--sv-coral-dark);
}

.sv-card .c-signup-form__button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 0;
  background: var(--sv-coral);
  color: var(--sv-white);
  font-family: var(--sv-font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sv-card .c-signup-form__button:hover,
.sv-card .c-signup-form__button:focus-visible {
  background: var(--sv-coral-dark);
}

.sv-card .c-signup-form__button:focus-visible {
  outline: 2px solid var(--sv-ink);
  outline-offset: 2px;
}

/* Sending / success / error states */
.sv-card .c-signup-form__header {
  margin: 0 0 8px;
  font-family: var(--sv-font);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sv-ink);
}

.sv-card .c-signup-form__text {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.sv-card .c-signup-form__progress {
  width: 100%;
  accent-color: var(--sv-coral);
}

.sv-card .c-signup-form__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.sv-card .c-signup-form__link {
  color: var(--sv-coral-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Section titles with lines either side
 * -------------------------------------------------------------------------- */

.sv-section {
  padding-bottom: 48px;
}

.sv-section__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 32px;
  color: var(--sv-white);
  font-family: var(--sv-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.sv-section__title::before,
.sv-section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}

/* --------------------------------------------------------------------------
 * Project tiles
 * -------------------------------------------------------------------------- */

.sv-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 16px;
}

@media (min-width: 768px) {
  .sv-projects {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px 24px;
  }

  .sv-projects--narrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sv-project {
  text-align: center;
}

.sv-project__link,
.sv-project__link:visited {
  display: block;
  color: var(--sv-white);
  text-decoration: none;
}

.sv-project__figure {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1;
  margin: 0 auto 14px !important;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sv-green-light);
}

.sv-project__image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sv-project__link:hover .sv-project__image,
.sv-project__link:focus-visible .sv-project__image {
  transform: scale(1.06);
}

.sv-project__city {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sv-project__name {
  margin: 0;
  color: var(--sv-coral);
  font-family: var(--sv-font);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.sv-project__size {
  margin: 2px 0 6px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.sv-project__more {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.sv-project__link:hover .sv-project__more,
.sv-project__link:focus-visible .sv-project__more {
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
 * Kommer for salg + Heime card
 * -------------------------------------------------------------------------- */

.sv-split {
  display: grid;
  gap: 48px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .sv-split {
    grid-template-columns: 1fr minmax(320px, 400px);
    gap: 64px;
    align-items: start;
  }

  .sv-split__projects {
    padding-top: 0;
  }
}

.sv-heime {
  background: var(--sv-green-light);
  padding: 28px 8px 28px;
  text-align: center;
}

.sv-heime__image {
  width: 150px;
  height: 150px !important;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sv-green);
}

.sv-heime__caption {
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
}

.sv-heime__body {
  padding: 20px 20px 0;
}

.sv-heime__title {
  margin: 0 0 14px;
  color: var(--sv-white);
  font-family: var(--sv-font);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
}

.sv-heime__body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
 * Logos
 * -------------------------------------------------------------------------- */

.sv-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 8px;
  padding-bottom: 64px;
}

/* The SVGs have no width/height attributes, so give each a width and cap it. */
.sv-logos .sv-logos__link,
.sv-logos .sv-logos__logo--heime {
  flex: 0 1 auto;
}

.sv-logos .sv-logos__link {
  display: block;
  width: 90px;
  max-width: 40%;
}

.sv-logos .sv-logos__logo {
  width: 100%;
  height: auto !important;
}

.sv-logos .sv-logos__logo--heime {
  width: 100px;
  max-width: 40%;
}

@media (min-width: 768px) {
  .sv-logos .sv-logos__link {
    width: 110px;
  }

  .sv-logos .sv-logos__logo--heime {
    width: 120px;
  }
}
