/* ===================
   CSS RESET & BASE STYLES
   =================== */
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, 
main, 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.15; /* Prevent font size adjustments after orientation changes in iOS */
  scroll-behavior: smooth;
}
body {
  background: #F7F9F3;
  color: #232F34;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
a {
  color: #145E34;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #18713E;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.4em;
}
strong {
  font-weight: 700;
}
img {
  max-width: 100%; display: block;
}
svg { display: inline-block; vertical-align: middle; }

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* ===================
   COLOR & TYPOGRAPHY
   =================== */
:root {
  --brand-primary: #145E34;
  --brand-primary-dark: #103E23;
  --brand-secondary: #F7F9F3;
  --brand-accent: #FFB700;
  --ui-bg: #FFFFFF;
  --ui-bg-light: #F7F9F3;
  --text-main: #232F34;
  --text-dark: #172027;
  --text-muted: #4E5C66;
  --gray-light: #E4E8EE;
  --gray-medium: #BCC3C8;
  --shadow-main: 0 4px 18px rgba(20, 94, 52, 0.08);
  --shadow-card: 0 2px 12px rgba(20, 94, 52, 0.06);
  --border-radius: 12px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  color: var(--brand-primary);
  font-weight: 700;
}
h1 { font-size: 2.75rem; line-height: 1.18; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 10px; font-weight: 600; }
h4, h5, h6 { font-size: 1.05rem; margin-bottom: 5px; }
p, ul, ol {
  font-size: 1rem;
  line-height: 1.67;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section {
  margin-bottom: 60px; padding: 40px 20px;
  background: transparent;
}
.container {
  width: 100%; max-width: 1152px;
  margin: 0 auto; padding: 0 16px;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 24px;
}
.text-section { max-width: 740px; }

/* ===================
   HEADER
   =================== */
header {
  background: var(--ui-bg);
  box-shadow: var(--shadow-main);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 76px;
}
.logo {
  display: flex; align-items: center; height: 100%; padding-left: 18px;
}
.logo img {
  height: 48px; width: auto;
}
.main-nav {
  display: flex; align-items: center;
  gap: 24px; margin-left: 32px;
  flex: 1 1 auto;
}
.main-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 6px;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.25s;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.cta-button {
  border: none;
  outline: none;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta-button.primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: var(--shadow-main);
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--brand-primary-dark);
}
.cta-button.secondary {
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-main);
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: var(--brand-primary);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  margin-left: 18px;
  cursor: pointer;
  color: var(--brand-primary);
  align-items: center;
  min-width: 44px; min-height: 44px;
  z-index: 31;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus { color: var(--brand-accent); }

@media (max-width: 980px) {
  .main-nav { gap: 12px; margin-left: 12px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .cta-button { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
}

/* ===================
   MOBILE MENU
   =================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 94, 52, 0.98);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(-100vw);
  will-change: transform;
  opacity: 0.98;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 24px 0 8px 28px;
  align-self: flex-start;
  cursor: pointer;
  min-width: 44px; min-height: 44px;
  z-index: 55;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  width: 100%;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 0;
  border-radius: var(--border-radius);
  transition: background 0.2s, color 0.25s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-close { display: none !important; }
}

/* For smooth menu slide on mobile */
@media (max-width: 900px) {
  .mobile-menu { display: flex; }
}

/* ===================
   HERO SECTION
   =================== */
.hero-section {
  background: linear-gradient(135deg,#F7F9F3 65%,#E4E8EE 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 56px 0 42px;
}
.hero-section .container { display: flex; flex-direction: column; align-items: flex-start; }
.hero-section .content-wrapper {
  max-width: 730px;
  display: flex; flex-direction: column;
  gap: 22px;
}
.hero-section h1 {
  font-size: 2.75rem; color: var(--brand-primary);
}
.hero-section p {
  font-size: 1.18rem; color: var(--text-muted); max-width: 90%; margin-bottom: 8px;
}
.hero-section .cta-button {
  max-width: 270px;
  font-size: 1.13rem;
}

@media (max-width: 600px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section {
    min-height: unset; padding: 38px 0 26px;
  }
  .hero-section p { font-size: 1.02rem; }
  .hero-section .container { padding: 0 8px; }
}

/* ===================
   FEATURES & CARDS
   =================== */
.features-section {
  background: var(--ui-bg-light);
}
.feature-grid {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-card {
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 336px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px 22px;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 240px;
}
.feature-card:hover,
.feature-card:focus-within {
  box-shadow: 0 8px 32px rgba(20, 94, 52, 0.18);
  transform: translateY(-6px) scale(1.019);
}
.feature-card img {
  height: 44px; width: 44px;
  margin-bottom: 3px;
}
.feature-card h3 {
  font-size: 1.15rem;
  color: var(--brand-primary);
}
.feature-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .feature-grid {flex-direction: column; gap: 20px;}
  .feature-card {max-width: 100%; min-width: 0;}
}

/* ===================
   SERVICES SECTION
   =================== */
.services-section .service-cards {
  display: flex; flex-wrap: wrap;
  gap: 24px; margin-top: 14px;
}
.service-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 352px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px 24px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px rgba(20, 94, 52, 0.16);
  transform: translateY(-5px) scale(1.018);
}
.service-card h3 {
  font-size: 1.08rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--text-main);
  font-size: 0.99rem; margin-bottom: 0;
}
.service-list {
  display: flex; flex-direction: column; gap: 20px;
  background: #fff;
  padding: 23px 23px 18px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .services-section .service-cards {flex-direction: column; gap: 20px;}
  .service-card {max-width: 100%; min-width: 0;}
}

/* ===================
   TESTIMONIALS SECTION
   =================== */
.testimonials-section {
  background: var(--ui-bg-light);
  padding: 40px 0 0;
}
.testimonials-section .container {
  display: flex; flex-direction: column; gap: 32px;
}
.testimonials-section h2 {
  margin-bottom: 12px; color: var(--brand-primary); font-size: 1.85rem;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 36px 20px 28px;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-size: 1.09rem;
  transition: box-shadow 0.17s, transform 0.17s;
  position: relative;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 26px rgba(20, 94, 52, 0.14);
  transform: translateY(-3px) scale(1.013);
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--text-dark);
}
.testimonial-author {
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-left: 16px;
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; gap: 10px; padding: 16px 12px; }
}

/* Ensure all testimonial text is dark on light for contrast */
.testimonial-card, .testimonial-card p {
  background: #fff;
  color: #172027;
}

/* ===================
   CTA, CASES, LEGAL, ETC
   =================== */
.cta-section {
  background: #fffbe9;
  padding: 40px 0;
  margin-bottom: 40px;
}
.cta-section .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.cta-section h2 {
  color: var(--brand-primary);
}

.legal-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin: 34px auto 54px auto;
  padding: 44px 30px 38px;
  max-width: 960px;
}
@media (max-width: 700px) {
  .legal-section {
    padding: 18px 8px 12px;
    margin: 22px 0 44px;
  }
}

/****************************************
   CARD & CONTAINER FLEX SPACING
****************************************/
.card-container {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 20px; }
}
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}

/****************************************
   FOOTER
****************************************/
footer {
  background: #232F34;
  color: #fff;
  padding: 42px 0 18px 0;
  margin-top: 40px;
}
footer .container { max-width: 1152px; }
footer .content-wrapper {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 24px;
}
.footer-nav {
  display: flex; flex-wrap: wrap;
  flex: 2 1 300px;
  gap: 18px 28px;
  align-items: flex-start;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
}
.footer-contact {
  flex: 1 1 220px;
  color: #fff; font-size: 0.98rem;
  margin-bottom: 8px;
}
.footer-social {
  display: flex; align-items: center;
  gap: 12px;
}
.footer-social a {
  display: flex; align-items: center; padding: 6px;
  transition: filter 0.2s, transform 0.2s;
}
.footer-social a:hover, .footer-social a:focus {
  filter: brightness(1.15);
  transform: scale(1.13) translateY(-2px);
}
.footer-social img { height: 32px; width: 32px; }

@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 20px; }
  .footer-nav { gap: 12px 12px; }
}

/****************************************
   COOKIE CONSENT BANNER (including modal)
****************************************/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw; z-index: 1000;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.10);
  padding: 24px 18px 18px 40px;
  display: flex; flex-direction: row; align-items: center; gap: 30px;
  justify-content: space-between;
  font-size: 1.03rem;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%); opacity: 0; pointer-events: none;
}
.cookie-consent-banner .banner-buttons {
  display: flex; gap: 12px;
}
.cookie-consent-banner button {
  border-radius: var(--border-radius);
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0; cursor: pointer;
  margin-right: 4px;
  transition: background 0.17s, color 0.18s;
}
.cookie-consent-banner .accept-all {
  background: var(--brand-primary); color: #fff;
}
.cookie-consent-banner .accept-all:hover {
  background: var(--brand-primary-dark); color: #fff;
}
.cookie-consent-banner .reject-all {
  background: none; border: 1.6px solid #BF2B14; color: #BF2B14;
  margin-left: 0;
}
.cookie-consent-banner .reject-all:hover {
  background: #FFF4F4; color: #BF2B14;
}
.cookie-consent-banner .settings {
  background: var(--brand-accent); color: #232F34;
}
.cookie-consent-banner .settings:hover {
  background: #ffe791; color: var(--brand-primary);
}
@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 17px 6px 12px 10px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .banner-buttons { gap: 7px; }
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(41,54,78,0.86);
  z-index: 2001;
  align-items: center; justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fade-in-modal 0.22s;
}
@keyframes fade-in-modal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 48px rgba(20,94,52,0.13);
  max-width: 420px; width: 92%;
  padding: 38px 32px 26px 32px;
  position: relative;
  display: flex; flex-direction: column; gap: 26px;
  animation: popin 0.22s cubic-bezier(.45,1.15,.33,1.05);
}
@keyframes popin {
  from { transform: scale(0.97) translateY(24px); opacity: 0; }
  to {   transform: scale(1) translateY(0);    opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--brand-primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: none;
  font-size: 1.35rem;
  color: #555;
  cursor: pointer;
}
.cookie-category {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--gray-light);
  padding: 10px 0; gap: 16px;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-weight: 600;
  color: var(--text-main);
}
.cookie-category input[type="checkbox"] {
  margin-right: 6px;
  accent-color: var(--brand-primary);
  width: 18px; height: 18px;
}
.cookie-category .always-on {
  background: var(--gray-light);
  color: #888;
  font-size: 0.98rem;
  padding: 3px 9px;
  border-radius: 10px;
  margin-left: 8px;
}
.cookie-modal-footer {
  display: flex; gap: 12px; margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-footer button {
  border-radius: var(--border-radius);
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.16s, color 0.18s;
}
.cookie-modal-footer .cookie-save {
  background: var(--brand-primary); color: #fff;
}
.cookie-modal-footer .cookie-save:hover {
  background: var(--brand-primary-dark);
}
.cookie-modal-footer .cookie-cancel {
  background: var(--gray-light); color: var(--text-main);
}
.cookie-modal-footer .cookie-cancel:hover {
  background: #ffeaa2; color: #8d7c2c;
}

/****************************************
   RESPONSIVE LAYOUT
****************************************/
@media (max-width: 1020px) {
  .container { max-width: 98vw; padding: 0 8px; }
}
@media (max-width: 900px) {
  .content-wrapper, .features-section .content-wrapper, .services-section .content-wrapper {
    gap: 18px;
  }
  .section { padding: 28px 6px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .section { padding: 16px 2px; margin-bottom: 34px; }
  .testimonials-section .container, .cta-section .container {
    padding-left: 3px;
    padding-right: 3px;
  }
}

/****************************************
   THANK YOU & SPECIAL SECTION
****************************************/
.thankyou-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin: 60px auto 40px auto;
  max-width: 730px;
  padding: 40px 28px 30px 28px;
}
.thankyou-section h1 {
  font-size: 2rem;
}
@media (max-width: 700px) {
  .thankyou-section { padding: 20px 5px 16px; margin: 34px 0 28px; }
}

/****************************************
   MISC ELEMENTS, INFO BLOCKS, UTILITIES
****************************************/
.pricing-block {
  background: var(--brand-accent);
  color: var(--text-dark);
  font-weight: bold;
  padding: 8px 22px;
  border-radius: 16px;
  font-size: 1.09rem;
  display: inline-block;
  margin: 10px 0 5px 0;
}
.icon-row {
  display: flex; gap: 26px;
  align-items: center; margin: 30px 0 0 0;
}
.icon-row img {
  height: 44px; width: 44px;
  filter: grayscale(0.17);
}
.case-studies, .impact-stats, .audit-process, .strategy-process-steps, .benefits-explained {
  margin-top: 22px; font-size: 1.03rem; color: var(--text-muted);
}

/****************************************
   FORM ELEMENTS
****************************************/
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1.5px solid var(--gray-light);
  padding: 10px 12px;
  background: #fff;
  color: var(--text-main);
  margin-bottom: 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand-primary);
  border-color: var(--brand-primary);
}
button:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/****************************************
   OVERRIDES FOR TOUCH TARGETS, ETC
****************************************/
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  min-width: 44px;  min-height: 44px;
}

/****************************************
   UTILITY CLASSES
****************************************/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }

/****************************************
   VISUAL HIERARCHY
****************************************/
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--brand-primary); }
.bg-accent { background: var(--brand-accent) !important; color: #232F34 !important; }
.bg-white { background: #fff !important; }
.bg-primary { background: var(--brand-primary) !important; color: #fff !important; }
.rounded { border-radius: var(--border-radius) !important; }
.shadow { box-shadow: var(--shadow-main) !important; }

/****************************************
   PRINT
****************************************/
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
  main { padding: 0; }
}
