/*
Theme Name: KRK Tomasz Chorąży
Theme URI: https://github.com/google/ai-studio
Description: Nowoczesny, wysokokonwertujący motyw WordPress dla branży budowlanej i konstrukcji stalowych. Stworzony przez doświadczonego architekta UX przy użyciu standardów WordPress. Zawiera interaktywny kalkulator kosztów, bento-grid realizacji oraz w pełni edytowalne sekcje przez WordPress Customizer.
Version: 1.0.0
Author: Tomasz Chorąży & AI Studio Build
Author URI: https://ai.studio/build
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krk-steel-structure
Tags: industrial, steel, construction, b2b, responsive-layout, customizer, translation-ready

This theme is built specifically for structural steel construction companies, with high conversion elements.
*/

:root {
  /* Design System Colors: Industrial Integrity */
  --surface: #f1fbff;
  --surface-dim: #d1dce0;
  --surface-bright: #f1fbff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eaf5fa;
  --surface-container: #e4f0f4;
  --surface-container-high: #dfeaef;
  --surface-container-highest: #d9e4e9;
  --on-surface: #131d21;
  --on-surface-variant: #434749;
  
  --primary: #181f21; /* Structural Charcoal */
  --on-primary: #ffffff;
  --primary-container: #2d3436;
  --on-primary-container: #959c9f;
  
  --secondary: #0060a9; /* Architectural Blue */
  --on-secondary: #ffffff;
  
  --safety-orange: #FF7675; /* Safety Orange */
  --architectural-blue: #0984E3;
  --structural-charcoal: #2D3436;
  --foundation-white: #FFFFFF;
  --concrete-gray: #EDEAE8;
  --steel-gray: #636E72;
  --shadow-color: rgba(45, 52, 54, 0.15);

  /* Typography scale */
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
  --font-headline: 'Montserrat', system-ui, sans-serif;

  /* Spacing */
  --spacing-base: 8px;
  --spacing-gutter: 24px;
  --spacing-margin-mobile: 16px;
  --spacing-margin-desktop: 64px;
  --spacing-section-padding: 120px;
  --spacing-section-padding-mobile: 60px;

  /* Corner Radii */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.15s ease-out;
}

/* Global resets & scroll behavior */
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Typo styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  font-size: 16px;
  color: var(--on-surface-variant);
  font-weight: 400;
}

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

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-gutter);
  padding-right: var(--spacing-gutter);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--spacing-margin-mobile);
    padding-right: var(--spacing-margin-mobile);
  }
}

/* Utility design helper classes */
.text-orange { color: var(--safety-orange); }
.text-blue { color: var(--architectural-blue); }
.bg-charcoal { background-color: var(--structural-charcoal); }
.bg-white { background-color: var(--foundation-white); }
.bg-concrete { background-color: var(--concrete-gray); }

/* General Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-default);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--architectural-blue);
  color: var(--foundation-white);
  border: 2px solid var(--architectural-blue);
}

.btn-primary:hover {
  background-color: #076fc2;
  border-color: #076fc2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--foundation-white);
  border: 2px solid var(--foundation-white);
}

.btn-secondary:hover {
  background-color: var(--foundation-white);
  color: var(--structural-charcoal);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--structural-charcoal);
  border: 2px solid var(--structural-charcoal);
}

.btn-secondary-dark:hover {
  background-color: var(--structural-charcoal);
  color: var(--foundation-white);
  transform: translateY(-2px);
}

.btn-orange {
  background-color: var(--safety-orange);
  color: var(--foundation-white);
  border: 2px solid var(--safety-orange);
}

.btn-orange:hover {
  background-color: #ff5252;
  border-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 118, 117, 0.3);
}

/* 1. Header & Navigation styling */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-container-high);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 4px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--structural-charcoal);
  user-select: none;
}

.logo-icon {
  color: var(--architectural-blue);
  display: flex;
  align-items: center;
}

.logo-text {
  text-transform: uppercase;
}

/* Target default WordPress navigation elements as well */
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul,
.mobile-nav-links ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav ul li a,
.nav-link {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--structural-charcoal);
  position: relative;
  padding: 8px 0;
}

.main-nav ul li a::after,
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--architectural-blue);
  transition: width var(--transition-normal);
}

.main-nav ul li a:hover,
.nav-link:hover {
  color: var(--architectural-blue);
}

.main-nav ul li a:hover::after,
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Navigation Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--structural-charcoal);
  transition: all var(--transition-normal);
  transform-origin: left center;
}

@media (max-width: 992px) {
  .main-nav {
    display: none; /* Controlled via mobile menu overlay */
  }
  .mobile-toggle {
    display: flex;
  }
  .header-actions .btn-header-estimate {
    display: none;
  }
}

/* Mobile Nav Overlay styling */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--structural-charcoal);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-margin-desktop);
  transition: transform var(--transition-normal);
  transform: translateY(-100%);
}

.mobile-nav-overlay.open {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav-links ul {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-links a,
.mobile-nav-links ul li a {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--foundation-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-links a:hover,
.mobile-nav-links ul li a:hover {
  color: var(--safety-orange);
}

/* 2. Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  max-height: 1000px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: var(--foundation-white);
  overflow: hidden;
}

/* Angled metallic structural overlay representing an architectural grid */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(24, 31, 33, 0.95) 0%, rgba(24, 31, 33, 0.75) 50%, rgba(9, 132, 227, 0.4) 100%);
  z-index: 1;
}

/* Grid lines pattern for engineering feel */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  color: var(--safety-orange);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  color: var(--foundation-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--architectural-blue);
  display: inline-block;
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(9, 132, 227, 0.2);
  z-index: -1;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #d1dce0;
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 42px;
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Year Watermark */
.hero-watermark {
  position: absolute;
  bottom: -20px;
  right: var(--spacing-margin-desktop);
  font-family: var(--font-headline);
  font-size: 220px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-watermark {
    display: none;
  }
}

/* 3. Section structure */
.section {
  padding-top: var(--spacing-section-padding);
  padding-bottom: var(--spacing-section-padding);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--spacing-section-padding-mobile);
    padding-bottom: var(--spacing-section-padding-mobile);
  }
}

.section-header-small {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--architectural-blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

/* 4. About Us Section (Kim Jesteśmy) */
.about-section {
  background-color: var(--surface-container-lowest);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image-card {
  width: 100%;
  border-radius: 0px;
  border: 1px solid rgba(45, 52, 54, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.about-image-card:hover img {
  filter: grayscale(30%);
}

.about-quote-badge {
  position: absolute;
  bottom: -24px;
  left: 24px;
  right: 24px;
  background-color: var(--architectural-blue);
  color: var(--foundation-white);
  padding: 20px 28px;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(9, 132, 227, 0.25);
  border-left: 5px solid var(--safety-orange);
}

@media (max-width: 768px) {
  .about-image-card img {
    height: 380px;
  }
  .about-quote-badge {
    position: static;
    margin-top: 16px;
    border-radius: 0;
  }
}

.about-info {
  display: flex;
  flex-direction: column;
}

.about-desc {
  font-size: 17px;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Two columns of technical features */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 576px) {
  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.about-feature-item h4 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--structural-charcoal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-feature-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* About Stats grid block on bottom */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--concrete-gray);
  padding-top: 32px;
  margin-top: 16px;
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 800;
  color: var(--structural-charcoal);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.stat-num::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--architectural-blue);
  margin-top: 4px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-gray);
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 5. B2C Section (Rozwiązania dla Domu) */
.b2c-section {
  background-color: var(--primary);
  color: var(--foundation-white);
  overflow: hidden;
}

.b2c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 992px) {
  .b2c-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.b2c-info {
  display: flex;
  flex-direction: column;
}

.b2c-info .section-title {
  color: var(--foundation-white);
}

.b2c-desc {
  font-size: 16px;
  color: #959c9f;
  margin-bottom: 32px;
  line-height: 1.7;
}

.b2c-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.b2c-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--foundation-white);
}

.b2c-list-icon {
  color: var(--architectural-blue);
  display: flex;
  align-items: center;
}

.b2c-image-wrapper {
  border-radius: 0px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.b2c-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.b2c-image-wrapper:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .b2c-image-wrapper img {
    height: 320px;
  }
}

/* 6. B2B Section (Wsparcie dla Budownictwa B2B) */
.b2b-section {
  background-color: #1c2224; /* Lighter charcoal for zoning */
  color: var(--foundation-white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.b2b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 992px) {
  .b2b-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .b2b-grid .b2b-image-container {
    order: 2;
  }
}

.b2b-image-container {
  border-radius: 0px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.b2b-image-container img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.b2b-image-container:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .b2b-image-container img {
    height: 320px;
  }
}

.b2b-info .section-title {
  color: var(--foundation-white);
}

.b2b-desc {
  font-size: 16px;
  color: #959c9f;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Special blueprint spec cards */
.b2b-spec-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.b2b-spec-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--architectural-blue);
  padding: 24px;
  transition: all var(--transition-normal);
}

.b2b-spec-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-left-color: var(--safety-orange);
  transform: translateX(4px);
}

.b2b-spec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.b2b-spec-icon {
  color: var(--architectural-blue);
  display: flex;
  align-items: center;
}

.b2b-spec-title {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foundation-white);
}

.b2b-spec-desc {
  font-size: 14px;
  color: #959c9f;
  line-height: 1.6;
}

.b2b-link {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  color: var(--architectural-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: all var(--transition-normal);
  align-self: flex-start;
}

.b2b-link:hover {
  color: var(--safety-orange);
  border-bottom-color: var(--safety-orange);
  gap: 12px;
}

/* 7. Realizations Section (Nasze Realizacje) */
.realizations-section {
  background-color: var(--surface-container-low);
}

.realizations-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 64px auto;
}

.realizations-header .section-title {
  margin-bottom: 16px;
}

/* Bento Grid */
.realization-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.realization-card {
  position: relative;
  background-color: var(--primary);
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Layout allocations */
.realization-card-large-left {
  grid-column: span 8;
}

.realization-card-small-right {
  grid-column: span 4;
}

.realization-card-small-left {
  grid-column: span 4;
}

.realization-card-large-right {
  grid-column: span 8;
}

@media (max-width: 992px) {
  .realization-card-large-left,
  .realization-card-small-right,
  .realization-card-small-left,
  .realization-card-large-right {
    grid-column: span 12;
    height: 300px;
  }
}

.realization-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Overlay mask */
.realization-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(24, 31, 33, 0.95) 0%, rgba(24, 31, 33, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0.9;
  transition: all var(--transition-normal);
  z-index: 2;
}

.realization-card:hover .realization-image {
  transform: scale(1.08);
}

.realization-card:hover .realization-overlay {
  background: linear-gradient(to top, rgba(9, 132, 227, 0.95) 0%, rgba(24, 31, 33, 0.6) 70%, transparent 100%);
}

.realization-cat {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--safety-orange);
  margin-bottom: 8px;
  transition: color var(--transition-normal);
}

.realization-card:hover .realization-cat {
  color: var(--foundation-white);
}

.realization-project-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--foundation-white);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 4px;
}

.realization-location {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #d1dce0;
}

/* 8. Contact Section (Skontaktuj się z Nami) */
.contact-section {
  background-color: #f1f8fa;
  background-image: radial-gradient(var(--surface-container-high) 1px, transparent 1px);
  background-size: 24px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-detail-card {
  background-color: var(--foundation-white);
  border: 1px solid var(--surface-container-high);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-normal);
}

.contact-detail-card:hover {
  border-color: var(--architectural-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background-color: var(--surface-container-low);
  color: var(--architectural-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-default);
  flex-shrink: 0;
}

.contact-detail-info h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-gray);
  margin-bottom: 4px;
}

.contact-detail-info p {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--structural-charcoal);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  background-color: var(--foundation-white);
  border: 1px solid var(--surface-container-high);
  color: var(--structural-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.social-btn:hover {
  background-color: var(--structural-charcoal);
  color: var(--foundation-white);
  border-color: var(--structural-charcoal);
  transform: translateY(-2px);
}

/* Form Design */
.contact-form-wrapper {
  background-color: var(--foundation-white);
  border: 1px solid var(--surface-container-high);
  padding: 48px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    padding: 24px;
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel-gray);
  margin-bottom: 8px;
}

.form-control {
  background-color: #f8fafb;
  border: 1px solid var(--surface-container-highest);
  border-bottom: 2px solid var(--surface-container-highest);
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--structural-charcoal);
  transition: all var(--transition-normal);
  border-radius: var(--radius-default);
}

.form-control:focus {
  background-color: var(--foundation-white);
  border-color: var(--architectural-blue);
  border-bottom-color: var(--architectural-blue);
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.05);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* 9. Footer Section */
.site-footer {
  background-color: var(--primary);
  color: var(--foundation-white);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 2px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 4fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-about .logo {
  color: var(--foundation-white);
  margin-bottom: 20px;
}

.footer-desc {
  color: #959c9f;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--foundation-white);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--safety-orange);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #959c9f;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--foundation-white);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: #636e72;
}

.footer-meta {
  font-size: 13px;
  color: #636e72;
  display: flex;
  gap: 24px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* 10. Interactive Estimation Modal (Popup Wyceny) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 31, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 16px;
}

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

.modal-card {
  background-color: var(--foundation-white);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background-color: #f1f3f5;
  color: var(--structural-charcoal);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: var(--safety-orange);
  color: var(--foundation-white);
  transform: rotate(90deg);
}

.modal-header-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--architectural-blue) 0%, var(--safety-orange) 100%);
  width: 100%;
}

.modal-content {
  padding: 48px;
}

@media (max-width: 576px) {
  .modal-content {
    padding: 24px;
  }
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 15px;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
}

/* Step progress indicators */
.modal-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.modal-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--surface-container-highest);
  z-index: 1;
}

.modal-step-line-active {
  position: absolute;
  top: 14px;
  left: 0;
  height: 2px;
  background-color: var(--architectural-blue);
  z-index: 2;
  transition: width var(--transition-normal);
}

.modal-step-indicator {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-step-num {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: var(--foundation-white);
  border: 2px solid var(--surface-container-highest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  color: var(--steel-gray);
  transition: all var(--transition-normal);
}

.modal-step-indicator.active .modal-step-num {
  border-color: var(--architectural-blue);
  background-color: var(--architectural-blue);
  color: var(--foundation-white);
  box-shadow: 0 0 12px rgba(9, 132, 227, 0.4);
}

.modal-step-indicator.completed .modal-step-num {
  border-color: var(--safety-orange);
  background-color: var(--safety-orange);
  color: var(--foundation-white);
}

.modal-step-text {
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-gray);
}

.modal-step-indicator.active .modal-step-text {
  color: var(--architectural-blue);
}

/* Choices list */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

.choice-card {
  border: 2px solid var(--surface-container-highest);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.choice-card:hover {
  border-color: var(--surface-dim);
  background-color: var(--surface-container-low);
}

.choice-card.selected {
  border-color: var(--architectural-blue);
  background-color: #f1fbff;
}

.choice-icon {
  color: var(--architectural-blue);
  display: flex;
  align-items: center;
}

.choice-card.selected .choice-icon {
  color: var(--architectural-blue);
}

.choice-title {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--structural-charcoal);
}

/* Step 2 Inputs */
.modal-input-group {
  margin-bottom: 24px;
}

.modal-range-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-range-val {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  color: var(--architectural-blue);
}

/* Custom slider track */
.modal-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-container-highest);
  outline: none;
}

.modal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--architectural-blue);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.modal-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid var(--surface-container-high);
  padding-top: 24px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background-color: var(--primary);
  color: var(--foundation-white);
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 3000;
  border-left: 4px solid var(--safety-orange);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Classic dynamic element for Admin panel editability */
.edit-post-link {
  display: inline-block;
  background-color: var(--safety-orange);
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
}

/* 11. Lightbox Photo Gallery */
.krk-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(19, 29, 33, 0.96);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.krk-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--foundation-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 4010;
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.krk-lightbox-close:hover {
  background-color: var(--safety-orange);
  color: var(--foundation-white);
  transform: rotate(90deg);
}

.krk-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--foundation-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 4010;
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.krk-lightbox-nav:hover {
  background-color: var(--architectural-blue);
  color: var(--foundation-white);
  transform: translateY(-50%) scale(1.05);
}

.krk-lightbox-prev {
  left: 32px;
}

.krk-lightbox-next {
  right: 32px;
}

@media (max-width: 768px) {
  .krk-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .krk-lightbox-prev {
    left: 12px;
  }
  .krk-lightbox-next {
    right: 12px;
  }
}

.krk-lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.krk-lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.krk-lightbox.active .krk-lightbox-image {
  transform: scale(1);
}

.krk-lightbox-caption-wrapper {
  margin-top: 24px;
  text-align: center;
  max-width: 600px;
}

.krk-lightbox-caption {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  color: var(--foundation-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.krk-lightbox-subcaption {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #959c9f;
}

@media (max-width: 576px) {
  .krk-lightbox-caption {
    font-size: 16px;
  }
  .krk-lightbox-subcaption {
    font-size: 12px;
  }
}
