/* 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;
}
article, aside, details, figcaption, figure,    
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
b, strong { font-weight: bold; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; border: 0; height: auto; }

/* ROOT & THEMING */
:root {
  --primary: #20405A;
  --secondary: #F2C14E;
  --accent: #FBFBFB;
  --gray-100: #f7fafc;
  --gray-200: #e4e8ee;
  --gray-300: #cfd6df;
  --gray-500: #8fa3b7;
  --gray-700: #253043;
  --text-dark: #1d232b;
  --text-mid: #344050;
  --white: #fff;
  --shadow: 0 2px 12px 0 rgba(32,64,90,.08);
  --radius: 10px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--accent);
  font-size: 16px;
  line-height: 1.64;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 1.8rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
.section h2:first-child { margin-top: 0; }
p { margin-bottom: 18px; color: var(--text-mid); }
br { line-height: 2; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(32,64,90,.16);
  transform: translateY(-4px) scale(1.02);
  z-index: 1;
}
.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;
  align-items: center;
  gap: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
  color: var(--text-dark);
}
.testimonial-card:hover {
  box-shadow: 0 2px 24px 0 rgba(32,64,90,.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 8px;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(94deg, var(--primary) 84%, var(--gray-200) 100%);
  color: var(--white);
  padding: 56px 0 42px 0;
}
.hero-section .container {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: flex-start;
}
.hero-section .content-wrapper {
  min-width: 0;
  color: var(--white);
  gap: 18px;
}
.hero-section h1, .hero-section p, .hero-section a.cta {
  color: var(--white);
}
.hero-section a.cta {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
}
.hero-section h1 { font-size: 2.7rem; }
.hero-section p { font-size: 1.2rem; }

/* NAVIGATION */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 .5px var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header, header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 70px;
  justify-content: space-between;
  gap: 16px;
}
header a > img {
  height: 45px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  color: var(--primary);
}
nav a.cta, .cta.primary {
  background: var(--primary);
  color: var(--accent);
  font-weight: 700;
  padding: 10px 18px;
  margin-left: 8px;
  border-radius: 7px;
  box-shadow: 0 1px 6px 0 rgba(32,64,90,.08);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
nav a.cta:hover, .cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
nav a:hover, nav a:focus {
  background: var(--gray-100);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--primary);
  margin-left: 14px;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus { outline: 2px solid var(--secondary); }

@media (max-width: 1024px) {
  nav { gap:12px; }
}
@media (max-width: 820px) {
  nav { gap:6px; }
  .hero-section h1 { font-size:2rem; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(32, 64, 90, 0.94);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.37s cubic-bezier(.4,0,.2,1), opacity 0.14s linear;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 26px 30px 6px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus { outline: 2px solid var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 42px 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 48px 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
}
footer nav {
  gap: 15px;
  display: flex;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--accent);
  font-size: 15px;
  padding: 8px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  opacity: 0.92;
  transition: opacity 0.19s, color var(--transition);
}
footer nav a:hover, footer nav a:focus { color: var(--secondary); opacity: 1; }
footer .text-section {
  font-size: 15px;
  color: var(--accent);
  opacity: 0.92;
  margin-bottom: 4px;
}
footer a {
  color: var(--secondary); text-decoration: underline;
}
footer img[alt~="logo"],
footer img[alt~="logo-mark"] {
  width: 58px;
  height: auto;
  margin-bottom: 8px;
}
footer .text-section img { vertical-align: middle; height: 17px; margin-right: 2px; }

/* UTILITY */
.text-section { margin-bottom: 20px; }
.review-highlight, .review-feature {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 18px;
}
.review-highlight h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.14rem; }
.review-highlight p {
  color: var(--text-mid);
  font-style: italic;
}
.review-highlight span, .testimonial-card span {
  color: var(--secondary);
  font-size: 0.98em;
}
.text-section h3 {
  color: var(--primary); font-size:1.08rem; margin-bottom: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* BUTTONS & CTA */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 17px;
  padding: 10px 18px;
  border-radius: 7px;
  box-shadow: 0 1px 6px 0 rgba(32,64,90,0.08);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--secondary);
  outline: none;
  box-shadow: 0 4px 24px 0 rgba(32,64,90,.10);
}

/* LISTS */
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
ul li > strong { font-weight: 700; color: var(--primary); }

/* FORMS (if needed later) */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--accent);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 2px 6px rgba(32,64,90,.10);
}

/* TABLES */
table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
th, td { padding: 14px; }
th {
  background: var(--gray-100);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-align: left;
  font-size: 1rem;
}
td { color: var(--text-dark); font-size: 0.99rem; }

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1999;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 22px 26px;
  gap: 16px;
  box-shadow: 0 -2px 14px 0 rgba(32,64,90,.13);
  transition: transform 0.3s var(--transition), opacity 0.3s var(--transition);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  font-size: 15px;
}
.cookie-consent-banner.active {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: all;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 5px;
}
.cookie-consent-banner .cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.17s, color 0.17s;
}
.cookie-consent-banner .cookie-btn.reject {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--gray-100);
  color: var(--primary);
  border: none;
  font-weight: 500;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-consent-banner .cookie-btn.reject:hover, 
.cookie-consent-banner .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,64,90,0.76);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px 32px 30px;
  max-width: 410px;
  min-width: 290px;
  box-shadow: 0 6px 36px 0 rgba(32,64,90,.19);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: cookieModalIn 0.33s var(--transition) 1;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.36rem;
  margin-bottom: 13px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-category {
  display: flex; align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 7px;
}
.cookie-modal .cookie-category:last-child { border-bottom: 0; }
.cookie-modal .toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}
.cookie-modal .toggle input[type=checkbox] {
  width: 36px; height: 20px;
  border-radius: 10px;
  accent-color: var(--secondary);
  border: 1px solid var(--gray-300);
}
.cookie-modal .toggle.disabled input[type=checkbox] {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 105px;
}
.cookie-modal .cookie-btn.dismiss {
  background: var(--gray-100);
  color: var(--primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 904px;
    padding: 0 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .section { margin-bottom: 40px; padding: 28px 6px; }
  .card { padding: 18px 10px; min-width: 180px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .content-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-section .container { min-height:160px; padding:0 5px; }
  .hero-section h1 { font-size: 1.35rem; }
  .hero-section p { font-size: 1rem; }
  .cookie-consent-banner { font-size: 14px; padding:10px 8px 14px 8px; }
}
@media (max-width: 480px) {
  .container { padding: 0 5px; }
  .footer nav { flex-wrap: wrap; }
}

/* VISUAL HIERARCHY & EFFECTS */
.card, .review-highlight, .review-feature, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(32,64,90,.21);
}

/* TRANSITIONS & MICRO-INTERACTIONS */
a, button, .cta, input, .card, .testimonial-card {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

/* ACCESSIBILITY */
a:focus, button:focus, input:focus, .cta:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* SPECIAL COLOR CONTRAST (testimonials/reviews) */
.review-highlight, .testimonial-card, .review-feature {
  background: var(--gray-100);
  color: var(--text-dark);
}
.review-highlight h3, .testimonial-card h3, .review-feature h3 { color: var(--primary); }

/* CARD & SECTION SPACING RULES */
.section > *, .content-wrapper > *,
.card-container > .card, .content-grid > * {
  margin-bottom: 20px;
}
.section > *:last-child, .content-wrapper > *:last-child,
.card-container > .card:last-child, .content-grid > *:last-child {
  margin-bottom: 0;
}

/* MISC */
::-webkit-scrollbar {
  width: 10px; background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300); border-radius: 6px;
}

/* Hide elements on print */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}

