/* ----------------------
    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; }
*, *:before, *:after { box-sizing: inherit; }
body { min-height: 100vh; background: #F6F7FB; line-height: 1.46; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { display: block; max-width: 100%; height: auto; border: none; }
button { font: inherit; border: none; background: none; cursor: pointer; outline: none; }

/* --------------
  CSS VARIABLES
--------------- */
:root {
  --color-primary: #16335B;
  --color-secondary: #F6F7FB;
  --color-accent: #FFB300;
  --color-white: #fff;
  --color-dark: #181C21;
  --color-gray: #8A99B0;
  --color-bg-gradient: linear-gradient(90deg, #e9edf7 0%, #f6f7fb 100%);
  --color-btn-gradient: linear-gradient(90deg, #254180 0%, #16335B 100%);
  --color-btn-gradient-hover: linear-gradient(90deg, #18427a 0%, #195794 100%);
  --shadow-card: 0 6px 24px rgba(25, 48, 78, 0.08);
  --shadow-elevate: 0 2px 7px rgba(22, 51, 91, 0.07), 0 0.5px 2px rgba(22, 51, 91, 0.10);
  --radius-card: 16px;
  --radius-btn: 999px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  :root {
    --radius-card: 12px;
    --radius-btn: 999px;
  }
}

/* ------------------
  BASE TYPOGRAPHY
------------------- */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg-gradient);
  font-size: 16px;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 1.75rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol, li { font-size: 1rem; margin-bottom: 12px; }
p.subheadline { font-size: 1.1rem; color: var(--color-gray); margin-bottom: 20px; }
strong, b { font-weight: 700; }
a { color: var(--color-primary); transition: color 0.18s; }
a:hover { color: var(--color-accent); }

/* --------------
  BUTTONS
--------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-btn-gradient);
  color: var(--color-white) !important;
  padding: 0.85em 2.2em;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-elevate);
  border: 2px solid transparent;
  letter-spacing: 1px;
  transition: background 0.25s, box-shadow 0.18s, color 0.18s;
  margin-top: 6px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-btn-gradient-hover);
  color: var(--color-accent) !important;
  box-shadow: 0 8px 24px rgba(25,48,75,0.14);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7em 1.8em;
  box-shadow: none;
  letter-spacing: 0.8px;
  transition: background 0.22s, color 0.20s, border 0.22s;
  margin-top: 6px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  transition: color 0.18s;
}
.btn-link:hover, .btn-link:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --------------------
  FLEX CONTAINERS
---------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  padding-bottom: 24px;
}

/* --------------
  MAIN NAVIGATION
--------------- */
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}
nav.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  padding: 6px 8px;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.21s, color 0.16s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  text-decoration: none;
}
nav.main-nav .btn-primary { margin-left: 12px; }

/* --------------
  FOOTER NAVIGATION
--------------- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.footer-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.149s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: var(--color-dark);
}
.footer-contact img { margin-right: 7px; vertical-align: middle; }

/* ---------------------
  HERO SECTION
---------------------- */
.hero {
  background: linear-gradient(90deg, #dee8fc 0%, #f6f7fb 90%);
  min-height: 330px;
  padding: 50px 0 48px 0;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
  gap: 12px;
}

/* ---------------------
  CTA SECTION
---------------------- */
.cta {
  background: linear-gradient(90deg, #254180 0%, #1c2d55 100%);
  color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 64px;
}
.cta h2,
.cta p {
  color: var(--color-white);
}
.cta .btn-primary { background: var(--color-accent); color: var(--color-primary); }
.cta .btn-primary:hover, .cta .btn-primary:focus { color: var(--color-white); background: var(--color-btn-gradient); }

/* -----------------------------
  CARDS, FEATURES, CONTENT FLEX
-------------------------------- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 375px;
  transition: box-shadow 0.17s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 9px 32px rgba(25,48,75,0.16);
  transform: translateY(-4px) scale(1.01);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  padding: 24px 18px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  padding: 20px 18px;
  min-width: 180px;
  max-width: 350px;
}
.feature-icon { margin-bottom: 5px; width: 38px; height: 38px; }

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  margin-bottom: 24px;
}
.post-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 20px 20px;
  min-width: 220px;
  max-width: 382px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.16s;
}
.post-item:hover { box-shadow: 0 10px 32px rgba(25,48,75,0.17); transform: translateY(-3px) scale(1.01); }

/* ------------
  TESTIMONIALS
------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  position: relative;
  font-size: 1rem;
  color: #232942;
  min-width: 220px;
  max-width: 450px;
}
.testimonial-card p {
  color: #232942;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 0.99rem;
}
.testimonial-card img {
  width: 95px;
  height: 20px;
  object-fit: contain;
}

/* -------------
FAQ ACCORDION / FAQ ITEMS
----------------- */
.faq-accordion { display: flex; flex-direction: column; gap: 20px; }
.faq-item {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  transition: box-shadow 0.14s;
  position: relative;
}
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 9px;
}
.faq-item p { color: var(--color-dark); }
.faq-item:hover, .faq-item:focus-within { box-shadow: 0 8px 32px rgba(25,48,75,0.13); }

.contact-prompt {
  margin-top: 20px;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--color-primary);
}
.contact-prompt a {
  color: var(--color-accent);
  font-weight: 600;
}
.contact-prompt a:hover { color: var(--color-primary); text-decoration: underline; }

/* -------------
  PRICING TABLE
-------------- */
table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-card);
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
thead {
  background: #e4e9f4;
}
th, td {
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid #eaeaea;
  color: var(--color-dark);
}
th {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}
tr:last-child td { border-bottom: none; }

/* --------------
 SECTION SPACING
--------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* -------------
  TEXT SECTION
-------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul {
  margin-bottom: 12px;
  padding-left: 16px;
}
.text-section li {
  list-style: disc inside;
  margin-bottom: 6px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 6px;
}

/* -------------------
  UTILITY CLASSES
-------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-18 { margin-top: 18px !important; }
.mb-18 { margin-bottom: 18px !important; }
.mw-600 { max-width: 600px; }

/* --------------------
  MOBILE NAV TOGGLE
-------------------- */
.mobile-menu-toggle {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 1.7rem;
  margin-left: 14px;
  display: none;
  transition: background 0.18s, color 0.13s;
  z-index: 301;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--color-accent); }

@media (max-width: 1024px) {
  nav.main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* --------------------
  MOBILE MENU OVERLAY
-------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,51,91,0.97);
  color: var(--color-white);
  z-index: 401;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.7,0.1,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 4px 0 16px rgba(22,51,91,0.14);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 2.2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  z-index: 410;
  transition: color 0.18s;
}
.mobile-menu-close:focus { color: var(--color-white); outline: 2px solid var(--color-accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 85px 30px 0 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.16s, background 0.13s;
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-accent);
  background: rgba(255,179,0,0.09);
}

/* --------------
  COOKIE BANNER
--------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -4px 32px rgba(25,48,75,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 14px 20px 14px;
  z-index: 501;
  transition: transform 0.27s cubic-bezier(0.7,0.1,0.3,1);
  transform: translateY(100%);
  font-size: 1rem;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p { color: var(--color-dark); margin-bottom: 10px; }
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}
.cookie-banner .btn-cookie {
  background: var(--color-btn-gradient);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: none;
  padding: 0.65em 1.7em;
  font-weight: 600;
  transition: background 0.15s, color 0.12s;
}
.cookie-banner .btn-cookie.btn-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-btn);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: var(--color-btn-gradient-hover);
  color: var(--color-accent);
}
.cookie-banner .btn-cookie.btn-settings:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --------------
 COOKIE MODAL
--------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(25, 33, 55, 0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 510;
  transition: opacity 0.18s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 15px 48px rgba(22, 51, 91,0.17);
  padding: 34px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 7px; }
.cookie-modal-content ul {
  margin-top: 5px;
  margin-bottom: 8px;
  padding-left: 16px;
}
.cookie-modal-content li { font-size: 0.98rem; margin-bottom: 7px; }
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-switch {
  width: 42px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-secondary);
  border-radius: 22px;
  transition: background 0.13s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-accent);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.13s, background 0.16s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
  background: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 2rem;
  background: none;
  color: var(--color-gray);
  border: none;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 511;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--color-primary); }

/* --------------
  GENERAL SPACING
--------------- */
section:not(:last-child) { margin-bottom: 60px; }
.card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child), .feature-grid:not(:last-child), .post-item:not(:last-child) {
  margin-bottom: 20px;
}

/* ------------------
  RESPONSIVENESS
-------------------- */
@media (max-width: 1110px) {
  .container { max-width: 97vw; }
  .content-wrapper { padding: 0; }
  .footer-flex { gap: 20px; }
}
@media (max-width: 900px) {
  .footer-flex { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 800px) {
  .hero, .cta { padding: 30px 0; }
  .hero { min-height: 185px; }
}
@media (max-width: 768px) {
  header, nav.main-nav, .footer-flex, .container { padding-left: 0; padding-right: 0; }
  section { margin-bottom: 34px; padding: 24px 0; }
  .content-wrapper { gap: 16px; }
  .footer-flex { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 10px; }
  .footer-contact { font-size: 0.94rem; }
  .card-container, .post-list, .content-grid { flex-direction: column; gap: 18px; }
  .card, .feature-grid, .feature-item, .testimonial-card, .post-item { max-width: 100%; min-width: 0; }
  .hero .content-wrapper { max-width: 95vw; }
  .hero { padding: 30px 0 26px 0; min-height: 120px; }
  .text-image-section { flex-direction: column; gap: 22px; align-items: flex-start; }
  table, thead, tbody, th, td, tr { display: block; width: 100%; }
  th, td { padding: 12px 7px; text-align: left; }
}
@media (max-width: 590px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .container { padding-left: 9px; padding-right: 9px; }
  .hero, .cta { padding: 20px 0; }
  .hero .container, .cta .container { justify-content: flex-start; }
  .footer-nav { gap: 6px 11px; font-size: 0.97rem; }
}

/* ----------
  ANIMATIONS
------------ */
.btn-primary, .btn-secondary, .btn-link,
.card, .feature-item, .testimonial-card, .post-item, .feature-grid {
  transition: box-shadow 0.21s, transform 0.22s, background 0.19s, color 0.19s;
}
.cta, .hero { transition: background 0.25s; }

/* -------------
  ACCESSIBILITY
-------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------
  PRINT
----------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ---------------------------
  ENSURE NO OVERLAP AND GAPS
---------------------------- */
.card-container > *,
.content-grid > *,
.feature-item > *,
.testimonial-card > *,
.post-list > *, .footer-flex > *, .main-nav > * {
  margin-bottom: 0 !important;
}

/* Ensure gap override for all flex containers */
.card-container, .content-grid, .footer-flex, .feature-item, .feature-grid, .post-list, .testimonial-card, .main-nav, .text-image-section {
  gap: 20px;
}
@media (max-width: 590px) {
  .card-container, .content-grid, .footer-flex, .feature-item, .feature-grid, .post-list, .testimonial-card, .main-nav, .text-image-section {
    gap: 13px;
  }
}

/* ---------------------
  END OF STYLE SHEET
---------------------- */
