/* ===== 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f5f6fa;
  color: #1a3365;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
  transition: color 0.25s;
}
a:focus, button:focus, input:focus {
  outline: 2px solid #1a3365;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 12px 16px;
}
th {
  font-weight: 700;
  background: #e3ecfa;
  color: #1a3365;
}
tr {
  border-bottom: 1px solid #dde3ef;
}

/* ===== BRAND FONTS & VARIABLES ===== */
:root {
  --primary: #1a3365;
  --secondary: #6fc1b8;
  --accent: #f5f6fa;
  --background: #f5f6fa;
  --text-dark: #1a3365;
  --text-light: #ffffff;
  --shadow: 0 4px 24px 0 rgba(26,51,101, .08);
  --shadow-strong: 0 8px 32px 0 rgba(26,51,101, .18);
  --radius: 16px;
  --gap: 24px;
  --gap-s: 16px;
  --gap-xs: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body, html {
  background: var(--background);
  color: var(--text-dark);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}
h4 {
  font-size: 1.1rem;
  line-height: 1.3;
}

p, ul, ol, li, td, th {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
}

small {
  font-size: .92rem;
  color: #4976a5;
}
blockquote {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.45;
  border-left: 5px solid var(--secondary);
  padding-left: 20px;
}

strong {
  font-weight: bold;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
}

/* SECTION SPACING AND PATTERNS */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-strong);
}
.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;
  min-width: 220px;
  max-width: 370px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.client-name {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
  margin-top: 0;
}
/* Feature grid layouts for icons and features */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 310px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 22px 18px;
  transition: box-shadow .25s, transform .28s;
  margin-bottom: 20px;
}
.feature img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  padding: 6px;
}
.feature:hover,
.feature:focus {
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px) scale(1.03);
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: var(--primary);
  color: var(--text-light);
  width: 100%;
  padding: 0;
  border-bottom: 2px solid var(--secondary);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
  justify-content: space-between;
  padding: 20px 20px 12px 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 8px 0 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.22s, border-bottom-color 0.24s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-button {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 1000px;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  border: none;
  box-shadow: 0 2px 7px rgba(110,193,184,.10);
  transition: background 0.22s, color 0.22s, box-shadow .3s, transform .22s;
  cursor: pointer;
  letter-spacing: .03em;
  margin-left: 10px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,51,101,.14);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

/* ===== HAMBURGER MENU FOR MOBILE ===== */
.mobile-menu-toggle {
  position: fixed;
  right: 26px;
  top: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.18s, color 0.19s, transform .24s;
  cursor: pointer;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,51,101,.98);
  color: #fff;
  z-index: 3000;
  padding-top: 36px;
  padding-left: 0;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.67,.04,0,1.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .37s cubic-bezier(.33,0,.25,1.05);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3050;
  box-shadow: var(--shadow);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 70px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .03em;
  padding: 10px 36px 10px 10px;
  border-radius: 11px;
  transition: background .18s, color .18s;
  width: 100%;
  display: block;
  margin-left: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(239,250,247, .16);
}

@media (max-width: 1020px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-s);
  }
  header nav {
    margin-top: 8px;
  }
}

@media (max-width: 920px) {
  .feature-grid {
    justify-content: flex-start;
  }
  .feature {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 200px;
  }
  .testimonial-card {
    max-width: 90vw;
  }
}

@media (max-width: 800px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid {
    gap: 16px;
  }
  .testimonial-card {
    padding: 16px;
  }
}

@media (max-width: 650px) {
  th, td {
    padding: 8px 5px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  section {
    padding: 28px 0 0 0;
  }
  .content-wrapper, .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .text-section {
    gap: 10px;
  }
  .feature, .testimonial-card {
    max-width: 100%;
    width: 100%;
    min-width: unset;
  }
  header nav {
    display: none !important;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 10px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .testimonial-card, .feature {
    padding: 13px 8px;
    font-size: .98rem;
  }
}

/* ===== MAIN BUTTON/CTA STYLES ===== */
button, .btn, .cta-button {
  cursor: pointer;
  appearance: none;
  user-select: none;
  border: none;
  text-align: center;
  outline: none;
  text-decoration: none;
  transition: background .18s,color .14s, box-shadow .22s, transform .14s;
}


/* ====== FOOTER ====== */
footer {
  background: #fff;
  border-top: 2px solid var(--secondary);
  padding: 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 30px 20px 24px 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0.82;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.17s, color .18s;
}
footer nav a:hover {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
footer p {
  color: #7a8bbd;
  font-size: .93rem;
  margin: 0;
}

/* ========== TABLES ========== */
table {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,51,101,0.05);
}
th, td {
  white-space: normal;
  word-break: break-word;
}
tbody tr:nth-child(odd) {
  background: #f5f6fa;
}
tbody tr:nth-child(even) {
  background: #ecf3f7;
}

/* ========== MISC ELEMENTS ========== */
ul, ol {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 18px;
  line-height: 1.6;
  list-style: disc outside;
}
ul img, ol img {
  display: inline;
  margin-right: 7px;
  vertical-align: middle;
}
li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-dark);
}

/* ========== COOKIE BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 4000;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -3px 21px rgba(22,34,70,0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  gap: 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: cookieBannerIn .5s ease;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-banner button {
  padding: 12px 28px;
  border-radius: 1000px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: .99rem;
  margin: 0 3px 0 0;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  box-shadow: 0 2px 7px rgba(110,193,184,.13);
  cursor: pointer;
  outline: none;
  transition: background .21s, color .22s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--secondary);
  box-shadow: none;
  font-size: .97rem;
  padding: 8px 18px;
  margin-left: 10px;
  transition: border-color .18s, color .16s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  border-color: var(--primary);
  color: var(--secondary);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27,44,66,.55);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieBackdropIn .38s ease;
}
@keyframes cookieBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(17,34,56,.24);
  padding: 32px 28px 28px 28px;
  max-width: 420px;
  width: 95vw;
  z-index: 4200;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn .39s cubic-bezier(.6,-0.11,.6,1.21);
}
@keyframes cookieModalIn {
  from { transform: scale(.83) translateY(100px); opacity: 0.3; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}
.cookie-category .note {
  font-size: .91rem;
  color: #4976a5;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-actions button {
  flex: 1 1 0;
}
.cookie-modal .cookie-close {
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 1.4rem;
  position: absolute;
  top: 18px;
  right: 23px;
  cursor: pointer;
}
.cookie-modal .cookie-close:focus, .cookie-modal .cookie-close:hover {
  color: var(--secondary);
}

@media (max-width: 460px) {
  .cookie-modal {
    padding: 18px 7px;
    font-size: .98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 6px 15px 13px;
    font-size: .96rem;
  }
}

/* ========== CARD & SHADOWS ========== */
.card, .testimonial-card, .feature {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.card:hover, .testimonial-card:hover, .feature:hover {
  box-shadow: var(--shadow-strong);
}

/* ===== MICRO-INTERACTIONS ===== */
.cta-button, .card, .feature, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow .23s, background .18s, color .16s, transform .18s;
}
.feature:active, .card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ===== VISUAL ELEMENTS/GEOMETRIC ===== */
hr {
  border: 0;
  border-top: 2px solid var(--secondary);
  margin: 24px 0;
}

/* EMERGENCY: Prevent Absolute Overlap */
.card, .feature, .testimonial-card, .cookie-banner, .cookie-modal {
  z-index: 2;
}

/* ====== MISCELLANEOUS ====== */
::-webkit-scrollbar {
  width: 8px;
  background: #e0e8f3;
}
::-webkit-scrollbar-thumb {
  background: #b6c7e8;
  border-radius: 10px;
}

/* ===== PRINT SPECIFIC ===== */
@media print {
  .cookie-banner, .cookie-modal, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
