/*
Theme Name: FPH Panek
Theme URI: https://fphpanek.pl
Author: FPH Panek / Hermes Agent
Version: 2.5
Description: Lekki motyw FPH PANEK — nagłówek, stopka i wygląd zgodny z poprzednim układem (Poppins/Montserrat, #171717, #ea3a60, #0986c0). Bez page-buildera.
License: GNU General Public License v2 or later
Text Domain: fph
*/

:root {
  --fph-dark: #171717;
  --fph-dark2: #212121;
  --fph-dark3: #424242;
  --fph-red: #ea3a60;
  --fph-blue: #0986c0;
  --fph-ink: #0f0f0f;
  --fph-text: #1d1d1d;
}

html { font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fph-text);
  margin: 0;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--fph-ink);
  margin: 0.6em 0 0.4em;
}
h1 { font-size: 38px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5, h6 { font-size: 18px; }
a { color: var(--fph-blue); text-decoration: none; }
a:hover { color: var(--fph-red); }
p { margin: 0.4em 0 1em; }
img { max-width: 100%; height: auto; }

/* ===== Kontener ===== */
.fph-container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ===== NAGŁÓWEK ===== */
.fph-topbar { background: var(--fph-dark); padding: 10px 0; }
.fph-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fph-brand { color: #fff; font-family: 'Montserrat', sans-serif; font-size: 30px; text-transform: uppercase; line-height: 1.1; display: inline-block; }
.fph-brand:hover { color: var(--fph-red); }

.fph-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.fph-nav li { position: relative; }
.fph-nav a { color: #fff; padding: 10px 20px; display: block; text-transform: uppercase; font-size: 15px; }
.fph-nav a:hover, .fph-nav .current-menu-item > a, .fph-nav .current_page_item > a { color: var(--fph-red); }
.fph-nav .sub-menu ul, .fph-nav ul .sub-menu { display: none; position: absolute; left: 0; top: 100%; background: var(--fph-blue); min-width: 180px; z-index: 90; }
.fph-nav .sub-menu a { padding: 10px; }
.fph-nav li.menu-item-has-children:hover > .sub-menu { display: block; }
.fph-burger { display: none; background: var(--fph-red); color: #fff; border: 0; font-size: 22px; padding: 6px 12px; cursor: pointer; border-radius: 4px; }

/* ===== HERO (strony pod-ston) ===== */
.fph-hero {
  position: relative;
  background-color: #fff;
  padding: 120px 0 60px;
}
.fph-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.fph-hero-in { position: relative; max-width: 1204px; margin: 0 auto; padding: 0 20px; }
.fph-hero h1 { margin: 0 0 10px; font-size: 35px; color: var(--fph-ink); }
.fph-divider { width: 10%; height: 3px; background: var(--fph-red); }

/* ===== TREŚĆ ===== */
.fph-content { padding: 30px 0 40px; }
.fph-row { display: flex; flex-wrap: wrap; margin: 0 -10px; align-items: flex-start; }
.fph-col { box-sizing: border-box; padding: 0 10px; }
.fph-col-30 { width: 30%; }
.fph-col-33 { width: 33.33%; }
.fph-col-40 { width: 40%; }
.fph-col-50 { width: 50%; }
.fph-col-60 { width: 60%; }
.fph-col-66 { width: 66.66%; }
.fph-col-70 { width: 70%; }
.fph-col-100 { width: 100%; }

.fph-img { width: 100%; display: block; }
.fph-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fph-table th, .fph-table td { border: 1px solid #e2e2e2; padding: 8px 12px; text-align: left; }
.fph-table tbody tr:nth-child(odd) { background: #f6f9fb; }
.fph-table th { background: #eef4f8; }

.fph-btn { display: inline-block; background: var(--fph-blue); color: #fff !important; padding: 12px 26px; border-radius: 5px; font-weight: 600; text-transform: uppercase; font-size: 15px; }
.fph-btn:hover { background: var(--fph-red); color: #fff !important; }

/* Licznik */
.fph-counter { text-align: center; padding: 10px; }
.fph-counter b { display: block; font-size: 44px; font-family: 'Montserrat', sans-serif; color: var(--fph-blue); }
.fph-counter em { font-style: normal; color: var(--fph-text); }

/* Icon box / usługi */
.fph-iconbox { text-align: center; padding: 18px 10px; }
.fph-iconbox .fph-ico { font-size: 34px; color: var(--fph-blue); }

/* Testimonial */
.fph-testi { background: #f4f6f8; padding: 18px 22px; border-left: 4px solid var(--fph-blue); margin: 12px 0; font-style: italic; }
.fph-testi cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--fph-ink); }

/* ===== Slider (galeria produktu) ===== */
.fph-slider { position: relative; margin: 0 0 14px; }
.fph-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; }
.fph-slides::-webkit-scrollbar { display: none; }
.fph-slide { flex: 0 0 100%; scroll-snap-align: start; }
.fph-slide img { width: 100%; display: block; }
.fph-sl-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #6a6969; color: #fff; border: 0; padding: 10px 14px; cursor: pointer; font-size: 18px; line-height: 1; }
.fph-sl-prev { left: 6px; }
.fph-sl-next { right: 6px; }
.fph-sl-dots { text-align: center; margin-top: 8px; }
.fph-sl-dots a { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c9cdd2; margin: 0 4px; }
.fph-sl-dots a.on { background: var(--fph-blue); }

/* ===== Formularz kontaktowy ===== */
.fph-form { max-width: 640px; }
.fph-form label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
.fph-form input[type="text"], .fph-form input[type="email"], .fph-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cfd6dd; border-radius: 4px;
  font-family: inherit; font-size: 15px;
}
.fph-form textarea { min-height: 130px; }
.fph-form .fph-zgoda { margin: 16px 0 4px; font-weight: 400; font-size: 13px; line-height: 1.5; }
.fph-form .fph-zgoda input { margin-right: 8px; }
.fph-form button { margin-top: 16px; background: var(--fph-red); color: #fff; border: 0; padding: 12px 30px; font-weight: 600; cursor: pointer; border-radius: 5px; font-size: 15px; }
.fph-form button:hover { background: var(--fph-dark); }
.fph-form-msg { margin-top: 10px; font-size: 14px; display: none; }
.fph-form-msg.ok { display: block; color: #147a3d; background: #e8f7ee; padding: 10px 12px; border-radius: 4px; }
.fph-form-msg.err { display: block; color: #b3261e; background: #fdeceb; padding: 10px 12px; border-radius: 4px; }

/* ===== STOPKA ===== */
.fph-footer { background: var(--fph-dark2); color: #fff; padding: 30px 0 20px; }
.fph-footer a { color: var(--fph-blue); }
.fph-footer a:hover { color: #fff; }
.fph-footer .fph-brand { color: var(--fph-red); font-variant: small-caps; text-transform: none; }
.fph-footer h6, .fph-footer .fph-h6 { color: var(--fph-red); font-size: 16px; margin: 0 0 10px; font-family: 'Montserrat', sans-serif; }
.fph-footer li { list-style: none; }
.fph-footbar { background: var(--fph-dark3); color: #fff; text-align: center; padding: 6px 0; font-size: 14px; }
.fph-footbar a { color: #fff; }

/* ===== Cookie bar ===== */
#fph-cc { position: fixed; z-index: 99999; bottom: 0; left: 0; right: 0; background: #1b2431; color: #fff; padding: 18px 24px; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }

/* ===== Responsive ===== */
@media (max-width: 780px) {
  .fph-topbar-in { position: relative; }
  .fph-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #000; z-index: 99; }
  .fph-nav.open { display: block; }
  .fph-nav ul { flex-direction: column; align-items: stretch; }
  .fph-nav a { padding: 15px 20px; text-align: center; }
  .fph-burger { display: inline-block; }
  .fph-col-30, .fph-col-33, .fph-col-40, .fph-col-50, .fph-col-60, .fph-col-66, .fph-col-70 { width: 100%; }
  .fph-hero { background-attachment: scroll; padding: 70px 0 40px; }
  h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 22px; }
}

/* ===== Elementy z konwersji treści ===== */
.fph-hr { border: 0; height: 3px; background: var(--fph-red); margin: 16px 0; }
.fph-ul { margin: 0.4em 0 1em; padding-left: 20px; }
.fph-img { max-width: 100%; height: auto; border-radius: 2px; }
.fph-btn { display: inline-block; padding: 12px 26px; border-radius: 3px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; font-size: 14px; text-decoration: none; transition: background 0.2s; }
.fph-btn:hover { filter: brightness(0.9); color: #fff; }
.fph-counter { text-align: center; margin: 8px 0; }
.fph-counter b { display: block; font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 500; line-height: 1.15; }
.fph-counter em { font-style: normal; font-size: 16px; text-transform: uppercase; letter-spacing: 0.6px; }
.fph-iconbox { margin: 10px 0 16px; }
.fph-iconbox .fph-ico { color: var(--fph-red); font-size: 36px; margin-bottom: 10px; }
.fph-iconbox h4 { margin: 6px 0 8px; }
.fph-iconbox p { font-size: 15px; line-height: 1.65; }
.fph-service img.fph-img { width: 100%; height: auto; }
.fph-testi { padding: 18px; border: 1px solid #e8eaec; border-radius: 4px; margin: 10px 0; }
.fph-testi cite { display: block; margin-top: 10px; font-style: normal; color: var(--fph-red); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.fph-testi .fph-desig { display: block; font-size: 13px; color: #6b7280; }
.fph-testi .fph-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.fph-form-msg.ok, .fph-form-msg.err { /* w fph-core */ }
/* Tabela w treści: gęstsza */
.entry-content table, .fph-content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.fph-content td, .fph-content th, .entry-content td, .entry-content th { padding: 8px 10px; border: 1px solid #e2e5e9; font-size: 14px; text-align: left; }
/* Slidery pełne szerokości */
.fph-slide img { width: 100%; height: auto; }
.fph-slides img.fph-img { width: 100%; }
/* mobile */
@media (max-width: 860px) {
  .fph-content .fph-col { width: 100% !important; }
  .fph-burger { display: inline-block; }
  .fph-nav { display: none; }
  .fph-nav.open { display: block; position: absolute; right: 12px; top: 64px; background: var(--fph-dark); min-width: 220px; z-index: 200; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
  .fph-nav.open ul { flex-direction: column; }
}


/* ===== Przełącznik języka ===== */
.fph-lang { display: inline-block; background: var(--fph-red); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 3px; letter-spacing: 1px; }
.fph-lang:hover { filter: brightness(0.92); color: #fff; }
.fph-lang-li { margin-left: 14px !important; }
.fph-nav .fph-lang-li a { padding: 6px 14px; }


/* ===== Podstrony produktowe: wyśrodkowane zdjęcia (fix razi-lewo) ===== */
.fph-content .fph-img { max-width: 430px; width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; }
.fph-content .fph-slider { max-width: 430px; margin-left: auto; margin-right: auto; }


/* ===== Podstrony produktowe: treści wyśrodkowane (analogicznie do głównej) ===== */
.fph-content .fph-col > p { text-align: center; }
.fph-content .fph-col > h1, .fph-content .fph-col > h2, .fph-content .fph-col > h3 { text-align: center; }
.fph-content .fph-col > hr { margin-left: auto; margin-right: auto; }
.fph-content figure.wp-block-table { margin-left: auto; margin-right: auto; text-align: center; }
.fph-content figure.wp-block-table table { margin-left: auto; margin-right: auto; }
.fph-content .fph-col { text-align: center; }


/* ===== Podstrony produktów: jeden kolumnowy układ (slider top-center, opis pod) ===== */
.fph-content section > div { display: block !important; }
.fph-content .fph-col { width: 100% !important; margin-left: auto; margin-right: auto; }
.fph-content .fph-slider { max-width: 430px !important; margin-left: auto !important; margin-right: auto !important; display: block; }
.fph-content .fph-col > div { text-align: center; }
