/* ===== CSS RESET & NORMALIZATION ===== */
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,
main, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #FFF;
  color: #381e13;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-weight: 400;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  padding-left: 1.5em;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:focus {
  outline: 2px solid #357266;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #8A3B12;
  --secondary: #F5DEB3;
  --accent: #357266;
  --bg-light: #FFF7EE;
  --bg-section: #F5DEB3;
  --card-bg: #fff;
  --shadow: 0 2px 10px 0 rgb(138 59 18 / 8%), 0 4px 24px 0 rgb(53 114 102 / 7%);
  --radius: 18px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --font-display: 'Domine', serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-angular: 'Montserrat', 'Domine', Arial, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.14;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  font-family: var(--font-angular);
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: var(--font-angular);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-family: var(--font-angular);
}
p, li {
  color: #381e13;
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-body);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
small {
  font-size: 0.875rem;
  color: #665240;
}

/* ===== PAGE CONTAINERS AND FLEX SECTIONS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px 0 rgb(138 59 18 / 16%);
  transform: translateY(-2px) scale(1.02);
}

.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: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  min-width: 240px;
  border-left: 6px solid var(--primary);
  position: relative;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), border-color 0.2s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgb(53 114 102 / 14%);
  border-color: var(--accent);
}
.testimonial-card p {
  color: #19110e;
  font-size: 1.05rem;
}
.testimonial-card strong {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}
.testimonial-card span {
  color: var(--accent);
  font-size: 1.35rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgb(138 59 18 / 6%);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: var(--font-angular);
  font-size: 1rem;
  padding: 9px 0 9px 0;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 7px;
  transition: background 0.15s, color 0.16s cubic-bezier(.4,0,.2,1);
  position: relative;
}
header nav a.cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 22px 9px 22px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 2px 9px rgb(53 114 102 / 9%);
  margin-left: 16px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--primary);
  color: #fff;
}
header nav a:hover,
header nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
header img {
  height: 40px;
  margin-right: 20px;
  filter: drop-shadow(0 2px 8px rgba(138,59,18,0.09));
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  margin-left: 26px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.18s cubic-bezier(.4,0,.2,1);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  outline: 2px solid var(--accent);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 2px 24px 0 rgb(53 114 102 / 26%);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px 24px 24px;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.82,.01,.11,1);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin-bottom: 22px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 11px;
  transition: background 0.13s cubic-bezier(.44,0,.2,1);
}
.mobile-menu-close:active,
.mobile-menu-close:focus {
  background: var(--secondary);
  outline: 2px solid var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-angular);
  font-size: 1.22rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 0 14px 0;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 23px;
  margin-bottom: 32px;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.16rem;
  max-width: 720px;
  color: #4a372d;
  margin-bottom: 16px;
  margin-top: 0;
}

/* ===== FEATURES, ABOUT, SERVICES, CONTACT SECTIONS ===== */
.features ul, .about ul, .services ul, .contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.features ul li, .about ul li, .services ul li, .contact ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 500;
  background: #fff;
  margin-bottom: 19px;
  border-radius: 12px;
  padding: 12px 20px 12px 16px;
  box-shadow: var(--shadow);
  letter-spacing: 0.01em;
  transition: box-shadow 0.13s cubic-bezier(.43,.06,.53,1.18);
}
.features ul li:hover, .about ul li:hover, .services ul li:hover, .contact ul li:hover {
  box-shadow: 0 8px 32px 0 rgb(53 114 102 / 11%);
}
.features ul li img,
.about ul li img,
.services ul li img,
.contact ul li img {
  width: 24px;
  height: 24px;
}
.features ul li:last-child, .about ul li:last-child, .services ul li:last-child, .contact ul li:last-child {
  margin-bottom: 0;
}

.content-wrapper > h2, .content-wrapper > h3 {
  margin-top: 0;
}

.contact .text-section {
  margin-top: 10px;
  margin-bottom: 24px;
}
.contact .cta {
  margin-top: 16px;
}

/* ===== CTA BUTTONS ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 0.85em 2.3em;
  border-radius: 21px;
  font-size: 1.16rem;
  font-family: var(--font-angular);
  font-weight: 700;
  box-shadow: 0 2px 18px 0 rgb(53 114 102 / 13%);
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 12px;
  transition: background 0.15s, color 0.14s, transform 0.18s cubic-bezier(.48,0,1,.55);
  outline: none;
  position: relative;
  gap: 10px;
}
.cta:hover,
.cta:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.03) translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background: #fff7ee;
  padding-top: 32px;
  padding-bottom: 28px;
  box-shadow: 0 -1px 14px rgb(53 114 102 / 7%);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
footer nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--font-angular);
  margin-right: 6px;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background 0.16s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
footer small {
  margin-left: 12px;
  color: #665240;
  font-family: var(--font-body);
}

/* ===== PRIVACY, POLICY, TERMS ===== */
.privacy-policy, .cookies-policy, .terms-and-conditions, .rodo {
  margin-top: 32px;
  margin-bottom: 60px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 22px;
}
.privacy-policy h1, .cookies-policy h1, .terms-and-conditions h1, .rodo h1 {
  margin-bottom: 18px;
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 4px solid var(--primary);
  box-shadow: 0 -2px 20px 0 rgba(53,114,102,0.13);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  animation: banner-slide-in 0.4s cubic-bezier(.51,.11,.85,1.02);
}
@keyframes banner-slide-in {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  font-size: 1rem;
  color: #2e140c;
  margin-right: 23px;
  font-family: var(--font-body);
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
.cookie-btn {
  font-family: var(--font-angular);
  padding: 9px 21px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.16s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04) translateY(-1px);
}
.cookie-btn.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #fff7ee;
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 13px;
  padding: 9px 21px;
  margin-left: 5px;
  font-family: var(--font-angular);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, border-color 0.13s;
}
.cookie-banner-settings:hover, .cookie-banner-settings:focus {
  background: var(--secondary);
  color: var(--accent);
  border-color: var(--accent);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(140, 59, 18, 0.33);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.21s cubic-bezier(.57,.32,.12,1);
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px 26px 28px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-pop-in 0.22s cubic-bezier(.56,.02,.7,1.27);
}
@keyframes modal-pop-in {
  0% { transform: scale(0.87); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 7px;
}
.cookie-modal h3 {
  font-family: var(--font-angular);
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1.01rem;
  color: #2f140b;
}
.cookie-toggle {
  --switch-bg: #ddd;
  --switch-checked: var(--accent);
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  background: var(--switch-bg);
  border-radius: 12px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--switch-checked);
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(22px);
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
  align-self: flex-end;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN (MOBILE-FIRST) ===== */
@media (max-width: 1000px) {
  .container { max-width: 100%; padding: 0 11px; }
  .hero { padding: 36px 9px; }
}
@media (max-width: 900px) {
  header nav { gap: 18px; }
  footer .container { flex-direction: column; gap: 16px; }
  footer nav { gap: 16px; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section, .privacy-policy, .cookies-policy, .terms-and-conditions, .rodo {
    padding: 22px 6px;
    border-radius: 11px;
  }
  .hero {
    padding: 22px 4px;
    gap: 8px;
    border-radius: 8px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 0.99rem; }
  .testimonial-card { gap: 8px; padding: 10px; border-radius: 8px; }
}
@media (max-width: 700px) {
  header .container { padding: 0 4px; }
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  footer nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
  .cookie-banner { padding: 10px 4px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .cookie-banner-buttons { flex-direction: column; gap: 9px; }
}
/* Hamburger always on for mobile */
@media (max-width: 960px) {
  .mobile-menu-toggle { display: block; }
  header nav { display: none; }
}
@media (max-width: 540px) {
  .testimonial-card { font-size: 0.97rem; }
  .feature-item { padding: 10px 7px; border-radius: 7px; }
  .about ul li, .features ul li, .services ul li, .contact ul li { padding: 9px 8px 9px 9px; border-radius: 7px; }
}

/* ===== GEOMETRIC/STRUCTURED DECORATIVE ANGULARS ===== */
.section:before,
.section:after {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  width: 60px;
  height: 60px;
  background: var(--accent);
  opacity: 0.09;
  clip-path: polygon(80% 0%, 100% 100%, 0% 100%, 0 70%, 70% 70%, 70% 0);
}
.section:before {
  top: 0; left: 0;
}
.section:after {
  bottom: 0; right: 0;
}

/* ===== MISC STYLES ===== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-section);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* Cards, grid effects, whitespace */
.card, .feature-item, .testimonial-card, .about ul li, .features ul li, .services ul li, .contact ul li {
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Prevent overlapping and guarantee flexbox spacing */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* Spacing between all content cards/sections (min 20px) */
.section, .testimonial-card, .feature-item, .about ul li, .features ul li, .services ul li, .contact ul li {
  margin-bottom: 20px;
}

/* Focus states for accessibility */
input:focus, textarea:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: #f1eded;
}

/* ===== END OF STYLE.CSS FOR SŁODKA TRADYCJA ===== */
