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

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2a2a2a;
  --accent-color: #3a3a3a;
  --text-color: #d0d0d0;
  --text-light: #a0a0a0;
  --bg-color: #1f1f1f;
  --bg-light: #2a2a2a;
  --white: #ffffff;
  --border-color: #3a3a3a;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: -0.2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.logo {
  font-family: "Playfair Display", serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.site-name {
  font-weight: 500; /* keep previous heading weight preference */
  font-size: 1.125rem;
}

/* small screen tweak */
@media (max-width: 480px) {
  .site-logo {
    height: 36px;
  }
  .site-name {
    font-size: 1rem;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Phone Button */
.nav-phone-mobile {
  display: none;
}

.nav-phone-desktop {
  display: block;
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: #d4a574;
  text-decoration: none;
  border: 2px solid #d4a574;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-phone-btn:hover {
  background: #d4a574;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-phone-btn i {
  font-size: 0.9rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: relative;
  width: 25px;
  height: 18px;
  justify-content: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
  position: absolute;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.hamburger.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--bg-color);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--white);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.6;
  animation: fadeInUp 0.8s 0.2s both;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s 0.4s both;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-button {
  display: inline-block;
  padding: 16px 36px;
  background: transparent;
  color: #d4a574;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s 0.4s both;
  border: 2px solid #d4a574;
}

.cta-button:hover {
  background: #d4a574;
  color: var(--white);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 100px 0;
  background: var(--bg-color);
}

.section-alt {
  background: var(--bg-light);
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #d4a574;
  border-radius: 2px;
}

/* O Nas Section */
.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-image {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.content-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  font-weight: 400;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.feature-item h3::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #d4a574;
  border-radius: 50%;
  margin-right: 0.75rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Oferta Section */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.offer-card {
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.4s ease;
  text-align: left;
  overflow: hidden;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.offer-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
}

.offer-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offer-card:hover .offer-image::after {
  opacity: 1;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-image img {
  transform: scale(1.1);
}

.offer-card h3 {
  color: var(--white);
  margin: 1.5rem 1.5rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.offer-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 1.5rem 1.5rem;
}

/* Faza Projektowania Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.process-icon {
  font-size: 2.5rem;
  color: #d4a574;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.process-step:hover .process-icon {
  opacity: 1;
  transform: scale(1.1);
  transition: all 0.3s ease;
  color: #e5b787;
}

.process-number {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4a574;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}

.process-step h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.process-step p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Realizacje Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  height: 400px;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  padding: 2rem;
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.portfolio-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* Kontakt Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.contact-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-light);
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
}

.submit-button {
  padding: 16px 32px;
  background: transparent;
  color: #d4a574;
  border: 2px solid #d4a574;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
}

.submit-button:hover {
  background: #d4a574;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 3rem 0;
  font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: left;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    padding: 0;
    gap: 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
    justify-content: flex-start;
  }

  .nav-menu > li:not(.nav-phone-mobile) {
    padding: 1rem 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-phone-desktop {
    display: none;
  }

  .nav-phone-mobile {
    display: block;
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(26, 26, 26, 0.5);
  }

  .nav-phone-mobile .nav-phone-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    border-color: #d4a574;
    color: #d4a574;
  }

  .nav-phone-mobile .nav-phone-btn:hover {
    background: #d4a574;
    color: var(--white);
  }

  .nav-link {
    font-size: 1.1rem;
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image-wrapper {
    min-height: 400px;
  }

  .content-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    height: 250px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    height: 300px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero-wrapper {
    gap: 2rem;
  }

  .hero-image-wrapper {
    min-height: 300px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .offer-card,
  .feature-item {
    padding: 1.75rem;
  }

  .about-image {
    height: 200px;
  }

  .portfolio-item {
    height: 250px;
  }

  .portfolio-overlay {
    padding: 1.5rem;
    transform: translateY(0);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }

  .process-step {
    padding: 1.5rem;
  }

  .process-number {
    font-size: 2.5rem;
  }

  .contact-wrapper {
    gap: 2rem;
  }
}

/* gallery layout */
#realizacje-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* visible project tile */
.gallery-group {
  display: contents;
} /* groups don't break grid */
.portfolio-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 300px;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  color: #fff;
}

/* hidden anchors: off-screen but present in DOM (do not use display:none) */
.inert-link {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none;
  visibility: hidden;
}
