/* ============================================================
   GEOPROFIT — default theme
   Inspiracja: Consalt (układ, typografia, odstępy)
   Brand: Geoprofit (granat + zielony akcent z mostu S3)
   ============================================================ */

:root {
  --navy:        #0E2A47;
  --navy-2:      #0A1F36;
  --navy-soft:   #172F4E;
  --green:       #2BB673;
  --green-2:     #1F9E60;
  --ink:         #131A2B;
  --muted:       #5A6578;
  --line:        rgba(14, 42, 71, .10);
  --bg:          #ffffff;
  --bg-soft:     #F4F6FA;
  --bg-sand:     #EEF1F6;
  --radius:      12px;
  --radius-lg:   18px;
  --container:   1200px;
  --shadow-sm:   0 2px 8px rgba(14,42,71,.06);
  --shadow-md:   0 12px 32px rgba(14,42,71,.10);
  --shadow-lg:   0 24px 60px rgba(14,42,71,.18);
  --font-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head:   'Oswald', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--green); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- typography helpers -------- */
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: .2px;
  margin: 0 0 18px;
  color: var(--navy);
  text-transform: none;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin: 0 auto 48px; }
.section-head--center { text-align: center; }
.section-lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all .18s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(43,182,115,.28);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--navy);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy-2);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  height: 42px;
}
.topbar__left,
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__center { text-align: center; color: rgba(255,255,255,.6); }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__item svg { color: var(--green); }
.topbar__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
}
.topbar__ico:hover { background: var(--green); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 86px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  line-height: 1;
}
.logo__img {
  height: 48px;
  width: auto;
  display: block;
}
.logo__tagline {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
  padding-left: 14px;
  border-left: 2px solid var(--green);
  max-width: 110px;
  line-height: 1.25;
}
.logo--footer .logo__img {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--navy);
  padding: 10px 0;
  position: relative;
}
.nav__link:hover { color: var(--green); }
.nav__link--active::after {
  content:'';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--green);
}

/* ============================================================
   BURGER + DRAWER (mobile)
   ============================================================ */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger:hover { border-color: var(--green); }
.burger:hover span { background: var(--green); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,31,54,.55);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  transition: opacity .28s ease;
}
.drawer-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(360px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,.0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(10,31,54,.18);
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__head .logo__img { height: 40px; }
.drawer__close {
  width: 40px; height: 40px;
  background: var(--bg-soft);
  border: none;
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.drawer__close:hover { background: var(--navy); color: #fff; }

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  overflow-y: auto;
  flex: 1;
}
.drawer__nav a {
  display: block;
  padding: 16px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  border-left: 3px solid transparent;
  transition: border-color .18s ease, background .18s ease, color .18s ease, padding-left .18s ease;
}
.drawer__nav a:hover {
  background: var(--bg-soft);
  border-left-color: var(--green);
  color: var(--green);
  padding-left: 32px;
}

.drawer__foot {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-soft);
}
.drawer__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}
.drawer__contact svg { color: var(--green); flex-shrink: 0; }
.drawer__contact:hover { color: var(--green); }

.drawer__socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.drawer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--navy);
  transition: all .18s ease;
}
.drawer__socials a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('./assets/hero-s3.jpg');
  background-size: cover;
  background-position: center 55%;
  z-index: -2;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,42,71,.55) 0%, rgba(14,42,71,.75) 100%),
    linear-gradient(90deg, rgba(14,42,71,.85) 0%, rgba(14,42,71,.25) 60%, rgba(14,42,71,.5) 100%);
  z-index: -1;
}
.hero__inner {
  padding: 120px 24px 140px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 16px;
  background: rgba(43,182,115,.22);
  border: 1px solid rgba(43,182,115,.5);
  border-radius: 100px;
  align-self: flex-start;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.5px;
  margin: 0 0 24px;
  max-width: 900px;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.hero__title .accent { color: var(--green); }
.hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 620px;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__badges {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
  max-width: 720px;
}
.hero__badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__badge strong {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.hero__badge span {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ============================================================
   SERVICES CARDS (przecinają hero)
   ============================================================ */
.services {
  position: relative;
  margin-top: -80px;
  margin-bottom: 0;
  padding: 0 0 96px;
  z-index: 3;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  position: relative;
  overflow: hidden;
}
.service::before {
  content:'';
  position:absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service:hover::before { transform: scaleX(1); }
.service--dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.service.service--dark h3 { color: #fff; }
.service.service--dark p  { color: rgba(255,255,255,.78); }
.service__icon {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: rgba(43,182,115,.10);
  color: var(--green);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service--dark .service__icon {
  background: rgba(43,182,115,.18);
}
.service h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: .2px;
}
.service p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.service__more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
}
.service--dark .service__more { color: var(--green); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 40px 0 100px;
  background: #fff;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.about__text .btn { margin-top: 12px; }
.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-sand);
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--navy);
  color: #fff;
  padding: 70px 0;
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(43,182,115,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(43,182,115,.08) 0%, transparent 50%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  text-align: left;
  padding-left: 20px;
  border-left: 3px solid var(--green);
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}
.stat__num span {
  font-size: .5em;
  color: var(--green);
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0;
}
.stat__label {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

/* ============================================================
   REALIZACJE
   ============================================================ */
.realizations {
  background: var(--bg-soft);
  padding: 100px 0;
}
.real__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.real {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}
.real:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.real__year {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--green);
  background: rgba(43,182,115,.10);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.real h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--navy);
}
.real__coord {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}
.real p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.real--hero {
  background: var(--navy);
  border-color: var(--navy);
}
.real--hero h4 { color: #fff; }
.real--hero p  { color: rgba(255,255,255,.78); }
.real--hero .real__year {
  background: rgba(43,182,115,.22);
  color: #fff;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background:
    linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content:'';
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(43,182,115,.18) 0%, transparent 70%);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
}
.cta-band__title { color: #fff; margin-bottom: 10px; }
.cta-band__lead {
  color: rgba(255,255,255,.78);
  margin: 0;
  font-size: 16px;
}
.cta-band__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT / MAP
   ============================================================ */
.contact {
  padding: 100px 0;
  background: #fff;
}
.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.contact__map iframe { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.75);
  padding-top: 72px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__col h5 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 6px 0 18px;
}
.footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a:hover { color: var(--green); }
.footer__tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin: 16px 0 10px;
}
.footer__about {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 320px;
}
@media (max-width: 720px) {
  .logo__tagline { display: none; }
  .logo__img { height: 38px; }
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .header__inner { height: 72px; gap: 18px; grid-template-columns: auto 1fr auto auto; }
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid .service:last-child { grid-column: 1 / -1; }
  .real__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__center { display: none; }
  .topbar__left { gap: 12px; }
  .topbar__item { font-size: 12px; }
  .topbar__item:first-child { display: none; }
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: inline-flex; }
  .header__inner { grid-template-columns: 1fr auto; height: 64px; }

  .hero__inner { padding: 72px 20px 90px; min-height: 540px; }
  .hero__title { font-size: clamp(32px, 8vw, 48px); }
  .hero__badges { gap: 24px; }
  .hero__badge strong { font-size: 26px; }

  .services { margin-top: -48px; padding-bottom: 64px; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .service:last-child { grid-column: auto; }
  .service { padding: 28px 22px; }

  .about, .realizations, .contact { padding: 64px 0; }
  .real__grid { grid-template-columns: 1fr; }
  .stats { padding: 56px 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; }

  .cta-band { padding: 56px 0; }
  .cta-band__actions .btn { flex: 1; min-width: 180px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer { padding-top: 56px; }
}
