/* ============================================
   GF REMONTY Z PASJĄ — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 400;
  color: #4a5568;
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Variables --- */
:root {
  --blue: #527dc1;
  --blue-dark: #3d65a8;
  --navy: #1a2540;
  --text: #4a5568;
  --light-bg: rgba(82,125,193,0.08);
  --dark-bg: #161616;
  --white: #fff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: .3s ease;
  --max-w: 1200px;
  --max-w-lg: 1400px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; }

.tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: .75rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.container-lg {
  max-width: var(--max-w-lg);
  margin: 0 auto;
  padding: 0 40px;
}
section {
  padding: 80px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: #0f1a30;
  transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  max-width: var(--max-w-lg);
  background: var(--white);
  border-radius: 100px;
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 400;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}
.nav-cta {
  padding: 10px 24px !important;
  font-size: .85rem !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,37,64,0.85) 0%, rgba(26,37,64,0.5) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-content {
  max-width: 700px;
  color: var(--white);
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: .9;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ============================================
   CONFIGURATOR (Quote Wizard)
   ============================================ */
.configurator {
  background: var(--light-bg);
}
.configurator-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: #999;
  transition: color var(--transition);
}
.step-indicator.active { color: var(--blue); font-weight: 600; }
.step-indicator.completed { color: var(--blue); }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid #ddd;
  transition: all var(--transition);
}
.step-indicator.active .step-num,
.step-indicator.completed .step-num {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.step-line {
  width: 60px;
  height: 2px;
  background: #ddd;
}
.step-line.active { background: var(--blue); }

.step-content { display: none; }
.step-content.active { display: block; }

.step-title {
  text-align: center;
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.card-option {
  background: #f8f9fb;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: var(--navy);
}
.card-option:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.card-option.selected {
  border-color: var(--blue);
  background: rgba(82,125,193,0.1);
}
.card-option .card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full-width { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--navy);
  transition: border-color var(--transition);
  background: #f8f9fb;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success h3 { color: var(--blue); margin-bottom: 12px; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text); }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid #f0f0f0;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  margin-bottom: 16px;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(82,125,193,0.08) 0%, rgba(82,125,193,0.04) 100%);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.feature-icon {
  margin-bottom: 16px;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(82,125,193,0.08) 0%, rgba(82,125,193,0.04) 100%);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.service-icon svg,
.feature-icon svg {
  width: 32px;
  height: 32px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .service-icon,
.feature-item:hover .feature-icon {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82,125,193,0.3);
}
.service-card:hover .service-icon svg,
.feature-item:hover .feature-icon svg {
  transform: scale(1.1);
}
.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg line,
.service-card:hover .service-icon svg rect,
.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg polyline,
.feature-item:hover .feature-icon svg path,
.feature-item:hover .feature-icon svg line,
.feature-item:hover .feature-icon svg rect,
.feature-item:hover .feature-icon svg circle,
.feature-item:hover .feature-icon svg polyline {
  stroke: #fff;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p {
  font-size: .9rem;
  color: #718096;
}

/* ============================================
   SERVICES DETAIL (uslugi page)
   ============================================ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}
.service-row:nth-child(even) .service-row-img { order: 2; }
.service-row:nth-child(even) .service-row-text { order: 1; }
.service-row-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-row-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-row-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.service-row-text p {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.8;
}

/* ============================================
   REALIZACJE (Portfolio)
   ============================================ */
.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.realizacja-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.realizacja-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.realizacja-card:hover img {
  transform: scale(1.05);
}
.realizacja-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,24,41,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.realizacja-card:hover .realizacja-overlay {
  opacity: 1;
}
.realizacja-overlay h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.realizacja-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: .85rem;
  line-height: 1.5;
}
.realizacja-overlay .accent-line {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 12px;
  transition: width .4s ease;
}
.realizacja-card:hover .accent-line {
  width: 80px;
}

/* ============================================
   GALLERY (Lightbox)
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  color: var(--white);
  font-size: 2rem;
  padding: 12px;
  transition: opacity var(--transition);
}
.lightbox-close { top: 20px; right: 30px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: .7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: .9;
  font-size: 1.05rem;
}

/* ============================================
   WHY US / FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.feature-item {
  text-align: center;
  padding: 32px 24px;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.feature-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-item p { font-size: .9rem; color: #718096; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-icon {
  font-size: 1.5rem;
  color: var(--blue);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-info-item p {
  font-size: .9rem;
  margin: 0;
  color: var(--text);
}
.contact-info-item a { color: var(--blue); }
.contact-info-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 24px; }

.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.footer a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  font-size: .9rem;
}
.footer a:hover { color: var(--white); }
.footer-logo img {
  width: 180px;
  margin-bottom: 16px;
}
.footer-logo p {
  color: rgba(255,255,255,0.6);
  font-size: .85rem;
  line-height: 1.6;
}
.footer-links li { margin-bottom: 10px; }
.footer-contact p,
.footer-contact a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  font-size: .9rem;
}
.footer-cta p {
  color: rgba(255,255,255,0.6);
  font-size: .85rem;
  margin-bottom: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .navbar {
    width: calc(100% - 30px);
    top: 10px;
    padding: 10px 20px;
  }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active a { color: var(--white); }
  .nav-toggle { display: flex; }

  .about-row,
  .service-row,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-row:nth-child(even) .service-row-img { order: 0; }
  .service-row:nth-child(even) .service-row-text { order: 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .realizacje-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 60px 0; }
  .container, .container-lg { padding: 0 24px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .realizacje-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-bar .step-label { display: none; }
  .hero { min-height: 80vh; }
  .configurator-inner { padding: 24px 16px; }
  section { padding: 48px 0; }
}
