/*
Theme Name: Wind Ejendomme
Theme URI: https://wind-ejendomme.dk
Author: Wind Ejendomme
Description: Let specialbygget WordPress-tema til Wind Ejendomme fase 1.
Version: 1.0.21
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: wind-ejendomme
*/

:root {
  --background: #0f1113;
  --foreground: #f2f2ee;
  --muted: #a9adb0;
  --paper: #181b1e;
  --line: #303438;
  --accent: #f4f0e8;
  --content-width: 1460px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #111315 0%, var(--background) 28rem);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

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

.site-header {
  align-items: center;
  background: rgba(15, 17, 19, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 1.4rem;
  justify-content: space-between;
  left: 0;
  padding: 1rem max(1.5rem, calc((100vw - var(--content-width)) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo,
.custom-logo {
  display: block;
  height: 4.35rem;
  object-fit: contain;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.78rem 1.05rem;
  text-transform: uppercase;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 6px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 0.34rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.menu-toggle-line {
  background: #fff;
  display: block;
  height: 2px;
  width: 1.35rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible,
.details-link:focus-visible,
.rental-title-link:focus-visible,
.text-link:focus-visible,
.skip-link:focus-visible {
  background: #25282b;
  box-shadow: 0 0 0 3px rgba(244, 240, 232, 0.45);
  outline: none;
}

.skip-link {
  background: var(--accent);
  color: #0a0b0c;
  font-weight: 900;
  left: 1rem;
  padding: 0.8rem 1rem;
  position: absolute;
  top: -10rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

body.menu-open {
  overflow: hidden;
}

.hero-split {
  align-items: center;
  background: #111315;
  color: #fff;
  display: grid;
  gap: clamp(2rem, 3.4vw, 4rem);
  grid-template-columns: minmax(24rem, 0.86fr) minmax(34rem, 1.14fr);
  min-height: clamp(520px, 42vw, 620px);
  overflow: hidden;
  padding: clamp(2.75rem, 4vw, 4.5rem) max(1.5rem, calc((100vw - var(--content-width)) / 2));
}

.hero-copy {
  max-width: 40rem;
  min-width: 0;
}

.hero h1,
.page-title {
  color: #fff;
  font-size: clamp(2.25rem, 4.3vw, 4.25rem);
  line-height: 1.04;
  margin: 0 0 1.25rem;
  max-width: 17ch;
  overflow-wrap: break-word;
}

.hero-lead,
.lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-rotator {
  background: #181b1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.18);
  height: clamp(29rem, 37vw, 36rem);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.hero-rotator-slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 900ms ease;
}

.hero-rotator-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-rotator-image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  width: 100%;
}

.hero-rotator-slide:nth-child(1) .hero-rotator-image {
  object-position: center 62%;
}

.hero-rotator-slide:nth-child(2) .hero-rotator-image {
  object-position: center 56%;
}

.hero-rotator-slide:nth-child(3) .hero-rotator-image,
.hero-rotator-slide:nth-child(4) .hero-rotator-image {
  object-position: center 58%;
}

.button,
.details-link,
.wp-block-button__link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary,
.details-link,
.wp-block-button__link {
  background: var(--accent);
  color: #0a0b0c;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.section,
.content-wrap,
.contact-section {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: clamp(2.8rem, 4.2vw, 4rem) 1.5rem;
}

.facts-strip {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 0 1.5rem;
  transform: translateY(-1rem);
}

.fact-item {
  align-items: center;
  background: rgba(24, 27, 30, 0.96);
  border: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  min-width: 0;
  min-height: 6.15rem;
  padding: 1.2rem 1.3rem;
}

.fact-item:first-child {
  border-radius: 8px 0 0 8px;
}

.fact-item:last-child {
  border-radius: 0 8px 8px 0;
}

.fact-icon {
  align-items: center;
  color: rgba(244, 240, 232, 0.92);
  display: inline-flex;
  flex: 0 0 clamp(1.875rem, 2.35vw, 2.25rem);
  height: clamp(1.875rem, 2.35vw, 2.25rem);
  justify-content: center;
  width: clamp(1.875rem, 2.35vw, 2.25rem);
}

.fact-icon svg {
  display: block;
  fill: none;
  height: clamp(1.875rem, 2.35vw, 2.25rem);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: clamp(1.875rem, 2.35vw, 2.25rem);
}

.fact-icon-area svg {
  height: clamp(2.05rem, 2.55vw, 2.45rem);
  width: clamp(2.05rem, 2.55vw, 2.45rem);
}

.fact-icon-tools svg {
  height: clamp(1.75rem, 2.15vw, 2.05rem);
  width: clamp(1.75rem, 2.15vw, 2.05rem);
}

.fact-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.fact-copy strong {
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.2;
}

.fact-copy span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

h2 {
  color: var(--accent);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  margin: 0;
  max-width: 16ch;
}

.facts-strip + .section {
  padding-top: clamp(1.4rem, 2vw, 2.2rem);
}

.section + .section,
.section + .contact-section {
  padding-top: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

.property-grid,
.rental-grid,
.values-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.section > .rental-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 520px));
  justify-content: start;
}

.property-card,
.rental-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rental-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: border-color 160ms ease, background-color 160ms ease;
  width: 100%;
}

.rental-card:hover,
.rental-card:focus-within {
  border-color: rgba(244, 240, 232, 0.3);
}

.property-media,
.rental-media {
  background: #101214;
  cursor: pointer;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.property-media img,
.rental-media img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
  width: 100%;
}

.rental-card:hover .rental-media img,
.rental-media:focus-visible img {
  filter: brightness(1.07);
  transform: scale(1.015);
}

.status-badge,
.example-badge {
  background: rgba(10, 11, 12, 0.82);
  border: 1px solid rgba(244, 240, 232, 0.32);
  border-radius: 999px;
  color: #f4f0e8;
  font-size: 0.82rem;
  font-weight: 950;
  padding: 0.45rem 0.8rem;
  position: absolute;
  right: 0.8rem;
  text-transform: uppercase;
  top: 0.8rem;
}

.example-badge {
  background: rgba(36, 39, 42, 0.9);
  letter-spacing: 0.04em;
  left: 0.8rem;
  right: auto;
}

.property-content,
.rental-content,
.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.15rem;
}

.property-content {
  flex: 1;
}

.rental-content {
  flex: 1;
}

.rental-title-link {
  color: inherit;
  cursor: pointer;
  line-height: 1.18;
  overflow-wrap: normal;
  text-decoration: none;
  word-break: normal;
}

.rental-title-link:hover {
  color: var(--accent);
}

.inline-example-badge {
  background: rgba(36, 39, 42, 0.9);
  border: 1px solid rgba(244, 240, 232, 0.24);
  border-radius: 999px;
  color: #f4f0e8;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 0;
  padding: 0.38rem 0.72rem;
  text-transform: uppercase;
}

.rental-address {
  margin-top: -0.7rem;
}

.property-content p {
  margin-bottom: 0.35rem;
}

.rental-details {
  display: grid;
  gap: 0.65rem 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.25rem 0 0.15rem;
  min-width: 0;
}

.rental-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding-top: 0.55rem;
}

.rental-detail dt {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.rental-detail dd {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.rental-detail-icon {
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  flex: 0 0 20px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  width: 20px;
}

.rental-content > p {
  line-height: 1.6;
  margin-top: 0.05rem;
  overflow-wrap: normal;
  word-break: normal;
}

.rental-detail-icon svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
  width: 100%;
}

.meta-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details-link {
  margin-top: auto;
  width: 100%;
}

.fact-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.fact-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 1rem;
}

.filter-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 2rem;
  padding: 1rem;
}

.filter-form label {
  color: var(--accent);
  display: grid;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 0.4rem;
}

.filter-form select,
.filter-form button,
.contact-form input,
.contact-form textarea {
  background: #101214;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--foreground);
  min-height: 3rem;
  padding: 0 0.8rem;
}

.filter-form button {
  background: var(--accent);
  color: #0a0b0c;
  cursor: pointer;
  font-weight: 900;
  margin-top: 1.25rem;
}

.empty-state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 1.5rem;
}

.empty-state-compact {
  grid-column: 1 / -1;
  padding: 1.1rem 1.2rem;
}

.empty-state-compact p {
  margin: 0;
}

.empty-state-compact p + p {
  margin-top: 0.35rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  padding: 0.65rem 0.85rem;
}

.pagination .current {
  background: var(--accent);
  color: #0a0b0c;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.6rem max(1.5rem, calc((100vw - var(--content-width)) / 2));
}

@media (max-width: 1180px) {
  .hero-split {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .hero-rotator {
    height: clamp(24rem, 42vw, 32rem);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 30;
  }

  .main-nav {
    background: rgba(15, 17, 19, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    bottom: 0;
    box-shadow: -1.5rem 0 3rem rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: flex-start;
    max-width: 22rem;
    overflow-y: auto;
    padding: 6.5rem 1.25rem 1.25rem;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 180ms ease;
    width: min(86vw, 22rem);
    z-index: 20;
  }

  .menu-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    font-size: 1rem;
    padding: 1rem 0.2rem;
    width: 100%;
  }

  .brand-logo,
  .custom-logo {
    height: 3.45rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3rem;
  }

  .hero h1,
  .page-title {
    max-width: 13ch;
  }

  .hero-rotator {
    height: clamp(19rem, 56vw, 28rem);
  }

  .property-grid,
  .rental-grid,
  .values-grid,
  .filter-form,
  .fact-list,
  .facts-strip {
    grid-template-columns: 1fr;
  }

  .facts-strip {
    gap: 0.75rem;
    transform: none;
  }

  .fact-item,
  .fact-item:first-child,
  .fact-item:last-child {
    border-radius: 8px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .fact-icon,
  .fact-icon svg {
    flex-basis: 1.75rem;
    height: 1.75rem;
    width: 1.75rem;
  }

  .fact-icon-area svg {
    height: 1.9rem;
    width: 1.9rem;
  }

  .fact-icon-tools svg {
    height: 1.62rem;
    width: 1.62rem;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2rem, 11vw, 2.55rem);
  }

  .hero-split {
    gap: 1.7rem;
    padding: 2.35rem 1rem 3rem;
  }

  .hero-lead,
  .lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-rotator {
    height: clamp(15.5rem, 58vw, 21rem);
  }

  .facts-strip,
  .section,
  .content-wrap,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .button,
  .details-link,
  .wp-block-button__link {
    min-height: 2.85rem;
  }
}

@media (max-width: 360px) {
  .rental-details {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    font-size: 0.96rem;
    padding: 0.95rem 0.2rem;
  }

  .hero-rotator {
    height: 14.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-rotator-slide {
    transition: none !important;
  }
}
