/* =====================================
  Fenda Core - style.css (warm_friendly)
  Author: Senior CSS Developer & UI Designer
  ======================================= */

/* ===================
   CSS RESET & NORMALIZE
   =================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F3EF;
  color: #274137;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
a {
  color: #E37134;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #365948;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.25em;
}
li { margin-bottom: 0.5em; }
strong { font-weight: 700; }

/* ===================
   CSS VARIABLES (with fallbacks)
   =================== */
:root {
  --primary: #365948;
  --primary-dark: #274137;
  --secondary: #F5F3EF;
  --secondary-light: #FFF;
  --accent: #E37134;
  --accent-light: #f9e1d0;
  --text: #274137;
  --header-height: 74px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-lg: 0 4px 24px rgba(54,89,72,0.11);
  --shadow-md: 0 2px 8px rgba(54,89,72,0.09);
  --shadow-sm: 0 1px 4px rgba(54,89,72,0.08);
}

/* ===================
   TYPOGRAPHY SCALE
   =================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.25;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.25;
}
p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}
.text-section p {
  margin-bottom: 14px;
}

/* ===================
   LAYOUT CONTAINERS
   =================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 246px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(54,89,72,0.14);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 42px;
  height: 42px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent-light);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.93rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary-dark);
  opacity: 0.87;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ===================
   PRIMARY COMPONENTS
   =================== */
.btn-primary, button.btn-primary, input[type="submit"].btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.18s;
  margin-top: 12px;
  text-align: center;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #c95e1f;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px 0 rgba(227,113,52,0.10);
}

/* Category Cards (for przepisy.html) */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.category-grid > div {
  flex: 1 1 210px;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.15s;
  margin-bottom: 20px;
}
.category-grid > div:hover {
  box-shadow: 0 8px 28px rgba(227,113,52,0.12);
}
.category-grid img {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}
.category-grid h3 {
  color: var(--accent);
  margin-bottom: 8px;
}
.category-grid p {
  color: var(--primary-dark);
  font-size: 1rem;
}

/* ===================
   HEADER & NAVIGATION
   =================== */
header {
  background: var(--secondary-light);
  box-shadow: 0 2px 14px rgba(54,89,72,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 18px;
  padding: 0 20px;
}
header img {
  height: 42px;
  margin-right: 18px;
  border-radius: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  background: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  color: #fff;
  background: var(--accent);
  text-decoration: none;
}

/* Hide mobile toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: var(--radius-md);
  padding: 7px 18px 7px 15px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
  z-index: 33;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  transform: scale(1.06);
}

/* ===========================
   MOBILE NAVIGATION OVERLAY
   =========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,243,239,0.97);
  box-shadow: 0 8px 32px rgba(54,89,72,0.07);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 2rem;
  margin: 24px 0 14px 24px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1110;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
  padding: 0 32px;
}
.mobile-nav a {
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary-dark);
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.16s, color 0.16s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--accent);
}

@media (max-width: 1024px) {
  nav {
    gap: 8px;
  }
  header .container {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================
   RESPONSIVE LAYOUTS
   =================== */
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.1rem; }
  .section { padding: 28px 7px; }
  .card, .category-grid > div {
    min-width: 70vw;
    flex: 1 1 90vw;
    padding: 16px 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .category-grid,
  .card-container,
  .content-grid {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav,
  .footer-contact,
  .footer-newsletter {
    align-items: flex-start;
  }
}

/* ===================
   INPUTS & SEARCH
   =================== */
input[type="text"], input[type="email"], input[type="search"] {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  border: 1.5px solid #DBDBDB;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 18px;
  width: 100%;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  transition: border 0.18s, box-shadow 0.18s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus {
  border: 1.5px solid var(--accent);
  outline: none;
  box-shadow: 0 4px 18px rgba(227,113,52,0.08);
}

/* ===================
   FOOTER AREA
   =================== */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 42px 0 32px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 18px rgba(54,89,72,0.06);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.93;
  border-radius: var(--radius-sm);
  transition: background 0.13s, color 0.13s;
  padding: 4px 12px;
  display: inline-block;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--primary-dark);
  background: var(--accent-light);
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.brand-info img {
  width: 48px; height: 48px;
}
.footer-contact {
  font-size: 1rem;
  margin-bottom: 12px;
  max-width: 270px;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-social img {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  box-shadow: var(--shadow-md);
  background: #fff;
  transition: transform 0.16s;
}
.footer-social a:hover img {
  transform: scale(1.09) rotate(-6deg);
}
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
.footer-newsletter h3 { color: #fff; font-size: 1.1rem; margin-bottom: 3px; }
.footer-newsletter p { color: #f3efea; font-size: 0.98rem; }

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 10px;
  }
  .brand-info img { margin-bottom: 8px; }
}

/* ===================
   LISTS
   =================== */
ul, ol {
  color: var(--primary);
  font-size: 1.05rem;
  padding-left: 24px;
  line-height: 1.6;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  word-break: break-word;
}
ul li img, ol li img {
  width: 32px; height: 32px; margin-right: 7px; border-radius: 8px; background: #fff6f1;
}
ol li { list-style-type: decimal; }

/* ===================
   MISC HELPERS
   =================== */
.nowrap { white-space: nowrap; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100%; }

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: #fff8f2;
  color: var(--primary-dark);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 24px rgba(227,113,52,0.10);
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  z-index: 1200;
  font-size: 1rem;
  transition: transform 0.28s, opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner p {
  color: var(--primary-dark);
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}
.cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.16s, transform 0.14s;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: var(--accent);
  border: 1.2px solid var(--accent);
}
.cookie-banner button.cookie-settings {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: #f9e1d0;
  color: var(--primary-dark);
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1400;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(39,65,55,0.36);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInModal 0.28s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px 0 rgba(54,89,72,0.17);
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalSlideIn 0.34s cubic-bezier(0.65,0,0.35,1);
}
@keyframes modalSlideIn {
  from { transform: translateY(80px) scale(0.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--primary-dark);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  border-radius: 3px;
  accent-color: var(--accent);
}
.cookie-modal .cookie-save {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 11px 22px;
  margin-top: 12px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.13s;
}
.cookie-modal .cookie-save:hover {
  background: var(--primary);
  transform: scale(1.04);
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

/* ===================
   ANIMATIONS & DETAILS
   =================== */
.btn-primary, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.card, .testimonial-card, .category-grid > div {
  transition: box-shadow 0.17s, transform 0.13s;
}

/* ===================
   MISC OVERRIDES
   =================== */
::-webkit-input-placeholder { color: #b7b6b3; }
::-moz-placeholder { color: #b7b6b3; }
:-ms-input-placeholder { color: #b7b6b3; }
::placeholder { color: #b7b6b3; }

/* ========== END ========== */
