/* ===============================
   VARIABLES & RESET
================================ */
:root {
  --bg-dark: #0b0b0b;
  --bg-light: #ffffff;
  --bg-cream: #f5f1e8;
  --bg-gray: #8A8A8A;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --text-muted: #9ca3af;
  --accent: #E31D23;
  --accent-dark: #b8161b;
  --border: #e5e7eb;
  --max-width: 1200px;
  --section-spacing: 3rem;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.65;
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}

/* ===============================
   HEADER & NAV
================================ */
header {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 60px;
  width: auto;
  max-height: 80px;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

nav a:hover {
  color: var(--accent);
  background: rgba(227, 29, 35, 0.05);
}

.lang-switch {
  font-weight: 700 !important;
  color: var(--text-dark);
  margin-left: 0.5rem;
}

.lang-switch:hover {
  color: var(--accent);
}

.nav-active {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ===============================
   HERO – base (fallback dark)
================================ */
.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
}

/* ===============================
   HERO with background image
   Shared by BHP + Contact pages
================================ */
.hero-page {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 38vh;
  background: var(--bg-dark) url('../assets/slide_2.jpg') center/cover no-repeat;
}

.hero-page .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-page .hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  padding: 2rem 0;
}

.hero-page .hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-page .hero-content p {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===============================
   HERO SLIDER
   <img> based – first image sets
   container height, preserving
   original aspect ratio
================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--bg-dark);
  height: 42vh;
}

.slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slider .slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: slideshow 9s infinite;
}

.slider .slide:nth-child(1) { animation-delay: 0s; }
.slider .slide:nth-child(2) { animation-delay: 3s; }
.slider .slide:nth-child(3) { animation-delay: 6s; }

@keyframes slideshow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  padding: 2rem 0;
}

.hero-slider .hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-size: 2.2rem;
  max-width: 780px;
}

.hero-slider .hero-content p {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

/* ===============================
   SECTIONS
================================ */
section {
  padding: 3rem 0;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

/* ===============================
   SERVICE SECTION & CARDS
================================ */
.service-section {
  padding: 3rem 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 2px solid var(--accent);
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* ===============================
   BHP STYLES
================================ */
.services-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.logo-bhp {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bhp-helmet-icon {
  position: absolute;
  top: -8px;
  right: -18px;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.bhp-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.6rem;
}

.bhp-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
  font-size: 0.95rem;
  color: #444;
}

.bhp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===============================
   CTA SECTION
================================ */
.cta {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: 3rem 2rem;
  margin: 0;
}

.cta h2 {
  margin-bottom: 0.8rem;
}

.cta > * {
  max-width: 640px;
  margin: 0 auto;
}

.cta-sub {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

.btn-outline:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===============================
   TECHNOLOGIES GRID – 3 kolumny
================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.tech-card {
  text-align: center;
}

.tech-card h3 {
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.tech-card img {
  width: 70%;
  height: auto;
  max-width: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}

.tech-card img:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

/* ===============================
   CONTACT PAGE
================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-card p {
  color: #555;
  margin-bottom: 0.8rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
  font-size: 1rem;
  color: #444;
}

.contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.contact-card-email {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.email-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color var(--transition);
  margin-top: 0.5rem;
}

.email-link:hover {
  color: var(--accent-dark);
}

/* ===============================
   FOOTER
================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.footer-keywords {
  font-size: 0.75rem;
  color: #bbb;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* ===============================
   RESPONSIVE – TABLET (2 col tech)
================================ */
@media (max-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ===============================
   RESPONSIVE – MOBILE
================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.8rem 0;
    gap: 0.6rem;
    text-align: center;
  }

  .logo-link img {
    height: 50px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    padding: 1.5rem 0;
  }

  .hero-slider {
    height: 32vh;
  }

  .hero-slider .hero-content h1 {
    margin: 0 auto;
    font-size: 1.15rem;
  }

  .hero-slider .hero-content p {
    margin: 0.5rem auto 0;
    font-size: 0.85rem;
  }

  .hero-page .hero-content h1 {
    margin: 0 auto;
  }

  .hero-page .hero-content p {
    margin: 1rem auto 0;
  }

  .hero-page {
    min-height: 32vh;
    background-position: center center;
  }

  /* Sections */
  section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.3rem;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .section-logo {
    height: 50px;
  }

  .service-section {
    padding: 2rem 1.25rem;
  }

  /* Cards */
  .services-grid,
  .services-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
    text-align: center;
  }

  .service-card .bhp-list,
  .contact-card,
  .contact-list {
    text-align: center;
  }

  .bhp-list li,
  .contact-list li {
    padding-left: 0;
  }

  .bhp-list li::before,
  .contact-list li::before {
    display: none;
  }

  /* Tech grid */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-card h3 {
    text-align: center;
  }

  .tech-card img {
    width: 60%;
    margin: 0 auto;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* CTA */
  .cta {
    padding: 2rem 1.25rem;
  }

  /* Footer */
  footer {
    font-size: 0.85rem;
  }
}