/* ================== CSS RESET & BASE ================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1c2320;
  background: linear-gradient(135deg, #161d16 0%, #204A3A 100%);
  min-height: 100vh;
  line-height: 1.6;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1dcfae;
  text-decoration: none;
  transition: color 0.16s linear;
}
a:hover, a:focus {
  color: #3feba7;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  outline: none;
  border: none;
  color: inherit;
}
input, textarea {
  background: #f6f9f8;
  border: 1.5px solid #89B6A5;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  border-color: #3feba7;
  box-shadow: 0 0 0 2px #c8feee99;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #fefefd;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  background: linear-gradient(90deg,#1dcfae 40%,#70dfc3 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
h2 {
  font-size: 1.5rem;
  color: #89B6A5;
}
h3 {
  font-size: 1.15rem;
  color: #49ffda;
  margin-bottom: 8px;
  font-weight: 600;
}
p, li, label, span {
  font-size: 1rem;
  color: #f9faf5;
}
strong {
  color: #1dcfae;
  font-weight: 600;
}
.section h2 {
  margin-bottom: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.text-section p {
  max-width: 600px;
}
.text-section {
  margin-bottom: 24px;
}

/* ================== LAYOUT & SPACING ================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
main {
  padding-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(29, 44, 39, 0.35);
  border-radius: 28px;
  box-shadow: 0 5px 24px 0 #0a201f33;
  position: relative;
}
@media (max-width: 992px) {
  section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 22px 2px;
    margin-bottom: 28px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ================== FLEXBOX PATTERNS ================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #182c23;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 #95f9e62e;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 #1dcfae55;
  transform: translateY(-2px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  gap: 15px;
}
.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;
    align-items: flex-start;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f9faf5;
  color: #182c23;
  padding: 20px 22px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 18px 0 #1dcfae23;
  border-left: 4px solid #1dcfae;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #183c2b;
  font-size: 1.08rem;
  font-style: italic;
  margin-right: 12px;
}
.testimonial-card strong {
  color: #204A3A;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 #1dcfae4d;
}

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px;
    gap: 10px;
  }
}

/* ============== NAVIGATION BAR =============== */
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  background: rgba(24,40,34,0.95);
  padding: 18px 0 18px 0;
  border-bottom: 1.5px solid #49ffda55;
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 1002;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}
.logo img {
  height: 36px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  color: #89B6A5;
  position: relative;
  padding: 5px 3px;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #1dcfae;
  letter-spacing: 0.5px;
}
.cta {
  background: transparent;
  color: #1dcfae;
  border: 2px solid #1dcfae;
  border-radius: 24px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 18px;
  margin-right: 14px;
  box-shadow: 0 2px 16px 0 #1dcfae33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, border-color 0.18s;
}
.cta.primary, .cta.primary:visited {
  background: #1dcfae;
  color: #192422;
  border-color: #1dcfae;
  box-shadow: 0 4px 32px 0 #1dcfae4d;
}
.cta.primary:hover, .cta.primary:focus,
.cta:hover, .cta:focus {
  background: #152e28;
  color: #49ffda;
  border-color: #49ffda;
  box-shadow: 0 2px 16px 0 #49ffda80, 0 4px 25px 0 #1dcfae22;
  transform: translateY(-1.5px) scale(1.04);
}

@media (max-width: 992px) {
  .main-nav {
    gap: 11px;
    margin-left: 8px;
  }
  .cta {
    margin-left: 4px;
    margin-right: 4px;
    padding: 11px 22px;
  }
}
@media (max-width: 768px) {
  .main-nav,
  .cta.primary {
    display: none;
  }
}
/* ============= MOBILE MENU ============= */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #1dcfae;
  font-size: 2.2rem;
  margin-right: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1102;
  transition: color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #49ffda;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(20,35,34,0.99);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(.73,-0.01,.27,.99);
  box-shadow: -8px 0 32px 0 #1dcfae22;
  align-items: flex-end;
}
.mobile-menu.active {
  left: 0;
}
.mobile-menu .mobile-menu-close {
  display: block;
  font-size: 2rem;
  color: #49ffda;
  background: none;
  border: none;
  margin: 27px 28px 0 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  color: #f9faf5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  width: 100%;
  margin-top: 34px;
}
.mobile-nav a {
  color: #1dcfae;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 18px;
  border-radius: 12px;
  width: 80vw;
  text-align: center;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #49ffda33;
  color: #f9faf5;
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle,
  .mobile-menu .mobile-menu-close {
    display: none !important;
  }
}

/* ================= MAIN/BLOG/CONTENT ============== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-list article {
  background: #192724;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 #1dcfae22;
  padding: 20px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-left: 4px solid #1dcfae;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.blog-list article:hover {
  box-shadow: 0 4px 22px 0 #1dcfae44;
  border-color: #49ffda;
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-tags span {
  background: #1dcfae11;
  color: #1dcfae;
  border-radius: 10px;
  padding: 7px 15px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.4px;
  border: 1px solid #49ffda44;
}

/* ================== FOOTER ================== */
footer {
  background: #17221B;
  padding: 35px 0 20px 0;
  border-top: 3px solid #1dcfae55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #89B6A5;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #1dcfae;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-branding img {
  width: 48px;
  height: auto;
  margin-bottom: 4px;
}
.footer-branding p {
  font-size: 0.98rem;
  color: #89B6A5;
  letter-spacing: 0.3px;
}

/* ================== LISTS & ICONS ================== */
ul {
  margin-left: 0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
}
ul li img {
  width: 23px;
  vertical-align: middle;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.social-links li {
  background: #1dcfae0d;
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1.5px solid #49ffda22;
  min-width: 120px;
  font-weight: 500;
  color: #49ffda;
  box-shadow: 0 1px 6px 0 #1dcfae11;
  font-size: 1.03rem;
}
.social-links li img {
  width: 25px;
  height: auto;
}

/* ================== FORMS ================== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  background: #F9FAF5;
  padding: 24px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 #182c239f;
  margin-top: 10px;
}
label {
  color: #204A3A;
  font-weight: 600;
  font-size: 1.04rem;
}
input, textarea {
  font-size: 1rem;
}
form button[type="submit"] {
  margin: 14px 0 0 0;
  background: #1dcfae;
  color: #183c2b;
  border: none;
  border-radius: 22px;
  padding: 11px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 12px 0 #1dcfae44;
  font-size: 1.04rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
form button[type="submit"]:hover, form button[type="submit"]:focus {
  background: #152e28;
  color: #1dcfae;
  box-shadow: 0 4px 24px 0 #1dcfae22;
}

/* ================== SPECIAL SECTIONS ================== */
.card {
  background: #182c23;
  border-radius: 16px;
  box-shadow: 0 2px 18px #49ffda0d;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 5px 32px #1dcfae24;
  transform: scale(1.022);
}

/* ========== SPACING RULES FOR CARDS & SECTIONS ========== */
.card, .testimonial-card, .feature-item, section, .blog-list article {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2100;
  background: #192823ee;
  color: #f9faf5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px 21px 30px;
  box-shadow: 0 -7px 32px 0 #1dcfae22;
  gap: 20px;
  border-radius: 16px 16px 0 0;
  animation: cookie-slide-in 0.7s cubic-bezier(.61,-0.03,.41,.99);
}
.cookie-consent-banner p {
  color: #f9faf5;
  font-size: 1rem;
  flex: 1;
  margin-right: 10px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  border-radius: 18px;
  border: 2px solid #1dcfae;
  background: transparent;
  color: #1dcfae;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1rem;
  padding: 7px 22px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.13s;
}
.cookie-btn.accept {
  background: #1dcfae;
  color: #152e28;
  border-color: #1dcfae;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #3feba7;
  color: #192823;
}
.cookie-btn.reject {
  border-color: #49ffda;
  color: #49ffda;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #49ffda;
  color: #152e28;
}
.cookie-btn.settings {
  border-color: #204A3A;
  color: #204A3A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #183c2b;
  color: #1dcfae;
}

@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 19, 13, 0.87);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.33s cubic-bezier(.4,-0.01,.27,1.02);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #f9faf5;
  color: #182c23;
  border-radius: 16px;
  padding: 36px 25px 30px 25px;
  box-shadow: 0 10px 44px #1dcfae19;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  color: #204A3A;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #49ffda;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #1dcfae;
}
.cookie-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.cookie-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-checkbox label {
  font-size: 1rem;
  color: #182c23;
  margin-left: 2px;
}
/* Custom toggle styling */
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #c3e8e3;
  border-radius: 24px;
  position: relative;
  transition: background 0.16s;
}
.cookie-toggle[data-enabled="true"] {
  background: #1dcfae;
}
.cookie-toggle-knob {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 7px #182c2336;
  transition: left 0.18s;
}
.cookie-toggle[data-enabled="true"] .cookie-toggle-knob {
  left: 21px;
}

@media (max-width: 760px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 6vw 17px 6vw;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ================== RESPONSIVE ADAPTATIONS ================== */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 0.97rem;
  }
  h1 {
    font-size: 1.39rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  h3 {
    font-size: 1rem;
  }
  .footer-branding img {
    width: 38px;
  }
}

/* ================== ANIMATIONS ================== */
.card, .blog-list article, .testimonial-card, .cta, .cookie-btn {
  transition: box-shadow 0.19s, transform 0.15s, background 0.16s, color 0.14s, border-color 0.14s;
}
.cta:active, form button[type="submit"]:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* ================== Z-INDEX RULES ================== */
header       { z-index: 1002; }
.mobile-menu { z-index: 2000; }
.cookie-consent-banner { z-index: 2100; }
.cookie-modal-overlay  { z-index: 3000; }

/* ================== MISC ================== */
::-webkit-scrollbar {
  width: 12px;
  background: #101910;
}
::-webkit-scrollbar-thumb {
  background: #1dcfae;
  border-radius: 9px;
  border: 2px solid #192c21;
}
::-webkit-scrollbar-thumb:hover {
  background: #49ffda;
}

/* Hide elements for screen readers when necessary */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ========== Utility: Hide visually only ========== */
.visually-hidden {
  border: 0;
  padding: 0;
  margin: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px); /* for old browsers */
  white-space: nowrap;
}

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