﻿/*
Theme Name: Rodlew QMD
Theme URI: https://rodlewqmd.pl/
Author: OpenAI Codex
Description: Lekki motyw WordPress odtwarzajacy wyglad strony Rodlew QMD bez zakladki Produkty w menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: rodlew-qmd
*/

:root {
  --rodlew-orange: #f18914;
  --rodlew-orange-dark: #d1740b;
  --rodlew-black: #000;
  --rodlew-ink: #242424;
  --rodlew-muted: #808080;
  --rodlew-slate: #5d6261;
  --rodlew-footer: #191919;
  --rodlew-light: #f7f7f7;
  --rodlew-line: #c4c4c4;
  --rodlew-max: 1360px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--rodlew-ink);
  font-family: "Roboto Condensed", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--rodlew-orange);
}

.container {
  width: min(var(--rodlew-max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  width: 226px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #000;
  text-transform: uppercase;
}

.primary-nav a::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 3px;
  background: var(--rodlew-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.primary-nav a:hover::before,
.primary-nav a:focus::before,
.primary-nav .is-active a::before {
  transform: scaleX(1);
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .is-active a {
  color: var(--rodlew-orange);
}

.main-page-heading,
.page-heading {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 34px;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}

.main-page-heading::before,
.page-heading::before {
  content: "";
  position: absolute;
  width: 30%;
  min-width: 78px;
  height: 3px;
  bottom: -18px;
  left: 0;
  border-bottom: 3px solid var(--rodlew-line);
}

.hero-slider {
  position: relative;
  width: 100%;
  background: #080808;
  overflow: hidden;
}

.hero-slider img {
  width: 100%;
  min-height: 320px;
  max-height: 700px;
  object-fit: cover;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
}

.button,
.hero-cta a,
.read-more,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 30px;
  border: 1px solid var(--rodlew-orange);
  background: var(--rodlew-orange);
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.hero-cta a:hover,
.read-more:hover,
.contact-form button:hover,
.button:focus,
.hero-cta a:focus,
.read-more:focus,
.contact-form button:focus {
  background: var(--rodlew-orange-dark);
  border-color: var(--rodlew-orange-dark);
  color: #fff;
}

.products-section {
  padding: 54px 0 30px;
}

.lead-copy {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 0 70px;
  color: var(--rodlew-muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 76px 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 50px;
}

.category-card {
  position: relative;
  min-height: 252px;
}

.category-card a {
  display: block;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.category-label {
  position: absolute;
  right: -10px;
  bottom: -52px;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.2;
  transition: background 160ms ease;
}

.category-card:nth-child(1):hover .category-label { background: #77046c; }
.category-card:nth-child(2):hover .category-label { background: #003e02; }
.category-card:nth-child(3):hover .category-label { background: #5b5b5b; }
.category-card:nth-child(4):hover .category-label { background: #c62d2d; }
.category-card:nth-child(5):hover .category-label { background: #df4a4a; }
.category-card:nth-child(6):hover .category-label { background: #1f2856; }
.category-card:nth-child(7):hover .category-label { background: #008dc9; }
.category-card:nth-child(8):hover .category-label { background: #5e9914; }
.category-card:nth-child(9):hover .category-label { background: #f18914; }
.category-card:nth-child(10):hover .category-label { background: #999; }

.about-band {
  min-height: 720px;
  background: #000 url("assets/images/o-firmie-background.png") no-repeat right center;
  background-size: auto 100%;
  color: #fff;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.about-content {
  width: min(650px, 100%);
  padding: 72px 0;
}

.about-content .main-page-heading {
  color: #fff;
  margin-left: 0;
  margin-right: 0;
}

.about-content p {
  margin: 0 0 24px;
  color: #f0f0f0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
}

.about-content strong,
.about-content .accent {
  color: var(--rodlew-orange);
}

.features {
  padding: 70px 0 54px;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin-top: 62px;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  background: url("assets/images/polygon.png") no-repeat center / contain;
}

.feature-icon img {
  max-width: 58px;
  max-height: 58px;
  margin: 0 auto;
}

.feature h3 {
  margin: 0 auto 14px;
  max-width: 270px;
  color: #000;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.feature p {
  margin: 0;
  color: #787878;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  background: var(--rodlew-footer);
  color: #d7d7d7;
}

.footer-info {
  padding: 48px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-info h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.footer-info p,
.footer-info span {
  display: block;
  margin: 0;
  color: #d7d7d7;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.copyrights {
  background: #000;
  color: #aaa;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
}

.copyrights .container {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-wrap {
  padding: 56px 0 74px;
}

.breadcrumb {
  margin-bottom: 32px;
  color: #8a8a8a;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
}

.content-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.content-panel p,
.content-panel li {
  color: #555;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

.content-panel h2,
.content-panel h3 {
  color: #000;
  font-weight: 400;
  text-transform: uppercase;
}

.content-panel h2 {
  font-size: 34px;
  margin: 44px 0 18px;
}

.content-panel h3 {
  font-size: 24px;
  margin: 34px 0 14px;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  margin: 44px 0;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.photo-pair img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
  margin: 36px 0 52px;
  text-align: center;
}

.person img {
  width: 198px;
  height: 198px;
  object-fit: cover;
  margin: 0 auto 14px;
}

.person p {
  margin: 0;
  color: #000;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

.person span,
.person a {
  display: block;
  color: #666;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  margin: 36px 0 50px;
}

.contact-card {
  border: 1px solid #e5e5e5;
  padding: 30px;
  background: #fff;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  background: #f4f4f4;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 12px 14px;
  font: 16px "Open Sans", Arial, sans-serif;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.notice {
  padding: 14px 18px;
  margin: 0 0 20px;
  background: #eef8ee;
  border-left: 4px solid #48b151;
  color: #245924;
  font-family: "Open Sans", Arial, sans-serif;
}

.map-wrap iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
}

.ue-banner {
  margin: 0 auto 34px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.project-fact {
  border: 1px solid #e1e1e1;
  padding: 22px;
}

.project-fact strong {
  display: block;
  color: var(--rodlew-orange);
  font-size: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8f8f8;
  padding: 10px;
}

.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  background: #f7f7f7;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
}

.cookie-note.is-visible {
  display: block;
}

.cookie-note .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.cookie-note p {
  margin: 0;
  color: #555;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
}

.cookie-note button {
  border: 0;
  background: var(--rodlew-orange);
  color: #fff;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .header-inner {
    min-height: 92px;
  }

  .site-logo img {
    width: 190px;
  }

  .primary-nav a {
    padding: 10px 10px;
    font-size: 15px;
  }

  .category-grid,
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--rodlew-max));
  }

  .header-inner {
    align-items: center;
    min-height: 82px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    margin: 0;
    padding: 12px 20px 18px;
  }

  .primary-nav a {
    padding: 13px 0;
  }

  .primary-nav a::before {
    left: 0;
    right: auto;
    width: 86px;
  }

  .category-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px 22px;
  }

  .about-band {
    background-position: center bottom;
    background-size: cover;
  }

  .about-content {
    background: rgba(0, 0, 0, 0.72);
    padding: 48px 20px;
  }

  .footer-info,
  .contact-cards,
  .split-band,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .photo-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-logo img {
    width: 158px;
  }

  .hero-slider img {
    min-height: 260px;
  }

  .products-section {
    padding-top: 38px;
  }

  .lead-copy {
    padding-bottom: 54px;
    font-size: 16px;
  }

  .category-grid,
  .feature-grid,
  .people-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 220px;
  }

  .category-card img {
    width: min(245px, 100%);
    margin: 0 auto;
  }

  .category-label {
    right: 50%;
    transform: translateX(50%);
  }

  .copyrights .container,
  .cookie-note .container {
    flex-direction: column;
    padding: 14px 0;
  }
}

