/*
Theme Name: Salinarium Salis
Theme URI: https://salinarium.pl
Author: Salinarium
Description: Oficjalny szablon Salinarium z maskotką Salisia. Kompatybilny z Elementor Pro (Header/Footer Builder).
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: salinarium
Tags: elementor, custom-logo, custom-menu, responsive, full-site-editing
*/

/* ══════════════════════════════════════════════════
   ZMIENNE CSS — paleta Salinarium 1:1
   ══════════════════════════════════════════════════ */
:root {
  /* Kolory */
  --sal-gold:          #f5c400;
  --sal-gold-hover:    #d4a800;
  --sal-gold-light:    rgba(245,196,0,0.12);
  --sal-green-dark:    #1b3d22;
  --sal-green-mid:     #2e6b3e;
  --sal-green-light:   rgba(46,107,62,0.1);
  --sal-blue:          #3b82c4;
  --sal-orange:        #d97706;
  --sal-cream:         #f9f5ea;
  --sal-cream2:        #f4ede0;
  --sal-white:         #ffffff;
  --sal-text:          #1a1a1a;
  --sal-text-body:     #444444;
  --sal-text-light:    #6b6b6b;
  --sal-border:        #e8dfc8;
  --sal-header-bg:     #ffffff;
  --sal-shadow:        0 2px 12px rgba(0,0,0,0.08);

  /* Typografia */
  --sal-font:          'Nunito', sans-serif;

  /* Layout */
  --sal-max-w:         1280px;
  --sal-hdr-h:         70px;
}

/* ══════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sal-font);
  background: var(--sal-cream);
  color: var(--sal-text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all .25s ease; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--sal-font); }

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

/* ══════════════════════════════════════════════════
   HEADER — Elementor Pro Header Builder
   Klasy używane przez szablon headera w Elementor
   ══════════════════════════════════════════════════ */

/* Wrapper nagłówka generowany przez Elementor Pro */
.elementor-location-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--sal-header-bg);
  box-shadow: var(--sal-shadow);
  transition: box-shadow .3s ease;
}
.elementor-location-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Fallback header PHP (gdy Elementor nie zarządza headerem) */
.sal-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9000;
  height: var(--sal-hdr-h);
  background: var(--sal-header-bg);
  box-shadow: var(--sal-shadow);
  transition: box-shadow .3s ease;
}
.sal-header__inner {
  display: flex;
  align-items: center;
  height: var(--sal-hdr-h);
  max-width: var(--sal-max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* LOGO */
.sal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}
.sal-logo img,
.sal-logo .custom-logo {
  height: 48px;
  width: auto;
}
.sal-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.sal-logo__name {
  font-family: var(--sal-font);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--sal-green-dark);
  letter-spacing: 0.01em;
}
.sal-logo__tagline {
  font-family: var(--sal-font);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sal-green-mid);
  margin-top: 2px;
}

/* NAWIGACJA */
.sal-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sal-nav ul li a {
  font-family: var(--sal-font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sal-text);
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color .2s ease;
}
.sal-nav ul li a:hover,
.sal-nav ul li.current-menu-item > a,
.sal-nav ul li.current_page_item > a {
  color: var(--sal-green-dark);
}
.sal-nav ul li.current-menu-item > a,
.sal-nav ul li.current_page_item > a {
  border-bottom: 2px solid var(--sal-green-mid);
  padding-bottom: 4px;
}

/* CTA BUTTON */
.sal-hdr-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 18px;
  padding: 11px 22px;
  background: var(--sal-gold);
  color: var(--sal-text);
  font-family: var(--sal-font);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  box-shadow: 0 3px 12px rgba(245,196,0,0.35);
  transition: all .2s ease;
  flex-shrink: 0;
  text-decoration: none;
}
.sal-hdr-cta:hover {
  background: var(--sal-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(245,196,0,0.4);
}
.sal-hdr-cta svg { width: 13px; height: 13px; }

/* TOP BAR (opcjonalny pasek nad nawigacją) */
.sal-topbar {
  background: var(--sal-green-dark);
  padding: 7px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.sal-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sal-font);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
.sal-topbar__item svg { width: 13px; height: 13px; color: var(--sal-gold); }
.sal-topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sal-topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background .2s;
}
.sal-topbar__social a:hover { background: rgba(245,196,0,0.3); }
.sal-topbar__social svg { width: 13px; height: 13px; color: rgba(255,255,255,0.8); }

/* HAMBURGER */
.sal-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  margin-left: 12px;
  cursor: pointer;
}
.sal-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sal-green-dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.sal-burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sal-burger.is-active span:nth-child(2) { opacity: 0; }
.sal-burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════════════════
   PAGE WRAPPER — offset za fixed header
   ══════════════════════════════════════════════════ */
.sal-page { padding-top: var(--sal-hdr-h); }
/* Elementor Pro Header Builder automatycznie zarządza offsetem */
.elementor-location-header ~ * .sal-page { padding-top: 0; }
/* Canvas template — brak headera PHP */
.elementor-page.elementor-page-id,
body.elementor-page { padding-top: 0; }

/* ══════════════════════════════════════════════════
   FOOTER — Elementor Pro Footer Builder
   ══════════════════════════════════════════════════ */
.elementor-location-footer { position: relative; z-index: 1; }

/* Fallback footer PHP */
.sal-footer {
  background: var(--sal-cream);
  border-top: 1px solid var(--sal-border);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.sal-footer__grid {
  display: grid;
  grid-template-columns: 270px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.sal-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.sal-footer__logo img { height: 44px; width: auto; }
.sal-footer__brand-text {
  font-family: var(--sal-font);
  font-size: 0.87rem;
  color: var(--sal-text-light);
  line-height: 1.65;
}
.sal-footer__col-title {
  font-family: var(--sal-font);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sal-text);
  margin-bottom: 14px;
}
.sal-footer__links { display: flex; flex-direction: column; gap: 8px; }
.sal-footer__links a {
  font-family: var(--sal-font);
  font-size: 0.87rem;
  color: var(--sal-text-light);
  transition: color .2s;
}
.sal-footer__links a:hover { color: var(--sal-green-mid); }
.sal-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
}
.sal-footer__contact-item svg {
  width: 15px;
  height: 15px;
  color: var(--sal-green-mid);
  flex-shrink: 0;
  margin-top: 2px;
}
.sal-footer__contact-item span {
  font-family: var(--sal-font);
  font-size: 0.87rem;
  color: var(--sal-text-light);
  line-height: 1.5;
}
.sal-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.sal-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sal-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.sal-footer__social a:hover {
  background: var(--sal-green-mid);
  transform: translateY(-2px);
}
.sal-footer__social a svg { width: 15px; height: 15px; color: #fff; }
.sal-footer__bottom {
  border-top: 1px solid var(--sal-border);
  padding: 18px 0;
  text-align: center;
  font-family: var(--sal-font);
  font-size: 0.78rem;
  color: var(--sal-text-light);
}
.sal-footer__paw {
  position: absolute;
  right: 28px;
  bottom: 50px;
  opacity: 0.07;
  pointer-events: none;
}
.sal-footer__paw svg { width: 90px; height: 90px; color: var(--sal-green-mid); }

/* ══════════════════════════════════════════════════
   ELEMENTOR — overrides dla poprawnego renderowania
   ══════════════════════════════════════════════════ */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}
/* Wyłącz domyślny padding Elementora w sekcjach full-width */
.e-con.e-con--full,
.elementor-section.elementor-section-full_width {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Czcionka dziedziczona we wszystkich widgetach */
.elementor *, .elementor-widget-container {
  font-family: var(--sal-font);
}
/* Poprawka: tekst nagłówków Elementora */
.elementor-heading-title {
  font-family: var(--sal-font) !important;
}

/* ══════════════════════════════════════════════════
   BUTTONS — globalne style przycisków
   ══════════════════════════════════════════════════ */
.sal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--sal-font);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.sal-btn--gold {
  background: var(--sal-gold);
  color: var(--sal-text);
  box-shadow: 0 4px 14px rgba(245,196,0,0.35);
}
.sal-btn--gold:hover {
  background: var(--sal-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.4);
}
.sal-btn--outline {
  background: transparent;
  color: var(--sal-green-dark);
  border: 2px solid var(--sal-green-dark);
}
.sal-btn--outline:hover {
  background: var(--sal-green-dark);
  color: var(--sal-white);
}
.sal-btn--outline-white {
  background: transparent;
  color: var(--sal-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.sal-btn--outline-white:hover { background: rgba(255,255,255,0.12); }

/* ══════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════ */
.sal-divider {
  width: 56px;
  height: 2px;
  background: var(--sal-gold);
  margin: 14px 0;
}
.sal-divider--center { margin: 14px auto; }
.text-gold { color: var(--sal-gold) !important; }
.text-green { color: var(--sal-green-mid) !important; }
.text-white { color: var(--sal-white) !important; }
.bg-cream { background: var(--sal-cream) !important; }
.bg-cream2 { background: var(--sal-cream2) !important; }
.bg-green-dark { background: var(--sal-green-dark) !important; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .sal-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .sal-hdr-cta { display: none; }
  .sal-topbar { display: none; }
}
@media (max-width: 768px) {
  :root { --sal-hdr-h: 62px; }
  .sal-nav { display: none; }
  .sal-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--sal-hdr-h);
    left: 0; right: 0; bottom: 0;
    background: var(--sal-white);
    z-index: 8999;
    padding: 28px 24px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  }
  .sal-nav.is-open ul {
    flex-direction: column;
    gap: 4px;
  }
  .sal-nav.is-open ul li a {
    font-size: 1.1rem;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--sal-border);
  }
  .sal-burger { display: flex; }
  .sal-footer__grid { grid-template-columns: 1fr; }
  .sal-footer { padding-top: 40px; }
}
@media (max-width: 480px) {
  .sal-container { padding: 0 16px; }
  .sal-footer__social a { width: 32px; height: 32px; }
}
