/* RESET & BASELINE -------------------------- */
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: #faf5e5;
  color: #3a2e23;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #16572a;
  text-decoration: none;   
  transition: color .22s;
}
a:hover, a:focus {
  color: #d95d39;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.4em;
}

hr {
  border: none;
  border-top: 2px dotted #c8bbad;
  margin: 24px 0;
}

/* FONTS --------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --color-primary: #224C36; /* deep green */
  --color-accent: #CE8147; /* retro orange */
  --color-secondary: #E1EFE4;
  --color-bg: #faf5e5;
  --color-card: #fff8f2;
  --color-header: #f7e8ce;
  --color-highlight1: #B6A779;
  --color-highlight2: #b74629;
  --color-link: #217150;
  --color-shadow: rgba(34,76,54,.15);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
  --radius-main: 16px;
  --radius-small: 7px;
  --shadow-card: 0 4px 22px var(--color-shadow);
  --shadow-btn: 0 2px 8px rgba(190,140,55, .11);
}

body {
  background: var(--color-bg);
}

/* TYPOGRAPHY ------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.09;
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  text-shadow: 0px 2px 0px #e7d4ae, 1.5px 3px 0px #dbbc7f4d;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
  color: var(--color-primary);
  text-shadow: 0px 1px 0px #eadcbd;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.33rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.17rem;
  color: var(--color-highlight2);
  margin-bottom: 18px;
  font-style: italic;
  opacity: .93;
  letter-spacing: 0.04em;
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #51351d;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}
em {
  color: var(--color-accent);
  font-style: italic;
}

/* CONTAINER & LAYOUTS ---------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: var(--color-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: none;
  box-shadow: none;
  padding: 0 0 24px 0;
  margin-bottom: 20px;
}
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  background: var(--color-header);
  box-shadow: 0 1px 24px #b6a77923;
  border-radius: var(--radius-main);
  margin-bottom: 30px;
  padding: 40px 20px;
}

/* FLEX GRID STRUCTURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature {
  flex: 1 1 220px;
  min-width: 240px;
  background: #fffbe6;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 13px rgba(176,125,38,0.07);
  padding: 28px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .13s cubic-bezier(.22,.99,.44,.98), box-shadow .22s;
  border: 2px dotted #decdaf;
  position: relative;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  filter: sepia(0.4) contrast(1.2) brightness(1.03);
}
.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px 0 rgba(206,129,71,0.16), 0 2px 16px #bdbdab28;
  border-color: var(--color-accent);
}
.feature span {
  font-size: .95rem;
  color: #c49240;
  margin-top: 7px;
}

/* TEAM LAYOUT */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 28px;
}
.team-member {
  flex: 1 1 255px;
  min-width: 200px;
  background: #f9f6eb;
  border-radius: var(--radius-small);
  box-shadow: 0 1px 12px #dbbc7f26;
  border: 2.5px dashed #d7ccb4;
  padding: 24px 16px 16px 16px;
  margin-bottom: 20px;
  transition: box-shadow .17s, border-color .14s;
  position: relative;
}
.team-member:hover {
  border-color: #dd924a;
  box-shadow: 0 4px 16px 0 #e9ba7e30;
}
.team-member h3 {
  color: var(--color-accent);
  margin-bottom: 10px;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.partner {
  flex: 1 1 250px;
  min-width: 210px;
  background: #f6ecd2;
  border-radius: 13px;
  box-shadow: 0 1px 10px #ddbd8540, 0 0 0 2px #e5d2ab;
  padding: 20px 13px 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}
.partner img {
  width: 56px;
  margin-bottom: 10px;
  filter: grayscale(50%) sepia(.2)
}
.partner p {
  font-size: .96rem;
  color: #62460b;
}

.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 15px 0 32px 0;
}
.news-list article {
  flex: 1 1 250px;
  min-width: 220px;
  background: #fdf2df;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 16px #d1c0a670;
  border: 2px solid #e2c3a6;
  padding: 24px 14px;
  margin-bottom: 20px;
}
.event-highlights ul {
  margin-top: 8px;
}
.event-highlights li {
  margin-bottom: 7px;
  font-size: 1rem;
  position: relative;
  padding-left: 12px;
}
.event-highlights li:before {
  content: '✽';
  color: #cb9244;
  position: absolute;
  left: 0;
  top: 0;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fffbe6;
  color: #13422a;
  border-radius: 14px;
  box-shadow: 0 3px 14px #b6a77924, 0 0 0 2px #ccbc95;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid #ce8147;
}
.testimonial-card p {
  color: #13422a;
  margin-bottom: 0;
  font-size: 1.17rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #62460b;
  opacity: .99;
  font-family: var(--font-display);
}

/* CTA BUTTONS ----------------------------- */
.cta-primary, .filters button {
  display: inline-block;
  background: var(--color-accent);
  color: #fffbe9;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 13px 32px;
  margin: 6px 0 0 0;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  text-shadow: 0 2px 0 #a96927ac;
  transition: background .16s, transform .11s, box-shadow .13s;
  letter-spacing: 0.05em;
  outline: none;
}
.cta-primary:hover, .filters button:hover {
  background: #b74629;
  color: #fffbe3;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 5px 24px #ce81474d;
}
.cta-primary:active, .filters button:active {
  background: #d95d39;
  color: #fffbe9;
}

.filters button {
  margin-left: 12px;
  font-size: 1rem;
  background: #e6c77e;
  color: #51351d;
  border: 2px solid #eae1bc;
  padding: 8px 20px;
  text-shadow: none;
  font-weight: 700;
  box-shadow: none;
  border-radius: 8px;
  transition: background .15s, border .15s, color .11s;
}
.filters button:hover, .filters button:focus {
  background: #e3ac41;
  color: #fffbe9;
  border-color: #d95d39;
}


/* CARDS & CONTENT PRES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffbe6;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 16px #b6a77926;
  padding: 28px 20px;
}

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

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

/* CONTACT INFO --------------------------------- */
.contact-info-list {
  list-style: none;
  padding-left: 0;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
}
.contact-info-list img {
  width: 22px;
  height: 22px;
  filter: sepia(.6) hue-rotate(6deg) brightness(.92);
}

.info-block {
  background: #fffaec;
  padding: 20px 17px;
  border-radius: 10px;
  box-shadow: 0 0 13px #e3c99360;
  border: 1.5px dashed #d2be93;
}
.info-block h3 {
  color: #d95d39;
  margin-bottom: 7px;
  font-size: 1.11rem;
}

/* FOOTER -------------------------------------- */
footer {
  background: var(--color-header);
  border-top: 2px dotted #e4d9b2;
  margin-top: 60px;
  padding-top: 24px;
  font-size: .97rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #8d6435;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.footer-nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact {
  margin-bottom: 16px;
  color: #6e5947;
  line-height: 1.4;
}
footer p {
  color: #92783a;
}

/* HEADER & NAVIGATION ----------------------- */
header {
  background: var(--color-header);
  box-shadow: 0 2px 12px #decdaf24;
  margin-bottom: 14px;
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: .045em;
  justify-content: flex-start;
  padding: 20px 20px 18px 20px;
}
.main-nav a {
  color: var(--color-primary);
  padding: 4px 11px;
  border-radius: 8px;
  transition: background .16s, color .16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e9d5bf;
  color: #b74629;
}
.main-nav .cta-primary {
  margin-left: auto;
  background: #ce8147;
  color: #fffbe9;
  font-size: 1.08rem;
  padding: 10px 23px;
  box-shadow: 0 2px 8px #c4924039;
}

.main-nav img {
  height: 38px;
  margin-right: 8px;
  vertical-align: middle;
}

/* MOBILE MENU ------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: #de925a;
  border: none;
  border-radius: 8px;
  color: #fffbe9;
  font-size: 2.1rem;
  padding: 6px 17px 7px 17px;
  position: absolute;
  right: 27px;
  top: 14px;
  cursor: pointer;
  z-index: 10002;
  transition: background .17s;
  box-shadow: 0 2px 9px #e3c99360;
}
.mobile-menu-toggle:focus {
  outline: 3px dotted #d95d39;
}
.mobile-menu-toggle:hover {
  background: #b74629;
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  height: 100vh;
  width: 100vw;
  background: #fbe6c7ed;
  box-shadow: 0 7px 38px #ac7d2c72;
  z-index: 12000;
  transform: translateX(-110%);
  transition: transform .36s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 25px 33px 0 0;
  background: #ce8147;
  color: #fffbe9;
  font-size: 2.7rem;
  border: none;
  border-radius: 10px;
  padding: 2px 21px 3px 21px;
  box-shadow: 0 2px 8px #c4924049;
  cursor: pointer;
  transition: background .12s;
  z-index: 10001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #b74629;
  outline: 2px solid #d95d39;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin: 50px auto 0 auto;
  width: 88%;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 1.17rem;
}
.mobile-nav a {
  color: #b74629;
  background: none;
  font-weight: 700;
  padding: 14px 6px 10px 3px;
  width: 100%;
  transition: color .13s, background .13s;
  border-radius: 6px;
  font-size: 1.23rem;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: #e7d6b5;
  color: #224C36;
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex;
  }
}

/* CONTENT LAYOUT CLASSES (MANDATORY FLEX!) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffbe6;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 16px #b6a77926;
  padding: 28px 20px;
}
.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;
}

/* TABLET & MOBILE RESPONSIVE -------------------- */
@media (max-width: 1023px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .content-wrapper, .cta-section {
    padding: 30px 11px;
  }
  .partner-grid, .feature-grid, .news-list, .team-grid, .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.45rem; }
  .container {
    padding: 0 7px;
  }
  .feature-grid, .partner-grid, .news-list, .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 8px;
  }
  .content-wrapper, .cta-section {
    padding: 21px 5px;
    gap: 12px;
  }
  .mobile-menu {
    padding-left: 0;
  }
  .main-nav .cta-primary {
    margin-left: 0;
  }
  .section {
    padding: 27px 4px;
    margin-bottom: 35px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .event-highlights ul, .content-wrapper ul {
    margin-left: 1.2em;
  }
}
@media (max-width: 500px) {
  .section {
    margin-bottom: 20px;
    padding: 18px 2px;
  }
  .content-wrapper, .cta-section {
    padding: 9px 2px;
  }
  .testimonial-card, .feature, .team-member, .partner, .card, .news-list article {
    padding: 16px 7px;
    font-size: .97rem;
  }
}

/* MODAL & BANNER (COOKIE) ---------------------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #ffedc2;
  color: #504527;
  z-index: 23000;
  padding: 19px 15px 16px 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 -2px 21px #eabe7b89;
  border-top: 2.5px dashed #decdaf;
  gap: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-banner p {
  flex: 2 1 200px;
  margin: 0;
  color: #504527;
}
.cookie-banner button {
  margin-right: 8px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 20px;
  background: #ce8147;
  color: #fffbe9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .13s, transform .1s;
  box-shadow: 0 2px 8px #c4924039;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #d95d39;
  outline: 2px dotted #a06929;
}
.cookie-banner .cookie-banner-settings {
  background: #e1c684;
  color: #3a2e23;
  border: 1.4px solid #dab174;
}
.cookie-banner .cookie-banner-settings:hover {
  background: #e3ac41;
  color: #fffbe9;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 7px 8px 11px;
    font-size: .97rem;
    gap: 7px;
  }
  .cookie-banner p, .cookie-banner button {
    width: 98%;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #e3c993ee;
  z-index: 24000;
  display: none;
}
.cookie-modal-backdrop.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinbkg .35s;
}
@keyframes fadeinbkg { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fffbe6;
  border-radius: 17px;
  box-shadow: 0 12px 40px #d8b361c4;
  padding: 37px 32px 25px 32px;
  min-width: 280px;
  max-width: 94vw;
  max-height: 90vh;
  font-family: var(--font-body);
  color: #3a2e23;
  font-size: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: fadein .38s;
}
@keyframes fadein { from { transform: scale(.84); opacity: 0; } to { transform:scale(1); opacity: 1;} }
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #ce8147;
  transform: scale(1.17);
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 20px;
  background: #ce8147;
  color: #fffbe9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .13s, transform .1s;
  box-shadow: 0 2px 8px #c4924039;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #d95d39;
}
.cookie-modal .modal-btn-secondary {
  background: #e1c684;
  color: #3a2e23;
  border: 1.4px solid #dab174;
}
.cookie-modal .modal-btn-secondary:hover {
  background: #e3ac41;
  color: #fffbe9;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  color: #aa8c4d;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 2px 9px;
  border-radius: 6px;
  transition: background .17s;
}
.cookie-modal .close-modal:hover {
  background: #e3c99355;
}

/* Misc & Micro Interactions ----------------- */
::-webkit-scrollbar {
  width: 13px;
  background: #f7e8ce;
}
::-webkit-scrollbar-thumb {
  background: #decdaf;
  border-radius: 6px;
  border: 2px solid #fffaec;
}
::-webkit-scrollbar-thumb:hover {
  background: #ce8147;
}
::selection {
  background: #ce8147;
  color: #fffbe9;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #ce8147;
  background: #fffbeac0;
}

/* Utility - Hide elements */
.hide {
  display: none !important;
}

/* Z-index layering */
header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { z-index: 9999 !important; }

/* Spacing for bottom banner */
body { padding-bottom: 80px; }
@media (max-width: 650px) { body { padding-bottom: 120px; } }
