/* =============================================================
   CSS RESET & NORMALIZE
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background-color: #F5F8FA;
  color: #223022;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #1C3552;
  letter-spacing: .5px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.31rem; margin-bottom: 10px; }
h4 { font-size: 1.13rem; margin-bottom: 8px; }
p, ul, ol, span, li, a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  color: #223022;
}
ul, ol { padding-left: 20px; margin-bottom: 18px; }
a {
  color: #377e46;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #245e2c;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* =============================================================
   NATURE-ORGANIC BRANDED PALETTE
============================================================= */
:root {
  --color-primary: #1C3552;
  --color-secondary: #E5BA73;
  --color-accent: #F5F8FA;
  --color-earth-1: #223022;
  --color-earth-2: #c2b381;
  --color-green: #377e46;
  --color-bark: #816542;
  --color-leaf: #73A580;
  --color-flax: #F6E7C1;
  --color-white: #fff;
  --shadow-soft: 0 2px 8px rgba(34, 48, 34, 0.06);
  --radius-card: 18px;
  --radius-btn: 26px;
  --radius-sect: 36px;
  --transition: 0.18s cubic-bezier(.4,.16,.45,1.02);
}

/* =============================================================
   CONTAINER, FLEX, LAYOUT
============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  min-height: 54px;
  padding: 16px 0;
}
.footer-flex { gap: 24px; }

.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-sect);
  box-shadow: var(--shadow-soft);
  position: relative;
}

@media (max-width: 900px) {
  .section, section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 20px;
  }
}

/*
  FLEX LAYOUTS
*/
.card-container,
.features-grid,
.values-grid,
.blog-list,
.project-list,
.content-grid,
.testimonials,
.footer-flex,
.contact-details,
.faq-list,
.heritage-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .card-container,
  .features-grid,
  .values-grid,
  .blog-list,
  .project-list,
  .content-grid,
  .testimonials,
  .contact-details,
  .footer-flex {
    gap: 16px;
  }
}

.card,
.feature,
.value,
.blog-card,
.project-card,
.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 26px 22px 22px 22px;
  flex: 1 1 295px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid #F6E7C1;
}

.card:hover,
.feature:hover,
.value:hover,
.blog-card:hover,
.project-card:hover {
  box-shadow: 0 4px 22px 0 rgba(55, 126, 70, 0.10);
  transform: translateY(-5px) scale(1.025);
}

.testimonial-card {
  background: #fafbf9;
  color: #223022;
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(55, 126, 70, 0.06);
  padding: 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  border: 1px solid #e3e3c2;
  font-size: 1.05rem;
}

.testimonial-card p {
  font-style: italic;
  color: #223022;
  font-size: 1.07rem;
}

.testimonial-card span {
  align-self: flex-end;
  font-size: 0.98rem;
  color: #73A580;
}

@media (max-width: 900px) {
  .testimonial-card, .card, .feature, .blog-card {
    font-size: 1rem;
    padding: 20px 12px;
  }
}

.features-grid, .values-grid, .blog-list, .project-list {
  gap: 24px;
  justify-content: space-between;
}
.features-grid { flex-wrap: wrap; }

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 22px 18px;
  min-width: 230px;
  max-width: 350px;
}
.feature img { width: 48px; margin-bottom: 10px; }

.values-grid > div {
  background: #fffef5;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 22px 14px;
  flex: 1 1 240px;
  border: 1px solid #f5ecd6;
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}
.values-grid > div:hover {
  box-shadow: 0 4px 24px 0 rgba(126, 99, 43, 0.11);
}

.blog-list, .project-list {
  gap: 24px;
  justify-content: flex-start;
}
.blog-card, .project-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px 18px;
  flex: 1 1 300px;
  min-width: 220px;
  border: 1px solid #f2eacc;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card h3, .project-card h3 {
  color: #377e46;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .features-grid, .values-grid, .blog-list, .project-list, .contact-details {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

.content-grid { gap: 20px; justify-content: space-between; }
.content-wrapper {
  margin-bottom: 12px;
}

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

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}

/* Section-Specific Adjustments */
.hero {
  background: linear-gradient(120deg, #f5f8fa 70%, #e6edea 100%);
  padding: 48px 20px 48px 20px;
  border-radius: var(--radius-sect);
  text-align: center;
  margin-bottom: 0;
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--color-primary);
}
.hero .tagline {
  color: #73A580;
  margin-bottom: 30px;
  font-size: 1.13rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
}
.cta {
  background: #fffef8;
  border-radius: var(--radius-sect);
  box-shadow: 0 2px 14px #e3e5db1c;
  text-align: center;
  padding: 40px 18px 38px 18px;
}
@media (max-width: 900px) {
  .hero, .cta {
    padding: 32px 8px;
    border-radius: 20px;
  }
}

.categories-filter {
  margin: 14px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.98rem;
}
.categories-filter a {
  margin-left: 8px;
  padding: 5px 14px;
  border-radius: 16px;
  background: #F6E7C1;
  color: #377e46;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  font-weight: 600;
  border: 1px solid #e5ba73;
}
.categories-filter a:hover {
  background: #377e46;
  color: #fff;
}

.case-study {
  background: #edecd9;
  border-radius: 14px;
  padding: 16px 18px 14px 18px;
  margin-top: 20px;
  box-shadow: 0 1.5px 8px #e3e3c250;
}

/* Footer */
footer {
  background-color: #223022;
  color: #F5F8FA;
  padding: 32px 0 22px 0;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-contact span, .footer-contact a, .footer-contact img {
  color: #F5F8FA;
  font-size: 0.97rem;
  vertical-align: middle;
  margin-right: 18px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: #E5BA73;
  font-size: 1rem;
  margin-bottom: 3px;
}
.footer-nav a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Responsive Footer and Header */
@media (max-width: 820px) {
  .footer-flex, .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* =============================================================
   BUTTONS + CALLS TO ACTION
============================================================= */
.btn,
button,
input[type="button"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1.08rem;
  border-radius: var(--radius-btn);
  min-height: 45px;
  padding: 0 28px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  outline: none;
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.btn.primary {
  background: linear-gradient(110deg, #73A580, #377e46 90%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px #22302222;
}
.btn.primary:hover,
.btn.primary:focus {
  background: linear-gradient(100deg, #377e46 60%, #73A580 100%);
  color: #fff;
  box-shadow: 0 3px 16px #377e4620, 0 0 1px #377e46;
  transform: translateY(-2px) scale(1.03);
}
.btn.secondary {
  border: 2px solid #377e46;
  background: #fff;
  color: #377e46;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: #377e46;
  color: #fff;
}
button:focus, .btn:focus {
  outline: 2px solid #E5BA73;
  outline-offset: 2px;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: #377e46;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 202;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform .2s;
  box-shadow: 0 1.5px 8px #377e4622;
}
.mobile-menu-toggle:active {
  background: #245e2c;
  transform: scale(0.98);
}

/* Show mobile toggle on mobile */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav, .btn.primary {
    display: none !important;
  }
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #1C3552;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 2px 10px;
  border-radius: 16px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: #377e46;
  color: #fff;
}

.logo-link img { height: 42px; margin-right: 6px; border-radius: 8px; }

/* =============================================================
   MOBILE MENU (SLIDE-IN)
============================================================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #F5F8FA;
  z-index: 2100;
  box-shadow: 0 1.5px 32px #377e4630;
  overflow-y: auto;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.53,1.27,.22,1);
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #377e46;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  margin: 18px 18px 18px auto;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 42px 32px 36px;
}
.mobile-nav a {
  padding: 13px 12px;
  border-radius: 22px;
  color: #377e46;
  background: none;
  font-size: 1.12rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  border: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #377e46;
  color: #fff;
}

/* Hide scroll for body when mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* =============================================================
   COOKIE CONSENT BANNER & MODAL
============================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2050;
  background: #fffef5;
  color: #223022;
  box-shadow: 0 -2px 32px #22302222;
  border-top: 2px solid #E5BA73;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 30px 20px 30px;
  font-size: 1.01rem;
  animation: slideBannerIn 0.58s cubic-bezier(.37,1.28,.29,.97);
}
@keyframes slideBannerIn {
  from {transform: translateY(130%); opacity: .2;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  margin-right: 20px;
  color: #223022;
  flex: 1 1 340px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .btn {
  min-width: 120px;
  margin: 0 2px;
  font-size: .97rem;
  padding: 7px 22px;
  border-radius: 22px;
}
.cookie-banner .btn.primary {
  background: #377e46;
  color: #fff;
  border: none;
}
.cookie-banner .btn.secondary {
  background: #fffef5;
  color: #377e46;
  border: 2px solid #377e46;
}
.cookie-banner .btn.settings {
  background: #E5BA73;
  color: #223022;
  border: none;
}
.cookie-banner .btn.settings:hover { background: #f2eacc; }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 16px 10px;
    gap: 16px;
    font-size: .98rem;
  }
  .cookie-banner p { margin-right: 0; }
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2090;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #22302288;
  align-items: center;
  justify-content: center;
  /* animation */
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 38px 28px 28px 28px;
  min-width: 352px;
  max-width: 94vw;
  box-shadow: 0 4px 28px #377e4635;
  animation: fadeInModal 0.38s cubic-bezier(.41,1.1,.14,.97);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(.86);}
  to { opacity: 1; transform: scale(1);}
}
.cookie-modal h2 { color: #377e46; font-size: 1.35rem; margin-bottom: 14px; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 42px;
  height: 22px;
  border-radius: 12px;
  background: #e5ba73;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-toggle[data-enabled='true'] { background: #377e46; }
.cookie-toggle-switch {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}
.cookie-toggle[data-enabled='true'] .cookie-toggle-switch {
  left: 22px;
}
.cookie-modal .btn {
  margin: 10px 6px 0 0;
  font-size: 1rem;
}
.cookie-modal .btn.close {
  color: #377e46;
  background: none;
  border: none;
  float: right;
  margin-top: -24px;
  margin-bottom: 7px;
}
.cookie-modal .btn.close:hover { color: #E5BA73; }

@media (max-width: 465px) {
  .cookie-modal { min-width: 80vw; padding: 16px 5vw 16px 5vw; }
}

/* =============================================================
   FAQ ACCORDIONS (basic, visual only)
============================================================= */
.faq-list {
  flex-direction: column;
  gap: 22px;
  margin-bottom: 0;
}
.faq-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 20px 16px 14px 16px;
  border: 1px solid #F6E7C1;
}
.faq-list h3 {
  color: #377e46;
  font-size: 1.1rem;
  margin-bottom: 9px;
  font-family: 'Playfair Display', serif;
}
.faq-list p { margin-bottom: 0; }

/* Contact Details */
.contact-details, .contact-invitation {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.contact-details img {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: #e5ba73;
  padding: 4px;
  margin-right: 5px;
  box-shadow: 0 1px 5px #e5ba734c;
}
.contact-details span {
  font-size: 1.04rem;
  margin-bottom: 2px;
  margin-left: 4px;
}

/* Thank You Sections */
.thank-you {
  text-align: center;
  background: #fffef5;
  border-radius: 18px;
  padding: 52px 12px;
  margin: 0 auto;
  box-shadow: 0 2px 12px #e3e3c240;
  max-width: 620px;
}

/* Decorative bits, subtle backgrounds for organic effect */
section::before, section::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  width: 70px;
  height: 46px;
  opacity: 0.16;
  background: radial-gradient(ellipse at 50% 60%, #377e46 80%, transparent 100%);
  border-radius: 99px 120px 120px 160px/90px 130px 80px 110px;
}
section::before {
  left: -32px;
  top: -18px;
}
section::after {
  right: -32px;
  bottom: -13px;
  background: radial-gradient(ellipse at 60% 60%, #E5BA73 90%, transparent 100%);
  transform: scaleX(-1);
}

/* Remove on mobile to save space */
@media (max-width: 700px) {
  section::before, section::after {
    display: none;
  }
}

/* =============================================================
   TABLES, POLICY, LEGAL PAGES
============================================================= */
.policy {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 22px 14px 18px 18px;
  margin: 0 auto;
  max-width: 860px;
}
.policy h1 {
  font-size: 2.05rem;
  color: #1C3552;
  margin-bottom: 20px;
}
.policy p, .policy a {
  color: #223022;
  font-size: 1.04rem;
}
.policy a:hover { color: #377e46; text-decoration: underline; }

/* Table Styles */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 22px;
  font-size: 1rem;
  box-shadow: 0 1px 10px #e3e3c270;
  border-radius: 12px;
}
th, td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1.5px solid #f6e7c1;
  color: #223022;
}
th {
  background: #f6e7c1;
  font-weight: 600;
}

/* =============================================================
   MEDIA QUERIES & MOBILE RESPONSIVENESS
============================================================= */
@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero h1 { font-size: 1.38rem; }
  .cta { padding: 20px 5px; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .btn, .btn.primary, .btn.secondary { font-size: 0.99rem; padding: 0 13px; }
  .footer-contact, .footer-nav { font-size: 0.92rem; }
}

/* =============================================================
   UTILITY/HELPER CLASSES
============================================================= */
.hide { display: none !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }

/* Accessibility & Focus Outlines */
:focus-visible {
  outline: 2.5px solid #E5BA73;
  outline-offset: 2px;
}

/* =============================================================
   SCROLLBAR (subtle, organic)
============================================================= */
body::-webkit-scrollbar {
  width: 12px;
  background: #f6e7c1;
}
body::-webkit-scrollbar-thumb {
  background: #c2b381;
  border-radius: 99px;
}

/* =============================================================
   ANIMATIONS & MICRO-INTERACTIONS
============================================================= */
.card, .feature, .blog-card, .project-card, .testimonial-card, .values-grid > div {
  transition: box-shadow var(--transition), transform var(--transition), border-color 0.12s;
}
.btn, .cookie-banner .btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}

/* ================== End of CSS ================== */
