/* === CSS RESET & BASE VARIABLES === */
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F6F8FA;
  color: #1A2233;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

:root {
  --primary: #1F3A68;
  --primary-hover: #254b8c;
  --secondary: #F5C518;
  --secondary-dark: #d1aa18;
  --accent: #FFFFFF;
  --gray-900: #1A2233;
  --gray-700: #33415C;
  --gray-200: #EDF2F7;
  --gray-100: #F6F8FA;
  --shadow-card: 0 2px 16px 0 rgba(44,56,101,0.09);
  --radius: 10px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, dl, dd {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}
.text-section ul {
  margin-bottom: 16px;
  margin-top: 6px;
}
.text-section ul li {
  margin-bottom: 8px;
}

/* Prevent text overflows & add good readability on cards */
.card, .testimonial-card, .text-section {
  word-break: break-word;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #F6F8FA;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(44,56,101,0.1);
  color: var(--gray-900);
  max-width: 440px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 8px;
  color: var(--gray-900); /* strong contrast */
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-text {
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--accent);
  box-shadow: 0 1px 8px 0 rgba(31,58,104,0.07);
  border-bottom: 1px solid var(--gray-200);
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--gray-200);
  color: var(--primary-hover);
}
nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(245,197,24,0.07);
  border-radius: 6px;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, transform 0.17s;
}
nav a.cta:hover, nav a.cta:focus {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(31,58,104,0.10);
}
header img {
  height: 38px;
  margin-right: 24px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.25rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 14px;
  z-index: 1014;
  transition: color 0.18s;
  line-height: 1;
}
.mobile-menu-toggle:focus {
  color: var(--secondary);
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 2000;
  animation: menu-slide-in 0.35s cubic-bezier(.87,.01,.32,1.16);
  transition: transform 0.25s, opacity 0.2s;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 90px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  padding: 12px 0;
  transition: color 0.17s;
  border-radius: 5px;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.04);
}
.mobile-nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  width: 80%;
  margin: 0 auto;
  font-size: 1.24rem;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(245,197,24,0.12);
  border-radius: 6px;
  margin-top: 18px;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2010;
  transition: color 0.18s;
  line-height: 1;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
@keyframes menu-slide-in {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* Show hamburger & hide nav on mobile */
@media (max-width: 950px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === HERO, FEATURES, SERVICES, CTA BUTTONS === */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  padding: 10px 32px;
  border-radius: 24px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  box-shadow: 0 2px 14px rgba(245,197,24,0.11);
  margin-top: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.16s;
  cursor: pointer;
  letter-spacing: .01em;
}
.cta:hover, .cta:focus {
  background: var(--secondary-dark);
  color: #fff;
  box-shadow: 0 6px 24px rgba(31,58,104,0.12);
  transform: translateY(-1px) scale(1.03);
}

/* === LISTS with icons (FEATURES) === */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}
ul li img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-right: 2px;
  margin-top: 2px;
  flex-shrink: 0;
}
.content-wrapper ul {
  margin-bottom: 18px;
}

/* === FAQ, DL, DD, DT Styling === */
dl {
  width: 100%;
  max-width: 600px;
  margin-bottom: 18px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 22px;
  margin-bottom: 8px;
}
dd {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 6px;
  margin-left: 0;
}
dd a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.18s;
}
dd a:hover, dd a:focus {
  color: var(--secondary);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 16px 0;
  box-shadow: 0 -1px 8px rgba(31,58,104,0.03);
  border-top: 1px solid #2d486d;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  justify-content: center;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-info {
  text-align: center;
  font-size: 0.95rem;
  color: #e6eafd;
}

/* === COOKIE CONSENT BANNER & PREFERENCES MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--primary);
  color: #fff;
  z-index: 3000;
  padding: 20px 16px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 -4px 14px rgba(31,58,104,0.18);
  font-size: 1rem;
  animation: cookiefadein 0.45s cubic-bezier(.67,.01,.32,1.05);
}
.cookie-banner p {
  flex: 1 1 300px;
  margin: 0 12px 0 0;
  color: #fff;
  font-size: 1.04rem;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  padding: 7px 18px;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.17s, box-shadow 0.14s;
}
.cookie-accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary-dark);
  color: #fff;
}
.cookie-settings {
  background: #fff;
  color: var(--primary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--gray-200);
  color: var(--primary-hover);
}
.cookie-reject {
  background: #C8D0E4;
  color: #1A2233;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #B3BBC9;
  color: var(--primary-hover);
}
@keyframes cookiefadein {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}

/* Cookie preferences modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,31,48,0.50);
  z-index: 3500;
  align-items: center;
  justify-content: center;
  animation: fadein 0.30s cubic-bezier(.37,.01,.32,1.20);
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  padding: 36px 28px 24px 28px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 4px 40px rgba(31,58,104,0.21);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h3 {
  font-size: 1.20rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-category .essential {
  color: #aaa;
}
.cookie-close {
  position: absolute;
  top: 11px;
  right: 13px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-close:hover, .cookie-close:focus {
  color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 1024px) {
  .testimonial-card {
    max-width: 95vw;
  }
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 950px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .section {
    padding: 30px 10px;
    margin-bottom: 36px;
  }
  .box, .card, .testimonial-card {
    padding: 18px 10px;
  }
}
@media (max-width: 850px) {
  .content-wrapper {
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 30px;
    padding: 16px 5px;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    padding: 0 10px;
    height: 60px;
    min-height: 42px;
  }
  .testimonial-card {
    padding: 13px 6px;
    font-size: 1rem;
  }
  .cookie-banner {
    font-size: 0.93rem;
    padding: 15px 8px 15px 8px;
    gap: 9px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner p {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cookie-modal-content {
    padding: 18px 7vw 16px 7vw;
    min-width: 200px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.03rem;
    margin-bottom: 9px;
  }
  .footer-info {
    font-size: 0.91rem;
  }
  .cookie-modal-content {
    padding: 12px 3vw;
    min-width: 1px;
  }
  footer .container {
    padding: 0 4px;
  }
}

/* === MICRO-INTERACTIONS & ANIMATIONS === */
.card, .testimonial-card, .cta, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.23s, transform 0.15s, background 0.18s, color 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(31,58,104,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* === SELECTION COLORS FOR PROFESSIONAL LOOK === */
::selection {
  background: var(--secondary);
  color: var(--primary);
}

/* === SCROLLBAR STYLING (for desktop) === */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #e3eaf3;
  border-radius: 10px;
}
body::-webkit-scrollbar-track {
  background: #F6F8FA;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* === PRINT OPTIMIZATION === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, .card, .testimonial-card { box-shadow: none !important; background: #fff !important; }
}
