/*
Theme Name: Schudnij z Lekkością
Theme URI: https://schudnijzlekkoscia.pl/
Author: Schudnij z Lekkością
Description: Lekki, własny motyw WordPress bez buildera. Przygotowany pod szybkość, prostą edycję i rozwój strony schudnijzlekkoscia.pl.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: szl
*/

:root {
  --szl-green: #173f43;
  --szl-orange: #ff5e00;
  --szl-orange-light: #fe8f34;
  --szl-lime: #c4db1c;
  --szl-lime-light: #daff7b;
  --szl-gray: #a8a8a8;
  --szl-white: #ffffff;
  --szl-bg: #fffdf9;
  --szl-radius: 24px;
  --szl-shadow: 0 12px 32px rgba(23, 63, 67, .08);
  --szl-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--szl-green);
  background: var(--szl-white);
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }

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

.szl-site-header {
  position: relative;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,63,67,.08);
}
.szl-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.szl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}
.custom-logo { max-height: 54px; width: auto; }
.szl-site-title { font-size: 18px; font-weight: 700; }

.szl-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.szl-nav a {
  text-decoration: none;
  font-weight: 500;
}
.szl-nav a:hover,
.szl-nav .current-menu-item > a { color: var(--szl-orange); }

.szl-mobile-nav { display: none; }
.szl-mobile-nav summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(23,63,67,.14);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
}
.szl-mobile-nav summary::-webkit-details-marker { display: none; }
.szl-mobile-nav[open] .szl-mobile-menu {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 72px;
  background: var(--szl-white);
  border: 1px solid rgba(23,63,67,.10);
  border-radius: 20px;
  box-shadow: var(--szl-shadow);
  padding: 18px;
}
.szl-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.szl-mobile-menu li + li { border-top: 1px solid rgba(23,63,67,.08); }
.szl-mobile-menu a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; }

.szl-main { min-height: 60vh; }
.szl-content { padding: 56px 0 80px; }
.szl-content > *:first-child { margin-top: 0; }
.szl-content > *:last-child { margin-bottom: 0; }

.entry-title {
  margin: 0 0 26px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.szl-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--szl-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255,94,0,.18);
}
.szl-button:hover,
.wp-block-button__link:hover { transform: translateY(-1px); }

.szl-site-footer {
  background: var(--szl-green);
  color: #fff;
  padding: 42px 0;
}
.szl-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.szl-footer-inner p { margin: 0; }
.szl-footer-inner a { color: #fff; }

.alignwide { width: min(calc(100% - 40px), 1320px); margin-inline: auto; }
.alignfull { width: 100%; }

@media (max-width: 820px) {
  .szl-container { width: min(calc(100% - 28px), var(--szl-container)); }
  .szl-header-inner { min-height: 72px; }
  .szl-nav { display: none; }
  .szl-mobile-nav { display: block; }
  .szl-content { padding: 38px 0 60px; }
  .szl-footer-inner { align-items: flex-start; flex-direction: column; }
}

/* Konsultacje dietetyczne — hero 1:1 */
.szl-site-header {
  border-bottom: 0;
  background: #fff;
}
.szl-header-inner {
  width: min(calc(100% - 40px), 1235px);
  min-height: 94px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 270px 1fr 244px;
  align-items: center;
  gap: 28px;
}
.szl-brand { min-width: 0; }
.szl-site-title {
  color: #627ca7;
  font-size: 22px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}
.custom-logo { max-height: 72px; max-width: 250px; width: auto; }
.szl-nav { justify-self: center; }
.szl-nav ul { gap: 45px; }
.szl-nav a {
  color: #072f34;
  font-size: 17px;
  font-weight: 600;
}
.szl-has-arrow > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 8px;
  transform: translateY(-2px);
  font-size: 17px;
}
.szl-header-phone {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  min-height: 54px;
  border-radius: 24px;
  background: #4bb64f;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}

.szl-consult-page { overflow: hidden; }
.szl-consult-hero {
  position: relative;
  min-height: 582px;
  overflow: hidden;
  background: #fff;
}
.szl-consult-fruit-bg {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 500px;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.65) 0%, rgba(255,255,255,.30) 18%, rgba(255,255,255,.13) 100%),
    url('assets/images/tlo-hero.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 1840px auto;
  opacity: .72;
}
.szl-consult-wrap {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 1135px);
  min-height: 582px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 575px 1fr;
  gap: 48px;
}
.szl-consult-copy {
  position: relative;
  z-index: 4;
  padding-top: 19px;
}
.szl-consult-eyebrow {
  margin: 0 0 25px;
  color: #a8a8a8;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}
.szl-consult-copy h1 {
  margin: 0;
  color: #173f43;
  font-size: 44px;
  line-height: 1.43;
  letter-spacing: .01em;
  font-weight: 600;
}
.szl-consult-h1-line { display: inline-block; }
.szl-consult-copy h1 strong {
  color: #ff5e00;
  font-weight: 600;
}
.szl-consult-lead {
  margin: 29px 0 3px;
  color: #173f43;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}
.szl-consult-lead strong { font-weight: 600; }
.szl-consult-text {
  width: 575px;
  max-width: 100%;
  margin: 0;
  color: #173f43;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 400;
}
.szl-consult-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 527px;
  max-width: 100%;
  min-height: 61px;
  margin-top: 44px;
  border-radius: 30px;
  background: #ff5e00;
  color: #fff;
  box-shadow: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}
.szl-consult-cta:hover { transform: none; background: #ef5700; }
.szl-consult-meta {
  margin: 17px 0 0;
  color: #173f43;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-align: center;
}
.szl-consult-meta span { margin: 0 6px; }

.szl-consult-visual {
  position: relative;
  min-height: 582px;
}
.szl-consult-blob-img {
  position: absolute;
  z-index: 1;
  width: 430px;
  height: auto;
  top: 85px;
  left: 28px;
}
.szl-consult-person-img {
  position: absolute;
  z-index: 2;
  width: 490px;
  max-width: none;
  height: auto;
  top: 24px;
  left: 1px;
}
.szl-consult-person-card {
  position: absolute;
  z-index: 5;
  right: -7px;
  bottom: 18px;
  width: 263px;
  min-height: 138px;
  padding: 21px 26px 18px;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(0,0,0,.11);
  color: #173f43;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.szl-consult-person-card strong {
  color: #ff5e00;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.szl-consult-person-card b {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}
.szl-consult-person-card span {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
}
.szl-consult-editor-content { padding-top: 58px; }

@media (max-width: 1100px) {
  .szl-header-inner {
    grid-template-columns: 230px 1fr 190px;
    gap: 18px;
  }
  .szl-nav ul { gap: 24px; }
  .szl-nav a { font-size: 15px; }
  .szl-header-phone { width: 190px; font-size: 16px; }
  .szl-consult-wrap {
    width: min(calc(100% - 36px), 960px);
    grid-template-columns: 510px 1fr;
    gap: 22px;
  }
  .szl-consult-person-img { width: 445px; left: -10px; top: 49px; }
  .szl-consult-blob-img { width: 390px; left: 5px; top: 101px; }
  .szl-consult-person-card { right: 0; }
}

@media (max-width: 860px) {
  .szl-header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }
  .szl-site-title { font-size: 18px; }
  .szl-nav, .szl-header-phone { display: none; }
  .szl-mobile-nav { display: block; }

  .szl-consult-hero { min-height: auto; }
  .szl-consult-wrap {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 0;
  }
  .szl-consult-copy { padding-top: 28px; }
  .szl-consult-eyebrow { margin-bottom: 16px; font-size: 14px; }
  .szl-consult-copy h1 { font-size: clamp(36px, 9vw, 48px); line-height: 1.25; }
  .szl-consult-lead { margin-top: 22px; }
  .szl-consult-cta { margin-top: 28px; width: 100%; }
  .szl-consult-meta { letter-spacing: .06em; }
  .szl-consult-visual { min-height: 520px; width: min(100%, 520px); margin: 0 auto; }
  .szl-consult-person-img { width: 470px; left: 50%; transform: translateX(-50%); top: 10px; }
  .szl-consult-blob-img { width: 400px; left: 50%; transform: translateX(-50%); top: 65px; }
  .szl-consult-person-card { right: 6px; bottom: 15px; }
  .szl-consult-fruit-bg { height: 440px; background-size: 1600px auto; }
}

@media (max-width: 520px) {
  .szl-consult-wrap { width: min(calc(100% - 28px), 480px); }
  .szl-consult-copy h1 { font-size: 37px; }
  .szl-consult-lead, .szl-consult-text { font-size: 15px; }
  .szl-consult-text { line-height: 1.75; }
  .szl-consult-cta { min-height: 56px; padding: 10px 16px; font-size: 15px; }
  .szl-consult-meta { font-size: 11px; }
  .szl-consult-visual { min-height: 445px; }
  .szl-consult-person-img { width: 400px; top: 28px; }
  .szl-consult-blob-img { width: 330px; top: 78px; }
  .szl-consult-person-card {
    right: 0;
    bottom: 10px;
    width: 230px;
    min-height: 120px;
    padding: 17px 20px;
  }
  .szl-consult-person-card strong { font-size: 16px; }
  .szl-consult-person-card b { font-size: 14px; }
  .szl-consult-person-card span { font-size: 13px; }
}
