/* -----------------------
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
:focus { outline: none; }

/* -----------------------
  CSS CUSTOM PROPERTIES
------------------------*/
:root {
  --color-primary: #2F3C4B;
  --color-secondary: #6EAAC2;
  --color-accent: #F2EFEA;
  --color-green: #709775;
  --color-brown: #a69981;
  --color-sand: #E6DBBF;
  --color-earth: #838069;
  --color-white: #fff;
  --color-black: #252529;
  --color-shadow: rgba(65, 79, 56, 0.10);
  --radius-lg: 32px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 32px var(--color-shadow);
  --shadow-light: 0 2px 8px var(--color-shadow);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
}

/* -----------------------
     BASE TYPOGRAPHY
------------------------*/
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-accent);
  min-height: 100vh;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-green);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
}
h4, h5, h6 {
  font-size: 1.2rem;
}
p, ul, ol, table {
  margin-bottom: 18px;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; color: var(--color-earth); }
a { color: var(--color-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-secondary); }

/* -----------------------
     CONTAINER & LAYOUT
------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-accent);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-light);
  color: var(--color-primary);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
}

.card-container,
.content-grid,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 26px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 14px;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--color-sand);
  color: var(--color-black);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  position: relative;
  transition: transform .12s, box-shadow .12s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 6px 36px rgba(112,151,117,0.13);
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--color-primary);
  quotes: "\201C" "\201D";
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--color-green);
  background: transparent;
}
.testimonial-card .attribution {
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  color: var(--color-green);
  font-weight: 700;
  margin-top: 8px;
}
.testimonial-card .stars {
  font-size: 1.1rem;
  color: var(--color-green);
  letter-spacing: 2px;
  margin-bottom: -2px;
}

@media (max-width: 768px) {
  .card-container, .content-grid, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section { padding: 28px 6px; }
}

/* -----------------------
     NAVIGATION STYLES
------------------------*/
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  border-radius: 6px;
  padding: 7px 13px;
  letter-spacing: 0.01em;
  position: relative;
  transition: background .18s, color .18s;
  background: transparent;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-sand);
  color: var(--color-green);
}
.main-nav .cta {
  background: var(--color-green);
  color: var(--color-accent);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background .18s, color .18s, box-shadow .18s;
  box-shadow: 0 2px 12px rgba(90, 111, 70, 0.07);
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(110,170,194,0.12);
}

footer {
  margin-top: 52px;
  background: var(--color-sand);
  border-top: 1px solid var(--color-brown);
  font-size: .98rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-primary);
  background: transparent;
  border-radius: 5px;
  padding: 5px 7px;
  transition: background .15s, color .15s;
}
.footer-nav a:hover {
  background: var(--color-earth);
  color: var(--color-white);
}

/* HIDE NAVIGATION ON MOBILE, SHOW BURGER */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* -----------------------
      BUTTONS & CTA
------------------------*/
.cta,
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
  background: var(--color-green);
  color: var(--color-accent);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 24px;
  box-shadow: 0 2px 12px rgba(69, 99, 74,0.07);
  transition: background .18s, color .18s, transform .13s, box-shadow .15s;
  display: inline-block;
  letter-spacing: 0.01em;
}
.cta.primary {
  background: var(--color-green);
  color: var(--color-accent);
}
.cta.secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cta:hover, .cta:focus {
  background: var(--color-earth);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px rgba(112,151,117,0.14);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-green);
  color: var(--color-white);
}

button {
  background: var(--color-green);
  color: var(--color-accent);
  min-width: 40px;
}
button:active {
  background: var(--color-brown);
}

/* -----------------------
      TABLE STYLES
------------------------*/
table {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-light);
}
th, td {
  padding: 12px 14px;
  text-align: left;
}
th {
  background: var(--color-green);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  border-bottom: 2px solid var(--color-brown);
}
td {
  border-bottom: 1px solid var(--color-brown);
  color: var(--color-primary);
}
tbody tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th, td {
    padding: 10px 6px;
  }
}

/* ----------------------
      LIST STYLES
------------------------*/
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}
li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  color: var(--color-primary);
}
ul li::before {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  background: var(--color-green);
  border-radius: 50%;
  position: absolute; left: 0; top: 6px;
  box-shadow: 0 1px 2px var(--color-shadow);
}
ol li {
  counter-increment: counter;
}
ol {
  counter-reset: counter;
}
ol li::before {
  content: counter(counter) ". ";
  color: var(--color-green);
  font-weight: bold;
  position: absolute; left: 0; top: 0;
}

/* ------------------------
   MOBILE MENU (BURGER)
-------------------------*/
.mobile-menu-toggle {
  background: var(--color-green);
  color: var(--color-accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  display: none;
  transition: background .18s, color .17s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(69, 99, 74,0.07);
  z-index: 2020;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.77,.2,.05,1.0);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(69,99,74,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-green);
  font-size: 2.2rem;
  position: absolute;
  top: 18px; right: 24px;
  border: none;
  cursor: pointer;
  z-index: 3050;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 80px 32px 32px 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--color-primary);
  background: transparent;
  padding: 16px 0 12px 0;
  border-radius: 8px;
  width: 100%;
  transition: background .16s, color .13s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-green);
  color: var(--color-accent);
}

@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Overlay for modal (for cookie banner) */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(47,60,75,.22);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .3s;
}
.cookie-modal-overlay.open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from {opacity:0;} to {opacity: 1;} }

.cookie-modal {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  max-width: 420px;
  width: 94vw;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 10010;
  animation: popIn .35s cubic-bezier(.77,.1,.2,1.05);
}
@keyframes popIn {
  0% {transform: scale(.93) translateY(40px); opacity:.33;}
  100% {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h3 {
  color: var(--color-green);
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-sand);
  border-radius: 50px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-green);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform .22s cubic-bezier(.62,.03,.32,1.32);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}

.cookie-modal .cookie-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 8px;
  }
}

.cookie-modal-close {
  background: transparent;
  color: var(--color-green);
  position: absolute;
  top: 13px; right: 22px;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  z-index: 20002;
}
.cookie-modal-close:hover {
  color: var(--color-secondary);
}

/* -------------------------
    COOKIE CONSENT BANNER
--------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  min-height: 68px;
  background: var(--color-accent);
  box-shadow: 0 -4px 16px rgba(47,60,75,0.04);
  border-top: 1px solid var(--color-brown);
  padding: 18px 26px 18px 20px;
  z-index: 2050;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: transform .27s cubic-bezier(.77,0,.17,1);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-text {
  color: var(--color-primary);
  font-size: 1rem;
  flex: 1 1 280px;
  margin-bottom: 8px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}

.cookie-banner .cookie-btn {
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  background: var(--color-green);
  color: var(--color-accent);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .13s;
  box-shadow: 0 2px 7px var(--color-shadow);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-earth);
  color: var(--color-accent);
}
.cookie-banner .cookie-btn.reject {
  background: var(--color-brown);
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: var(--color-green);
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 2vw 15px 2vw;
    gap: 12px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ---------------------------
    ORGANIC/NATURE EFFECTS
----------------------------*/
.section, .card, .testimonial-card, .cookie-modal {
  box-shadow: 0 4px 32px var(--color-shadow);
}
.section, .card, .testimonial-card, .cookie-modal, .container, .text-section {
  /* Organic organic effect on border radius */
  border-top-left-radius: 38px 26px;
  border-top-right-radius: 28px 36px;
  border-bottom-right-radius: 30px 22px;
  border-bottom-left-radius: 44px 32px;
}
@media (max-width: 768px) {
  .section, .card, .testimonial-card, .cookie-modal, .container, .text-section {
    border-radius: 20px;
    border-top-left-radius: 26px 20px;
    border-top-right-radius: 18px 26px;
    border-bottom-right-radius: 18px 16px;
    border-bottom-left-radius: 24px 18px;
  }
}

hr {
  height: 1px; background-color: var(--color-earth); border: none; margin: 24px 0; width: 100%; }

/* -------------------------
   ANIMATIONS & INTERACTIONS
-------------------------*/
.card, .testimonial-card, .section, .cta, button, .cookie-banner {
  transition: box-shadow .18s, background .16s, color .14s, transform .13s;
}

.card:hover, .card:focus-within {
  box-shadow: 0 8px 44px rgba(110,170,194,0.17);
  transform: translateY(-2px) scale(1.01);
}

.cta:active { transform: scale(.98) ;}

/* Microinteractions for links */
a, .footer-nav a, .mobile-nav a {
  transition: background .15s, color .13s, box-shadow .15s;
}

/* -------------------------
  INPUTS & FORMS
-------------------------*/
input, textarea, select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-brown);
  background: var(--color-white);
  transition: border-color .15s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 4px var(--color-green);
}

/* ---------------------------
   ADDITIONAL UTILITIES
-----------------------------*/
@media (max-width: 600px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .card { padding: 20px 4px; }
}

.hide { display:none !important; }

/* Ensure all cards/sections have min 20px */
.card, .testimonial-card, .section, .content-wrapper > * + * {
  margin-top: 20px;
}

/* Make sure images are not squished */
img { border-radius: 10px 20px 17px 22px; }

/* Remove border radius for logo images */
header img, footer img {
  border-radius: 0;
}

/* Visual enhancement for organic nature style */
.section {
  background: linear-gradient(110deg, var(--color-accent) 93%, #f6f7f4 100%);
  border: 2px solid var(--color-sand);
}
.text-section {
  background: var(--color-sand);
  border: 1px solid var(--color-brown);
}

/* Soft leaf-inspired decoration for h2 */
h2::after {
  content: '';
  display: inline-block;
  width: 38px;
  height: 7px;
  margin-left: 16px;
  background: var(--color-green);
  border-radius: 14px 20px 10px 21px / 12px 11px 15px 12px;
  vertical-align: middle;
  opacity: .18;
}

/* "Playfair Display" and "Montserrat" font faces (fallbacks) */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');

/* ------------------------
    END OF MAIN STYLES
-------------------------*/
