/* ---- 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #111208;
}
body {
  color: #221e15;
  background: #F3EEDA;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #356C27;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #bfa24d;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.6em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
:focus {
  outline: 2px solid #bfa24d;
  outline-offset: 2px;
}

/* ---- BRAND FONT LOADING ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ---- VARIABLES (with fallbacks) ---- */
:root {
  --color-primary: #356C27;
  --color-secondary: #77B355;
  --color-accent: #F3EEDA;
  --color-gold: #bfa24d;
  --color-dark: #111208;
  --color-light: #fff;
  --color-grey: #e6e3db;
  --color-neutral: #ecebeb;
  --color-shadow: rgba(17, 18, 8, 0.10);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #111208;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #221e15;
  margin-bottom: 1.25em;
}
strong {
  font-weight: 700;
  color: #111208;
}
small {
  font-size: 0.88rem;
}

/* ---- CONTAINERS & GENERAL LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 26px var(--color-shadow);
  padding: 40px 32px;
  margin-bottom: 40px;
  border: 1.5px solid var(--color-grey);
}

@media (max-width: 992px) {
  .container { max-width: 95vw; }
  .text-section { padding: 32px 12px; }
}

@media (max-width: 720px) {
  .container { padding: 0 10px; }
  .text-section { padding: 20px 7px; }
}

/* ---- LUXURY PREMIUM CARD & SPACING PATTERNS ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1.2px solid #ecebeb;
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 220px;
}
.card:hover, .card:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 6px 36px rgba(191,162,77,0.10), 0 1.5px 5px rgba(53, 108, 39, 0.03);
  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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-left: 4px solid var(--color-gold);
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px var(--color-shadow);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 12px;
}

/* ---- GOLD ACCENT, DETAILS & LUXURY EFFECTS ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 35px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 25px;
  border: 1.5px solid var(--color-gold);
  background: linear-gradient(93deg, #bfa24d 24%, #ffe8ac 120%);
  color: var(--color-dark);
  box-shadow: 0 4px 26px rgba(191,162,77,0.12);
  letter-spacing: 0.035em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.1);
  margin-top: 14px;
  transition: background 0.22s, color 0.17s, transform 0.2s, box-shadow 0.17s;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(93deg, #fff7db 33%, #e2c46e 90%);
  color: var(--color-primary);
  box-shadow: 0 8px 40px rgba(191,162,77,0.16);
  transform: translateY(-2px) scale(1.025);
  border-color: #bfa24d;
}

button, input[type="button"], input[type="submit"] {
  font-family: var(--font-body);
}

/* GOLD UNDERLINE FOR LINKS (Luxury detail) */
a:not(.cta-btn) {
  position: relative;
  color: var(--color-primary);
  transition: color 0.20s;
}
a:not(.cta-btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-gold);
  opacity: 0;
  transition: opacity 0.18s, transform 0.22s;
  transform: scaleX(0.8);
}
a:not(.cta-btn):hover, a:not(.cta-btn):focus {
  color: #bfa24d;
}
a:not(.cta-btn):hover::after, a:not(.cta-btn):focus::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ---- HEADER & NAV ---- */
header {
  width: 100%;
  background: var(--color-accent);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 2px 20px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: 10px; padding-bottom: 10px;
}
header img[alt='Oszczędne Smaki'] {
  max-height: 44px;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.015em;
  position: relative;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.17s;
}
header nav a:hover, header nav a:focus {
  background: rgba(191, 162, 77, 0.09);
  color: #bfa24d;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1.6px solid var(--color-gold);
  color: #bfa24d;
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 4px 13px 4px 10px;
  cursor: pointer;
  margin-left: 12px;
  transition: border-color 0.18s, background 0.19s, color 0.2s;
  z-index: 210;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #fff9ed;
}

@media (max-width: 1050px) {
  header nav { gap: 11px; }
  header .cta-btn { padding: 10px 25px; }
}
@media (max-width: 900px) {
  header .cta-btn { display: none; }
  header nav a { font-size: 1rem; }
}
@media (max-width: 860px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(51,44,25,0.89);
  z-index: 220;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  box-shadow: 0 0 64px 10px rgba(17,18,8,0.29);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff3db;
  color: #bfa24d;
  border: none;
  font-size: 2rem;
  padding: 8px 20px;
  border-radius: 10px;
  align-self: flex-end;
  margin: 6px 25px 18px 0;
  cursor: pointer;
  transition: background 0.20s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #ffe8ac;
  color: var(--color-primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: center;
  margin-top: 21px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: #fffbe0;
  background: rgba(191,162,77,0.07);
  padding: 14px 36px;
  border-radius: 12px;
  letter-spacing: 0.015em;
  font-weight: 600;
  transition: background 0.22s, color 0.15s;
  margin-bottom: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #bfa24d;
  color: #111208;
}

/* ---- MAIN & SECTION LAYOUT ---- */
main {
  padding-top: 20px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 600px) {
  section {
    margin-bottom: 38px;
    padding-top: 17px;
  }
}

/* Maintain SPACING between all cards and content blocks */
section, .card, .testimonial-card, .card-container, .category-grid, .content-wrapper, .text-section {
  margin-bottom: 20px;
}

/* ---- RESPONSIVE FLEX DIRECTION ---- */
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .card-container,
  .feature-item {
    flex-direction: column !important;
    gap: 17px;
    align-items: stretch;
  }
  .category-grid {
    flex-direction: column !important;
    gap: 24px;
  }
}

/* ---- HERO & FEATURE ICONS ---- */
ul > li > img, .feature-item img {
  height: 30px;
  width: 30px;
  vertical-align: middle;
  margin-right: 11px;
  margin-bottom: -6px;
}

/* ---- CATEGORY GRID ---- */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}
.category {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 327px;
  background: #fff;
  border: 1.3px solid #ecebeb;
  border-radius: 14px;
  box-shadow: 0 2px 13px var(--color-shadow);
  padding: 30px 20px;
  margin-bottom: 20px;
  transition: border-color 0.21s, box-shadow 0.2s, transform 0.17s;
}
.category:hover, .category:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 10px 40px rgba(191,162,77,0.10);
  transform: translateY(-2px) scale(1.012);
  z-index: 2;
}

/* ---- FOOTER ---- */
footer {
  background: #1d2117;
  color: #fff;
  padding: 35px 0 25px 0;
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 -4px 26px var(--color-shadow);
  letter-spacing: 0.015em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: #ffe7a6;
  font-family: var(--font-display);
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #bfa24d;
  color: #221e15;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  font-size: 0.97rem;
  color: #eddfbb;
  margin-top: 8px;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 5px;
  filter: brightness(1.1) sepia(.7) hue-rotate(18deg) saturate(1.6);
}
@media (max-width: 750px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 16px;
  }
}

/* ---- FORMS & INPUTS ---- */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  border: 1.2px solid var(--color-grey);
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
  font-size: 1rem;
  color: #2c3427;
  font-family: var(--font-body);
  margin-bottom: 13px;
  transition: border-color 0.18s, box-shadow 0.17s;
  box-shadow: 0 2px 9px rgba(191,162,77,0.05);
  width: 100%;
  max-width: 450px;
}
input:focus, textarea:focus {
  border-color: #bfa24d;
  box-shadow: 0 4px 14px rgba(191,162,77,0.08);
  outline: none;
}
button, .btn {
  font-family: var(--font-body);
  border-radius: 25px;
  font-size: 1.01rem;
  border: 1.5px solid var(--color-gold);
  padding: 12px 26px;
  background: linear-gradient(90deg,#bfa24d 40%, #ffe8ac 110%);
  color: var(--color-dark);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: linear-gradient(93deg, #fff7db 33%, #e2c46e 110%);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #fff;
  color: #222115;
  border-left: 4px solid var(--color-gold);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 20px 28px;
  font-size: 1.1rem;
  margin-bottom: 24px;
  border-radius: 14px;
  transition: box-shadow 0.21s, border-color 0.16s;
  min-width: 230px;
  max-width: 650px;
}
.testimonial-card strong {
  color: var(--color-gold);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 36px rgba(191,162,77,0.14), 0 1.5px 5px rgba(53, 108, 39, 0.03);
  border-color: var(--color-primary);
}

/* ---- ARTICLE, BLOG, LISTS ---- */
article {
  background: #fff;
  border-radius: 15px;
  padding: 26px 20px 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 16px var(--color-shadow);
}
article h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ---- UTILITY CLASSES (for spacing/alignment) ---- */
.mt-3 { margin-top: 18px; }
.mt-5 { margin-top: 40px; }
.mb-3 { margin-bottom: 18px; }
.mb-5 { margin-bottom: 40px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: #fff9ed;
  box-shadow: 0 -2.5px 17px 0px #00000022;
  border-top: 2px solid var(--color-gold);
  color: #221e15;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 10vw 19px 10vw;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.28s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-banner.hidden {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 17px;
}
.cookie-banner button {
  min-width: 119px;
  box-shadow: 0 2px 6px rgba(191,162,77,0.09);
}
.cookie-banner .cookie-settings {
  background: #fffde9;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.cookie-banner .cookie-settings:hover {
  background: #ffe8ac;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 19px 5vw 16px 5vw;
    font-size: 0.94rem;
  }
  .cookie-banner .cookie-btns { gap: 10px; }
}

/* ---- COOKIE MODAL ---- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 5010;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30, 28, 0, 0.33);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  min-width: 302px;
  max-width: 95vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 33px rgba(191,162,77,0.16), 0 2.5px 9px #bfa24d18;
  border: 2px solid var(--color-gold);
  padding: 34px 28px 28px 28px;
  font-family: var(--font-body);
  color: #111208;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalFadeIn 0.28s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes modalFadeIn {
  0% { transform: scale(0.97) translateY(50px); opacity: 0; }
  80% { transform: scale(1.02) translateY(-6px); opacity: 1; }
  100% { transform: scale(1.0) translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 1.2em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  width: 24px;
  height: 24px;
  accent-color: var(--color-gold);
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 8px; right: 19px;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-primary);
}
.cookie-modal .cookie-actions {
  margin-top: 22px;
  display: flex;
  gap: 15px;
}
.cookie-modal .cookie-actions button {
  min-width: 110px;
  padding: 10px 18px;
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 600px) {
  .text-section, .card, .category {
    padding: 17px 6px;
  }
  .section {
    padding: 14px 0;
    margin-bottom: 30px;
  }
  .card {
    min-width: unset;
    max-width: unset;
  }
}
@media (max-width: 410px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.08rem; }
  .cta-btn, button, .btn { padding: 8px 14px; font-size: 0.9rem; }
}

/* ---- MICRO-INTERACTIONS & TRANSITIONS ---- */
.card, .category, .testimonial-card {
  transition: box-shadow 0.21s, border-color 0.16s, transform 0.16s;
}
a, .cta-btn, button, .btn {
  transition: color 0.17s, background 0.17s, box-shadow 0.17s, border-color 0.14s, transform 0.17s;
}

/* ---- HIDING SCROLL WHEN MOBILE MENU/COOKIE MODAL IS OPEN ---- */
.mobile-menu.open, .cookie-modal-overlay.open {
  overscroll-behavior: none;
}
body.menu-open, body.cookie-modal-open {
  overflow: hidden !important;
}

/* ---- ACCESSIBILITY ---- */
@media (prefers-contrast: more) {
  body { background: #fff; }
  .text-section, .card, .category { border-color: #a99852; }
  .cta-btn, button, .btn { border-color: #a99852; background: #e6d395; }
}

/* ---- END OF LUXURY PREMIUM CSS ---- */
