/* ==========================================================================
   CSS Reset & Base styles (Normalize)
   ========================================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #FAF9F6;
  color: #222;
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-text-size-adjust: none;
  text-rendering: optimizeLegibility;
}
img, picture, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #285943;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6C453;
  text-decoration: underline;
}
:focus {
  outline: 2px solid #F6C453;
  outline-offset: 2px;
}

/* ==========================================================================
   Typography (Elegant Classic)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Georgia, serif;
  color: #23432B;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.6em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5em;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 0.4em;
}
p, ul, ol, dl {
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 1em;
  color: #333;
}
strong, b {
  font-weight: 700;
}

/* ==========================================================================
   Layout Containers & Spacing (Elegant & Classic with Flexbox)
   ==========================================================================
   Make sure CRITICAL spacing/alignment patterns are applied 
*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(40, 89, 67, 0.06);
  padding: 32px 26px 32px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(40, 89, 67, 0.12);
  transform: translateY(-4px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 28px;
  background: #fff;
  color: #23432B;
  border-left: 5px solid #F6C453;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(40, 89, 67, 0.08);
  margin-bottom: 20px;
  min-width: 230px;
  transition: box-shadow 0.24s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(40, 89, 67, 0.17);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.125rem;
  color: #222;
}
.testimonial-card span {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  color: #285943;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ==========================================================================
   Lists and Info Blocks
   ==========================================================================
*/
ul, ol {
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1rem;
}
dt {
  font-weight: bold;
  margin-bottom: 6px;
  color: #285943;
  font-family: 'Montserrat', serif;
}
dd {
  margin-bottom: 12px;
  margin-left: 0;
}

/* ==========================================================================
   Buttons & Calls to Action
   ==========================================================================
*/
.cta-btn,
.card a,
.mobile-nav a,
.cookie-banner .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #285943;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 10px;
  padding: 14px 32px;
  box-shadow: 0 2px 8px rgba(40,89,67,0.09);
  border: none;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.18s, box-shadow 0.2s;
  text-decoration: none;
}
.cta-btn:hover,
.cta-btn:focus,
.card a:hover,
.mobile-nav a:hover,
.cookie-banner .cookie-btn:hover {
  background: #23432B;
  color: #F6C453;
  box-shadow: 0 4px 22px rgba(40,89,67,0.16);
}

/* Secondary/outline button */
.cookie-banner .cookie-btn.secondary {
  background: #F6C453;
  color: #285943;
  border: 1.5px solid #285943;
  transition: background 0.2s, color 0.18s;
}
.cookie-banner .cookie-btn.secondary:hover,
.cookie-banner .cookie-btn.secondary:focus {
  background: #fff;
  color: #285943;
  border-color: #F6C453;
}

/* ==========================================================================
   Navigation Styles
   ==========================================================================
*/
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 22px;
  font-family: 'Montserrat', serif;
}
.main-nav img {
  height: 40px;
  margin-right: 30px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
}
.main-nav ul li {
  margin: 0;
}
.main-nav ul li a {
  color: #285943;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 8px 7px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
.main-nav ul li a.active,
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: #F6C453;
  background: #28594308;
}

header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1002;
  box-shadow: 0 1px 12px rgba(40,89,67,0.04);
}

/* ==========================================================================
   Mobile Menu (Responsive + Animations)
   ==========================================================================
*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 26px;
  right: 24px;
  background: #F6C453;
  border: none;
  border-radius: 8px;
  color: #23432B;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(40,89,67,0.11);
  z-index: 1011;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #285943;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,89,67,0.98);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.45,0,0.55,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  z-index: 2021;
  padding: 10px;
  line-height: 1;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F6C453;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 65px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 16px 18px;
  background: transparent;
  transition: background 0.16s, color 0.18s;
  margin-bottom: 3px;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F6C453;
  color: #23432B;
}

@media (max-width: 1000px) {
  .main-nav ul { gap: 14px; }
}

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .main-nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}

@media (max-width: 900px) {
  .container { max-width: 98vw; padding: 0 7vw; }
  .main-nav { justify-content: space-between; }
}

/* ==========================================================================
   Footer Styles (Elegant, muted classic)
   -------------------------------------------------------------------------- */
footer {
  background: #23432B;
  color: #fff;
  padding: 54px 0 28px 0;
  margin-top: 20px;
  font-family: 'Montserrat', serif;
}
.footer-nav {
  margin-bottom: 28px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  list-style: none;
  justify-content: center;
  align-items: center;
  margin: 0 0 8px 0;
  padding: 0;
}
.footer-nav ul li {
  margin: 0;
}
.footer-nav ul li a {
  color: #F6C453;
  font-size: 1rem;
  padding: 4.5px 10px;
  border-radius: 6px;
  transition: color 0.16s, background 0.13s;
  font-family: 'Open Sans', serif;
}
.footer-nav ul li a:hover, .footer-nav ul li a:focus {
  background: #fff8e1;
  color: #285943;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: #EFEFE7;
  text-align: center;
  line-height: 1.5;
  margin-top: 6px;
}
.footer-branding img {
  height: 42px;
  margin-bottom: 10px;
}
.footer-branding a { color: #F6C453; }
.footer-branding a:hover, .footer-branding a:focus { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Blog, Project, and Other Card Types
   ==========================================================================
*/
.blog-post-card,
.project-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(40, 89, 67, 0.07);
  padding: 30px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.blog-post-card:hover, .project-card:hover {
  box-shadow: 0 8px 28px rgba(40, 89, 67, 0.13);
  transform: translateY(-2px);
}
.blog-post-card a {
  color: #285943;
  font-weight: 600;
  transition: color 0.13s;
  text-decoration: underline;
  margin-top: 8px;
}
.blog-post-card a:hover, .project-card a:hover { color: #F6C453; }

/* ==========================================================================
   Contact Info Styles
   ==========================================================================
*/
.map-placeholder {
  background: #f1efeb;
  border-radius: 10px;
  padding: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Cookie Consent Banner and Modal
   ==========================================================================
*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #285943;
  box-shadow: 0 -2px 20px rgba(40,89,67,0.10);
  z-index: 3000;
  padding: 18px 4vw 18px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  transition: transform 0.38s cubic-bezier(0.33,1,0.68,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0.33;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  min-width: 138px;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  padding: 11px 20px;
  margin: 0 0 0 6px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

/* Cookie Settings Modal/Overlay */
.cookie-modal {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  z-index: 4000;
  background: rgba(40,89,67,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #23432B;
  padding: 34px 30px 24px 30px;
  border-radius: 17px;
  box-shadow: 0 10px 38px rgba(40,89,67,0.14);
  min-width: 310px;
  max-width: 92vw;
  max-height: 83vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  font-family: 'Open Sans', serif;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #285943;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover {
  color: #F6C453;
}
.cookie-preference-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 15px 0 12px 0;
}
.cookie-preference-list label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #23432B;
  cursor: pointer;
}
.cookie-preference-list input[type="checkbox"] {
  width:18px; height:18px;
  accent-color: #F6C453;
  border-radius: 4px;
  margin-right: 8px;
}
.cookie-preference-list input[disabled] {
  opacity: 0.64;
}

/* ==========================================================================
   Responsive Layouts
   ==========================================================================
*/
@media (max-width: 1100px) {
  .container {
    max-width: 94vw;
    padding: 0 3vw;
  }
}
@media (max-width: 900px) {
  .section {
    padding: 36px 4vw;
    margin-bottom: 46px;
  }
}
@media (max-width: 780px) {
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 680px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 1vw; }
  .section { padding: 22px 1vw; }
  .cta-btn { padding: 12px 14px; font-size: 1rem; }
  .footer-branding { font-size: 0.97rem; }
  .cookie-banner { flex-direction: column; gap: 16px; align-items: flex-start; font-size: 0.98rem; }
  .cookie-banner .cookie-actions { gap: 7.5px; width: 100%; flex-wrap: wrap; }
  .cookie-modal .cookie-modal-content { padding: 18px 8vw; }
}

/* Remove left border on testimonials & card shadow on mobile for visual lightness */
@media (max-width: 600px) {
  .testimonial-card { border-left-width: 3px; box-shadow: 0 2px 10px rgba(40,89,67,0.06); }
  .blog-post-card, .project-card, .card { padding: 16px 10px; }
}

/* ==========================================================================
   Utility Classes
   ==========================================================================
*/
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* ==========================================================================
   Microinteractions & Transitions
   ==========================================================================
*/
.card, .testimonial-card, .blog-post-card, .project-card {
  transition: box-shadow 0.22s, transform 0.18s;
}
.cta-btn, .card a, .mobile-nav a, .cookie-banner .cookie-btn {
  transition: background 0.22s, color 0.18s, box-shadow 0.16s;
}

/* ==========================================================================
   Decorative & Structural Elements
   ==========================================================================
*/
hr {
  border: none;
  border-top: 1px solid #e2e1da;
  margin: 26px 0 24px 0;
}

/* ==========================================================================
   Accessibility - High Contrast Section (Testimonials)
   ==========================================================================
*/
.testimonial-card {
  background: #fff;
  color: #23432B;
  border-left: 5px solid #F6C453;
}
.testimonial-card p,
.testimonial-card span {
  color: #23432B;
}

/* ==========================================================================
   Custom Checkboxes (Cookie preferences)
   ==========================================================================
*/
input[type='checkbox'] {
  accent-color: #F6C453;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* ==========================================================================
   Print Styles (optional, muted)
   ==========================================================================
*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
