/* --- 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F2ED;
  color: #594A38;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #A3B377;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #594A38;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin: 0;
  padding-left: 1.2em;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
:focus {
  outline-color: #A3B377;
}

/* --- VARIABLES --- */
:root {
  --color-primary: #594A38;
  --color-secondary: #A3B377;
  --color-accent: #F7F2ED;
  --color-white: #fff;
  --color-light: #FDF9F6;
  --color-shadow: rgba(89,74,56,0.07);
  --color-shadow-strong: rgba(163,179,119,0.17);
  --radius-base: 18px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --shadow-base: 0 2px 12px var(--color-shadow);
  --shadow-lg: 0 4px 32px var(--color-shadow-strong);
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- LAYOUT WRAPPERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.2rem;
}
p, ul, ol, blockquote, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
blockquote {
  padding: 16px 32px;
  margin: 16px 0;
  background: #fff7ed;
  color: #886249;
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  font-style: italic;
}
strong {
  color: var(--color-secondary);
  font-weight: bold;
}

/* --- NAVIGATION --- */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 16px 0 rgba(89,74,56,0.06);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}
.main-nav > a img {
  height: 48px;
  border-radius: var(--radius-base);
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  align-items: center;
  margin: 0 24px 0 24px;
}
.main-nav ul li a {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.main-nav .cta {
  margin-left: 12px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 201;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  height: 48px;
  width: 48px;
  box-shadow: var(--shadow-base);
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.3s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--color-accent);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.68,-0.25,.28,1.25);
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  text-align: center;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  background: none;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* --- FLEX CONTAINERS & SPACING --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO SECTION & BUTTONS --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 36px;
  margin: 20px 0 0 0;
  box-shadow: var(--shadow-base);
  outline: none;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow .19s;
  cursor: pointer;
}
.cta.primary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}
.cta.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

/* --- FEATURES & ICON LISTS --- */
section ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 12px;
}
section ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-light);
  box-shadow: 0 1px 4px rgba(89,74,56,0.05);
  font-size: 1rem;
}
section ul li img {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--color-accent);
  padding: 4px;
  border-radius: var(--radius-sm);
}
.service-price {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 1.05em;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  color: #594A38;
  border-left: 5px solid var(--color-secondary);
  box-shadow: 0 2px 12px 0 rgba(163,179,119,0.15);
  min-height: 80px;
  border-radius: var(--radius-base);
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #594A38;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-style: italic;
}

/* --- CONTACT DATA --- */
.contact-data {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 18px 0;
}
.contact-data p, .contact-data a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #594A38;
}
.contact-data img {
  width: 22px; height: 22px;
  background: var(--color-light);
  border-radius: 6px;
}
.contact-cta {
  margin: 18px 0 0 0;
}

/* --- FAQ BRIEF IN PORADY --- */
.faq-brief {
  background: var(--color-accent);
  padding: 20px 24px;
  border-radius: var(--radius-base);
  margin-top: 28px;
  box-shadow: var(--shadow-base);
}
.faq-brief h3 {
  margin-bottom: 14px;
}
.faq-brief ul {
  gap: 10px;
}
.faq-brief ul li {
  background: transparent;
  padding: 4px 0;
  box-shadow: none;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding-top: 32px;
  padding-bottom: 16px;
  margin-top: 60px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-content > a img {
  width: 60px; height: 60px;
  background: #FFF;
  border-radius: var(--radius-base);
  margin-bottom: 6px;
}
.footer-content nav {
  margin: 10px 0;
}
.footer-content nav a {
  color: var(--color-secondary);
  font-weight: 500;
  margin: 0 8px;
  font-size: 1rem;
  transition: color 0.19s;
  padding: 4px 8px;
  border-radius: 8px;
}
.footer-content nav a:hover, .footer-content nav a:focus {
  color: var(--color-accent);
  background: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.97rem;
}
.footer-contact a {
  color: var(--color-secondary);
  transition: color .14s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}
.footer-social a img {
  width: 28px; height: 28px;
  transition: filter .18s, background .18s;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.footer-social a:hover img {
  background: var(--color-secondary);
}
.copyright {
  font-size: 0.9rem;
  color: #d0cbb7;
}

/* --- MODALS (COOKIE PREFERENCES) --- */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(89,74,56,0.18);
  z-index: 490;
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}
#cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 32px 18px 32px;
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
#cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.cookie-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-cat label {
  font-weight: 500;
  color: #594A38;
}
/* checkbox as toggle */
.cookie-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
  margin: 0 6px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e9e7d9;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-secondary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-cat.essential label {
  color: #baba9b;
  font-style: italic;
}
.cookie-cat.essential .cookie-switch {
  display: none;
}
#cookie-modal .modal-footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 400;
  background: #fff;
  color: #594A38;
  box-shadow: 0 -2px 24px rgba(89,74,56,0.16);
  padding: 26px 20px 26px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 1rem;
  animation: slideUp 0.42s cubic-bezier(.63,-0.01,0,1.01);
}
#cookie-banner span {
  flex: 1 1 260px;
  order: 1;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  order: 2;
}
#cookie-banner .cta, #cookie-banner button {
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  min-width: 100px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow-base);
}
#cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  transition: background .2s, color .16s, box-shadow .15s;
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus {
  background: var(--color-primary);
  color: #F7F2ED;
  box-shadow: var(--shadow-lg);
}
#cookie-banner .reject {
  background: #FAE8E2;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
  transition: background 0.14s, color .14s, box-shadow .14s;
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus {
  background: var(--color-secondary);
  color: #fff;
}
#cookie-banner .settings {
  background: #E6E2D7;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  transition: background 0.14s, color .14s, box-shadow .14s;
}
#cookie-banner .settings:hover, #cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1000px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .main-nav ul { gap: 12px; }
  .container { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .main-nav .cta { display: none; }
  .mobile-menu-toggle { display: flex; }
}

@media (max-width: 820px) {
  .section, .faq-brief, #cookie-modal {
    padding-left: 12px; padding-right: 12px;
  }
  .cta { padding-left: 18px; padding-right: 18px; font-size: 1rem; }
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 34px;
    padding: 25px 4px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .card, .testimonial-card {
    padding: 16px 10px;
  }
  .footer-contact {
    gap: 6px;
    font-size: 0.92rem;
  }
  .footer-content nav {
    font-size: 0.95rem;
  }
  .container {
    padding: 0 4px;
  }
  /* --- FLEX-LAYOUT SHIFT TO COLUMN --- */
  .content-grid, .card-container, .text-image-section, .footer-content {
    flex-direction: column !important;
    gap: 22px !important;
    align-items: flex-start !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2, h3 { font-size: 1.09rem; }
  .main-nav > a img { height: 36px; }
  .footer-content > a img { width: 40px; height: 40px; }
  .copyright { font-size: 0.85rem; }
  #cookie-modal { padding: 12px 3vw; font-size: 0.98rem; }
  #cookie-banner { flex-direction: column; gap: 12px 0; align-items: flex-start; padding: 14px 2vw; }
  #cookie-banner .cookie-btns { gap: 8px; }
}

/* - Hide mobile menu when not active - */
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* Utility Classes for spacing & hiding */
.hide-md { display: none; }
@media (max-width: 900px) {
  .hide-md { display: block !important; }
  .desk-only { display: none !important; }
}

/* --- CUSTOM MICRO-INTERACTIONS --- */
.cta, button, .main-nav ul li a, .mobile-nav a, .footer-content nav a {
  transition: background .18s, color .18s, box-shadow .18s, filter .18s;
}
.card, .testimonial-card, .faq-brief, .feature-item {
  transition: box-shadow .24s;
}
.card:hover, .testimonial-card:hover, .faq-brief:hover {
  box-shadow: 0 4px 24px 0 rgba(163,179,119,0.18);
}

/* --- END --- */
