/* =======================================================
  CSS RESET & NORMALIZE
======================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  font-family: inherit;
}
body {
  background: #183D24;
  color: #F2F6EA;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #4DF997;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #18e097;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
hr {
  border: none;
  border-top: 1px solid #2F9E63;
  margin: 32px 0;
}
input, button, textarea, select {
  font: inherit;
  background: none;
  border-radius: 0;
  outline: none;
}
textarea {
  resize: vertical;
}
:focus {
  outline: 2px solid #4DF997;
  outline-offset: 2px;
}

/* =======================================================
  VARIABLES & BRANDS
======================================================= */
:root {
  --primary: #29724D;
  --secondary: #183D24;
  --accent: #F2F6EA;
  --neon-green: #4DF997;
  --neon-blue: #1f96fc;
  --bg-section: #1A2820;
  --bg-card: #23352D;
  --bg-testimonial: #f9fafb;
  --text-main: #F2F6EA;
  --text-dark: #172923;
  --shadow: 0 2px 36px 0 rgb(32 255 198 / 8%);
  --radius: 18px;
  --container-padding: 24px;
  --max-width: 1220px;
  --transition: 0.3s cubic-bezier(.55,.06,.29,.98);
  --font-display: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =======================================================
  LAYOUT CORE
======================================================= */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 992px) {
  .content-wrapper {
    gap: 32px;
  }
}
.section {
  background: var(--bg-section);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background var(--transition);
}
section {
  margin-bottom: 60px;
  padding-top: 0;
  border: none;
  background: none;
}

/* =======================================================
  TYPOGRAPHY
======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(77,249,151,0.22);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
  text-shadow: none;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--primary);
  text-shadow: none;
}
p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 12px;
}
strong, b {
  color: var(--neon-green);
  font-weight: 700;
}
@media (min-width: 600px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* =======================================================
  HEADER/NAVIGATION
======================================================= */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 0 32px 0 rgba(34,255,174,0.07);
  position: relative;
  z-index: 20;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
header img {
  width: 160px;
  max-width: 38vw;
  height: auto;
  margin-right: 28px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 0;
}
nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  padding: 4px 12px 4px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.15s;
  position: relative;
}
nav a:hover,
nav a:focus {
  color: var(--neon-green);
  background: rgba(77,249,151,.08);
}
.cta-button {
  font-family: var(--font-display);
  font-weight: 700;
  color: #091D17;
  background: linear-gradient(96deg, var(--neon-green), #aaffc3 80%);
  border-radius: 30px;
  border: none;
  padding: 10px 36px;
  font-size: 1.06rem;
  margin-left: 12px;
  box-shadow: 0 0 0 0 #4DF997,0 2px 12px 0 rgba(77,249,151,0.14);
  cursor: pointer;
  transition: box-shadow .16s, transform .18s, background .18s;
  text-shadow: 0 2px 8px rgba(255,255,255,0.19);
  outline: none;
  position: relative;
  z-index: 3;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--neon-green);
  color: #12241a;
  box-shadow: 0 2px 24px 0 #32FFB3;
  transform: translateY(-2px) scale(1.03);
}
header .cta-button {
  margin-left: 24px;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--neon-green);
  font-size: 2.1rem;
  padding: 6px 14px;
  cursor: pointer;
  margin-left: 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.17s;
  z-index: 50;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(77,249,151, 0.07);
  color: #fff;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hide main nav/CTA on mobile */
@media (max-width: 1023px) {
  header nav,
  header .cta-button {
    display: none;
  }
}

/* =======================================================
  MOBILE SLIDE MENU
======================================================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 97vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--secondary) 89%, #204933 100%);
  box-shadow: 24px 0 36px -12px rgba(0,255,204,0.11);
  z-index: 999;
  padding: 24px 0 24px 0;
  transform: translateX(-120%);
  transition: transform .39s cubic-bezier(.7,-0.02,.48,1.06);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--neon-green);
  font-size: 2.3rem;
  margin-left: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 4px;
  padding: 4px 12px;
  align-self: flex-end;
  transition: background .21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(77,249,151,0.10);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.16rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 0;
  border-radius: 0 12px 12px 0;
  width: 100%;
  transition: background 0.15s, color 0.13s, padding-left 0.21s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--neon-green);
  padding-left: 16px;
  background: rgba(77,249,151,0.08);
}
/* Mobile menu overlay for closing when clicking outside (optional script) */
.mobile-menu-bg {
  display: none;
}
.mobile-menu.open + .mobile-menu-bg {
  display: block;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =======================================================
  MAIN SECTIONS
======================================================= */
main {
  margin-top: 0;
  padding-bottom: 40px;
  min-height: 60vh;
  background: linear-gradient(117deg, #183D24 50%, #246041 100%);
}
@media (min-width: 900px) {
  main {
    padding-bottom: 70px;
  }
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Hero/content spacing & wrappers */
.section .container,
section > .container {
  display: flex;
  flex-direction: column;
}
/* Spacing between large block cards/sections */
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.card, .feature-grid > div, .card-container > .card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 20px 20px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, border-color 0.15s, background 0.16s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
  flex: 1 1 233px;
}
@media (min-width: 800px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: row;
    gap: 28px 24px;
    justify-content: flex-start;
    align-items: stretch;
  }
}

/* General content grid for about/company/team lists etc. */
.content-grid {
  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;
    align-items: flex-start;
    gap: 20px;
  }
}

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

/* =======================================================
  CARDS, ICONS, FEATURES
======================================================= */
.feature-grid img {
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  filter: drop-shadow(0px 0px 5px #42e9b9) drop-shadow(0 0 1px #fff1);
  background: rgba(77,249,151,0.08);
  border-radius: 50%;
  padding: 7px;
  transition: filter 0.15s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 2px 36px 0 #3cf3b1;
  background: #23352D;
}
.feature-grid > div {
  border: 1.2px solid #28e6a9;
  transition: border-color 0.15s;
}
.feature-grid > div:hover {
  border-color: #1f96fc;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* =======================================================
  TESTIMONIALS & REVIEW CARDS
======================================================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 2px 22px 0 rgba(14,230,170,0.11);
  background: var(--bg-testimonial);
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 230px;
  border: 1px solid #DEEEE0;
  transition: box-shadow 0.19s, border-color 0.15s;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card span {
  color: #1f96fc;
  font-weight: bold;
  margin-left: 8px;
  letter-spacing: 0.06em;
}
.testimonial-card:hover {
  border-color: #4DF997;
  box-shadow: 0 6px 36px 0 #0ecea0;
}
.testimonial-card p {
  color: #0f2721;
}

/* =======================================================
  FOOTER
======================================================= */
footer {
  width: 100%;
  background: linear-gradient(177deg, #0f261a 80%, #122c21 96%);
  color: #b4fbe3;
  font-size: 1rem;
  box-shadow: 0 -3px 36px 0 #19fabb13;
  border-radius: 20px 20px 0 0;
  margin-top: 60px;
  padding: 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 18px 24px 12px 24px;
}
footer nav {
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #b4fbe3;
  font-size: 1rem;
  border-radius: 7px;
  transition: background 0.12s, color 0.13s;
  font-family: var(--font-display);
}
footer nav a:hover {
  color: var(--neon-green);
  background: rgba(77,249,151,.10);
}
footer p {
  color: #e6fff8;
  font-size: 1em;
  margin-bottom: 4px;
}
footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }
  footer div {
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  footer {
    font-size: 0.98rem;
    padding: 0;
  }
  footer .container {
    padding: 10px 5px 6px 11px;
  }
}

/* =======================================================
  BUTTONS, LINKS, FORM CONTROLS
======================================================= */
button, .btn {
  font-family: var(--font-display);
  background: var(--primary);
  color: var(--accent);
  padding: 10px 28px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 #2ad17e22;
  transition: box-shadow .16s, background .17s, color 0.16s, transform 0.12s;
  text-shadow: 0 2px 8px rgba(37,255,183,0.17);
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--neon-green);
  color: #162e1e;
  box-shadow: 0 2px 24px 0 #32FFB3;
  transform: translateY(-1px) scale(1.025);
}

/* Newsletter/Contact visible inputs */
input, textarea {
  width: 100%;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid #24c57b;
  background: #f5fcf8;
  color: #0e3222;
  margin-bottom: 14px;
  font-family: var(--font-body);
  transition: border 0.16s, box-shadow 0.19s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--neon-green);
  background: #f7fffd;
  box-shadow: 0 2px 24px 0 #37fcbe29;
}

/* Spacing for content elements */
section + section {
  margin-top: 28px;
}

/* =======================================================
  RESPONSIVE DESIGN
======================================================= */
@media (max-width: 1023px) {
  .container {
    padding: 0 10px;
    max-width: 98vw;
  }
  footer .container {
    padding: 10px 4vw 4px 4vw;
    gap: 21px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-grid > div {
    min-width: 0;
    padding: 18px 10px 16px 10px;
  }
  .testimonial-card {
    padding: 18px 12px;
  }
  .section, section {
    padding: 22px 2vw;
  }
  header .container {
    padding: 10px 8px 8px 8px;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .section, section {
    padding: 11px 2vw;
  }
  h1 {
    font-size: 1.27rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  h3 {
    font-size: 1rem;
  }
}

/* =======================================================
  COOKIE CONSENT BANNER AND MODAL
======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #163225;
  color: #F2F6EA;
  z-index: 1200;
  box-shadow: 0 -2px 36px 0 #43ffd016;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 6vw 21px 6vw;
  gap: 36px;
  font-size: 1.07rem;
  border-radius: 18px 18px 0 0;
  animation: banner-fadein 0.8s cubic-bezier(.35,.93,.57,1.02);
}
@keyframes banner-fadein {
  0% { bottom: -100px; opacity: 0; }
  100% { bottom: 0; opacity: 1; }
}
.cookie-banner p {
  flex: 3 1 250px;
  margin-bottom: 0;
  color: #a4eedb;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex: 0 0 auto;
}
.cookie-banner button {
  background: var(--primary);
  color: var(--neon-green);
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 30px;
  padding: 8px 26px;
  border: none;
  margin-right: 0;
  margin-left: 0;
  transition: background .16s, color .14s;
  cursor: pointer;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--neon-green);
  color: #133935;
}
@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 14px 2vw 14px 2vw;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Cookie Modal Preferences */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -53%) scale(1);
  min-width: 300px;
  background: #143425;
  color: #a4eedb;
  z-index: 1250;
  padding: 34px 30px 18px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 56px 0 #46ffd019;
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: modal-fadein 0.39s cubic-bezier(.27,.8,.61,1.11);
}
.cookie-modal.open {
  display: flex;
}
@keyframes modal-fadein {
  0% { opacity: 0; transform: translate(-50%, -62%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -53%) scale(1); }
}
.cookie-modal h3 {
  color: var(--neon-green);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.cookie-modal ul {
  margin: 0 0 10px 0;
}
.cookie-modal li {
  margin-bottom: 8px;
  color: #c6ffe9;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal button {
  border-radius: 26px;
  padding: 7px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Cookie toggle switches */
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #11241b;
  border-radius: 12px;
  margin-right: 10px;
  transition: background .13s;
  vertical-align: middle;
  position: relative;
  outline: none;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--neon-green);
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 4px;
  transform: translateX(0);
  transition: transform 0.18s, background 0.16s;
  box-shadow: 0 1px 5px 0 #13725044;
}
.cookie-toggle:checked::before {
  background: var(--primary);
  transform: translateX(15px);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05em;
  color: #c7ffe3;
  margin-bottom: 9px;
}

/* Modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(8,18,11,0.49);
  z-index: 1249;
  display: none;
}
.cookie-modal.open ~ .cookie-modal-overlay {
  display: block;
}

/* =======================================================
  MICRO-INTERACTIONS & ANIMATIONS
======================================================= */
.card, .feature-grid > div, .card-container > .card, .testimonial-card {
  transition: box-shadow 0.21s, border-color 0.14s, background 0.21s, transform 0.19s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 16px 38px 0 #22ffd025;
  transform: translateY(-3px) scale(1.012);
}

.cta-button, button, .btn {
  transition: box-shadow 0.18s, background 0.14s, color 0.10s, transform 0.13s;
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* =======================================================
  UTILITY CLASSES
======================================================= */
.hide {
  display: none !important;
}
.show {
  display: block !important;
}
.center {
  align-items: center !important;
  justify-content: center !important;
}
.text-center {
  text-align: center !important;
}
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.my-4 { margin-top: 32px !important; margin-bottom: 32px !important; }

/* For Accessibility and Focus visuals */
:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 3px;
}

/* =======================================================
  ENSURE FLEX-GAP IS SUPPORTED for ALL containers
======================================================= */
.card-container, .feature-grid, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* Manually correct spacing for older browsers */
@supports not (gap: 20px) {
  .card-container > *, .feature-grid > *, .content-grid > *, .text-image-section > *, .feature-item > * {
    margin-right: 20px;
    margin-bottom: 20px;
  }
}

/* =======================================================
  OVERRIDES FOR SPECIFIC HTML PAGES (ex: privacy, legal, etc)
======================================================= */
.legal-content, .privacy-content, .gdpr-content {
  background: #143425;
  color: #abf9e5;
  border-radius: 14px;
  padding: 32px 22px;
  box-shadow: 0 2px 48px 0 #20E6A833;
}

/* =======================================================
  ICONS in contact/utility lists
======================================================= */
ul img, li img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 13px;
  filter: drop-shadow(0 0 3px #45ffc8);
}

/* =======================================================
  Z-INDEXES
======================================================= */
header, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay {
  z-index: 99;
}

/* =======================================================
  END
======================================================= */
