/* =========================================================
   GOLDENKEY — style.css
   Luxury real-estate design system
   Display: Cinzel  |  Body/UI: Josefin Sans
   Palette: gold / dark (unchanged)
   ========================================================= */

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

:root {
  --gold: #c7b085;
  --gold-bright: #EBBB61;
  --gold-deep: #8f7a55;
  --light: #EFEFEF;
  --ink: #333;
  --ink-soft: #666;
  --header-dark: #383838;
  --slider-bg: #F4F4F4;
  --maxw: 1385px;
  --header-h: 96px;
  --header-h-scrolled: 74px;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Josefin Sans', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: #333;
  color: var(--ink-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(90deg, #000 0%, #383838 63%, #c7b085 63%, #c7b085 100%);
  transition: height .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

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

.logo { display: block; flex: 0 0 auto; }

.logo img {
  width: 105px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

/* desktop nav */
.nav-desktop { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li { position: relative; }

.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s var(--ease);
}

.nav-menu a:hover { color: var(--gold-bright); }
.nav-menu a:hover::after { transform: scaleX(1); transform-origin: left center; }

.caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}

.has-dropdown.open .caret { transform: rotate(-135deg) translateY(-2px); }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: rgba(22, 22, 22, .97);
  border-top: 2px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 10;
}

.has-dropdown:hover .submenu,
.has-dropdown.open .submenu,
.submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  padding: 9px 18px;
  font-size: 14px;
}

.submenu a::after { display: none; }

.submenu a:hover { background: rgba(199, 176, 133, .12); color: var(--gold-bright); }

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- MOBILE NAV OVERLAY ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(16, 16, 16, .98);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) 24px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-close {
  position: absolute;
  top: calc(var(--header-h) + 14px);
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}

.mobile-close:hover { transform: rotate(90deg); color: var(--gold-bright); }

.mobile-menu {
  width: min(420px, 90vw);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}

.mobile-nav.is-open .mobile-menu > li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.is-open .mobile-menu > li:nth-child(1) { transition-delay: .05s; }
.mobile-nav.is-open .mobile-menu > li:nth-child(2) { transition-delay: .1s; }
.mobile-nav.is-open .mobile-menu > li:nth-child(3) { transition-delay: .15s; }
.mobile-nav.is-open .mobile-menu > li:nth-child(4) { transition-delay: .2s; }
.mobile-nav.is-open .mobile-menu > li:nth-child(5) { transition-delay: .25s; }

.mobile-menu > li > a {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(199, 176, 133, .25);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
}

.sub-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-toggle::after {
  content: "+";
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  transition: transform .3s ease;
}

.has-sub.open .sub-toggle::after { transform: rotate(45deg); }

.mobile-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.has-sub.open .mobile-submenu { max-height: 420px; }

.mobile-submenu a {
  padding: 10px 16px;
  color: var(--light);
  font-size: 15px;
  opacity: .85;
  text-decoration: none;
}

.mobile-submenu a:hover { color: var(--gold-bright); opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background:
    url('images/viber_image_2025-09-24_17-33-36-016.jpg') center center / cover no-repeat,
    #2a2a2a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .45) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(51, 51, 51, .55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 0;
  text-align: center;
}

.hero-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.hero-logo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow:
    0 0 0 10px rgba(235, 187, 97, .12),
    0 16px 44px rgba(0, 0, 0, .3);
  animation: heroRise 1s var(--ease) both;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 98px);
  line-height: 1.08;
  letter-spacing: .02em;
  color: var(--gold-bright);
  text-shadow: 0 2px 26px rgba(0, 0, 0, .28);
  animation: heroRise 1.05s var(--ease) .12s both;
}

.hero-subtitle {
  margin: 30px auto 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.35;
  letter-spacing: .04em;
  color: var(--light);
  animation: heroRise 1.05s var(--ease) .26s both;
}

.hero-subtitle strong {
  font-weight: 600;
  color: #fff;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- SLIDER ---------- */
.slider-section {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  background: var(--slider-bg);
}

.slider-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 40px 20px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar { display: none; }

.image-card {
  flex: 0 0 auto;
  min-width: 360px;
  height: 500px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #d8d8d8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .2);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}

.nav-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.nav-btn svg { stroke: #1a1a1a; transition: stroke .2s; }
.nav-btn:hover svg { stroke: #fff; }

.progress-track {
  width: 200px;
  height: 2px;
  border-radius: 2px;
  background: #d1d1d1;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  background: #1a1a1a;
  transition: left .1s ease-out;
}

/* ---------- FEATURES ---------- */
.features {
  padding: 110px 24px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(199, 176, 133, .12) 0%, rgba(0, 0, 0, 0) 55%),
    #000;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: .04em;
  text-align: center;
  color: var(--gold);
}

.section-sub {
  margin: 0 auto 56px;
  max-width: 720px;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .02em;
  text-align: center;
  color: var(--light);
}

.features-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.feature {
  position: relative;
  padding: 30px 18px;
  border: 1px solid rgba(199, 176, 133, .18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(199, 176, 133, .08) 0%, rgba(199, 176, 133, .03) 100%);
  text-align: center;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 2px;
  background: var(--gold-bright);
  transition: transform .4s var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  background: rgba(199, 176, 133, .13);
  border-color: rgba(199, 176, 133, .4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
}

.feature:hover::before { transform: translateX(-50%) scaleX(1); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(199, 176, 133, .08);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.feature:hover .feature-icon {
  background: rgba(235, 187, 97, .18);
  color: var(--gold-bright);
  transform: scale(1.06);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature h4 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--gold);
}

/* ---------- STUKTURE ---------- */
.stukture {
  position: relative;
  padding: 110px 24px;
  background:
    linear-gradient(rgba(0, 0, 0, .82) 81%, rgba(0, 0, 0, 1)),
    url('images/viber_image_2025-09-24_17-33-35-697.jpg') center / cover no-repeat;
}

@media (min-width: 1024px) and (hover: hover) {
  .stukture { background-attachment: fixed; }
}

.section-sub-dark {
  margin: 0 auto 48px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: #999;
}

.strukture-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.no-results { align-self: center; }

.no-results h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.no-results p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #aaa;
}

.blurb {
  margin: 0;
  text-align: center;
}

.blurb-img-wrap {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .16) 55%, rgba(199, 176, 133, .38) 100%);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.blurb:hover .blurb-img-wrap {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(235, 187, 97, .65);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .5);
}

.blurb-img-wrap img {
  width: 100%;
  max-width: 490px;
  height: auto;
  aspect-ratio: 490 / 368;
  object-fit: contain;
  margin: 0 auto;
}

.blurb h4 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--gold);
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 70px 24px 0;
  background: #000;
  color: #fff;
  text-align: center;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  width: 200px;
  height: auto;
  border-radius: 4px;
}

.footer-line {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: .06em;
  color: #fff;
}

.footer-btn {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  padding: 13px 28px;
  border-radius: 100px;
  background: var(--gold);
  color: rgb(56, 56, 56);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.footer-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-15deg);
  transition: left .6s var(--ease);
}

.footer-btn:hover {
  transform: translateY(-2px);
  background: #d8c6a2;
  box-shadow: 0 12px 26px rgba(199, 176, 133, .35);
}

.footer-btn:hover::before { left: 100%; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: flex-end;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: #bbb;
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- LIGHTBOX ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
  cursor: pointer;
}

.overlay.is-open { display: flex; }

.overlay img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  animation: overlayIn .35s var(--ease);
}

@keyframes overlayIn {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: var(--gold-bright);
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 16px; }
  .logo img { width: 88px; height: 56px; }
  .hero-pair { flex-direction: column; gap: 28px; }
  .hero-logo { width: 220px; height: 220px; }
  .slider-wrapper { gap: 15px; padding: 0 20px 20px; }
  .image-card { min-width: 140px; height: 250px; }
  .features { padding: 80px 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .stukture { padding: 80px 16px; }
  .strukture-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero-logo, .hero-title, .hero-subtitle { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .slider-wrapper { scroll-behavior: auto; }
}
