/* ========================================================================
   EkoSnaga - Warm & Friendly Responsive CSS (Flexbox Only)
   ========================================================================
   - Brand color palette + friendly warm extension
   - Mobile-first, responsive, visually approachable, soft shadows, roundness
   - Flexbox layout for ALL section containers, no grid/columns at all
   - Style for mobile menu + cookie consent as required
   ======================================================================== */

/* ==== 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F9EF;
  color: #133526;
  min-height: 100vh;
}
* {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: #247251;
  transition: color 0.16s;
}
a:focus {
  outline: 2px solid #49B675;
  outline-offset: 2px;
  border-radius: 5px;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol { margin-left: 0; padding-left: 0; list-style: none; }

/* ==== Brand Colors & Friendly Extensions ==== */
:root {
  --primary: #247251;
  --primary-dark: #1b5a40;
  --secondary: #49B675;
  --secondary-light: #7cd49d;
  --accent: #F6F9EF;
  --warm-orange: #FFBC7A;
  --warm-yellow: #FFF6CC;
  --danger: #c43c2f;
  --cool-grey: #e8f3eb;
  --border-soft: #e4eedb;
  --text-main: #173c2a;
  --text-dark: #133526;
  --text-light: #fff;
  --shadow: 0 8px 32px 0 rgba(72,121,86,0.07), 0 1.5px 7px rgba(128,180,157,0.10);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* ==== Typography ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');
html {
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1.18;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}
p, li, ul, ol {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}
strong {
  color: var(--primary);
}

@media (min-width: 600px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  p, li { font-size: 1.125rem; }
}

/* ==== Layout Containers ==== */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

/* ========================
   Section & Card Patterns
======================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.21s;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.21s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(72,121,86,0.16), 0 4px 12px rgba(128,180,157,0.17);
  transform: translateY(-4px) scale(1.0125);
}
.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: #fffbe9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 0;
  border-left: 6px solid var(--secondary);
  transition: box-shadow 0.19s, border-color 0.14s;
}
.testimonial-card strong {
  color: var(--primary-dark);
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-dark);
}
@media (min-width: 700px) {
  .testimonial-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 38px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary-light);
  color: var(--primary-dark);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 6px;
}

.case-study {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.case-study:hover {
  box-shadow: 0 8px 32px 0 rgba(72,121,86,0.13), 0 4px 12px rgba(128,180,157,0.15);
}
.faq-item {
  background: #FFF6CC;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px 0 rgba(201,200,160,0.11);
}
.faq-item h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* ========================
   Header & Navigation
======================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(40, 114, 81, 0.07);
  border-bottom: 4px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 75px;
  padding: 0 18px;
}
header img[alt="EkoSnaga"] {
  height: 44px;
}
header nav {
  display: none;
}
header .cta-btn {
  margin-left: auto;
  margin-right: 14px;
}
.mobile-menu-toggle {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
}

/* Main navigation for desktop */
@media (min-width: 900px) {
  header nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 1.08rem;
  }
  header nav a {
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    transition: background 0.17s, color 0.17s;
  }
  header nav a:hover,
  header nav a:focus {
    background: var(--secondary-light);
    color: var(--text-main);
  }
  header .cta-btn {
    margin-left: 18px;
    margin-right: 0;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ========================
   CTA Button
======================== */
.cta-btn,
button.cta-btn {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  padding: 13px 34px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 2.5px 15px 0 rgba(128,180,157,0.14);
  cursor: pointer;
  transition: background 0.19s, transform 0.18s, box-shadow 0.17s;
  display: inline-block;
  letter-spacing: 0.4px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 8px 24px 0 rgba(72,121,86,0.14);
}

/* ========================
   Mobile Menu Slide In
======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,114,81,0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-120vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.77,0,0.18,1), opacity 0.27s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: var(--text-light);
  border: none;
  font-size: 2.3rem;
  font-weight: 700;
  align-self: flex-end;
  margin: 24px 24px 16px 0;
  cursor: pointer;
  transition: color 0.12s;
  border-radius: var(--radius-md);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--warm-orange);
  background: rgba(255,255,255,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  width: 100%;
}
.mobile-nav a {
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 13px 0;
  width: 100vw;
  text-align: center;
  border-bottom: 1px solid #2d8660;
  border-radius: 0;
  transition: background 0.2s, color 0.17s;
  letter-spacing: 0.5px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--warm-orange);
  color: var(--text-dark);
  border-bottom: 1px solid var(--warm-yellow);
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* ========================
   Main Section Spacing
======================== */
main > section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

section .container {
  gap: 18px;
  padding: 0 8px;
}
@media (min-width: 800px) {
  .section, main > section {
    padding: 54px 0 0 0;
  }
}

/* ========================
   Lists, Tables, Ul/Ols
======================== */
ul, ol {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
  list-style: none;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 14px;
  font-size: 1rem;
  position: relative;
}
ul li img, ol li img {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  margin-right: 8px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  font-size: 1rem;
}
thead tr {
  background: var(--secondary);
  color: var(--text-light);
}
th, td {
  padding: 13px 12px;
  border-bottom: 1.5px solid var(--border-soft);
  text-align: left;
}
th:first-child, td:first-child {
  border-left: none;
}
th:last-child, td:last-child {
  border-right: none;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ========================
   Footer
======================== */
footer {
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -3px 18px 0 rgba(40, 114, 81, 0.04);
  padding: 24px 0 11px 0;
  margin-top: 46px;
}
footer .container {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
footer img[alt="EkoSnaga"] {
  height: 34px;
  margin-bottom: 6px;
}
footer nav {
  font-size: 0.98em;
  margin: 6px 0 0 0;
  color: var(--primary-dark);
}
footer nav a {
  color: var(--primary-dark);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary-light);
  color: var(--primary);
}
footer > .container > div:last-child p {
  font-size: 0.96em;
  color: #467552;
  line-height: 1.5;
}

@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
  }
  footer > .container > div {
    max-width: 265px;
  }
}

/* ========================
   Responsive Alignments
======================== */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .section, main > section {
    padding: 28px 0 0 0;
  }
  .testimonial-card {
    padding: 15px;
    gap: 10px;
  }
}

/* ========================
   Micro-interactions/Animations
======================== */
.card, .case-study, .testimonial-card, .faq-item {
  will-change: transform, box-shadow;
}
ul li, .feature-item, .testimonial-card, .case-study, .faq-item {
  transition: background 0.18s;
}
ul li:hover, .feature-item:hover {
  background: var(--cool-grey);
  border-radius: var(--radius-sm);
}

/* ========================
   Misc, Miscellaneous
======================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-light);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ========================
   Cookie Consent Banner
======================== */
.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe9;
  color: var(--primary-dark);
  padding: 26px 18px 20px 18px;
  z-index: 4000;
  box-shadow: 0 -2px 16px 0 rgba(36,114,81,0.16);
  border-top: 3px solid var(--warm-orange);
  animation: cookie_banner_slidein 0.7s cubic-bezier(0.68,0,0.28,1);
}
@keyframes cookie_banner_slidein {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin-bottom: 2px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: var(--text-light);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 1.5px 7px rgba(128,160,117,0.07);
  font-size: 1rem;
  transition: background 0.17s, color 0.19s;
  margin-right: 2px;
}
.cookie-btn.settings {
  background: var(--warm-orange);
  color: var(--primary-dark);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--text-light);
}
.cookie-btn:hover,
.cookie-btn:focus {
  filter: brightness(0.95);
  outline: 2px solid var(--secondary-light);
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 4100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,33,23,0.43);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(36,114,81,0.17);
  padding: 38px 28px 32px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: cookie_modal_popup 0.32s cubic-bezier(0.68,0,0.28,1);
}
@keyframes cookie_modal_popup {
  from { transform: scale(0.98) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 12px;
  font-size: 1.35em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 7px 12px 12px;
  font-size: 1.07em;
}
.cookie-toggle {
  width: 38px;
  height: 24px;
  border-radius: 13px;
  background: var(--border-soft);
  position: relative;
  margin-left: auto;
  margin-right: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle .toggle-slider {
  position: absolute;
  top: 2.5px;
  left: 2px;
  width: 19px;
  height: 19px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.19s, background 0.13s;
}
.cookie-toggle input:checked + .toggle-slider {
  left: 17px;
  background: var(--primary);
}
.cookie-category.essential {
  opacity: 0.58;
}
.cookie-close-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 1.7em;
  position: absolute;
  top: 16px; right: 22px;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-close-btn:hover,
.cookie-close-btn:focus {
  color: var(--primary-dark);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}

/* Hide modal + banner initial states (JS will add .show/.active) */
.cookie-banner[hidden], .cookie-modal[hidden] {
  display: none!important;
}

/* ========================
   Utility / Misc classes
======================== */
.text-center { text-align: center; }
.rounded { border-radius: var(--radius-lg)!important; }
.shadow { box-shadow: var(--shadow)!important; }
.max-w-600 { max-width: 600px; width: 100%; }

/* ========================
   Print styles
======================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none!important;
  }
  main, .container {
    padding: 0!important;
    margin: 0!important;
  }
}
