/* =============================================
   WIK-MAR Osiedle Rubinowe — Global Styles
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a96e;
  --gold-light: #d4b87a;
  --dark: #0a0a0f;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}
.logo span { color: var(--gold); }
.desktop-nav { display: flex; gap: 32px; }
.desktop-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--gold); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(10,10,15,0.98);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }

/* ── GOLD LINE ── */
.gold-line {
  width: 48px; height: 1px;
  background: var(--gold);
  margin-top: 16px;
}
.gold-line.centered { margin: 16px auto 0; }

/* ── LABEL ── */
.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
  margin-top: 12px;
}
.hero__title span { color: var(--gold); }
.hero__desc {
  margin-top: 24px;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn--gold { background: var(--gold); color: #000; }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: #0f172a; color: #fff; }
.btn--dark:hover { background: #1e293b; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding: 140px 0 80px;
  background: var(--slate-950);
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.page-hero p {
  margin-top: 20px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section--dark { background: var(--slate-950); color: #fff; }
.section--gray { background: var(--slate-50); }
.section--white { background: #fff; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  color: #0f172a;
  margin-top: 12px;
  line-height: 1.2;
}
.section-title--white { color: #fff; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  border: 1px solid #e2e8f0;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s;
}
.stat-card:hover { border-color: var(--gold); }
.stat-card__icon {
  width: 48px; height: 48px;
  background: rgba(201,169,110,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 300;
  color: #0f172a;
}
.stat-card__value .unit { font-size: 0.85rem; color: var(--slate-400); margin-left: 4px; }
.stat-card__label { font-size: 0.8rem; color: var(--slate-500); margin-top: 6px; }

/* ── TWO-COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col--reverse { }
@media(max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse .two-col__image { order: -1; }
}
.two-col__image { position: relative; }
.two-col__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.img-accent {
  position: absolute;
  width: 96px; height: 96px;
}
.img-accent--tl { top: -16px; left: -16px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.img-accent--br { bottom: -16px; right: -16px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 16px; }
.feature__icon {
  width: 40px; height: 40px;
  background: rgba(201,169,110,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.feature__title { font-weight: 600; font-size: 0.9rem; color: #0f172a; }
.feature__desc { font-size: 0.8rem; color: var(--slate-500); margin-top: 4px; line-height: 1.5; }

/* ── VALUES (o-nas) ── */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:700px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { display: flex; gap: 20px; background: #fff; border: 1px solid #e2e8f0; padding: 32px; }
.value-card__icon {
  width: 48px; height: 48px;
  background: #0f172a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.value-card h3 { font-size: 1rem; font-weight: 600; color: #0f172a; }
.value-card p { font-size: 0.85rem; color: var(--slate-500); margin-top: 8px; line-height: 1.6; }

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
  transition: border-color 0.3s;
}
.why-card:hover { border-color: rgba(201,169,110,0.4); }
.why-card__icon {
  width: 56px; height: 56px;
  background: rgba(201,169,110,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}
.why-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
  color: var(--slate-400);
  font-size: 0.9rem;
}

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
}
@media(max-width:900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { list-style: none; }
.contact-info li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}
.ci__icon {
  width: 48px; height: 48px;
  background: #0f172a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.ci__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-400); }
.ci__value { margin-top: 4px; font-weight: 600; color: #0f172a; }
.ci__value a:hover { color: var(--gold); }

/* Form */
.form-box { background: var(--slate-50); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-400); font-weight: 500; }
.form-input {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}
.form-input:focus { border-color: var(--gold); }
textarea.form-input { min-height: 140px; resize: vertical; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: #0f172a;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  font-family: inherit;
}
.btn-submit:hover { background: #1e293b; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success { text-align: center; padding: 60px 20px; }
.form-success svg { color: var(--gold); width: 64px; height: 64px; margin: 0 auto 16px; }
.form-success h3 { font-size: 1.5rem; font-weight: 300; color: #0f172a; }
.form-success p { color: var(--slate-500); margin-top: 8px; }
.form-success .btn { margin-top: 24px; border: 1px solid #e2e8f0; color: #0f172a; background: #fff; font-size: 0.8rem; letter-spacing: 0.1em; padding: 12px 28px; }

/* ── MAP ── */
#map { height: 280px; margin-top: 24px; }
#map-onas { height: 380px; }
.leaflet-container { z-index: 1; }

/* ── CTA SECTION ── */
.cta-section { padding: 96px 0; background: var(--slate-950); text-align: center; color: #fff; }
.cta-section h2 { font-size: 2rem; font-weight: 300; }
.cta-section p { margin-top: 16px; color: rgba(255,255,255,0.55); }

/* ── FOOTER ── */
footer {
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand .logo { font-size: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.2); font-size: 0.75rem; }

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media(max-width:768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .page-hero { padding: 120px 0 60px; }
}
