/* 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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F6F4;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');


/* BRAND VARIABLE FALLBACKS */
:root {
  --color-primary: #003147;
  --color-secondary: #A67C52;
  --color-accent: #F6F6F4;
  --color-green: #4E7241;
  --color-earth-bg: #F6F6F4;
  --color-earth-beige: #E6DFD5;
  --color-earth-brown: #856056;
  --color-white: #fff;
  --color-black: #181A15;
  --box-radius: 16px;
  --shadow-card: 0 6px 24px 0 rgba(140, 110, 90, 0.10);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}


body {
  background: var(--color-earth-bg);
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-weight: 700;
}

h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-green);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--color-primary);
}

.subheadline {
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 16px;
  color: var(--color-black);
  font-size: 1rem;
}

strong {
  font-weight: bold;
  color: var(--color-primary);
}

ul, ol {
  list-style-type: none;
  margin-bottom: 16px;
}
ul li, ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-black);
  font-size: 1rem;
}
ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0; top: 0.9em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green);
  transform: translateY(-50%);
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-earth-beige);
  padding: 0;
  position: relative;
  z-index: 18;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 20px 16px 0;
}
.main-nav > a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px;
  transition: color 0.2s;
}
.main-nav > a:hover, .main-nav > a.active {
  color: var(--color-green);
}
header .cta.primary {
  display: inline-block;
  margin-left: auto;
  margin-right: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: var(--color-earth-bg);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 14px;
  top: 16px;
  z-index: 23;
  transition: background 0.2s;
  border: none;
}
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-earth-bg);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(239,245,236,0.97);
  box-shadow: 0 8px 40px rgba(22,36,12,0.13);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 42px 28px 24px 24px;
  gap: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 60px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.mobile-nav a:hover {
  background: var(--color-earth-beige);
  color: var(--color-green);
}

/* LAYOUT / UTILITY CLASSES */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  min-width: 280px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 10px 40px rgba(76,138,80,0.13), var(--shadow-card);
  transform: translateY(-4px) scale(1.015);
}
.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: var(--color-accent);
  border-radius: var(--box-radius);
  box-shadow: 0 3px 12px 0 rgba(80,122,68,0.08);
  border-left: 6px solid var(--color-green);
  margin-bottom: 24px;
  flex: 1 1 330px;
  min-width: 210px;
  max-width: 410px;
  color: var(--color-black);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card span {
  font-weight: 500;
  color: var(--color-secondary);
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE GRID for index homepage */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid li {
  background: var(--color-earth-beige);
  border-radius: var(--box-radius);
  padding: 28px 22px 22px 22px;
  box-shadow: 0 2px 10px rgba(140,110,90,0.07);
  flex: 1 1 220px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.17s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.feature-grid li img {
  width: 36px;
  margin-bottom: 12px;
}
.feature-grid li:hover {
  box-shadow: 0 7px 28px rgba(46,72,48,0.09), 0 2px 8px rgba(140,110,90,0.10);
  transform: translateY(-2px) scale(1.01);
}


/* BUTTONS */
.cta.primary, .cta {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-green);
  color: var(--color-accent);
  border-radius: 36px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.17s, color 0.16s, box-shadow 0.16s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(76,138,80,0.09);
  border: none;
  margin: 10px 0;
  cursor: pointer;
  margin-bottom: 12px;
}
.cta.primary:hover, .cta:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 5px 18px rgba(46,72,48,0.14);
  transform: scale(1.045);
}

/* TEXT SECTIONS */
.text-section {
  background: var(--color-earth-beige);
  border-radius: var(--box-radius);
  padding: 38px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(76,138,80,0.07);
}
.text-section ul, .text-section ol {
  color: var(--color-black);
}
.text-section a {
  color: var(--color-green);
  text-decoration: underline;
  transition: color 0.2s;
}
.text-section a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* CONTENT WRAPPER (for centering) */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0;
}
footer .container {
  padding: 0 20px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 0 24px 0;
}
.footer-main img {
  max-width: 60px;
  margin-top: 6px;
}
.footer-main .text-section {
  background: transparent;
  box-shadow: none;
  color: var(--color-accent);
  padding: 0;
}
.footer-main .text-section p, .footer-main .text-section strong {
  color: var(--color-accent);
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-earth-beige);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 8px 48px 0 rgba(76,138,80,0.18);
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeinup 0.33s 1 cubic-bezier(.52,.1,.19,1.2);
}
@keyframes fadeinup {
  from { transform: translateY(58px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner-action-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.cookie-btn {
  padding: 12px 20px;
  border-radius: 32px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.16s, box-shadow 0.16s;
  margin-top: 4px;
  box-shadow: 0 1px 4px rgba(76,138,80,0.07);
}
.cookie-btn.accept {
  background: var(--color-green);
  color: var(--color-accent);
}
.cookie-btn.accept:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn.reject {
  background: var(--color-earth-beige);
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-earth-brown);
}
.cookie-btn.settings:hover {
  background: var(--color-earth-beige);
}

/* COOKIE PREFERENCES MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9500;
  background: rgba(0,0,0,0.24);
  align-items: center;
  justify-content: center;
  animation: fadeinbg 0.25s cubic-bezier(.38,1.3,.47,.89);
}
@keyframes fadeinbg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-earth-bg);
  border-radius: 20px;
  padding: 40px 38px 28px 38px;
  max-width: 450px;
  box-shadow: 0 10px 42px 0 rgba(46,72,48,0.14);
  position: relative;
  border: 1px solid var(--color-earth-beige);
  animation: fadeinup 0.38s 1;
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-green);
  margin-bottom: 16px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--color-earth-beige);
  color: var(--color-brown, #856056);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.31rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.cookie-modal-close:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cookie-category label {
  flex: 1;
  color: var(--color-black);
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-checkbox {
  accent-color: var(--color-green);
  width: 20px;
  height: 20px;
}
.cookie-category.essential label {
  font-weight: 700;
  color: var(--color-green);
}
.cookie-category.essential .cookie-checkbox {
  pointer-events: none;
  opacity: 0.64;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .main-nav {
    gap: 16px;
  }
  .footer-main {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 860px) {
  .feature-grid {
    gap: 18px;
  }
  .section {
    padding: 32px 8px;
  }
  .footer-main {
    padding: 28px 0 14px 0;
  }
}
@media (max-width: 768px) {
  .main-nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .container {
    padding: 0 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    min-width: unset;
    max-width: unset;
  }
  .footer-main {
    padding: 19px 0 8px 0;
    gap: 12px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    min-width: unset;
    padding: 22px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  .cookie-banner {
    padding: 15px 8px;
    flex-direction: column;
    gap: 10px;
    left: 2vw;
    right: 2vw;
  }
  .cookie-modal-content {
    padding: 21px 9px 12px 13px;
  }
}

/* MICRO-INTERACTIONS */
a, .cta, .cta.primary, button, .footer-nav a, .mobile-menu-toggle {
  transition: color 0.16s, background 0.16s, box-shadow 0.13s, transform 0.13s;
}
.feature-grid li, .card, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.13s;
}

/* ORGANIC SHAPE DECOR (DEMO/OPTIONAL, for background) */
.organic-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 60% 100% 80% 100%/88% 60% 100% 95%;
  background: var(--color-earth-beige);
  width: 180px;
  height: 110px;
  filter: blur(13px) opacity(0.6);
}

/* Accessibility improvements */
:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Hide optional elements by default */
#cookie-modal[aria-hidden='true'] {
  display: none;
}
#cookie-modal[aria-hidden='false'] {
  display: flex;
}

/* Helper Classes */
.hide {
  display: none !important;
}
.show {
  display: block !important;
}

/* Prevent overlap for content cards and sections */
.card:not(:last-child), .feature-grid li:not(:last-child), .testimonial-card:not(:last-child), .section:not(:last-child) {
  margin-bottom: 20px;
}

/* END OF CSS */
