/* ==================== CSS RESET & NORMALIZE ==================== */
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, 
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  line-height: 1.6;
  background: #fff;
  color: #151617;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  pointer-events: none;
}
strong { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #111;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}

p, li, cite {
  color: #2c2e32;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}
cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: #666;
  font-size: 0.96rem;
}

/* =============== LAYOUT =============== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 900px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

main {
  flex: 1 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
}

.feature, .card {
  background: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 3px 32px 0 rgba(0,0,0,0.07);
  padding: 32px 24px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 370px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature:hover, .card:hover {
  box-shadow: 0 10px 40px 0 rgba(2,65,112,0.13);
  transform: translateY(-4px) scale(1.01);
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
}

.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: 20px;
  background: #f1f1f1;
  border-left: 5px solid #111;
  border-radius: 10px;
  box-shadow: 0 3px 14px 0 rgba(0,0,0,0.06);
  padding: 20px 32px;
  margin-bottom: 20px;
  max-width: 540px;
  transition: box-shadow 0.24s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(40,40,40,0.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Guarantee testimonial text contrast */
.testimonial-card p, .testimonial-card cite {
  color: #181818;
}

/* =================== HEADER =================== */
header {
  background: #fff;
  border-bottom: 1px solid #e5e6e8;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  box-shadow: 0 0.5px 0.5px 0 rgba(0,0,0,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  gap: 32px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #282828;
  font-size: 1rem;
  padding: 5px 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}
header nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #111;
  transition: width 0.2s;
  position: absolute;
  left: 0; bottom: -3px;
}
header nav a:hover::after,
header nav a:focus::after {
  width: 80%;
}
header .cta.primary {
  margin-left: 18px;
}
@media (max-width: 900px) {
  header .container {
    gap: 9px;
    flex-wrap: wrap;
  }
  header nav {
    gap: 12px;
  }
  header .cta.primary {
    display: none;
  }
}

/* ================= HERO SECTION ================ */
.hero {
  background: linear-gradient(90deg, #fafcff 0%, #f3f5f8 55%, #ffffff 100%);
  border-radius: 0 0 28px 28px;
  margin-bottom: 38px;
  box-shadow: 0 16px 40px 0 rgba(2,41,80,0.03);
  padding: 50px 0 60px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 590px;
  padding: 0;
}
.hero h1 {
  color: #111;
  font-size: 2.7rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.2rem;
  margin-top: 8px;
  margin-bottom: 24px;
  color: #222;
}
@media (max-width: 768px) {
  .hero {
    padding: 28px 0 36px 0;
    border-radius: 0 0 16px 16px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .hero .content-wrapper {
    padding: 0;
  }
}

/* =============== CTAs & BUTTONS =============== */
.cta, button, .btn, input[type="submit"] {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 28px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 3px 8px 0 rgba(35,35,41,0.07);
  outline: none;
  transition: background 0.24s, color 0.22s, box-shadow 0.2s, transform 0.18s;
}
.cta.primary {
  color: #fff;
  background: #111;
  border: 1.5px solid #16181d;
}
.cta.primary:hover, .cta.primary:focus {
  background: #13B68A;
  color: #fff;
  border-color: #13B68A;
  transform: scale(1.055);
  box-shadow: 0 6px 20px 0 rgba(15,50,43,0.11);
}
.cta.secondary {
  background: #fff;
  color: #024170;
  border: 1.5px solid #024170;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #111;
  color: #fff;
  border-color: #111;
}
button, .btn {
  background: #232326;
  color: #fff;
  border: none;
}
button:focus, button:hover, .btn:focus, .btn:hover {
  background: #13B68A;
  color: #111;
  outline: none;
  transform: translateY(-2px) scale(1.05);
}

/* ============= Feature Icons ============= */
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.94;
}

/* ===================== CARDS & GRIDS ===================== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============ SECTIONS ============ */
section:not(.hero) {
  margin-bottom: 60px;
  padding: 40px 0;
}
section .content-wrapper {
  width: 100%;
  gap: 16px;
}

/* ============ CONTACT INFO ============ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #282828;
}
.contact-info img {
  width: 20px;
  height: 20px;
  opacity: 0.78;
}

/* ============= FOOTER ============= */
footer {
  background: #fafbfc;
  border-top: 1px solid #ececed;
  padding: 40px 0 16px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #56575d;
  margin-bottom: 6px;
  position: relative;
}
footer nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #56575d;
  transition: width 0.18s;
  position: absolute;
  left: 0; bottom: -2px;
}
footer nav a:hover::after {
  width: 50%;
}
footer .contact-info {
  margin: 0;
  color: #56575d;
}
footer img {
  width: 54px; height: auto;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ===================== MOBILE NAVIGATION ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 24px;
  z-index: 201;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px 0 rgba(34,34,34,0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, color 0.22s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #13B68A;
  color: #111;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(14, 17, 19, 0.94);
  z-index: 900;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.7,0,.2,1), opacity 0.23s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: #fff;
  color: #111;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07);
  z-index: 1201;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.21s, color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #13B68A;
  color: #fff;
}
.mobile-nav {
  margin-top: 100px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 600;
  padding: 12px 2px 12px 4px;
  letter-spacing: 0.02em;
  border-radius: 8px;
  width: 100%;
  transition: background 0.16s, color 0.14s, font-size 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #13B68A;
  color: #111;
  font-size: 1.39rem;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav { display: none !important; }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ======================== RESPONSIVENESS ======================= */
@media (max-width: 900px) {
  .features-grid, .content-grid {
    gap: 16px;
    flex-direction: column;
  }
  .feature, .card {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 26px 0px; 
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 18px 14px;
    max-width: 100%;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 500px) {
  .section {
    margin-bottom: 26px;
    padding: 16px 0px;
  }
  .feature, .card {
    padding: 18px 8px;
  }
}

/* ======================== COOKIE CONSENT BANNER ======================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #131313;
  color: #fff;
  z-index: 1500;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 32px 22px 26px;
  box-shadow: 0 -2px 18px 0 rgba(30,30,30,0.17);
  gap: 30px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.26s, opacity 0.16s;
  font-size: 1.06rem;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-text {
  max-width: 450px;
  font-weight: 400;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn,
.cookie-settings-btn {
  border: none;
  border-radius: 24px;
  background: #fff;
  color: #131313;
  padding: 12px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 5px;
  box-shadow: 0 2px 7px 0 rgba(34,34,34,0.06);
  cursor: pointer;
  transition: background 0.16s, color 0.15s, transform 0.16s;
}
.cookie-btn.accept {
  background: #13B68A;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff;
  color: #13B68A;
  border: 1.5px solid #13B68A;
  box-shadow: 0 3px 11px 0 rgba(19,182,138,0.12);
  transform: scale(1.07);
}
.cookie-btn.reject {
  background: #fff;
  color: #111;
  border: 1.5px solid #232326;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232326;
  color: #fff;
}
.cookie-settings-btn {
  background: #111;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 12px 16px 12px;
    font-size: 0.98rem;
  }
  .cookie-banner-text {
    max-width: 100%;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 7px;
    width: 100%;
    align-items: flex-start;
  }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1600;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20,23,25,0.74);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #151617;
  border-radius: 14px;
  box-shadow: 0 5px 40px 0 rgba(22,24,26,0.15);
  max-width: 410px;
  min-width: 290px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.22s;
  position: relative;
}
.cookie-modal-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #232326;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-modal-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #13B68A;
  margin-right: 4px;
}
.cookie-category-label {
  font-size: 1.08rem;
  color: #1a1b1e;
}
.cookie-category-desc {
  font-size: 0.97rem;
  color: #616265;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  color: #13B68A;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 14px 5px;
    min-width: 0;
    max-width: 96vw;
  }
}

/* =================== FORMS (minimal for contact) =================== */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #c5c8ce;
  background: #fbfbfc;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
  color: #232326;
  outline: none;
  transition: border 0.21s, background 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
  border-color: #024170;
  background: #fff;
}
::placeholder {
  color: #a1a2a8;
  opacity: 0.88;
}

/* =================== MISC ================== */
::-webkit-scrollbar {
  width: 9px;
  background: #ededee;
}
::-webkit-scrollbar-thumb {
  background: #babec5;
  border-radius: 99px;
}

/* =================== LINKS & INTERACTIONS ================== */
a {
  color: #024170;
  transition: color 0.21s;
}
a:hover, a:focus {
  color: #13B68A;
}

/* ================= MISC TYPOGRAPHY =============== */
ul, li { margin-left: 0; padding-left: 0; }
li { margin-bottom: 8px; }

/* =============== VISUAL ACCENTS ================ */
hr {
  border: none;
  height: 1px;
  background: #ececef;
  margin: 30px 0;
}

/* ============= Z-INDEX LAYERS ============== */
header { z-index: 100; }
.mobile-menu, .mobile-menu-toggle { z-index: 900; }
.cookie-banner { z-index: 1500; }
.cookie-modal-overlay { z-index: 1600; }

/* =============== UTILITY FLEX CLASSES =============== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ========== ANIMATIONS & TRANSITIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .cta, .btn, button, input[type="submit"], .card, .feature, .testimonial-card {
    transition: box-shadow 0.23s, background 0.23s, color 0.18s, transform 0.17s;
  }
  .mobile-menu, .cookie-banner {
    transition: transform 0.33s cubic-bezier(.7,0,.2,1), opacity 0.22s;
  }
  .cookie-modal {
    transition: transform 0.26s, opacity 0.22s;
  }
}
