/* =========================================================================
   Euro Team Trader — styl publiczny (nowy layout)
   Trzon 1:1 z mockupu docs/layout1/index.html + adaptacje pod silnik MiniCMS.
   ========================================================================= */

/* --- Inter (samohosting, Fontsource variable; latin + latin-ext dla PL znakow) --- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ett-navy: #06233f;
  --ett-navy-2: #0a355f;
  --ett-blue: #0077b6;
  --ett-cyan: #00a6d6;
  --ett-light: #f4f9fc;
  --ett-soft: #e8f5fb;
  --ett-gray: #64748b;
  --ett-dark: #0f172a;
  --ett-border: rgba(15, 23, 42, .1);
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ett-dark);
  background: #fff;
}

a {
  text-decoration: none;
}

.top-bar {
  background: var(--ett-navy);
  color: rgba(255,255,255,.84);
  font-size: .875rem;
}

.top-bar a {
  color: rgba(255,255,255,.9);
}

.navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ett-navy) !important;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ett-blue), var(--ett-cyan));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 119, 182, .25);
}

.nav-link {
  font-weight: 600;
  font-size: .875rem;
  color: #334155 !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ett-blue) !important;
}

.btn-primary-ett {
  --bs-btn-bg: var(--ett-blue);
  --bs-btn-border-color: var(--ett-blue);
  --bs-btn-hover-bg: #005f94;
  --bs-btn-hover-border-color: #005f94;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: .85rem 1.4rem;
  box-shadow: 0 12px 24px rgba(0, 119, 182, .18);
}

.btn-outline-ett {
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: .85rem 1.4rem;
}

.btn-outline-ett:hover {
  background: #fff;
  color: var(--ett-navy);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,35,63,.95) 0%, rgba(6,35,63,.86) 46%, rgba(6,35,63,.35) 100%),
    url('../img/hero.jpg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.06em;
  max-width: 960px;
}

.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: rgba(255,255,255,.86);
  max-width: 720px;
}

.hero-card {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 1.4rem;
  color: #fff;
  height: 100%;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.section-padding {
  padding: 96px 0;
}

.section-kicker {
  color: var(--ett-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.055em;
  color: var(--ett-navy);
}

.section-lead {
  color: var(--ett-gray);
  font-size: 1.1rem;
  line-height: 1.75;
}

.offer-card {
  height: 100%;
  border: 1px solid var(--ett-border);
  border-radius: 28px;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 119, 182, .35);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .1);
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--ett-soft);
  color: var(--ett-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.4rem;
}

.offer-card h3 {
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ett-navy);
  font-size: 1.35rem;
}

.offer-card p {
  color: var(--ett-gray);
  line-height: 1.7;
}

.feature-strip {
  background: linear-gradient(135deg, var(--ett-navy), var(--ett-navy-2));
  color: #fff;
  border-radius: 36px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.feature-strip::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: rgba(0, 166, 214, .22);
  right: -110px;
  top: -120px;
}

.feature-item {
  position: relative;
  z-index: 2;
}

.feature-item i {
  color: #7dd3fc;
  font-size: 1.7rem;
}

.feature-item h4 {
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.feature-item p {
  color: rgba(255,255,255,.72);
  margin-bottom: 0;
}

.bg-soft {
  background: var(--ett-light);
}

.project-card {
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
  height: 100%;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 119, 182, .22);
}

.project-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-card .project-title {
  color: var(--ett-navy);
  transition: color .2s ease;
}

.project-card:hover .project-title {
  color: var(--ett-blue);
}

.badge-ett {
  background: var(--ett-soft);
  color: var(--ett-blue);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-weight: 700;
  font-size: .78rem;
}

.timeline-card {
  border-left: 3px solid var(--ett-blue);
  padding-left: 1.25rem;
}

.testimonial {
  border: 1px solid var(--ett-border);
  border-radius: 28px;
  padding: 2rem;
  height: 100%;
  background: #fff;
}

.testimonial p {
  color: #475569;
  line-height: 1.75;
}

.contact-box {
  background: #fff;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .09);
  border: 1px solid var(--ett-border);
}

.form-control,
.form-select {
  border-radius: 16px;
  padding: .85rem 1rem;
  border-color: rgba(15, 23, 42, .14);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ett-blue);
  box-shadow: 0 0 0 .25rem rgba(0, 119, 182, .12);
}

.footer {
  background: var(--ett-navy);
  color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
}

.footer h5,
.footer h6 {
  color: #fff;
  font-weight: 800;
}

.footer a {
  color: rgba(255,255,255,.75);
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .9rem;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .feature-strip {
    padding: 2rem;
    border-radius: 28px;
  }
}

/* --- Podmenu navbara (dowolna glebokosc — BS5 nie ma tego natywnie) --- */
.navbar .dropdown-menu {
  --bs-dropdown-link-active-bg: var(--ett-soft);
  --bs-dropdown-link-active-color: var(--ett-blue);
}
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -.5rem; margin-left: .1rem; }
.dropdown-submenu > .dropdown-toggle::after {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}
@media (min-width: 1200px) {
  .dropdown-submenu:hover > .dropdown-menu { display: block; }
}
@media (max-width: 1199.98px) {
  .dropdown-submenu > .dropdown-menu { left: 0; margin-left: 1rem; }
  .dropdown-submenu.show > .dropdown-menu { display: block; }
}

/* --- Galeria masonry (CMS) — przeniesione z wycietego main202508081400.css --- */
.gallery-masonry {
  column-count: 6;
  column-gap: 10px;
  line-height: 0;
}
.gallery-masonry .gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  border: 0;
  overflow: hidden;
}
.gallery-masonry .gallery-item img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  display: block;
  transition: all ease-in-out .4s;
}
.gallery-masonry .gallery-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 1399px) { .gallery-masonry { column-count: 5; } }
@media (max-width: 1199px) { .gallery-masonry { column-count: 4; } }
@media (max-width: 767px)  { .gallery-masonry { column-count: 3; } }
@media (max-width: 575px)  { .gallery-masonry { column-count: 2; } }
