/* ================================================
   PR Consultants — static site stylesheet
   ================================================ */

:root {
  --accent:   #b02030;
  --dark:     #1a1a1a;
  --mid:      #555;
  --light:    #f8f8f6;
  --border:   #e8e8e8;
  --white:    #ffffff;
  --radius:   10px;
  --max:      1100px;
  --header-h: 88px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

/* Logo */
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-link img { height: 64px; width: auto; }

/* Right side */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Flags */
.flags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-btn {
  display: block;
  width: 24px;
  height: 16px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
  padding: 0;
}
.flag-btn:hover, .flag-btn.active { opacity: 1; }
.flag-pl { background-image: url('../../images/flaga_pl.jpg'); }
.flag-en { background-image: url('../../images/flaga_gb.jpg'); }
.flag-ru { background-image: url('../../images/flaga_ru.jpg'); }
.flag-zh { background-image: url('../../images/flaga_zh.jpg'); }

/* Main nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--dark);
  padding: 7px 14px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a.current { color: var(--accent); background: #faf0f1; }

/* Category bar */
.category-bar {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.category-bar .container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
}
.cat-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.cat-link:hover { color: var(--accent); background: #faf0f1; }

/* ================================================
   HERO SLIDER
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; }

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
  background: var(--white);
  border-top: 3px solid var(--accent);
  padding: 80px 28px 88px;
}

.about-inner {
  max-width: 760px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 24px;
}

.section-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--mid);
  max-width: 680px;
  margin-bottom: 32px;
}

.btn-outline {
  display: inline-block;
  padding: 10px 26px;
  border: 2px solid var(--dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--dark);
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--white);
  transition: background 0.15s;
}
.btn-primary:hover { background: #333; }

/* ================================================
   CATEGORY TILES
   ================================================ */
.categories-section {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 64px 28px 80px;
}

.section-head {
  margin-bottom: 36px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

/* Larger grid for the products page */
.cat-grid--large {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-grid--large .cat-tile { height: 240px; }

.cat-tile {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  text-decoration: none;
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transition: transform 0.38s ease, filter 0.38s ease;
}

.cat-tile:hover img {
  transform: scale(1.07);
  filter: brightness(0.65);
}

.cat-tile-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.section-cta { text-align: center; }

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  background: var(--dark);
  padding: 56px 28px 60px;
  color: var(--white);
}

.page-hero .section-label { color: rgba(255,255,255,0.55); }
.page-hero .section-title { color: var(--white); margin-bottom: 0; }

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-page-content {
  padding: 72px 28px 88px;
  background: var(--white);
}

.about-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stat-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-left: 3px solid var(--accent);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.4;
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-content {
  padding: 72px 28px 88px;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

.contact-block {
  background: var(--light);
  border-radius: var(--radius);
  padding: 36px 32px;
  border-top: 3px solid var(--accent);
}

.contact-block h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-row:last-child { margin-bottom: 0; }

.contact-icon {
  width: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact-detail { font-size: 15px; line-height: 1.6; color: var(--dark); }
.contact-detail a { color: var(--accent); transition: opacity 0.15s; }
.contact-detail a:hover { opacity: 0.75; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 32px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
}

.footer-sep {
  margin: 0 10px;
  opacity: 0.3;
}

.footer-contact a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-contact a:hover { color: #fff; }

.footer-copy { font-size: 12px; opacity: 0.45; }

/* ================================================
   PRODUCTS PAGE — filter tabs + product cards
   ================================================ */

.filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  padding: 0;
}

.filter-tab__img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.filter-tab__label {
  display: block;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.filter-tab:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.filter-tab.active {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.filter-tab.active .filter-tab__label {
  color: var(--accent);
  font-weight: 700;
}

/* "All" button without image */
.filter-tab--all {
  justify-content: center;
  height: auto;
  min-height: 100%;
}

.filter-tab--all .filter-tab__label {
  padding: 0 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* responsive: smaller on mobile */
@media (max-width: 600px) {
  .filter-tab {
    width: calc(33.333% - 8px);
  }
  .filter-tab__img {
    height: 60px;
  }
  .filter-tab__label {
    font-size: 11px;
    padding: 6px 4px;
  }
}

.products-page-section {
  background: var(--light);
  padding: 40px 28px 80px;
  min-height: 400px;
}

.products-count {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
}

.products-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.prod-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.prod-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.prod-card-img {
  width: 100%;
  height: 170px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.prod-card-img--contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}

.prod-card-body {
  padding: 14px 16px 18px;
}

.prod-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.prod-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
}

.products-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--mid);
  font-size: 15px;
}

/* ================================================
   HAMBURGER / NAV TOGGLE
   ================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--light); }

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   RESPONSIVE — ≤ 1024 px  (large tablet)
   ================================================ */
@media (max-width: 1024px) {
  .products-page-grid        { grid-template-columns: repeat(3, 1fr); }
  .cat-grid--large           { grid-template-columns: repeat(2, 1fr); }
  .cat-grid--large .cat-tile { height: 210px; }
}

/* ================================================
   RESPONSIVE — ≤ 768 px  (tablet / mobile)
   ================================================ */
@media (max-width: 768px) {
  /* Custom props */
  :root { --header-h: 64px; }

  /* Container */
  .container { padding: 0 20px; }

  /* ---- Header ---- */
  .logo-link img { height: 48px; }

  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .nav-toggle { display: flex; }

  /* Mobile nav: hidden by default, drops from sticky header */
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    flex-direction: column;
    gap: 0;
    padding: 0;
    display: none;
    z-index: 99;
  }
  .main-nav.open { display: flex; }

  .main-nav a {
    border-radius: 0;
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a:last-child { border-bottom: none; }

  /* ---- Hero ---- */
  .hero { height: 52vw; min-height: 220px; max-height: 420px; }

  /* ---- About section ---- */
  .about-section { padding: 48px 0 56px; }
  .section-title { font-size: 27px; }

  /* ---- Categories ---- */
  .categories-section { padding: 44px 0 56px; }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-tile { height: 155px; }

  /* ---- Products page ---- */
  .filter-section { padding: 16px 0; }
  .filter-tab { width: calc(33.333% - 9px); }
  .filter-tab__img { height: 70px; }
  .products-page-section { padding: 32px 0 60px; }
  .products-page-grid { grid-template-columns: repeat(2, 1fr); }

  /* ---- About page ---- */
  .about-page-content { padding: 48px 24px 60px; }
  .about-two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-stats { margin-top: 0; }

  /* ---- Contact page ---- */
  .contact-content { padding: 48px 24px 60px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* ---- Page hero ---- */
  .page-hero { padding: 36px 0 40px; }
  .page-hero .section-title { font-size: 27px; margin-bottom: 0; }

  /* ---- Footer ---- */
  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .footer-sep { display: none; }
}

/* ================================================
   RESPONSIVE — ≤ 480 px  (small phone)
   ================================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* ---- Typography ---- */
  .section-title { font-size: 22px; }
  .section-text  { font-size: 15px; }

  /* ---- Hero ---- */
  .hero { height: 60vw; max-height: 280px; }

  /* ---- About section ---- */
  .about-section { padding: 36px 0 44px; }

  /* ---- Categories: one per row ---- */
  .categories-section { padding: 36px 0 48px; }
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cat-tile { height: 175px; }

  /* ---- Products page ---- */
  .products-page-grid { grid-template-columns: 1fr; }
  .filter-tab { width: calc(50% - 6px); }
  .filter-tab__img { height: 60px; }
  .filter-tab__label { font-size: 11px; padding: 6px 4px; }

  /* ---- About stats: single column ---- */
  .about-stats { grid-template-columns: 1fr; }

  /* ---- cat-grid--large ---- */
  .cat-grid--large { grid-template-columns: 1fr; }
  .cat-grid--large .cat-tile { height: 195px; }

  /* ---- Footer ---- */
  .site-footer { padding: 24px 16px; }
}