/* -----------------------------
   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 {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* -----------------------------
   VARIABLES / BRAND COLORS
------------------------------- */
:root {
  --primary: #146356;
  --secondary: #259e81;
  --background: #fff9ea;
  --surface: #ffffff;
  --text: #252525;
  --heading: #1f2c26;
  --muted: #bfb59e;
  --accent: #ede9dd;
  --border: #e2e0d4;
  --shadow: 0 2px 16px rgba(20, 99, 86, 0.07);
  --radius: 12px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
  --serif: 'Merriweather', 'Georgia', serif;
  --sans: 'Roboto', Arial, sans-serif;
  --display: 'Montserrat', 'Georgia', serif;
}

/* -----------------------------
   TYPOGRAPHY (Elegant Classic)
------------------------------- */
body {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 14px;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem;  }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.15rem; }

p, ul li, ol li, blockquote {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }
blockquote {
  font-style: italic;
  padding: 16px 28px;
  background: var(--surface);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  margin: 18px 0;
}

ul, ol {
  margin-bottom: 18px;
  padding-left: 18px;
}
ul li, ol li {
  margin-bottom: 6px;
}
.text-section ul, .text-section ol {
  padding-left: 24px;
}

/* Typography Links */
a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
.secondary-link {
  color: var(--secondary);
  font-size: 1.09rem;
  margin-left: 18px;
}
.secondary-link:hover {
  text-decoration: underline;
}

/* -----------------------------
   LAYOUT: Container & Sections
------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 230px;
  max-width: 320px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 6px 36px rgba(20,99,86,0.12);
  border-color: var(--secondary);
}

/* Card containers and sections */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
}

.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;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  max-width: 520px;
  min-width: 220px;
  color: var(--text);
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: bold;
}

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

/* Cards for events */
.event-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.event-card {
  flex: 1 1 280px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  padding: 24px 18px;
  min-width: 250px;
  max-width: 330px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.event-card:hover {
  box-shadow: 0 6px 36px rgba(20,99,86,0.13);
  border-color: var(--primary);
}

/* Blog list, forms & misc */
.blog-list-controls, .event-list-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.blog-list-controls input, .blog-list-controls select, .event-list-controls select {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  min-width: 120px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.blog-list-controls input:focus, .blog-list-controls select:focus, .event-list-controls select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(20,99,86,0.08);
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 24px;
}
.blog-posts article {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 14px 16px 14px 18px;
  display: flex;
  flex-direction: column;
}
.blog-posts h3 a {
  font-size: 1.1rem;
  color: var(--primary);
  font-family: var(--display);
  transition: color var(--transition);
}
.blog-posts h3 a:hover {
  color: var(--secondary);
}

/* -----------------------------------
   HERO, NAVIGATION, HEADER & FOOTER
------------------------------------- */
header {
  background: var(--surface);
  box-shadow: 0 1px 8px rgba(20,99,86,0.05);
  border-bottom: 1.5px solid var(--border);
  padding-top: 0;
  position: relative;
  z-index: 1003;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 20px 22px 20px 22px;
  min-height: 84px;
}
header img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--display);
}
.main-nav a {
  color: var(--primary);
  font-size: 1.07rem;
  letter-spacing: 0.35px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition), border-bottom var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: 32px;
  margin-left: 18px;
  box-shadow: 0 2px 12px rgba(30,70,55,0.11);
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  display: inline-block;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(20,99,86,0.14);
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--primary);
  padding: 8px 12px;
  margin-left: 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 10px rgba(20,99,86,0.06);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(20,99,86,0.11);
  z-index: 2003;
  padding: 28px 32px 32px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.3s var(--transition),
              visibility 0.3s var(--transition),
              transform 0.33s cubic-bezier(.67,0,.33,1.01);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.2rem;
  padding: 6px 12px;
  margin-bottom: 28px;
  margin-left: auto;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.23rem;
  font-family: var(--display);
  color: var(--primary);
  padding: 12px 0;
  transition: color var(--transition);
  border-bottom: 1.5px solid transparent;
}
.mobile-nav a:hover {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
}

@media (max-width: 1110px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 12px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    gap: 8px;
  }
  header .container {
    padding-right: 10px;
  }
}
@media (max-width: 650px){
  header .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .event-cards, .feature-grid {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .feature-grid > div, .event-card {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 860px){
  .footer-nav,
  .main-nav {
    gap: 4px;
  }
}
@media (max-width: 820px){
  .footer-nav {
    font-size: 0.93rem;
    gap: 6px;
  }
}
@media (max-width: 670px){
  .feature-grid,
  .event-cards {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 550px){
  .feature-grid > div, .event-card {
    padding: 17px 9px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, var(--accent) 48%, var(--background) 100%);
  border-bottom: 2.5px solid var(--border);
  padding: 48px 0 40px 0;
  margin-bottom: 28px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
  font-family: var(--display);
  font-weight: 800;
}
.hero p {
  font-size: 1.18rem;
}
.hero .cta-btn {
  margin-left: 0;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .hero {
    padding: 30px 0 22px 0;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .section {
    padding: 22px 4px;
  }
}

footer {
  background: var(--accent);
  border-top: 2px solid var(--border);
  margin-top: 48px;
  padding: 32px 0 22px 0;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
footer .brand img {
  height: 30px;
}
.footer-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-nav a {
  color: var(--primary);
  border-bottom: 1px dotted var(--muted);
  transition: color var(--transition), border-bottom var(--transition);
}
.footer-nav a:hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.contact-info div {
  color: var(--text);
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info img {
  height: 17px;
  width: 17px;
  opacity: 0.82;
}

@media (max-width: 1000px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact-info {
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .footer-nav {
    gap: 7px;
  }
  .contact-info {
    font-size: 0.9rem;
  }
  footer {
    font-size: 0.93rem;
    padding: 20px 0 14px 0;
  }
  footer .brand img {
    height: 20px;
  }
}

/* -----------------------------
   BUTTONS & INTERACTIVES
------------------------------- */
button, .cta-btn {
  font-family: var(--display);
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

/* Accept/Cookie Buttons */
.cookie-btn {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 24px;
  padding: 9px 26px;
  border: none;
  margin-right: 14px;
  background: var(--secondary);
  color: #fff;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 5px rgba(20,99,86,0.09);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  margin-right: 0;
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* -----------------------------
   COOKIE CONSENT BANNER
------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--surface);
  color: var(--primary);
  border-top: 2px solid var(--border);
  padding: 24px 16px 18px 16px;
  box-shadow: 0 -2px 22px rgba(20,99,86,0.06);
  z-index: 3004;
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s var(--transition);
}
.cookie-banner.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-msg {
  max-width: 540px;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
@media (max-width: 600px){
  .cookie-banner {
    flex-direction: column;
    gap: 22px;
    padding: 18px 4px 12px 4px;
    font-size: 0.95rem;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(36,40,38,0.34);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s;
}
.cookie-modal-overlay.visible {
  display: flex;
}
.cookie-modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 38px rgba(20,99,86,0.14);
  border: 1.5px solid var(--primary);
  min-width: 340px;
  max-width: 96vw;
  width: 410px;
  padding: 36px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalIn 0.42s cubic-bezier(.56,.02,.55,1.2);
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
  font-family: var(--display);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.cookie-modal label {
  font-family: var(--serif);
  font-size: 1.04rem;
  color: var(--heading);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}
.cookie-modal .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -----------------------------
   RESPONSIVE (Mobile Menu)
------------------------------- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -----------------------------
   FLEXBOX Section Requirements
------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive Flex Directions */
@media (max-width: 768px) {
  .text-image-section, .content-grid, .event-cards, .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 39px;
  }
}

/* -----------------------------------
   MICRO-INTERACTIONS AND EFFECTS
------------------------------------- */
.card, .testimonial-card, .event-card, .feature-grid > div, .blog-posts article {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover, .testimonial-card:hover, .event-card:hover, .feature-grid > div:hover, .blog-posts article:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 7px 40px rgba(20,99,86,0.14);
  border-color: var(--secondary);
  z-index: 2;
}

.cta-btn, .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(20,99,86,0.17);
}

/* Focus State for Accessibility */
a:focus-visible,
button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 1.5px;
  background: var(--accent);
}

/* Hide visually (for JS toggling etc) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* -----------------------------------
   ELEGANT CLASSIC DESIGN EXTRAS
------------------------------------- */
body {
  letter-spacing: 0.01em;
  background: var(--background);
}
hr {
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 42px 0 32px 0;
}

/* Muted info boxes */
.info-box {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: 1.05rem;
  box-shadow: 0 1px 10px rgba(20,99,86,0.08);
  margin-bottom: 24px;
}

/* Tag or category badges */
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--display);
  font-size: 0.97rem;
  padding: 4px 14px;
  border-radius: 16px;
  border: 1px solid var(--primary);
  margin-right: 9px;
  margin-bottom: 4px;
}

/* Utility for spacing */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-50 { margin-top: 50px !important; }

/* Hide burger on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none !important; }
}

/* -----------------------------------
   PRINT STYLES (Minimalistic)
------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; }
  .container { padding: 0; }
  .section { margin-bottom: 24px; padding: 0; background: none; }
}
