/*
Theme Name: ZMC Theme
Theme URI: https://zmc.pl
Author: ZMC
Description: Custom theme for Zakłady Metalowe Charbrowo
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: zmc
*/

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

:root {
  --blue: #1a5fa8;
  --blue-dark: #0f3d6e;
  --blue-light: #e8f0fa;
  --orange: #e8a020;
  --orange-dark: #c07800;
  --orange-light: #fdf3e0;
  --gray: #555;
  --gray-light: #f4f5f7;
  --border: #dde3ea;
  --text: #222;
  --white: #fff;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
	position: relative;
}

.site-logo img { height: 48px; display: block; }

.site-nav-language {position: absolute; right: 48px; top: 12px; display: flex;  gap: 16px; align-items: center;  flex-wrap: wrap;  list-style: none;}
.site-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; list-style: none; position: relative; top: 12px; }
.site-nav a { color: var(--text); font-size: 13.5px; font-weight: 600; transition: color 0.2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a.current-menu-item { color: var(--blue); text-decoration: none; }
.site-nav a.current-menu-item { border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.site-nav .lang-item{display: none;}
.nav-lang { display: flex; gap: 6px; align-items: center; margin-left: 8px; }
.nav-lang a { display: flex; opacity: 0.75; transition: opacity 0.2s; }
.nav-lang a:hover, .nav-lang a.active { opacity: 1; }
.nav-lang img { height: 14px; width: auto; border: 1px solid #ccc; }

.menu-toggle { display: none; }
.hamburger-icon {
display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: var(--gray);;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--gray-light);
  padding: 9px 48px;
  font-size: 12.5px;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--blue); }

/* ── HERO (homepage 4-grid) ── */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
	    max-width: 1200px;
    margin: 0 auto;
}

.hero-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 360px;
  display: block;
}

.hero-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-item:hover img { transform: scale(1.04); }

.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 28px 16px 14px;
  text-align: center;
  font-style: italic;
}

/* ── PRODUCT PAGE HERO ── */
.page-hero {
  padding: 64px 48px 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero.blue { background: linear-gradient(135deg, var(--blue-dark) 0%, #1a5fa8 60%, #2a7bc8 100%); color: white; }
.page-hero.dark { background: linear-gradient(135deg, #1a1a1a 0%, #2d3a20 55%, #3a4a28 100%); color: white; }

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
  margin-bottom: 20px; position: relative;
}
.blue .hero-tag { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); }
.dark .hero-tag { background: var(--orange); color: white; }

.page-hero h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 18px; position: relative;
}
.page-hero h1 span { color: var(--orange); }

.page-hero p {
  font-size: 16px; max-width: 640px;
  margin: 0 auto 30px; opacity: 0.9; position: relative;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-primary {
  display: inline-block;
  font-weight: 700; font-size: 14px;
  padding: 12px 30px; border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.blue .btn-primary { background: white; color: var(--blue-dark); }
.blue .btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); text-decoration: none; }
.dark .btn-primary { background: var(--orange); color: white; border: 2px solid var(--orange); }
.dark .btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: transparent; color: white;
  font-weight: 700; font-size: 14px;
  padding: 12px 30px; border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, transform 0.15s; text-decoration: none;
}
.btn-secondary:hover { border-color: white; transform: translateY(-1px); text-decoration: none; }



/* ── SECTIONS ── */
.section { padding: 56px 48px; }
.section-alt { background: var(--gray-light); }

.section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 10px; text-align: center;
}

.section-line { width: 50px; height: 3px; margin: 0 auto 16px; }
.section-line.blue { background: var(--blue); }
.section-line.orange { background: var(--orange); }

.section-intro {
  text-align: center; max-width: 680px;
  margin: 0 auto 40px; color: var(--gray); font-size: 15px;
}

.section-intro.left{text-align: left;}
.privacy h2{margin: 20px 0 10px}

.grey-bg{position: relative}
.grey-bg:before{content:""; width: 200vw; height: 100%; position:absolute; top: 0; left: -100vw; background: var(--gray-light); z-index: -1}
.custom-gallery{max-width: 900px; margin: 0 auto; padding-bottom: 40px}

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px; max-width: 1200px; margin: 0 auto;
}

.product-card {
  background: white; border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; position: relative; padding-bottom: 90px; 
}
.product-card:hover { box-shadow: 0 8px 28px rgba(26,95,168,0.13); transform: translateY(-3px); }
.product-card.orange:hover { box-shadow: 0 8px 28px rgba(232,160,32,0.18); }

.card-img-wrap {
  width: 100%; height: 200px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.card-img-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center; font-size: 68px;
}

.card-header-bar {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px; font-weight: 700;
  padding: 10px 18px; letter-spacing: 0.3px; color: white;
}
.card-header-bar.blue { background: var(--blue); }
.card-header-bar.orange { background: var(--orange); }

.card-body { padding: 20px 20px 24px; }
.card-desc { font-size: 14px; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }
.card-specs { list-style: none; border-top: 1px solid var(--border); padding-top: 14px; }
.card-specs li { font-size: 13px; color: var(--text); padding: 3px 0 3px 18px; position: relative; }
.card-specs li::before { content: '▸'; position: absolute; left: 0; font-size: 11px; top: 4px; }
.card-specs.blue li::before { color: var(--blue); }
.card-specs.orange li::before { color: var(--orange); }

.variant-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.variant-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 2px; }
.variant-badge.blue { background: var(--blue-light); color: var(--blue-dark); }
.variant-badge.orange { background: var(--orange-light); color: var(--orange-dark); border: 1px solid #f0d090; }

.Xcard-links{position: absolute; width: calc(100% - 40px); left: 20px; bottom: 20px; text-align: center; border-top: 1px solid var(--border); padding-top: 20px; }
.card-links{position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
   top: 0;  
   
}
.card-links  .btn-secondary {font-size: 0; border:none; width: 100%; height: 100%;}
.card-links .label{
border: 2px solid var(--orange);
    color: var(--orange);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
	border-radius: 2px;
	pointer-events: none;
	}

.card-links.blue .label{
border: 2px solid var(--blue);
    color: var(--blue);}
    /* padding: 16px;

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.why-card { background: white; padding: 28px 22px; text-align: center; }
.why-card.blue { border-top: 3px solid var(--blue); }
.why-card.orange { border-top: 3px solid var(--orange); }
.why-icon { font-size: 38px; margin-bottom: 14px; }
.why-title { font-family: 'Roboto Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.why-desc { font-size: 13.5px; color: var(--gray); line-height: 1.6; }

/* ── HOMEPAGE MAIN ── */
.main-content { max-width: 820px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.main-content h1 { font-family: 'Roboto Condensed', sans-serif; font-size: 24px; font-weight: 700; color: var(--blue-dark); margin-bottom: 22px; }
.main-content p { font-size: 15px; color: var(--gray); margin-bottom: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }
.btn-contact { display: inline-block; margin-top: 24px; background: var(--blue); color: white; font-weight: 700; font-size: 14px; padding: 12px 30px; border-radius: 2px; transition: background 0.2s, transform 0.15s; }
.btn-contact:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; }

.partner-intro { background: var(--gray-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 24px; text-align: center; }
.partner-intro p { font-size: 15px; color: var(--gray); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* ── CONTACT SECTION ── */
.contact-section { max-width: 820px; margin: 0 auto; padding: 52px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-section h2 { font-family: 'Roboto Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--blue-dark); margin-bottom: 16px; }
.contact-block p { font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.map-wrap { border: 1px solid var(--border); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ── CONTACT FORM (CF7 compatible) ── */
.contact-wrap { max-width: 700px; margin: 0 auto; background: white; border: 1px solid var(--border); padding: 40px; }
.contact-wrap .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.contact-wrap .form-group { display: flex; flex-direction: column; }
.contact-wrap .form-group.full { grid-column: 1 / -1; }
.contact-wrap label { font-size: 12.5px; font-weight: 700; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom:6px; display: block; }
.contact-wrap input[type="text"],
.contact-wrap input[type="email"],
.contact-wrap input[type="tel"],
.contact-wrap textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px; color: var(--text);
  background: #fafbfc; outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.wpcf7-form label{display: block; margin-bottom: 16px}
.wpcf7-form .half {display: inline-block; width: 48%;}
.wpcf7-form .half.first{padding-right: 2%;}
.wpcf7-form .half.last{padding-left: 2%;}
.contact-wrap input:focus,
.contact-wrap textarea:focus { border-color: var(--blue); }
.contact-wrap textarea { resize: vertical; min-height: 110px; }
.btn-submit, .wpcf7-submit {
  font-weight: 700; font-size: 14px;
  padding: 13px 36px; border: none;
  cursor: pointer; letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px; color: white;
}
.btn-submit.blue, .wpcf7-submit { background: var(--blue); }
.btn-submit.blue:hover, .wpcf7-submit:hover { background: var(--blue-dark); }
.btn-submit.orange { background: var(--orange); }
.btn-submit.orange:hover { background: var(--orange-dark); }
.privacy-note { font-size: 11.5px; color: #999; margin-top: 12px; }

/* ── PARTNER LOGOS ── */
.partners { background: var(--gray-light); border-top: 1px solid var(--border); padding: 36px 24px; text-align: center; }
.partners p { font-size: 12px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 28px; }
.partner-logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.partner-logos a img { height: 36px; width: auto; filter: grayscale(30%); opacity: 0.85; transition: opacity 0.2s, filter 0.2s; }
.partner-logos a:hover img { opacity: 1; filter: none; }

/* ── INTRO STRIP ── */
.intro-strip { color: white; padding: 16px 40px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.intro-strip.blue { background: var(--blue); }
.intro-strip.orange { background: var(--orange); }

/* ── carousel ── */
.cb-carousel-block{margin: 0 40px; }
.cb-carousel-block:before{content:""; width: 200vw; height: 100%; position:absolute; top: 0; left: -100vw; background: var(--gray-light);}

/* ── FOOTER ── */
footer.site-footer { background: var(--blue-dark); color: rgba(255,255,255,0.65); padding: 22px 48px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
footer.site-footer a { color: rgba(255,255,255,0.65); }
footer.site-footer a:hover { color: white; text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1120px) {
	.site-nav-language{display: none;}
	.hamburger-icon {display: flex;	}
	.site-nav-wrapper{display: none; position: absolute; width: 100%; top: 77px; left: 0; background:#fff; height: calc(100vh - 77px); overflow-y: auto; padding: 20px;}
	.menu-toggle:checked ~ .site-nav-wrapper { display: block; }
	.site-nav-wrapper li{display: block; width: 100%;}
	.site-nav-wrapper li.lang-item{display: inline-block; width: 40px;}
	.site-nav .lang-item{display: block;}
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-item { max-height: 280px; }
  header.site-header { padding: 0 24px; }
  .section { padding: 44px 24px; }
  .breadcrumb { padding: 9px 24px; }

}
@media (max-width: 600px) {
  header.site-header { padding: 14px 20px; flex-wrap: wrap; height: auto; gap: 12px; }
  .site-nav { gap: 14px; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-item { max-height: 200px; }
  .page-hero { padding: 44px 20px 36px; }
  .contact-section { grid-template-columns: 1fr; gap: 28px; }
  .contact-wrap .form-row { grid-template-columns: 1fr; }
  footer.site-footer { padding: 20px; flex-direction: column; text-align: center; }
  .intro-strip { gap: 16px; padding: 14px 20px; }
}
