:root {
  --forest: #18251d;
  --olive: #3f4b34;
  --olive-soft: #6b735b;
  --ivory: #f4efe5;
  --warm-white: #fbf7ef;
  --stone: #d8cdbd;
  --walnut: #5b3b24;
  --brass: #b08a4a;
  --copper: #8d4e2f;
  --ink: #172018;
  --muted: #6e7469;
  --line: rgba(24, 37, 29, 0.14);
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Optima, Candara, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(22px, 4vw, 64px);
  background: rgba(244, 239, 229, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.brand-mark,
.brand-text,
.main-nav,
.header-actions,
.language-switcher,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 54px;
  height: 34px;
  color: var(--brass);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-text {
  align-items: flex-start;
  flex-direction: column;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--olive-soft);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
}

.brand-text strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.main-nav {
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  color: var(--olive);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.main-nav a:hover {
  color: var(--forest);
  border-color: var(--brass);
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
  min-width: max-content;
  flex-wrap: nowrap;
}

.language-switcher {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
}

.language-switcher button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  color: var(--olive);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ivory);
  background: var(--forest);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--forest);
  border-radius: 0;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-cta,
.button.primary {
  color: var(--ivory);
  background: var(--forest);
}

.nav-cta:hover,
.button.primary:hover {
  color: var(--forest);
  background: transparent;
}

.button.secondary {
  color: var(--ivory);
  border-color: rgba(244, 239, 229, 0.52);
  background: transparent;
}

.button.secondary.dark {
  color: var(--forest);
  border-color: var(--line);
}

.button.secondary.dark:hover {
  color: var(--ivory);
  background: var(--forest);
}

.text-link {
  display: inline-block;
  margin-top: 34px;
  color: var(--forest);
  border-bottom: 1px solid var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: flex-end;
  padding: clamp(44px, 7vw, 90px);
  overflow: hidden;
  background: var(--forest);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 27, 21, 0.68), rgba(19, 27, 21, 0.18) 55%, rgba(19, 27, 21, 0.04)),
    linear-gradient(0deg, rgba(19, 27, 21, 0.62), rgba(19, 27, 21, 0.02) 56%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    url("https://cdn.midjourney.com/4a5cf614-ebf8-4be7-9995-0ee6d5b66a6b/0_2.png"),
    url("https://www.brda.si/img/2024021512034840/mid/Brda_landscape_hills_Zoso_Photography.jpg?m=1707995030");
  background-position: center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.04) brightness(0.96);
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  color: var(--ivory);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6.6vw, 6.9rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.25rem, 4.4vw, 4.65rem);
  line-height: 1;
}

h3 {
  font-size: 1.34rem;
  line-height: 1.15;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(244, 239, 229, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--forest);
}

.brand-strip span {
  min-height: 112px;
  display: flex;
  align-items: center;
  padding: 24px clamp(20px, 3vw, 36px);
  color: rgba(244, 239, 229, 0.78);
  border-right: 1px solid rgba(244, 239, 229, 0.15);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(88px, 11vw, 168px) clamp(24px, 5vw, 88px);
}

.opening,
.inquiry-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}

.opening > p,
.feature-copy p,
.location-panel p,
.inquiry-section p,
.ritual-grid p,
.photo-credit,
.identity-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  background: var(--ivory);
}

.feature-copy p {
  margin-top: 24px;
}

.text-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.text-list li {
  padding-top: 14px;
  color: var(--olive);
  border-top: 1px solid var(--line);
}

.image-frame {
  position: relative;
  min-height: min(680px, 72vh);
  margin: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.03) brightness(0.97);
}

.image-frame figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  max-width: 340px;
  padding: 11px 14px;
  color: var(--ivory);
  background: rgba(24, 37, 29, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-image-house {
  background-image: url("https://cdn.midjourney.com/1763362f-4789-46cb-8724-f63905052a7f/0_0.png");
}

.video-section {
  background: var(--forest);
}

.video-section .section-heading {
  color: var(--ivory);
}

.video-section h2 {
  color: var(--ivory);
}

.feature-video {
  width: 100%;
  max-height: min(760px, 78vh);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(244, 239, 229, 0.18);
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(42px, 6.4vw, 88px);
}

.section-heading.narrow {
  max-width: 680px;
}

.rituals {
  background: var(--warm-white);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ritual-grid article {
  min-height: 330px;
  padding: clamp(32px, 4.4vw, 54px);
  background: var(--ivory);
}

.ritual-grid span {
  display: block;
  margin-bottom: 56px;
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.ritual-grid h3 {
  margin-bottom: 18px;
}

.identity-section {
  background: #202a22;
  color: var(--ivory);
}

.identity-section h2 {
  color: var(--ivory);
}

.identity-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.25fr;
  gap: 14px;
}

.identity-grid img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.92);
}

.location-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.04fr) minmax(280px, 0.96fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: center;
  background: var(--ivory);
}

.location-image {
  min-height: min(700px, 74vh);
  background-image: url("https://www.brda.si/img/2024021214545070/mid/Smartno-medieval-village-goriska-brda-2.jpg?m=1707746091");
  background-position: center;
  background-size: cover;
  filter: saturate(0.86) contrast(1.03) brightness(0.95);
}

.location-panel p {
  margin-top: 24px;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.location-list span {
  padding: 18px;
  color: var(--olive);
  background: var(--warm-white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-section {
  background: var(--warm-white);
}

.gallery-copy {
  max-width: 700px;
  margin-bottom: 50px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: min(420px, 44vw);
  object-fit: cover;
  filter: saturate(0.84) contrast(1.03) brightness(0.94);
}

.photo-credit {
  margin-top: 18px;
  font-size: 0.86rem;
}

.photo-credit a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inquiry-section {
  background: var(--forest);
  color: var(--ivory);
}

.inquiry-section h2 {
  color: var(--ivory);
}

.inquiry-section p {
  color: rgba(244, 239, 229, 0.72);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(244, 239, 229, 0.22);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(244, 239, 229, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

input,
textarea {
  width: 100%;
  padding: 14px 0;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 229, 0.32);
  border-radius: 0;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 239, 229, 0.44);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(22px, 5vw, 82px);
  color: rgba(244, 239, 229, 0.68);
  background: #111812;
}

.site-footer span:first-child {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  min-height: calc(100vh - 82px);
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}

.detail-hero-copy {
  align-self: end;
  padding: clamp(70px, 9vw, 132px) clamp(24px, 5vw, 88px);
}

.detail-hero-copy h1 {
  max-width: 720px;
}

.detail-hero-copy p:not(.eyebrow),
.detail-overview p,
.detail-closing p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.detail-hero-image {
  min-height: 100%;
  margin: 0;
}

.detail-hero-image img,
.detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03) brightness(0.96);
}

.detail-overview,
.detail-closing {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
}

.detail-spec-grid span {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--olive);
  background: var(--warm-white);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-gallery-section {
  background: var(--warm-white);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  position: relative;
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  background: var(--forest);
}

.detail-card.wide {
  grid-column: span 2;
}

.detail-card.tall {
  grid-row: span 2;
  min-height: 720px;
}

.detail-card figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 22px;
  color: rgba(244, 239, 229, 0.8);
  background: linear-gradient(0deg, rgba(18, 28, 21, 0.86), rgba(18, 28, 21, 0));
}

.detail-card figcaption strong {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.detail-card figcaption span {
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.detail-closing {
  background: var(--forest);
  color: var(--ivory);
}

.detail-closing h2 {
  color: var(--ivory);
}

.detail-closing p {
  color: rgba(244, 239, 229, 0.72);
  margin-top: 0;
}

.detail-closing .button {
  margin-top: 28px;
  border-color: rgba(244, 239, 229, 0.52);
}

.form-response {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(42px, 8vw, 96px);
  background: var(--warm-white);
}

.form-response section {
  max-width: 780px;
}

.form-response p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .brand-strip,
  .ritual-grid,
  .identity-grid,
  .gallery,
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .opening,
  .split-section,
  .location-section,
  .inquiry-section,
  .detail-hero,
  .detail-overview,
  .detail-closing {
    grid-template-columns: 1fr;
  }

  .detail-hero-image {
    min-height: 560px;
    order: -1;
  }

  .detail-card.wide,
  .detail-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .location-image {
    order: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .language-switcher button {
    min-width: 30px;
    min-height: 30px;
    padding: 0 6px;
  }

  .hero {
    min-height: 88vh;
    padding: 32px 18px;
  }

  .brand-strip,
  .ritual-grid,
  .identity-grid,
  .gallery,
  .location-list,
  .detail-gallery,
  .detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .brand-strip span {
    min-height: 76px;
  }

  .section {
    padding: 78px 22px;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1.04;
  }

  .hero-content p:not(.eyebrow) {
    margin-top: 24px;
    font-size: 1.02rem;
  }

  .image-frame,
  .location-image,
  .detail-hero-image,
  .detail-card,
  .detail-card.tall {
    min-height: 420px;
  }

  .detail-hero-copy {
    padding: 76px 22px;
  }

  .detail-card figcaption {
    padding: 18px;
  }

  .gallery img {
    height: 320px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
