/* ========================================================
   Rustykalne Skarby – Scandinavian Clean CSS Theme
   Mobile-first, Flexbox layouts only, NO grid, NO columns
   Brand: #386641 (primary), #BC4749 (secondary), #F2E8CF (accent)
   Fonts: Lora for headings, Open Sans for body
   SCANDINAVIAN CLEAN: Light, air, natural, functional
======================================================== */

/* RESET & BASELINE - Normalize & box-sizing */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fafaf6;
  color: #23281A;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

ul, ol {
  list-style: none;
  margin: 1.5em 0 1.5em 1.2em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #386641;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #BC4749;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  color: #25422e;
  margin-bottom: 0.6em;
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1rem; }

p {
  margin-bottom: 1.2em;
}
.lead {
  font-size: 1.20rem;
  font-weight: 400;
  color: #476542;
  margin-bottom: 1.5em;
}

/* ========================================
   CONTAINER
======================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SECTION SPACING */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 16px;
  box-shadow: none;
}

/* ===============================
   HEADER / NAV STRUCTURE
================================ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(56, 102, 65, 0.07);
  border-bottom: 1.5px solid #e5e3db;
  z-index: 50;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  height: 52px;
}
.logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #25422e;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 0 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.19s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  color: #BC4749;
  border-bottom: 2px solid #BC4749;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 26px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(30, 42, 30, 0.04);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.btn-primary {
  background: #386641;
  color: #fff;
}
.btn-primary:hover,.btn-primary:focus {
  background: #25422e;
  color: #fff;
  box-shadow: 0 2px 20px 0 rgba(56,102,65,.14);
}
.btn-secondary {
  background: #F2E8CF;
  color: #386641;
  border: 1.3px solid #386641;
}
.btn-secondary:hover,.btn-secondary:focus {
  background: #dfdbca;
  color: #25422e;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #386641;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 16px;
  margin-left: 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.19s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F2E8CF;
  color: #25422e;
}

/* ===============================
   MOBILE MENU
================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 0 36px rgba(56, 102, 65, 0.14);
  z-index: 1200;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.7,0.2,0.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #386641;
  padding: 16px 22px 8px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #BC4749;
}
.mobile-nav {
  margin: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.mobile-nav a {
  display: block;
  width: 100%;
  padding: 18px 32px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.22rem;
  color: #25422e;
  font-weight: 600;
  border-bottom: 1px solid #ebeae2;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2E8CF;
  color: #BC4749;
}

/* Hide navigation appropriately on mobile */
@media (max-width:1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .btn.btn-primary {
    display: none;
  }
}
@media (min-width:1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====================================
   HERO & COMMON SECTION STYLES
==================================== */
.hero {
  width: 100%;
  background: linear-gradient(96deg, #F2E8CF 70%, #ffffff 100%);
  box-shadow: 0 2px 16px 0 rgba(56, 102, 65, 0.09);
  border-radius: 0 0 32px 32px;
  margin-bottom: 60px;
  padding: 48px 0 36px 0;
  min-height: 214px;
  display: flex;
  align-items: center;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
}

/* FEATURES Flexbox layouts */
.features {
  width: 100%;
  background: none;
}
.features h2 {
  margin-bottom: 24px;
}
.features .content-wrapper {
  gap: 0;
}
.features-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 0 0;
  padding: 0;
  justify-content: flex-start;
}
.features-list li {
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 320px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px 0 rgba(56,102,65,0.06);
  padding: 22px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.15s;
}
.features-list li img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.features-list li h3 {
  font-size: 1.08rem;
  color: #386641;
  margin-bottom: 6px;
}
.features-list li p {
  font-size: 1rem;
  color: #3e4a2d;
  margin-bottom: 0;
}
.features-list li:hover {
  box-shadow: 0 4px 16px 0 rgba(56,102,65,0.13);
}

/* ================================
   CARD LAYOUTS
================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(56,102,65,.08);
  padding: 24px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(56,102,65,.16);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ================================
   TESTIMONIALS
================================ */
.testimonials {
  width: 100%;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(56,102,65,0.07);
}
.testimonials h2 {
  margin-bottom: 28px;
}
.testimonials .content-wrapper {
  gap: 20px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px 20px 28px;
  background: #F2E8CF;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(56,102,65,0.07);
  max-width: 430px;
  min-width: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23281A;
  font-size: 1rem;
  margin-bottom: 20px;
  border-left: 6px solid #386641;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.10rem;
  color: #222;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #476542;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ================================
   FOOTER
================================ */
footer {
  width: 100%;
  background: #fff;
  border-top: 1.5px solid #e5e3db;
  box-shadow: 0 -2px 18px 0 rgba(56,102,65,0.07);
  position: relative;
  z-index: 1;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 36px 20px 24px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #476542;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #BC4749;
}
.footer-contact {
  color: #25422e;
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
}
.footer-logo img {
  height: 38px;
  width: auto;
  margin-top: 8px;
}

/* ================================
   TABLES
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  margin-top: 16px;
  box-shadow: 0 1px 7px 0 rgba(56,102,65,0.05);
}
thead, tfoot {
  background: #F2E8CF;
}
td, th {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e3db;
}
caption {
  text-align: left;
  font-weight: 700;
  color: #25422e;
  margin-bottom: 8px;
  font-family: 'Lora', serif;
  font-size: 1.07rem;
}

/* ================================
   COOKIE CONSENT BANNER
================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 8500;
  background: #fff;
  box-shadow: 0 -2px 20px 0 rgba(56,102,65,0.17);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw 22px 3vw;
  gap: 24px;
  border-top: 1.5px solid #f5e9d8;
  transition: transform 0.22s cubic-bezier(.77,.2,.49,1) 0.08s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-message {
  color: #25422e;
  max-width: 750px;
  font-size: 1rem;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 22px;
  padding: 9px 22px;
  border: none;
  margin: 0 2px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.16s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: #386641;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #25422e;
}
.cookie-btn.reject {
  background: #BC4749;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #a3393a;
}
.cookie-btn.settings {
  background: #F2E8CF;
  color: #386641;
  border: 1.3px solid #386641;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #dfdbca;
}

/* COOKIE PREFS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(56,102,65,0.12);
  z-index: 9500;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.17s;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(56,102,65,0.19);
  padding: 38px 32px 28px 32px;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInModal 0.27s cubic-bezier(.55,.05,.57,.97);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: #386641;
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eaeae2;
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-weight: 600;
  color: #25422e;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-category .cookie-toggle {
  margin-left: 24px;
  margin-top: 2px;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 16px;
  background: #F2E8CF;
  position: relative;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.21s;
  display: flex;
  align-items: center;
}
.cookie-toggle[aria-checked="true"] {
  background: #386641;
}
.cookie-toggle:before {
  content: '';
  display: block;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  background: #fff;
  box-shadow: 0 1px 5px 0 rgba(56,102,65,0.06);
  transition: left 0.18s;
}
.cookie-toggle[aria-checked="true"]:before {
  left: 21px;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}
.cookie-modal-footer .btn {
  min-width: 108px;
  justify-content: center;
}
.cookie-modal-close {
  font-size: 2.1rem;
  color: #386641;
  background: none;
  border: none;
  position: absolute;
  top: 16px;
  right: 28px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 22px 10px 20px 10px;
  }
}

/* =========================================
   SPECIAL CONTENT STRUCTURE / FLEX LAYOUTS
========================================= */
.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;
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Typography for headings and highlights */
.footer-policy h1, .footer-policy h2, .footer-policy h3 {
  margin-bottom: 24px;
  color: #386641;
  font-family: 'Lora', Georgia, serif;
}
.footer-policy ul {
  margin-top: 14px;
}

/* == CONTACT DETAILS & TRUST SIGNALS == */
.contact-details .content-wrapper {
  gap: 30px;
  align-items: flex-start;
}
.contact-details ul {
  margin-bottom: 1.2em;
}
.trust-signals {
  margin-top: 16px;
}
.trust-signals h3 {
  margin-bottom: 10px;
  color: #386641;
  font-size: 1.08rem;
}

/* Table tweaks on mobile */
@media (max-width: 600px) {
  table, tbody, tr, td, th {
    display: block;
    width: 100%;
  }
  td, th {
    padding: 9px 10px;
    border-bottom: 1px solid #efefea;
  }
  table {
    margin-top: 8px;
    box-shadow: none;
  }
}

/* =====================================
   RESPONSIVE FLEX LAYOUTS
===================================== */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.24rem; }
  .hero { padding: 28px 0 18px 0; border-radius: 0 0 20px 20px; }
  .section, section { padding: 20px 6px; margin-bottom: 36px; }
  .features-list {
    gap: 18px;
    flex-direction: column;
  }
  .features-list li {
    max-width: 100%;
    min-width: 0;
    padding: 18px 10px;
  }
  .container {
    padding: 0 8px;
  }
  .footer-logo img {
    height: 29px;
  }
  .card-container { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 16px; }
  .testimonial-card {
    padding: 17px 11px 17px 14px;
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 13px 12px 13px 12px;
  }
  .container, .footer .container {
    padding: 0 3px;
  }
}

/* =======================================
   UTILITY: Animation & Micro-interactions
======================================= */
.btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
a, button {
  transition: color 0.14s, background 0.14s;
}
.features-list li, .card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.13s;
}
.features-list li:hover, .card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(56,102,65,.13);
  transform: translateY(-3px) scale(1.023);
}

/* ==============================
   MISC, GENERAL, CLEANUP
============================== */
::-webkit-input-placeholder { color: #8f9c87; }
::-moz-placeholder { color: #8f9c87; }
:-ms-input-placeholder { color: #8f9c87; }
::placeholder { color: #8f9c87; }

input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.2px solid #e5e3db;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
  color: #23281A;
  transition: border 0.16s;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border: 1.3px solid #386641;
  outline: none;
}

hr {
  border: none;
  border-top: 1.5px solid #e5e3db;
  margin: 38px 0 38px 0;
}

/* ==============================
   PRINT: Remove navigational chrome
============================== */
@media print {
  header, .main-nav, .footer, .footer-logo, .mobile-menu, .cookie-banner { display: none !important; }
  section {
    margin-bottom: 12px !important;
    padding: 2px !important;
    box-shadow: none !important;
    background: #fff !important;
  }
}
