:root {
  --color-bg: #241f1d;
  --color-bg-alt: #2c2624;
  --color-bg-card: #2c2624;
  --color-text: #c9a882;
  --color-text-strong: #e8d5b7;
  --color-text-muted: #a9906f;
  --color-accent: #c9a882;
  --color-accent-contrast: #241f1d;
  --color-border: rgba(201, 168, 130, 0.2);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Jost', 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(36, 31, 29, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.logo-img { height: 20px; width: auto; }

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.filter-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--color-accent); color: var(--color-text-strong); }

.filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-contrast);
}

.lang-switch { display: flex; gap: 4px; border-left: 1px solid var(--color-border); padding-left: 16px; }

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.lang-btn.is-active { background: rgba(201, 168, 130, 0.14); color: var(--color-text-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); display: block; }

/* ---------- Hero (full-bleed photo slideshow) ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-media img.is-active { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.55) 0%, rgba(20, 17, 15, 0.35) 40%, rgba(20, 17, 15, 0.85) 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: 0 24px; }

.hero-logo { width: 200px; height: auto; margin: 0 auto 30px; opacity: 0.96; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: 0.03em;
  margin: 0 0 22px;
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle { font-size: 1.08rem; color: #ece2d3; margin: 0 0 36px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }

.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  z-index: 2;
}

.hero-scroll-cue::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes cue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}

/* ---------- Intro ---------- */

.intro { max-width: 720px; margin: 90px auto 10px; padding: 0 24px; text-align: center; }

.intro-title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--color-text-strong);
  margin: 0 0 16px;
}

.intro-text { color: var(--color-text-muted); font-size: 1.02rem; margin: 0; }

/* ---------- Cards (magazine photo grid) ---------- */

.cards-section { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px 20px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 22px;
}

.card {
  grid-column: span 6;
  grid-row: span 2;
  background: var(--color-bg-card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

@media (min-width: 620px) {
  .card { grid-column: span 3; }
  .card.featured { grid-column: span 6; grid-row: span 3; flex-direction: row; }
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-media {
  position: relative;
  flex: 1 1 62%;
  min-height: 0;
  overflow: hidden;
  background: #1a1614;
}

.card.featured .card-media { flex: 1 1 58%; }

@media (min-width: 620px) {
  .card.featured .card-media { flex: 0 0 56%; }
  .card.featured .card-footer { flex: 0 0 44%; }
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease, transform 6s ease;
  transform: scale(1.02);
}

.card-media img.is-active { opacity: 1; transform: scale(1.08); }

.card-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 65%;
  background: linear-gradient(180deg, transparent, rgba(15, 13, 11, 0.92));
  pointer-events: none;
}

.card-media-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  z-index: 2;
}

.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1.25rem;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.card.featured .card-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.card-location-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(36, 31, 29, 0.72);
  backdrop-filter: blur(4px);
  color: #f1e6d4;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 5px;
  z-index: 3;
}

.card-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.card-dots span.is-active { background: #fff; transform: scale(1.2); }

.card-footer {
  flex: 1 1 38%;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-desc { font-size: 0.88rem; color: var(--color-text); margin: 0; flex: 1; }

.card.featured .card-desc { font-size: 0.98rem; }

.fact-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.fact-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
  background: rgba(201, 168, 130, 0.12);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.card-cta {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

.card-cta:hover { color: var(--color-accent); }

/* ---------- CTA section ---------- */

.cta-section { max-width: 720px; margin: 100px auto 110px; padding: 0 24px; text-align: center; }

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-strong);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.cta-section p { color: var(--color-text-muted); margin: 0; }

/* ---------- Footer (light contrast panel, echoing offers.familiaris.info) ---------- */

.site-footer { background: #ddc7a3; color: #3a2f26; }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-logo { height: 22px; width: auto; margin-bottom: 10px; filter: brightness(0) saturate(100%) invert(17%) sepia(16%) saturate(1200%) hue-rotate(346deg) brightness(90%); }

.footer-col h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b5a45;
  margin: 0 0 12px;
}

.footer-col p { margin: 0 0 6px; font-size: 0.9rem; }
.footer-col a { text-decoration: none; color: #3a2f26; }
.footer-col a:hover { text-decoration: underline; }

.lang-switch--footer { border-left: none; padding-left: 0; }
.lang-switch--footer .lang-btn { color: #6b5a45; }
.lang-switch--footer .lang-btn.is-active { background: rgba(58, 47, 38, 0.1); color: #241f1d; }

.footer-bottom {
  border-top: 1px solid rgba(58, 47, 38, 0.18);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 40px;
  font-size: 0.76rem;
  color: #6b5a45;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-legal a { text-decoration: none; color: #6b5a45; }
.footer-legal a:hover { color: #241f1d; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 420px;
  background: #fff;
  color: #2b2621;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.cookie-inner { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; }

.cookie-text { font-size: 0.85rem; line-height: 1.55; margin: 0; color: #4a4038; }

.cookie-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #cfc4ac;
  display: inline-block;
  flex-shrink: 0;
}

.toggle-switch.is-locked { background: #b9ac8f; opacity: 0.8; }

.toggle-knob {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
}

.cookie-accept {
  align-self: flex-start;
  background: #241f1d;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-accept:hover { background: #3e3634; }

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .filter-nav { display: none; }
  .lang-switch:not(.lang-switch--footer) { display: none; }
  .nav-toggle { display: flex; }

  .header-inner.is-open .filter-nav,
  .header-inner.is-open .lang-switch { display: flex; }

  .header-inner.is-open { flex-wrap: wrap; }

  .header-inner.is-open .filter-nav { order: 3; width: 100%; padding-top: 12px; }
  .header-inner.is-open .lang-switch { border-left: none; padding-left: 0; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero-logo { width: 150px; }
}
