/* === 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,
main, 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 {
  font-size: 100%;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

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

body {
  min-height: 100vh;
  background: #F7F7F7;
  color: #23262F;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: #205070;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  font-weight: 600;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #F4B41A;
  outline: none;
}

button {
  font-family: inherit;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

:focus-visible {
  outline: 2px solid #F4B41A;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #205070;
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* === BRAND COLORS AS CUSTOM PROPERTIES - with fallback === */
:root {
  --primary: #205070;
  --secondary: #F4B41A;
  --accent: #F7F7F7;
  --text: #23262F;
  --white: #fff;
  --gray-light: #E7EBF0;
  --gray-medium: #AAAAAA;
  --success: #4bb543;
  --error: #e8384f;
}

/* === TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--accent);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: 12px;
  word-break: break-word;
}
h1 { font-size: 2.25rem; line-height: 1.125; margin-top: 0; }
h2 { font-size: 1.75rem; line-height: 1.1; margin-top: 0; }
h3 { font-size: 1.25rem; line-height: 1.15; margin-top: 0; }
h4, h5, h6 { font-size: 1.1rem; }

p, li, span, label {
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
}
strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Responsive typography */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  p, li, span { font-size: 0.97rem; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(32,80,112,0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 3px 16px 0 rgba(32,80,112,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(32,80,112,0.16);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(32,80,112,0.06);
  padding: 24px 20px;
  transition: box-shadow 0.20s;
}
.feature-item:hover {
  box-shadow: 0 6px 18px 0 rgba(244,180,26,0.18);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--white);
  color: var(--primary);
  border-radius: 14px;
  box-shadow: 0 6px 24px 0 rgba(32,80,112,0.08);
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.testimonial-card p {
  color: var(--text);
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px 0 rgba(32,80,112,0.18);
}

@media (min-width: 900px) {
  .testimonial-cards-row {
    display: flex;
    gap: 24px;
  }
  .testimonial-card { flex: 1; }
}

.text-section {
  margin-bottom: 24px;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(32,80,112,0.06);
  border-bottom: 2.5px solid var(--secondary);
  z-index: 95;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
header img {
  max-height: 54px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.16s;
  color: var(--primary);
  text-decoration: none;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  background: rgba(32,80,112,0.07);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.13rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  margin-left: 10px;
  box-shadow: 0 3px 10px 0 rgba(244,180,26,0.07);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.18s, box-shadow 0.21s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 8px 26px 0 rgba(32,80,112,0.16);
}

@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
  nav {
    gap: 8px;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 22px;
  }
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.3rem;
  line-height: 1;
  border-radius: 8px;
  padding: 4px 16px 4px 10px;
  margin-left: 18px;
  z-index: 102;
  box-shadow: 0 2px 8px 0 rgba(32,80,112,0.09);
  transition: background 0.2s, color 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
}

@media (max-width: 900px) {
  header nav, .cta-button {
    display: none !important; 
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 150;
  background: var(--white);
  box-shadow: 0 8px 40px 0 rgba(32,80,112,0.20);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.6,0.05,0.28,0.91), opacity 0.32s cubic-bezier(.82,.9,.43,1);
  padding: 32px 24px 16px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 7px;
  padding: 3px 14px;
  margin-bottom: 20px;
  margin-left: auto;
  align-self: flex-end;
  box-shadow: 0 2px 8px 0 rgba(32,80,112,0.11);
  transition: background 0.2s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.18rem;
  color: var(--primary);
  text-transform: uppercase;
  padding: 10px 0 10px 6px;
  border-radius: 7px;
  letter-spacing: 0.05em;
  transition: color 0.16s, background 0.17s;
  text-decoration: none;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(244,180,26,0.09);
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* === MAIN: PAGES === */
main {
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 3px 18px 0 rgba(32,80,112,0.08);
}

@media (max-width: 820px) {
  section {
    padding: 26px 8px;
    border-radius: 10px;
  }
}

main ul > li {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 7px 0 rgba(244,180,26,0.08);
  padding: 20px 16px;
  line-height: 1.6;
  font-weight: 500;
}
main ul > li strong {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
main ul > li span {
  color: var(--secondary);
  font-weight: 700;
  margin-top: 6px;
  display: inline-block;
}

/* === CTA BUTTONS in sections === */
section .cta-button {
  margin-top: 2rem;
  margin-left: 0;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0;
  margin: 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px 20px 20px;
}
footer nav {
  flex-direction: row;
  gap: 18px;
  margin-bottom: 5px;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.15s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-info {
  color: #dbe5ef;
  font-size: 0.97rem;
}
footer span {
  display: block;
  margin-top: 7px;
  color: var(--secondary);
  opacity: 0.87;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 -6px 24px 0 rgba(32,80,112,0.23);
  font-size: 1rem;
  animation: fadeInUp 0.7s cubic-bezier(.81,.13,.19,1);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(36px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner p {
  margin: 0 16px 0 0;
  color: var(--white);
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 9px 19px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 1px 8px 0 rgba(244,180,26,0.06);
  transition: background 0.15s, color 0.13s;
}
.cookie-accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--white);
  color: var(--primary);
}
.cookie-reject {
  background: var(--white);
  color: var(--error);
  border: 1.5px solid var(--error);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--error);
  color: var(--white);
}
.cookie-settings {
  background: var(--primary);
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width:700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    font-size: 0.97rem;
    padding: 17px 10px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,80,112,0.73);
  z-index: 2300;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn { from { opacity: 0;} to {opacity:1;} }

.cookie-modal {
  background: var(--white);
  color: var(--text);
  min-width: 340px;
  max-width: 94vw;
  border-radius: 15px;
  box-shadow: 0 14px 40px 0 rgba(32,80,112,0.19);
  padding: 38px 32px 26px 32px;
  position: relative;
  animation: scaleIn 0.5s cubic-bezier(.6,.1,.2,1.2);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@keyframes scaleIn {
  0% { transform: scale(0.9) translateY(32px); opacity:0; }
  100% { transform: none; opacity: 1; }
}

.cookie-modal h2 {
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 1.29rem;
  font-weight: 900;
}
.cookie-modal-category {
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-modal-category input[type='checkbox'] {
  transform: scale(1.3);
}
.cookie-modal-category.disabled input {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 7px;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  padding: 6px 14px;
  z-index: 2333;
  transition: background 0.13s, color 0.14s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 700px) {
  .container,
  footer .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    margin-bottom: 35px;
    padding: 20px 4px;
    border-radius: 10px;
  }
  main ul > li, .feature-item {
    padding: 12px 8px;
    margin-bottom: 14px;
    font-size: 0.98rem;
  }
}

/* === FORM ELEMENTS (if forms are added later) === */
input[type='text'], input[type='email'], textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  margin-bottom: 15px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px 0 rgba(244,180,26,0.08);
  outline: none;
}
label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
  display: block;
}

/* === MICRO-INTERACTIONS & DETAILS === */
::selection {
  background: var(--secondary);
  color: var(--primary);
}

/* For cards, geometric shadow accents */
.card:before {
  content: '';
  display: none;
}

.feature-item:before {
  content: '';
  display: none;
}

/* ICON STYLEING in features */
li img {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--secondary);
  border-radius: 7px;
  padding: 7px;
  box-shadow: 0 1.5px 5px 0 rgba(244,180,26,0.06);
}

/* === GENERAL GEOMETRIC/SHAPE ACCENTS === */
.section {
  box-shadow: 0 3px 18px 0 rgba(32,80,112,0.08);
  border-radius: 20px;
  border-left: 7px solid var(--secondary);
  position: relative;
}

@media (max-width: 900px) {
  .section {
    border-left: 4px solid var(--secondary);
    border-radius: 11px;
    padding: 18px 3px 18px 8px;
  }
}

/* === VISUAL HIERARCHY === */ 
h1, h2, h3 {
  text-shadow: 0 2px 8px rgba(32,80,112,0.02), 0 2px 1px rgba(244,180,26,0.07);
}

/* === TABLES (if present) === */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
thead {
  background: var(--primary);
  color: var(--white);
}
th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1.5px solid var(--gray-light);
}

/* === SUCCESS & ERROR TEXT (for forms, popups) === */
.success-text {
  color: var(--success);
  font-weight: bold;
}
.error-text {
  color: var(--error);
  font-weight: bold;
}

/* === HELPER CLASSES === */
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; gap: 20px; }
.flex-col { display: flex; flex-direction: column; gap: 20px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-0 { gap: 0 !important; }
.gap-8 { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.gap-20 { gap: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* === ACCESSIBILITY HIDDEN (for modals/menus) === */
.a11y-hidden { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* === LOADING / MODAL SPINNER (if needed in scripts) === */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === ENSURE MINIMUM SPACING BETWEEN FLEX CHILDREN === */
.card-container > *, .content-grid > *, .section > *, .testimonial-card + .testimonial-card {
  margin-bottom: 20px;
}

/* === HIGH CONTRAST STYLES for testimonials and review/cta sections === */
.testimonial-card {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 24px 0 rgba(32,80,112,0.08);
  border-left: 5px solid var(--secondary);
}
.testimonial-card p {
  color: var(--text);
  font-weight: 500;
  font-size: 1.06rem;
}
.testimonial-card strong {
  color: var(--primary);
}

/* === THANK-YOU PAGE centered content style === */
.content-wrapper[style*="text-align:center"], .text-center-section {
  text-align: center;
  align-items: center;
}

/* === END OF CSS === */
