/* ==========================================================================
   KGK HOME - KRAKOWSKI DEWELOPER MIESZKANIOWY
   Responsive Architectural Stylesheet (Desktop, Laptop, Tablet & Mobile)
   Color Palette Derived Directly from the Official KGK Home Logo
   ========================================================================== */

:root {
  /* Logo Color Palette - Slate-Teal, Concrete Neutrals, Timber & Pine */
  --brand-primary: #496a73;       /* Exact Logo Slate-Teal (#496a73) */
  --brand-primary-light: #5d828c; /* Lighter Slate-Teal */
  --brand-primary-dark: #355058;  /* Deep Slate-Teal */
  --brand-deep: #1d2d32;          /* Architectural Dark Petrol */
  --brand-darker: #121d21;        /* Midnight Slate for Footer/Hero Contrast */

  /* Logo Isometric House Concrete & Mist Tones */
  --concrete-100: #f6f8f8;        /* Alabaster Mist Background */
  --concrete-200: #eaeff0;        /* Soft Architectural Stone */
  --concrete-300: #d9e0e0;        /* Exact Logo Light Wall (#d9e0e0) */
  --concrete-400: #c3c6c5;        /* Exact Logo Side Wall (#c3c6c5) */
  --concrete-500: #99a2a2;        /* Exact Logo Roof Isometric (#99a2a2) */

  /* Logo Warm Timber Door & Window Frame Accents */
  --timber-primary: #7c6340;      /* Warm Architectural Oak */
  --timber-dark: #665a42;         /* Exact Logo Door Frame (#665a42) */
  --timber-light: #d4b483;        /* High-Contrast Warm Gold/Wood Highlight on Dark */

  /* Logo Isometric Tree Greens */
  --pine-primary: #3c6c63;        /* Exact Logo Tree Foliage (#3c6c63) */
  --pine-dark: #2f564f;           /* Deep Pine */
  --pine-surface: #eaf2ef;        /* Soft Sage Badge Background */

  /* Typography & UI Neutrals */
  --text-main: #162226;
  --text-secondary: #3f5157;
  --text-muted: #64767c;
  --text-on-dark: #f7f9f9;
  --text-on-dark-muted: #c5d3d6;

  --surface-white: #ffffff;
  --border-subtle: rgba(73, 106, 115, 0.15);
  --border-strong: rgba(73, 106, 115, 0.30);

  /* Shadows & Elevation */
  --shadow-xs: 0 2px 8px rgba(18, 29, 33, 0.05);
  --shadow-sm: 0 8px 24px rgba(18, 29, 33, 0.07);
  --shadow-md: 0 16px 40px rgba(18, 29, 33, 0.11);
  --shadow-lg: 0 24px 64px rgba(18, 29, 33, 0.18);
  --shadow-glow: 0 12px 32px rgba(73, 106, 115, 0.28);

  /* Typography Families */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1240px;
  --header-height: 78px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--concrete-100);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* ==========================================================================
   2. REUSABLE LAYOUT & TYPOGRAPHY
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(28px, 6vw, 72px);
  padding-right: clamp(28px, 6vw, 72px);
}

.section {
  padding: clamp(56px, 7vw, 108px) 0;
  position: relative;
}

.section--white {
  background-color: var(--surface-white);
}

.section--stone {
  background-color: var(--concrete-200);
}

.section--dark {
  background-color: var(--brand-deep);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 740px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary-dark);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(73, 106, 115, 0.10);
  border: 1px solid rgba(73, 106, 115, 0.22);
  border-radius: 999px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--pine-primary);
}

.eyebrow--on-dark,
.section--dark .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.eyebrow--on-dark::before,
.section--dark .eyebrow::before {
  background-color: var(--timber-light);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-wrap: balance;
}

.section-title--on-dark,
.section--dark .section-title {
  color: #ffffff;
}

.section-title .accent {
  color: var(--brand-primary);
}

.section-title--on-dark .accent,
.section--dark .section-title .accent {
  color: var(--timber-light);
}

.section-subtitle {
  margin-top: 14px;
  font-size: clamp(0.96rem, 1.15vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.68;
}

.section--dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-light) 0%, var(--brand-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(73, 106, 115, 0.38);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.86rem;
}

/* ==========================================================================
   3. STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo__img {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-header.scrolled .brand-logo__img {
  height: 42px;
}

.brand-logo:hover .brand-logo__img {
  transform: scale(1.03);
}

.brand-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  white-space: nowrap;
}

.brand-logo__tagline {
  font-family: var(--font-script);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--pine-dark);
  margin-top: 1px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 15px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary-dark);
  background: rgba(73, 106, 115, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-deep);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--concrete-100);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.header-phone:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
}

.header-phone svg {
  width: 15px;
  height: 15px;
  color: var(--brand-primary);
  transition: color var(--transition-fast);
}

.header-phone:hover svg {
  color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface-white);
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. START (HERO SECTION)
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(640px, 90vh, 920px);
  padding-top: calc(var(--header-height) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--brand-darker);
  color: #ffffff;
  overflow: hidden;
}

.hero-backgrounds {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out, transform 9s ease-out;
  transform: scale(1.04);
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(18, 29, 33, 0.93) 0%,
    rgba(24, 38, 43, 0.84) 55%,
    rgba(24, 38, 43, 0.56) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(24px, 3.5vw, 40px);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  background: rgba(73, 106, 115, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-badge__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--timber-light);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-title .highlight {
  color: var(--timber-light);
}

.hero-lead {
  font-size: clamp(0.96rem, 1.15vw, 1.12rem);
  color: rgba(247, 249, 249, 0.92);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Hero Right Brand & Contact Card */
.hero-brand-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
}

.hero-brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--pine-primary), var(--timber-primary));
  border-radius: 0 0 4px 4px;
}

.hero-brand-card__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--concrete-300);
  margin-bottom: 18px;
}

.hero-brand-card__logo {
  max-height: clamp(135px, 14vw, 175px);
  width: auto;
  margin: 0 auto;
}

.hero-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--concrete-100);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  min-width: 0;
}

a.hero-contact-item:hover {
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.hero-contact-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(73, 106, 115, 0.12);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-contact-item__icon svg {
  width: 18px;
  height: 18px;
}

.hero-contact-item__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-contact-item__value {
  display: block;
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  font-weight: 800;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

/* Hero Bottom Bar */
.hero-bottom {
  position: relative;
  z-index: 2;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-stat__num {
  display: block;
  font-size: clamp(1.12rem, 1.5vw, 1.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.hero-stat__num span {
  color: var(--timber-light);
}

.hero-stat__label {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}

/* ==========================================================================
   5. O NAS (ABOUT & STRATEGY SECTION)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}

.about-narrative p {
  font-size: clamp(0.96rem, 1.05vw, 1.03rem);
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.74;
}

.about-narrative p strong {
  color: var(--text-main);
  font-weight: 700;
}

.about-quote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--concrete-100);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-quote__text {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.55;
  margin-bottom: 0 !important;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-visual__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
}

.about-visual__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-visual__subcard {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
}

.about-visual__subcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Four Pillars inside O nas */
.pillars-grid {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--concrete-100);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: var(--surface-white);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.pillar-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.pillar-card__icon svg {
  width: 22px;
  height: 22px;
}

.pillar-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pillar-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* Before / After Comparison Slider Card */
.comparison-card {
  margin-top: clamp(44px, 5vw, 64px);
  background: var(--brand-deep);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.comparison-card__title {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.comparison-card__title span {
  color: var(--timber-light);
}

.comparison-card__desc {
  color: rgba(247, 249, 249, 0.90);
  font-size: 0.96rem;
  line-height: 1.7;
}

.comparison-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.comparison-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.comparison-slider__before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.comparison-slider__before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-slider__label {
  position: absolute;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(18, 29, 33, 0.88);
  color: #ffffff;
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 3;
}

.comparison-slider__label--left {
  left: 12px;
}

.comparison-slider__label--right {
  right: 12px;
}

.comparison-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.comparison-slider__button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.comparison-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* ==========================================================================
   6. REALIZACJE (BALANCED PHOTO GALLERY ON DESKTOP, TABLET & MOBILE)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-blueprints-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item--contain {
  background: #ffffff;
  aspect-ratio: 4 / 3;
}

.gallery-item--contain img {
  object-fit: contain;
  padding: 12px;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 29, 33, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
}

.gallery-item:hover .gallery-item__zoom {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   6B. INWESTYCJE W REALIZACJI (DYNAMIC SECTION)
   ========================================================================== */
.investments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.investments-grid--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.investments-grid--double {
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
}

.investment-card {
  background: var(--concrete-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.investment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
  background: var(--surface-white);
}

.investment-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--concrete-200);
  cursor: pointer;
}

.investment-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.investment-card:hover .investment-card__media img {
  transform: scale(1.04);
}

.investment-card__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 29, 33, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
}

.investment-card__media:hover .investment-card__zoom {
  opacity: 1;
  transform: translateY(0);
}

.investment-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.investment-card__desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.68;
  white-space: pre-line;
  overflow-wrap: break-word;
}

/* Loading skeletons */
.investment-skeleton {
  background: var(--concrete-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.investment-skeleton__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, var(--concrete-200) 25%, var(--concrete-100) 50%, var(--concrete-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.investment-skeleton__body {
  padding: 20px 22px 24px;
  display: grid;
  gap: 10px;
}

.investment-skeleton__line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--concrete-200) 25%, var(--concrete-100) 50%, var(--concrete-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.investment-skeleton__line--short {
  width: 68%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.investments-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
  background: var(--concrete-100);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.investments-empty__text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.65;
}

/* ==========================================================================
   7. KONTAKT & DANE SPÓŁKI
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.contact-card,
.registry-card {
  background: var(--surface-white);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card::before,
.registry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-primary), var(--pine-primary), var(--timber-primary));
}

.card-heading {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-subheading {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.direct-contact-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.direct-contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: var(--concrete-100);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  min-width: 0;
}

a.direct-contact-box:hover {
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.direct-contact-box__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-contact-box__icon svg {
  width: 20px;
  height: 20px;
}

.direct-contact-box__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.direct-contact-box__value {
  display: block;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 800;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.map-embed-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--concrete-200);
}

.map-embed-wrap iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
}

/* Registry Details Grid */
.registry-full-name {
  background: var(--concrete-100);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.registry-full-name__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.registry-full-name__val {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.4;
}

.registry-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.registry-field {
  background: var(--concrete-100);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.registry-field--full {
  grid-column: 1 / -1;
}

.registry-field__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.registry-field__val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.registry-field__val--sans {
  font-family: var(--font-sans);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--brand-darker);
  color: var(--text-on-dark-muted);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 46px;
  width: auto;
}

.footer-brand__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.footer-brand__sub {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--timber-light);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-registry-mini {
  font-size: 0.84rem;
  display: grid;
  gap: 6px;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}

/* ==========================================================================
   9. LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 20, 23, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.lightbox__counter {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--concrete-300);
}

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: var(--brand-primary);
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  min-height: 0;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  background: #ffffff;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox__nav:hover {
  background: var(--brand-primary);
}

.lightbox__nav--prev {
  left: 10px;
}

.lightbox__nav--next {
  right: 10px;
}

/* ==========================================================================
   10. TABLET, SMALL LAPTOP & MOBILE BREAKPOINTS
   ========================================================================== */

/* Small Laptops & Landscape Tablets (max-width: 1120px) */
@media (max-width: 1120px) {
  .nav-link {
    padding: 8px 11px;
    font-size: 0.88rem;
  }

  .header-phone {
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 36px;
    text-align: center;
  }

  .hero-copy {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  /* Transform Hero Brand Card into a centered, balanced horizontal split card */
  .hero-brand-card {
    width: 100%;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: center;
    text-align: left;
  }

  .hero-brand-card__logo-wrap {
    border-bottom: none;
    border-right: 1px solid var(--concrete-300);
    padding: 8px 20px 8px 0;
    margin-bottom: 0;
    height: 100%;
  }

  .hero-brand-card__logo {
    max-height: 155px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 28px;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* On tablet/small laptop, arrange the 3 About photos as a proportional horizontal mosaic */
  .about-visual {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 16px;
    align-items: stretch;
  }

  .about-visual__main {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .about-visual__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-visual__subcard {
    aspect-ratio: 16 / 10;
  }
}

/* Portrait & Standard Tablets (max-width: 960px) */
@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface-white);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 14px;
    font-size: 1rem;
    border-bottom: 1px solid var(--concrete-200);
    border-radius: 0;
  }

  .nav-link.active::after {
    display: none;
  }

  .comparison-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-grid,
  .investments-grid,
  .investments-grid--double {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* On tablets, place Phone & Email side-by-side and Address full-width */
  .direct-contact-boxes {
    grid-template-columns: repeat(2, 1fr);
  }

  .direct-contact-boxes .direct-contact-box:last-child {
    grid-column: 1 / -1;
  }

  /* On tablets, use 3 columns for registry fields so they form 2 neat rows */
  .registry-fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-top > div:last-child {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Compact Tablets & Large Phones (max-width: 740px) */
@media (max-width: 740px) {
  :root {
    --header-height: 70px;
  }

  .registry-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
  .header-phone span {
    display: none;
  }

  .header-phone {
    padding: 10px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  /* Stack Hero Brand Card vertically on phones */
  .hero-brand-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 16px;
  }

  .hero-brand-card__logo-wrap {
    border-right: none;
    border-bottom: 1px solid var(--concrete-300);
    padding: 4px 0 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .about-visual__main {
    min-height: 210px;
  }

  .about-visual__row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pillars-grid,
  .gallery-grid,
  .gallery-blueprints-row,
  .investments-grid,
  .investments-grid--double,
  .investments-grid--single,
  .direct-contact-boxes,
  .registry-fields-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top > div:last-child {
    padding-top: 0;
    border-top: none;
  }
}
