/* ═══════════════════════════════════════════════════════════
   ASTECH – style.css
   Brand: Yellow #C8B400 | Dark #2d2d2d | Mid-grey #5a5a5a
═══════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  --yellow: #C8B400;
  --yellow-hover: #a89700;
  --yellow-light: #f5e84a;
  --dark: #2d2d2d;
  --dark-mid: #3d3d3d;
  --grey: #5a5a5a;
  --grey-light: #8a8a8a;
  --bg-off: #f8f8f6;
  --white: #ffffff;
  --border: #e0e0e0;
  --border-focus: #C8B400;
  --error: #e53e3e;

  --font: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .18);
  --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── 3. BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--yellow);
  color: var(--dark);
  border: 2px solid var(--yellow);
}

.btn--primary:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 180, 0, .35);
}

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

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

.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--lg {
  padding: 16px 28px;
  font-size: .9375rem;
}


/* ── 4. NAVBAR ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.navbar__logo {
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 120px;
  width: auto;
  transition: opacity var(--transition);
}

.navbar__logo:hover .navbar__logo-img {
  opacity: .8;
}

/* Nav links */
.navbar__nav {
  flex: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  text-wrap-mode: nowrap;
}

.navbar__link {
  padding: 6px 12px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
  border-radius: 2px;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--dark);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: scaleX(1);
}

/* CTA area */
.navbar__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.navbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--yellow);
  transition: opacity var(--transition);
}

.navbar__phone:hover {
  opacity: .75;
}

.navbar__phone-icon {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-left: auto;
  transition: background var(--transition);
}

.navbar__hamburger:hover {
  background: var(--bg-off);
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.navbar__hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.navbar__mobile-link {
  display: block;
  padding: 10px 12px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.navbar__mobile-link:hover {
  color: var(--dark);
  background: var(--bg-off);
}

.navbar__mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


/* ── 5. HERO SECTION ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Left: strong dark overlay for text legibility; right: fade to transparent */
  background: linear-gradient(105deg,
      rgba(15, 15, 15, .82) 0%,
      rgba(20, 20, 20, .72) 35%,
      rgba(25, 25, 25, .45) 60%,
      rgba(30, 30, 30, .15) 100%);
}

/* Container */
.hero__container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

/* ── Content ── */
.hero__content {
  max-width: 560px;
}

.hero__heading {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero__heading--accent {
  color: var(--yellow);
  display: block;
}

.hero__subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 44px;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 36px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero__stat-icon {
  width: 28px;
  height: 28px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero__stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero__stat-label {
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}

/* CTA buttons */
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── 6. FORM CARD ─────────────────────────────────────── */
.hero__form-card {
  width: 360px;
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Accent strip at top */
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-card__header {
  margin-bottom: 20px;
}

.form-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-card__subtitle {
  font-size: .8125rem;
  color: var(--grey-light);
  line-height: 1.5;
}

/* Form layout */
.form-card__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-field__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--grey-light);
  pointer-events: none;
  flex-shrink: 0;
  transition: color var(--transition);
}

.form-field__input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  font-family: var(--font);
  font-size: .875rem;
  color: var(--dark);
  background: var(--bg-off);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field__input::placeholder {
  color: var(--grey-light);
}

.form-field__input:focus {
  background: var(--white);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(200, 180, 0, .18);
}

.form-field__input:focus+.form-field__icon,
.form-field__wrapper:focus-within .form-field__icon {
  color: var(--yellow);
}

/* Select */
.form-field__wrapper--select {
  position: relative;
}

.form-field__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-left: 38px; /* space for the helmet icon on the left */
}

.form-field__select-arrow {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  color: var(--grey-light);
  pointer-events: none;
}

/* Textarea */
.form-field__textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Error state */
.form-field.error .form-field__input {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, .15);
}

.form-field__error {
  font-size: .75rem;
  color: var(--error);
  font-weight: 500;
  min-height: 16px;
  display: block;
}

/* Privacy note */
.form-card__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--grey-light);
  text-align: center;
}

.form-card__privacy svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Success state */
/* Ensure [hidden] attribute is always respected regardless of display rules */
[hidden] { display: none !important; }

.form-card__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.form-card__success svg {
  width: 52px;
  height: 52px;
  color: var(--yellow);
  background: rgba(200, 180, 0, .1);
  border-radius: 50%;
  padding: 12px;
}

.form-card__success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.form-card__success p {
  font-size: .875rem;
  color: var(--grey);
}


/* ── 7. RESPONSIVE ────────────────────────────────────── */

/* Tablet: hide desktop nav, show hamburger */
@media (max-width: 1280px) {
  .navbar__nav {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    display: block;
  }

  .hero__container {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero__form-card {
    width: 100%;
    max-width: 480px;
  }

  .hero__overlay {
    background: linear-gradient(160deg,
        rgba(15, 15, 15, .88) 0%,
        rgba(20, 20, 20, .78) 50%,
        rgba(25, 25, 25, .65) 100%);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .navbar__container {
    padding: 0 16px;
    gap: 16px;
  }

  .navbar__cta {
    display: none;
  }

  .hero__container {
    padding: 48px 16px 56px;
  }

  .hero__heading {
    font-size: clamp(1.875rem, 7vw, 2.5rem);
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__form-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .form-card {
    padding: 24px 20px 20px;
  }
}


/* ── 8. ANIMATIONS ────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__content {
  animation: fadeInUp .7s ease both;
}

.hero__form-card {
  animation: fadeInRight .75s .15s ease both;
}

/* Stagger stats */
.hero__stat:nth-child(1) {
  animation: fadeInUp .6s .3s ease both;
}

.hero__stat:nth-child(2) {
  animation: fadeInUp .6s .45s ease both;
}

.hero__stat:nth-child(3) {
  animation: fadeInUp .6s .6s ease both;
}

/* Hover lift on form card */
.form-card {
  transition: box-shadow var(--transition), transform var(--transition);
}

/* subtle pulse on submit btn */
.btn--primary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}


/* ═══════════════════════════════════════════════════════════
   9. SHARED SECTION UTILITIES
═══════════════════════════════════════════════════════════ */
.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}


/* ═══════════════════════════════════════════════════════════
   10. SERVICES SECTION
═══════════════════════════════════════════════════════════ */
.services {
  padding: 96px 0 80px;
  background: var(--bg-off);
}

.services__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Photo strip */
@keyframes scroll {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(-50%);
  }
}

.services-slider {
  background: var(--white);
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
}

.services-slider::before,
.services-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  background: linear-gradient(to right, var(--white) 0%, rgba(255,255,255,0) 100%);
  z-index: 2;
  pointer-events: none;
}

.services-slider::before {
  left: 0;
}

.services-slider::after {
  right: 0;
  transform: rotateZ(180deg);
}

.services-slide-track {
  display: flex;
  width: max-content;
  animation: scroll 130s linear infinite;
  will-change: transform;
}

.services-slider:hover .services-slide-track {
  animation-play-state: paused;
}

.services-slide {
  width: 300px;
  aspect-ratio: 4 / 3;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.services-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform var(--transition);
}

.services-slide:hover img {
  transform: scale(1.05);
}

/* -- RESPONSYWNOŚĆ -- */
@media (max-width: 600px) {
  .services-slide {
    width: 250px;
  }
}
/* Service cards grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-right: 1px solid var(--border);
  background: var(--white);
  transition: background var(--transition);
  position: relative;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: var(--bg-off);
}

/* Yellow top accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--yellow);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.service-card__desc {
  font-size: .8125rem;
  color: var(--grey);
  line-height: 1.6;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 16px;
  transition: color var(--transition), gap var(--transition);
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.service-card__link:hover {
  color: var(--yellow);
  gap: 10px;
}

.service-card__link:hover svg {
  transform: translateX(3px);
}

/* Responsive: services */
@media (max-width: 900px) {
  .services__photos {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-card:nth-child(2) {
    border-right: none;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 540px) {
  .services__photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .service-card:nth-child(2) {
    border-right: none;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}


/* ═══════════════════════════════════════════════════════════
   11. PORTFOLIO / REALIZACJE SECTION
═══════════════════════════════════════════════════════════ */
.portfolio {
  padding: 80px 0 96px;
  background: var(--bg-off);
}

.portfolio__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header row */
.portfolio__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.portfolio__header-text {
  display: flex;
  flex-direction: column;
}

/* Outlined button variant for portfolio */
.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dark);
  border: 1.5px solid var(--dark);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn--outline-dark svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn--outline-dark:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

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

/* Gallery 5-column row */
.portfolio__gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 12px;
}

.portfolio__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  background: var(--border);
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.portfolio__item:hover img {
  transform: scale(1.08);
}

/* Overlay label */
.portfolio__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, .72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio__item:hover .portfolio__item-overlay {
  opacity: 1;
}

.portfolio__item-overlay span {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Responsive: portfolio gallery */
@media (max-width: 1024px) {
  .portfolio__gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio__item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .portfolio__header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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


/* ═══════════════════════════════════════════════════════════
   12. SCROLL-REVEAL ANIMATION (Intersection Observer)
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}


/* ═══════════════════════════════════════════════════════════
   13. PROCESS SECTION (Jak Działamy)
═══════════════════════════════════════════════════════════ */
.process {
  padding: 96px 0 80px;
  background: var(--white);
}

.process__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.process__header--left {
  text-align: left;
  margin-bottom: 56px;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
  position: relative;
}

/* Number badge */
.process__step-num {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Icon circle */
.process__step-icon {
  width: 68px;
  height: 68px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.process__step:hover .process__step-icon {
  border-color: var(--yellow);
  background: rgba(200, 180, 0, .06);
}

.process__step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--yellow);
}

.process__step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.process__step-desc {
  font-size: .8125rem;
  color: var(--grey);
  line-height: 1.65;
  max-width: 180px;
}

/* Horizontal connector line between steps */
.process__connector {
  position: absolute;
  top: 54px;
  /* aligns to centre of the num badge */
  right: -50%;
  width: 100%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

/* Responsive: process */
@media (max-width: 900px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }

  .process__connector {
    display: none;
  }
}

@media (max-width: 480px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* ═══════════════════════════════════════════════════════════
   14. WHY + REVIEWS SECTION
═══════════════════════════════════════════════════════════ */
.why-reviews {
  padding: 80px 0;
  background: var(--bg-off);
}

.why-reviews__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1px 1.4fr;
  gap: 64px;
  align-items: start;
}

.why-reviews__divider {
  background: var(--border);
  align-self: stretch;
}

/* Why us */
.why__title {
  margin-bottom: 36px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(200, 180, 0, .1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why__icon svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
}

.why__item-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.why__item-desc {
  font-size: .8125rem;
  color: var(--grey);
  line-height: 1.6;
}

/* Reviews */
.reviews__title {
  margin-bottom: 28px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-card__quote {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: .8;
  color: var(--yellow);
  font-weight: 700;
  user-select: none;
}

.review-card__text {
  font-size: .8125rem;
  color: var(--grey);
  line-height: 1.65;
  flex: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--dark);
}

.review-card__city {
  font-size: .75rem;
  color: var(--grey-light);
}

/* Responsive: why + reviews */
@media (max-width: 1100px) {
  .why-reviews__container {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .why-reviews__divider {
    display: none;
  }

  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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


/* ═══════════════════════════════════════════════════════════
   15. CTA BANNER
═══════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .82);
}

.cta-banner__container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner__text {
  flex: 1;
  min-width: 240px;
}

.cta-banner__pre {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 6px;
  font-weight: 400;
}

.cta-banner__heading {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: opacity var(--transition);
}

.cta-banner__phone:hover {
  opacity: .8;
}

.cta-banner__phone-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--yellow);
}

.cta-banner__phone span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-banner__phone strong {
  font-size: 1.125rem;
  font-weight: 700;
}

.cta-banner__phone small {
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 400;
}

@media (max-width: 768px) {
  .cta-banner__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════
   16. FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, .75);
}

.footer__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* Col: Brand */
.footer__logo-link {
  display: inline-block;
}

.footer__logo {
  height: 85px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer__social-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(200, 180, 0, .08);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

/* Col: Nav */
.footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

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

.footer__nav-link {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--yellow);
}

/* Col: Contact */
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact-item--address {
  align-items: flex-start;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--yellow);
}

.footer__contact-link {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}

.footer__contact-link:hover {
  color: var(--yellow);
}

.footer__address {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  font-style: normal;
  line-height: 1.6;
}

/* Col: Hours */
.footer__hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__hours-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__hours-day {
  font-size: .8125rem;
  color: var(--white);
  font-weight: 500;
}

.footer__hours-time {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}

.footer__hours-item--closed .footer__hours-time {
  color: rgba(255, 80, 80, .7);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer__bottom-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .35);
}

.footer__bottom-nav {
  display: flex;
  gap: 24px;
}

.footer__bottom-link {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .35);
  transition: color var(--transition);
}

.footer__bottom-link:hover {
  color: var(--yellow);
}

/* Responsive: footer */
@media (max-width: 1100px) {
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
  }

  .footer__col--brand {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0 32px;
  }

  .footer__logo {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

  .footer__col--brand {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .footer__logo {
    margin-bottom: 16px;
  }
}

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

  .footer__col--brand {
    grid-column: span 1;
  }

  .footer__bottom-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}