/* === CSS RESET & NORMALIZATION === */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin:0; padding:0; border:0; font: inherit; vertical-align: baseline; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background:none; border:none; }

html { scroll-behavior: smooth; }

/* === BRAND VARIABLES (with fallback for CSS vars) === */
:root {
  --color-primary: #2B6A4D;
  --color-secondary: #9BBF6E;
  --color-accent: #F5F8F1;
  --color-bg-dark: #181C1C;
  --color-bg: #202725;
  --color-text-bright: #fff;
  --color-text-dark: #13181f;
  --color-neon-green: #40ffb7;
  --color-neon-cyan: #6BF8F3;
  --color-neon-blue: #61A5FA;
  --shadow-main: 0 4px 32px 0 rgba(64,255,183,0.09),0 1.5px 6px 0 rgba(0,0,0,0.06);
  --shadow-btn: 0 0 8px 0 rgba(64,255,183,0.17);
  --border-radius: 18px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400 700;
  src: local('Open Sans'), url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--color-text-bright);
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(140deg, #181C1C 0%, #202725 100%);
}

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--color-neon-green);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(64,255,183,0.18);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-neon-cyan);
  font-weight: bold;
  margin-bottom: 18px;
  text-shadow: 0 1.5px 8px rgba(107,248,243,0.08);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.16; }
p {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
}
.small, small {
  font-size: 0.95rem;
  color: var(--color-accent);
}
.text-center { text-align: center; }

strong { color: var(--color-neon-green); font-weight: bold; }

/* === FLEX SPACING & LAYOUT PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #232b27;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  padding: 28px;
  transition: box-shadow 0.26s, border-color 0.26s;
}
.card:hover {
  box-shadow: 0 0 30px 0 var(--color-neon-green);
  border-color: var(--color-neon-green);
  z-index: 2;
}
.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;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  margin-top: 10px;
  box-shadow: 0 3px 12px 0 rgba(97,165,250,0.055), 0 1.5px 6px 0 rgba(0,0,0,0.03);
  flex-direction: column;
}
.testimonial-card p { color: var(--color-text-dark); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card small {
  color: var(--color-primary);
  font-weight: bold;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #222a24;
  border-radius: var(--border-radius);
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-main);
}

/* === HEADER & NAVIGATION === */
header {
  background: #181c1c;
  box-shadow: 0 2px 16px 0 rgba(97,165,250,0.04);
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  justify-content: center;
}
.main-nav a {
  color: var(--color-text-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 3px 14px;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-neon-green);
  color: var(--color-bg);
  text-shadow: 0 1px 12px #40ffb799;
}
.main-nav img { height: 44px; margin-right: 30px; }
.btn-primary {
  background: linear-gradient(90deg,var(--color-neon-green),var(--color-neon-cyan) 90%);
  color: var(--color-bg-dark);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  padding: 12px 32px;
  border-radius: 11px;
  font-size: 1.07rem;
  margin-left: 8px;
  margin-right: 2px;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.04em;
  transition: background 0.22s, box-shadow 0.18s, transform 0.16s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg,var(--color-neon-blue),var(--color-neon-green) 70%);
  box-shadow: 0 0 24px 0 var(--color-neon-cyan);
  color: #fff;
  transform: translateY(-1.5px) scale(1.03);
}

/* === MOBILE MENU NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 2.1rem;
  background: none;
  color: var(--color-neon-green);
  z-index: 2000;
  border: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,39,37,0.98);
  box-shadow: 0 0 24px 4px rgba(64,255,183,0.06);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.82,0,0.53,1);
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 32px;
  top: 28px;
  font-size: 2rem;
  background: none;
  color: var(--color-neon-cyan);
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: var(--color-neon-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 92px;
  margin-left: 36px;
  gap: 20px;
}
.mobile-nav a {
  color: var(--color-neon-green);
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 0;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: var(--color-neon-blue);
  color: #fff;
}

/* === HERO SECTION ETC === */
section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 0;
}
.content-wrapper.text-center {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 24px;
}
.content-wrapper.text-section {
  max-width: 800px;
}

ul, .text-section ul, .content-wrapper ul {
  padding-left: 16px;
  margin-bottom: 18px;
}
ul li {
  list-style: disc outside;
  margin-left: 18px;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: var(--color-secondary);
}
.text-section li {
  color: var(--color-neon-blue);
}

/* === TEAM & BLOG PREVIEWS === */
.team-bio-list, .blog-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.team-bio-list > div, .blog-preview-grid > div {
  flex: 1 1 260px;
  background: #202725;
  border-radius: var(--border-radius);
  padding: 20px 18px 18px 18px;
  box-shadow: 0 2px 10px 0 rgba(97,165,250,0.06);
  margin-bottom: 0;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.team-bio-list > div:hover, .blog-preview-grid > div:hover {
  box-shadow: 0 0 16px 0 var(--color-neon-cyan);
}
.values-statement ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 10px 0;
}

/* === FEATURE LISTS / SERVICE ITEMS === */
.service-item {
  border-radius: var(--border-radius);
  background: #222a24;
  padding: 22px 28px;
  box-shadow: 0 3px 14px 0 rgba(64,255,183,0.035);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-left: 3px solid var(--color-neon-green);
  transition: border-color 0.17s;
}
.service-item:hover { border-left: 3px solid var(--color-neon-blue); }
.service-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--color-neon-cyan);
}
.service-item h3 span {
  font-size: 0.96rem;
  color: var(--color-secondary);
  font-weight: 400;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.topic-tags li {
  padding: 7px 18px;
  background: #233326;
  color: var(--color-neon-green);
  border-radius: 9px;
  font-weight: 600;
  font-family: var(--font-display);
  box-shadow: 0 1.5px 7px 0 rgba(40,255,182,.04);
  font-size: 1rem;
}

.popular-posts h3 { color: var(--color-neon-cyan); font-size: 1.12rem; margin-bottom: 7px; }
.popular-posts ul { margin-left: 5px; }
.popular-posts li {
  color: var(--color-neon-blue);
  font-size: 1rem;
  margin-bottom: 7px;
  margin-left: 16px;
  list-style: disc outside;
  font-family: var(--font-body);
}

/* === FOOTER === */
footer {
  background: #181c1c;
  padding: 40px 0 30px 0;
  margin-top: 40px;
  border-top: 1.5px solid #253027;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  font-family: var(--font-display);
  opacity: 0.93;
  transition: color 0.16s, opacity 0.16s;
}
.footer-nav a:hover { color: var(--color-neon-green); opacity: 1; }
.footer-contact p { color: var(--color-secondary); font-size: 0.95rem; margin-bottom: 8px; }
footer img {
  width: 58px;
}

/* === CTA SECTIONS (centered) === */
.text-center .btn-primary {
  margin-left: 0;
  margin-top: 10px;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2400;
  background: #181c1c;
  color: var(--color-accent);
  padding: 20px 24px;
  box-shadow: 0 -2px 36px 0 rgba(64,255,183,0.07);
  font-size: 1rem;
  animation: slide-up-banner 0.35s cubic-bezier(.29,.83,.53,1);
  gap: 20px;
}
@keyframes slide-up-banner {
  0% { transform: translateY(120%); }
  100% { transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .btn-cookie {
  padding: 7px 18px;
  font-size: 0.98rem;
  background: var(--color-neon-green);
  color: var(--color-bg-dark);
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 2px;
  transition: background 0.16s, color 0.19s, box-shadow 0.17s, transform 0.14s;
}
.cookie-banner .btn-cookie.btn-settings {
  background: var(--color-neon-cyan);
  color: var(--color-bg-dark);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: var(--color-neon-blue);
  color: #fff;
  box-shadow: 0 0 11px 0 var(--color-neon-green);
  transform: translateY(-2px) scale(1.06);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 2600;
  background: rgba(32,39,37,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.25s cubic-bezier(.29,.83,.53,1);
}
@keyframes modal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #232b27;
  color: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 48px 0 rgba(107,248,243,0.09);
  padding: 36px 28px 32px 28px;
  max-width: 96vw;
  width: 370px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  z-index: 9999;
}
.cookie-modal h3 { color: var(--color-neon-cyan); }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #101814;
  position: relative;
  --toggle-active: var(--color-neon-green);
  --toggle-inactive: #343B36;
  transition: background 0.14s;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle-slider {
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 13px;
  background: var(--color-neon-green);
  transition: background 0.18s;
  position: absolute; left: 0; top: 0;
}
.cookie-toggle input:checked ~ .cookie-toggle-slider {
  background: var(--color-neon-green);
}
.cookie-toggle input:not(:checked) ~ .cookie-toggle-slider {
  background: #343B36;
}
.cookie-toggle-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.14s;
}
.cookie-toggle input:checked ~ .cookie-toggle-knob {
  left: 18px;
  background: var(--color-neon-green);
}
.cookie-modal .btn-cookie {
  margin-top: 10px;
  width: 100%;
  text-align: center;
}
.cookie-modal-close {
  position: absolute; right: 24px; top: 15px;
  font-size: 1.7rem;
  color: var(--color-neon-cyan);
  background: none;
  border: none;
  transition: color 0.17s;
}
.cookie-modal-close:hover { color: var(--color-neon-green); }

/* === ANIMATIONS, HOVER, EFFECTS === */
a, .btn-primary, .btn-cookie { transition: background 0.19s, color 0.17s, box-shadow 0.20s, transform 0.15s; }
.card, .service-item, .feature-item {
  transition: box-shadow 0.22s, border-color 0.21s, transform 0.13s;
}
.card:hover, .feature-item:hover, .service-item:hover {
  box-shadow: 0 0 28px 0 var(--color-neon-blue);
  transform: translateY(-1.5px) scale(1.01);}


/* === RESPONSIVE DESIGN (MOBILE FIRST) === */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
}
@media (max-width: 990px) {
  .content-wrapper {
    gap: 16px;
  }
  .card-container, .content-grid, .team-bio-list, .blog-preview-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.22rem; }
  .container { padding: 0 8px; }
  .main-nav img { height:34px; margin-right: 14px; }
  .main-nav a, .btn-primary { font-size: 0.97rem; padding: 10px 18px;}
  .section, section { padding: 32px 6px 0 6px; margin-bottom:36px; }
  .content-wrapper, .content-wrapper.text-center, .content-wrapper.text-section { gap: 13px; }
  .testimonial-card, .feature-item, .card, .service-item { padding:16px; }
  .footer-contact p { font-size: 0.81rem; }
  .footer-nav { gap:8px; }
  .team-bio-list, .blog-preview-grid { flex-direction: column; gap:11px; }
  .content-grid, .card-container { flex-direction: column; gap:17px; }
  .main-nav { flex-direction: column; gap: 7px; padding: 9px 0 1px 0; align-items: flex-start; }
  .footer-nav { flex-direction: row; gap: 14px; flex-wrap: wrap; }
  footer .content-wrapper { flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; }
  .footer-contact,p, .footer-contact span { text-align: center !important; }
}
@media (max-width: 650px) {
  section, .section { padding: 26px 2vw 0 2vw; }
  .mobile-menu-toggle {right: 16px; top: 18px;}
}
@media (max-width: 620px) {
  .footer-nav { gap:6px; flex-direction: column; }
}
@media (max-width: 550px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: block;
  }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding:14px 8px; font-size:0.99rem; }
  .cookie-banner-buttons { gap:7px; }
}
@media (max-width: 450px) {
  html { font-size:15px; }
  .testimonial-card, .feature-item, .card, .service-item { padding: 11px; }
  .cookie-modal { padding:22px 7px 17px 12px; width:94vw; }
}

/* === ACCESSIBILITY: HIGH CONTRAST & FOCUS === */
:focus-visible, .btn-primary:focus-visible, a:focus-visible, .btn-cookie:focus-visible {
  outline: 2px solid var(--color-neon-blue);
  outline-offset: 2px;
  box-shadow: 0 0 6px 0 var(--color-neon-green);
  border-radius:7px;
}

::-webkit-scrollbar {
  width: 9px;
  background: #181c1c;
}
::-webkit-scrollbar-thumb {
  background: #232b27;
  border-radius: 8px;
}

/* --- END --- */
