/* ==================== CSS RESET & NORMALIZE ==================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote, fieldset, form, legend, textarea, input, select, button, a, address {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  box-sizing: border-box;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 8px;
  text-align: left;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ==================== FONT IMPORT + BASE TYPOGRAPHY ==================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #F3FBFC;
  color: #253355;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: #253355;
}
h1 {
  font-size: 2.375rem;
  line-height: 1.14;
}
h2 {
  font-size: 1.75rem;
  margin-top: 24px;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1rem;
}

p, ul, ol, .feature-desc, dl, dd {
  color: #36466b;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

/* ==================== COMMON LAYOUT CLASSES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(37, 51, 85, 0.03);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 16px 0 rgba(37, 51, 85, 0.06);
  border-radius: 12px;
  padding: 28px 24px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F3FBFC;
  border-left: 6px solid #253355;
  border-radius: 16px;
  box-shadow: 0 6px 36px 0 rgba(37, 51, 85, 0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================== HEADER & NAVIGATION ======================= */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(37,51,85,0.04);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
  position: relative;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #253355;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EBF1F7;
  color: #E89B20;
}

.btn-primary {
  background: #253355;
  color: #fff!important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  padding: 10px 28px;
  border-radius: 7px;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.15s, color 0.2s;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px 0 rgba(37, 51, 85, 0.09);
  margin-left: 8px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E89B20;
  color: #253355;
  box-shadow: 0 8px 28px 0 rgba(37, 51, 85, 0.13);
}

.mobile-menu-toggle {
  display: none;
  background: #253355;
  border-radius: 6px;
  color: #fff;
  font-size: 2.2rem;
  align-items: center;
  justify-content: center;
  padding: 3px 22px;
  min-width: 48px;
  min-height: 48px;
  border: none;
  transition: background 0.18s;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E89B20;
  color: #253355;
}

/* =============== MOBILE MENU =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,51,85,0.97);
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100vw);
  transition: transform 0.36s cubic-bezier(0.53,0.01,0.29,1.01);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 32px 0 0;
  border-radius: 50%;
  align-self: flex-end;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E89B20;
  color: #253355;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
  align-items: flex-start;
  padding-left: 44px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-size: 1.27rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 0;
  border-radius: 7px;
  transition: color 0.19s, background 0.18s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E89B20;
  background: rgba(255,255,255,0.09);
  padding-left: 14px;
}

/* =========== HERO SECTION ============ */
.hero {
  padding: 70px 0 50px 0;
  background: #F3FBFC;
  border-bottom: 2px solid #e6eaf4;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 660px;
}
.hero h1 {
  color: #253355;
  font-size: 2.5rem;
}
.hero p {
  margin-top: 8px;
  font-size: 1.34rem;
  color: #36466b;
}
.hero .btn-primary {
  margin-top: 18px;
}

/* =========== FEATURES SECTION =========== */
.features {
  background: #fff;
}
.features .content-wrapper {
  align-items: flex-start;
}
.features h2 {
  color: #253355;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 20px;
  align-items: flex-start;
  margin-top: 20px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.feature-desc {
  min-width: 230px;
  font-size: 1rem;
  color: #36466b;
  padding-left: 8px;
  display: flex;
  align-items: center;
}

/* =========== SERVICES =========== */
.services ul,
section ul,
section ol,
section dl {
  margin-top: 8px;
  margin-bottom: 12px;
  padding-left: 0;
}
.services ul li,
section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: #36466b;
  font-size: 1rem;
}
.services ul li::before,
section ul li::before {
  content: '\2022';
  color: #E89B20;
  position: absolute;
  left: 0;
  font-size: 1.26em;
  top: 0;
}
.services table {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 16px 0 rgba(37, 51, 85, 0.06);
  margin-bottom: 20px;
  border: 1px solid #e7eaf1;
}
.services th {
  background: #253355;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.services td {
  border-top: 1px solid #e7eaf1;
  color: #253355;
  font-size: 1rem;
}
.services tr:nth-child(even) {
  background: #F3FBFC;
}

/* =========== FAQ =========== */
dt {
  font-weight: bold;
  margin-top: 16px;
  color: #253355;
}
dd {
  margin-bottom: 10px;
  color: #36466b;
  margin-left: 16px;
}

/* =========== TESTIMONIALS =========== */
.testimonials, .testimonial-card {
  background: #F3FBFC;
}
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonial-card p {
  color: #253355;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #36466b;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* =========== CTA SECTION =========== */
.cta-section {
  background: #253355;
  border-radius: 14px;
  margin: 60px 0 0 0;
  padding: 40px 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 18px 0 rgba(37,51,85,0.07);
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 20px;
}
.cta-section .btn-primary {
  background: #E89B20;
  color: #253355;
  margin: 16px auto 0 auto;
}
.cta-section .btn-primary:hover, .cta-section .btn-primary:focus{
  background: #fff;
  color: #253355;
}

/* ============ CLIENT LOGOS =========== */
.client-logos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 38px;
  align-items: center;
  margin-top: 12px;
}
.client-logos-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.14rem;
  color: #253355;
  background: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 8px;
  box-shadow: 0 2px 7px 0 rgba(37,51,85,0.05);
}
.client-logos-list img {
  height: 30px;
  width: auto;
}

/* =========== BLOG ARTICLES =========== */
article {
  background: #fff;
  padding: 30px 22px;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(37,51,85,0.05);
}
article h2 {
  font-size: 1.26rem;
  margin-bottom: 12px;
}
article p {
  font-size: 1rem;
  color: #36466b;
}

/* ========== ADDRESS & FOOTER ========== */
.footer-wrapper {
  background: #253355;
  color: #fff;
  padding: 44px 0 28px 0;
  margin-top: 64px;
}
.footer-wrapper .content-wrapper {
  align-items: flex-start;
  gap: 28px;
  display: flex;
  flex-wrap: wrap;
}
.footer-wrapper nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 16px 0 0 0;
}
.footer-wrapper nav a {
  color: #F3FBFC;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s, background 0.18s;
  padding: 6px 8px;
  border-radius: 5px;
}
.footer-wrapper nav a:hover, .footer-wrapper nav a:focus {
  background: #E89B20;
  color: #253355;
}
.footer-wrapper address {
  font-style: normal;
  color: #e7eaf1;
  font-size: 0.98rem;
  margin-top: 22px;
}
.footer-wrapper img {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}

/* ========== CONTACT SECTION ========== */
.contact-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: #36466b;
  margin-bottom: 15px;
}
.contact-list img {
  width: 22px;
  height: 22px;
}

/* ========== THANK YOU PAGE ========== */
.thank-you .content-wrapper {
  align-items: center;
}

/* ========== SPACING ENFORCEMENT ========== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .feature-grid, .client-logos-list {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
}
.content-grid,
.card-container,
.feature-grid,
.client-logos-list {
  gap: 20px;
}

/* ========== TRANSITIONS & INTERACTIONS ========== */
a, .btn-primary, button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.19s, color 0.19s, box-shadow 0.22s;
}

[tabindex="0"]:focus, a:focus, button:focus {
  outline: 2px dotted #E89B20;
  outline-offset: 2px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #253355;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 -2px 16px 0 rgba(37,51,85,0.09);
  padding: 22px 16px;
  gap: 15px;
  animation: cookie-slide-up 0.62s cubic-bezier(0.28,1,0.44,1.1);
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-consent-banner p {
  color: #F3FBFC;
  font-size: 1.06rem;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}
.cookie-btn-group button, .cookie-btn-group .cookie-settings-btn {
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.19s;
  min-width: 140px;
}
.cookie-btn-group .accept {
  color: #fff;
  background: #E89B20;
}
.cookie-btn-group .accept:hover, .cookie-btn-group .accept:focus {
  background: #ffb64c;
  color: #253355;
}
.cookie-btn-group .reject {
  color: #253355;
  background: #fff;
  border: 1px solid #E89B20;
}
.cookie-btn-group .reject:hover, .cookie-btn-group .reject:focus {
  background: #F3FBFC;
}
.cookie-btn-group .cookie-settings-btn {
  color: #E89B20;
  background: #253355;
  border: 1px solid #E89B20;
}
.cookie-btn-group .cookie-settings-btn:hover, .cookie-btn-group .cookie-settings-btn:focus {
  background: #fff;
  color: #253355;
}

/* ========== COOKIE SETTINGS MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,51,85,0.68);
  z-index: 701;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.29s linear;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1;  }
}
.cookie-modal {
  background: #fff;
  color: #253355;
  border-radius: 18px;
  box-shadow: 0 8px 48px 0 rgba(37, 51, 85, 0.18);
  max-width: 420px;
  width: 96vw;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-pullin 0.34s cubic-bezier(0.28,1,0.44,1.1);
}
@keyframes cookie-modal-pullin {
  from { transform: scale(0.89) translateY(30px); opacity: 0.32; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  font-size: 1.68rem;
  background: none;
  color: #253355;
  border-radius: 50%;
  padding: 2px 7px;
  border: none;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #F3FBFC;
  color: #E89B20;
}
.cookie-modal h2 {
  font-size: 1.31rem;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.06rem;
  justify-content: space-between;
  color: #36466b;
}
.cookie-category .essential {
  color: #E89B20;
  font-weight: 700;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #EBF1F7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #cbdae4;
  transition: background 0.13s;
  position: relative;
}
.cookie-toggle.checked {
  background: #E89B20;
  border: 1px solid #E89B20;
}
.cookie-toggle .knob {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1.5px;
  left: 2px;
  transition: left 0.19s;
}
.cookie-toggle.checked .knob {
  left: 22px;
}
.cookie-modal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.cookie-modal-btns button {
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.19s;
}
.cookie-modal-btns .accept {
  color: #fff;
  background: #E89B20;
}
.cookie-modal-btns .accept:hover, .cookie-modal-btns .accept:focus {
  background: #253355;
  color: #fff;
}
.cookie-modal-btns .cancel {
  color: #253355;
  background: #EBF1F7;
  border: 1px solid #E89B20;
}
.cookie-modal-btns .cancel:hover, .cookie-modal-btns .cancel:focus {
  background: #fff;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .footer-wrapper .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav a, .footer-wrapper nav a {
    font-size: 0.97rem;
    padding: 8px 10px;
  }
  .cta-section, .section {
    padding: 40px 10px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 820px) {
  .container {
    padding: 0 5px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .card-container, .content-grid, .client-logos-list, .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .hero .container {
    padding: 0 8px;
  }
  .footer-wrapper {
    padding: 34px 0 18px 0;
  }
  .footer-wrapper .content-wrapper {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  article, .card, .testimonial-card {
    padding: 20px 11px;
    font-size: 1rem;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.12rem; }
  .cta-section, .section {
    padding: 27px 2px;
    border-radius: 11px;
  }
  .footer-wrapper {
    padding: 20px 0 8px 0;
  }
  .footer-wrapper .content-wrapper {
    gap: 7px;
  }
  .mobile-menu nav {
    padding-left: 13px;
  }
  .mobile-menu-close {
    margin: 16px 18px 0 0;
  }
  .testimonial-card {
    padding: 14px 6px;
    font-size: 0.98rem;
  }
}

/* Accessibility: Ensure no elements overlap via forced minimum margins */
section, .section, .card, .testimonial-card, article {
  margin-bottom: 20px;
}

/* ========== OVERRIDES AND UTILITY ========== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-1 { margin-top: 8px !important; }
.text-center { text-align: center !important; }
.bg-accent { background: #E89B20 !important; color: #253355 !important; }

/* ========== PRINT OVERRIDE ========== */
@media print {
  header, .footer-wrapper, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  main, section, .section { margin: 0 !important; padding: 0 !important; }
}
