/* ===============================
   GTPS Gorzów – Base Styles
   CONTEXT: ciepła, nowoczesna estetyka
   Fonty: Poppins (nagłówki), Open Sans (teksty)
   =============================== */

/* Google Fonts (ładowanie przez CSS – możesz przenieść do <head> jeśli wolisz) */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap");

/* -------------------------------
   CSS Variables / Theme Tokens
-------------------------------- */
:root {
  /* Kolory z CONTEXT.md */
  --navy: #1E2A36;
  /* Granat techniczny */
  --beige: #E7E1D8;
  /* Ciepły beż */
  --cream: #F8F6F3;
  /* Jasny krem */
  --gold: #B28B67;
  /* Beżowo-złoty akcent */
  --white: #FFFFFF;
  --text: #444444;
  /* Ciemna szarość */
  --muted: #6b6b6b;

  /* Elementy UI */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.12);

  /* Typografia */
  --h1: clamp(36px, 5vw, 64px);
  --h2: clamp(28px, 3.5vw, 42px);
  --h3: clamp(20px, 2.5vw, 24px);
  --lead: 20px;
  --body: 18px;
  --small: 14px;

  /* Prędkości i easing */
  --speed-fast: 160ms;
  --speed: 260ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -------------------------------
   Reset / Base
-------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
picture,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 14px 0;
}

h1 {
  font-size: var(--h1);
  font-weight: 700;
}

h2 {
  font-size: var(--h2);
  font-weight: 700;
}

h3 {
  font-size: var(--h3);
  font-weight: 600;
}

/* Większe marginesy dla nagłówków w podstronach */
body:not(.home) section h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

body:not(.home) section h3 {
  margin-top: 30px;
  margin-bottom: 16px;
}

p {
  margin: 0 0 14px 0;
  color: var(--text);
}

.lead {
  font-size: var(--lead);
  color: var(--navy);
  opacity: .9;
}

/* -------------------------------
   Layout Helpers
-------------------------------- */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head p {
  max-width: 780px;
  margin-inline: auto;
  color: var(--muted);
}

/* -------------------------------
   Buttons
-------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
  will-change: transform;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #17212b;
}

.btn-secondary {
  background: var(--beige);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #ddd6cc;
}

.text-link {
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
}

.text-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* -------------------------------
   Header / Navigation
-------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fbfbfb;
  /* jasnoszare tło */
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand img {
  display: block;
}

#site-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}

#site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

#site-nav a:hover {
  background: var(--beige);
}

#site-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
}

#site-nav .nav-cta:hover {
  background: #17212b;
}

/* -------------------------------
   Hero Section
-------------------------------- */
#hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
}

#hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

#hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(90%) contrast(96%) brightness(95%);
}

/* ciepły overlay */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 42, 54, 0.35), rgba(248, 246, 243, 0.35));
  z-index: -1;
}

#hero .hero-content {
  width: min(100%, 980px);
  text-align: left;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  padding: 42px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#hero h1 {
  margin-bottom: 10px;
}

#hero .lead {
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------------
   About Section
-------------------------------- */
#about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-copy p {
  color: var(--muted);
}

/* -------------------------------
   Services Section
-------------------------------- */
#services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.service-card {
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.service-card h3 {
  padding: 16px 16px 6px 16px;
}

.service-card h3 a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.service-card h3 a:hover {
  color: var(--gold);
}

.service-card p {
  padding: 0 16px 10px 16px;
  color: var(--muted);
}

.service-card .card-link {
  display: inline-block;
  margin: 8px 16px 18px 16px;
  color: var(--navy);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

.service-card .card-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.service-card .card-link:hover::after {
  transform: scaleX(1);
}

.services-cta {
  text-align: center;
  margin-top: 28px;
}

/* -------------------------------
   Process Section
-------------------------------- */
#process {
  padding: 100px 0;
  position: relative;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.process-step {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 24px 18px 20px 18px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.process-bg {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  opacity: .08;
  pointer-events: none;
}

.process-bg img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* -------------------------------
   Projects Section
-------------------------------- */
#projects {
  padding: 100px 0;
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.project-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.project-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  transform: translateY(6px);
  opacity: 0;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.project-item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

/* -------------------------------
   Trusted Companies Section
-------------------------------- */
#trusted-companies {
  padding: 100px 0;
  background: var(--cream);
}

.trusted-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.trusted-content h1 {
  font-size: var(--h2);
  margin-bottom: 24px;
}

.trusted-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.trusted-columns p {
  color: var(--muted);
  margin-bottom: 0;
}

.trusted-columns p a {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.trusted-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 960px) {
  .trusted-grid {
    grid-template-columns: 1fr;
  }

  .trusted-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* -------------------------------
   Testimonials Section
-------------------------------- */
#testimonials {
  position: relative;
  padding: 110px 0;
  color: var(--navy);
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.testimonials-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(90%) brightness(98%);
}

#testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 246, 243, 0.86);
  /* cream overlay */
  z-index: -1;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 60px;
  color: var(--beige);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial p {
  color: var(--navy);
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial footer {
  margin-top: 16px;
  color: var(--gold);
  font-size: var(--small);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

/* -------------------------------
   Contact Section
-------------------------------- */
#contact {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px 0;
}

.contact-list li {
  margin-bottom: 8px;
}

.contact-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-form form {
  display: grid;
  gap: 10px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-form label {
  font-weight: 600;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 42, 54, 0.12);
}

.contact-media {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(95%);
}

/* -------------------------------
   Footer
-------------------------------- */
#site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 0;
  border-radius: 8px;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding: 14px 0 28px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--small);
}

/* -------------------------------
   Animations (CSS only; GSAP dodasz w JS)
-------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(10px);
}

[data-animate].inview {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

/* Hover subtelny dla obrazów/kart */
.service-card img,
.project-item img {
  transition: transform var(--speed) var(--ease), filter var(--speed) var(--ease);
}

.service-card:hover img,
.project-item:hover img {
  transform: scale(1.02);
  filter: saturate(105%);
}

/* -------------------------------
   Responsiveness (podstawowa)
   – Skupienie na desktop, ale sensowne zachowania na mniejszych ekranach
-------------------------------- */

/* ≥ 1280px – układ bazowy już działa przez container */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  #site-nav ul {
    gap: 8px;
  }

  #site-nav a {
    padding: 8px 10px;
  }

  #hero .hero-content {
    padding: 32px;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #hero {
    min-height: 70vh;
  }

  #hero .hero-content {
    padding: 24px;
  }

  .hero-ctas {
    gap: 8px;
  }
}

/* -------------------------------
   Accessibility helpers
-------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(178, 139, 103, 0.6);
  /* gold */
  outline-offset: 3px;
}

[role="navigation"] a:focus-visible {
  background: var(--beige);
  border-radius: 10px;
}

/* -------------------------------
   Utility (opcjonalnie)
-------------------------------- */
.hide {
  display: none !important;
}

.center {
  text-align: center;
}

/* -------------------------------
   FAQ Styling
-------------------------------- */
.faq-list {
  margin: 40px auto;
  max-width: 900px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--speed) var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold);
  transition: transform var(--speed) var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 24px 18px;
  margin: 0;
  color: var(--muted);
}

/* -------------------------------
   CTA Banner Styling
-------------------------------- */
#cta-banner {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  margin: 60px 0;
}

#cta-banner .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

#cta-banner .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%) contrast(110%);
}

#cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 42, 54, 0.7), rgba(30, 42, 54, 0.85));
  z-index: -1;
}

#cta-banner .hero-content {
  width: min(100%, 700px);
  text-align: center;
  color: var(--white);
  padding: 42px 48px;
  border-radius: var(--radius-lg);
}

#cta-banner h2 {
  color: var(--white);
  margin-bottom: 24px;
}

#cta-banner .hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Efekt pulsowania dla testimonials */
.pulse-highlight {
  animation: pulse-glow 1.5s ease;
}

@keyframes pulse-glow {
  0% {
    box-shadow: var(--shadow-sm);
  }

  50% {
    box-shadow: 0 10px 30px rgba(178, 139, 103, 0.3);
  }

  100% {
    box-shadow: var(--shadow-sm);
  }
}

/* Koniec styles.css */