/* ===== CSS RESET & BASE ===== */
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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{
  display:block;
}
body {
  line-height:1.5;
  background: #F9FAFB;
  color: #20232A;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #20232A;
  background: #F9FAFB;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #20232A;
  font-weight: 600;
}
h1 { font-size: 2.375rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, li, ul, ol {
  font-size: 1rem;
  color: #2D3343;
}
strong {
  color: #20232A;
  font-weight: 700;
}

/* ===== COMMON UTILS & STRUCTURE ===== */
.container {
  max-width: 1120px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 8px rgba(32,35,42,.07);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(32,35,42,.09);
  position: relative;
  z-index: 50;
}
header .container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #20232A;
  position: relative;
  padding: 8px 4px;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #3B5CB8;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
.btn-primary {
  background: #20232A;
  color: #fff;
  border-radius: 6px;
  padding: 12px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 1px 4px rgba(32,35,42,.08);
  transition: background 0.25s, box-shadow 0.25s;
  border: none;
  margin-left: 12px;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #4551A5;
  box-shadow: 0 4px 18px rgba(32,35,42,.16);
}

@media (max-width: 1024px) {
  header nav {
    gap: 14px;
  }
  .btn-primary {
    padding: 10px 22px;
    margin-left: 6px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  header nav, .btn-primary {
    display: none;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  background: #20232A;
  color: #fff;
  font-size: 2rem;
  border-radius: 7px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 375px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(32,35,42,.17);
  z-index: 1001;
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #E6E6E6;
  color: #20232A;
  font-size: 1.9rem;
  border-radius: 7px;
  padding: 6px 16px;
  margin: 18px 0 10px 20px;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8D99AE;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 28px;
  margin-top: 6px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #20232A;
  border-radius: 5px;
  padding: 16px 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6E6E6;
  color: #4551A5;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none; }
}

/* ===== HERO SECTIONS ===== */
.hero {
  min-height: 320px;
  padding: 60px 0 20px;
  background: linear-gradient(120deg, #e6e6e6 0%, #f9fafb 100%);
  border-bottom: 1px solid #E6E6E6;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero .content-wrapper {
  max-width: 700px;
  width: 100%;
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #20232A;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.25rem;
  color: #4551A5;
  margin-bottom: 18px;
  line-height: 1.4;
}
.hero .btn-primary {
  margin-top: 10px;
  font-size: 1.08rem;
}
@media (max-width:768px){
  .hero {
    padding: 36px 0 10px 0;
    min-height: 180px;
  }
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: 1.05rem; }
}

/* ===== FLEXBOX LAYOUTS ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(32,35,42,.06);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  transition: box-shadow 0.24s;
}
.feature-grid li:hover {
  box-shadow: 0 6px 20px rgba(32,35,42,.14);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 12px;
}

.service-highlights, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
  justify-content: flex-start;
}
.service-highlights li, .service-list li {
  flex: 1 1 230px;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(32,35,42,.05);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  transition: box-shadow 0.24s;
}
.service-highlights li:hover, .service-list li:hover {
  box-shadow: 0 6px 18px rgba(32,35,42,.13);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,35,42,.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.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: 900px) {
  .feature-grid, .service-highlights, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ===== USP LIST, CONTACT, ETC ===== */
.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.usp-list li {
  flex: 1 0 180px;
  min-width: 140px;
  background: #E6E6E6;
  border-radius: 10px;
  font-size: 0.98rem;
  padding: 18px 14px;
  color: #20232A;
  margin-bottom: 0;
  font-weight: 600;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F5F6FA;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #20232A;
  min-width: 210px;
  margin-bottom: 0;
}
.contact-details img {
  width: 26px;
  height: 26px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(32,35,42,.11);
  margin-bottom: 24px;
  position: relative;
  transition: box-shadow 0.22s;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #20232A;
  font-weight: 600;
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: .98rem;
  color: #8D99AE;
  font-style: italic;
  margin-top: 6px;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 5px 18px rgba(32,35,42,.18);
}
@media (max-width: 480px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: #20232A;
  color: #fff;
  padding: 38px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
footer img {
  height: 34px;
  width: auto;
  margin: 0 0 8px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
footer nav a {
  color: #E6E6E6;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: color .17s;
}
footer nav a:hover, footer nav a:focus {
  color: #8D99AE;
}
footer small {
  color: #8D99AE;
  font-size: .98rem;
  width: 100%;
  margin-top: 12px;
  text-align: right;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  footer small {
    text-align: left;
  }
}

/* ===== BUTTONS, LINKS, MICRO-INTERACTIONS ===== */
a, .btn-primary, .mobile-menu-close {
  transition: color .24s, background .22s, box-shadow .22s;
}
.btn-primary:active, .mobile-nav a:active, .mobile-menu-close:active {
  transform: scale(.96);
}

/* ===== FORMS, INPUTS (Simple) ===== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: #20232A;
  border: 1px solid #8D99AE;
  border-radius: 7px;
  padding: 9px 14px;
  outline: none;
  margin-bottom: 18px;
  width: 100%;
  appearance: none;
  box-sizing: border-box;
  transition: border-color 0.22s, box-shadow 0.22s;
}
input:focus, textarea:focus, select:focus {
  border-color: #3B5CB8;
  box-shadow: 0 0 0 2px #b9c9ee55;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #20232A;
  color: #fff;
  z-index: 1200;
  padding: 22px 12px 19px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 12px rgba(32,35,42,0.16);
  font-size: 1rem;
  transition: transform 0.33s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn-cookie {
  background: #E6E6E6;
  color: #20232A;
  border-radius: 7px;
  padding: 11px 25px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-right: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 7px rgba(32,35,42,0.09);
}
.btn-cookie:hover, .btn-cookie:focus {
  background: #3B5CB8;
  color: #fff;
}
.btn-cookie-settings {
  background: #4551A5;
  color: #fff;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: #8D99AE;
  color: #20232A;
}

/* ----- Cookie Settings Modal ----- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,35,42,0.72);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #20232A;
  border-radius: 18px;
  min-width: 320px;
  max-width: 98vw;
  padding: 37px 28px 24px 28px;
  box-shadow: 0 20px 50px rgba(32,35,42,0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideDown 0.33s;
}
@keyframes slideDown {
  from { transform: translateY(-60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.41rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #F5F6FA;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
  width: 21px;
  height: 21px;
  accent-color: #20232A;
  margin-right: 7px;
  cursor: pointer;
}
.cookie-category label {
  font-weight: 500;
  color: #20232A;
}
.cookie-modal .btn-area {
  display: flex;
  gap: 17px;
  margin-top: 15px;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  margin-right: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: #E6E6E6;
  color: #20232A;
  border-radius: 7px;
  font-size: 1.38rem;
  padding: 2px 14px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #8D99AE;
  color: #fff;
}

/* ----- RESPONSIVE COOKIE ----- */
@media (max-width:500px){
  .cookie-consent-banner{
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 17px 7px 12px 7px;
  }
  .cookie-consent-actions{gap:7px;}
  .cookie-modal{padding: 18px 4vw 10px 4vw;}
}

/* ====== MISC ====== */
::-webkit-scrollbar { width: 9px; background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #E6E6E6; border-radius: 7px; }

hr {
  border: 0;
  border-top: 1px solid #ececec;
  margin: 32px 0;
}
a:focus, .btn-primary:focus, .btn-cookie:focus, .cookie-modal-close:focus, .mobile-menu-close:focus {
  outline: 2px solid #3B5CB8;
  outline-offset: 3px;
}

/* ====== TYPOGRAPHY SCALE ====== */
@media (max-width: 700px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  p, li, .btn-primary, .btn-cookie { font-size: .97rem; }
}

/* --- Spacing, Alignment and Card Shadow Consistency --- */
.section > *, .container > *, .content-wrapper > * {
  margin-bottom: 0;
}
.section {
  box-sizing: border-box;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card, .content-grid > *, .feature-item, .testimonial-card, .usp-list li, .contact-details li, .service-list li, .feature-grid li, .service-highlights li {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .service-highlights, .service-list, .content-grid, .usp-list, .contact-details {
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Animation for button hover/focus */
.btn-primary, .btn-cookie {
  transition: box-shadow .18s, background .18s, color .18s, transform .14s;
}

/* Ensure proper z-index stacking for overlays */
.mobile-menu, .cookie-modal-overlay {
  z-index: 3000;
}

/* Prevent element overlapping */
.section, .card, .testimonial-card, .feature-grid li, .service-highlights li, .service-list li, .usp-list li, .contact-details li {
  box-sizing: border-box;
}
