/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

:root {
  --color-primary: #13315C;
  --color-secondary: #3CAEA3;
  --color-accent: #F6D55C;
  --color-bg: #fff;
  --color-bg-section: #F8F9FB;
  --color-border: #E6EAF0;
  --color-text: #17233D;
  --color-text-light: #3A4357;
  --color-success: #73C378;
  --color-danger: #D7263D;
  --color-shadow: rgba(19,49,92,0.04);
  --transition: 0.22s cubic-bezier(.5,.2,.1,1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 12px var(--color-shadow);
  --shadow-soft: 0 1px 6px rgba(0,0,0,0.04);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}

h1,h2,h3,h4,h5,h6 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.23;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

p, ul li, ol li {
  font-size: 1rem;
  color: var(--color-text-light);
}
strong {
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER & NAV --- */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  height: 68px;
}
header nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 10px;
  position: relative;
  transition: color var(--transition);
}
header nav a.cta-primary {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--shadow-card);
  transition: background var(--transition),color var(--transition), box-shadow var(--transition);
  margin-left: auto;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(60,174,163,0.18);
}
header nav a:not(.cta-primary):hover,
header nav a:not(.cta-primary):focus {
  color: var(--color-secondary);
}
header nav img {
  height: 36px;
  width: auto;
  margin-right: 10px;
  display: block;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 60;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19,49,92,0.97);
  color: #fff;
  z-index: 82;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.46,.03,.52,.96);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  color: #fff;
  border: none;
  align-self: flex-end;
  margin: 18px 18px 0 0;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 86;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 36px 28px 0 28px;
  gap: 26px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.36rem;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}

/* --- SECTIONS & GENERAL FLEX LAYOUT --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:nth-of-type(even) {
  background: var(--color-bg-section);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(19,49,92,.13);
  transform: translateY(-2px) scale(1.015);
}

.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  border: 1.5px solid var(--color-border);
  min-width: 260px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px rgba(19,49,92,0.13);
  border-color: var(--color-secondary);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.09rem;
  margin-bottom: 2px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: 700;
}
.testimonial-card span {
  color: var(--color-accent);
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-bottom: 20px;
}

/* --- BUTTONS & CTAs --- */
.cta-primary, .btn, .cookie-banner button, .cookie-modal button {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: .01em;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 10px;
}
.cta-primary:hover, .btn:hover, .cookie-banner button:hover, .cookie-modal button:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 22px rgba(60,174,163,0.13);
  transform: translateY(-2px) scale(1.012);
}
.cta-primary:active, .btn:active { 
  background: var(--color-accent); 
  color: var(--color-primary); 
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}

/* --- LISTS & ICONS --- */
ul, ol {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 0 18px 0;
  line-height: 1.61;
}
ul li img, ol li img {
  width: 24px;
  height: 24px;
  margin-top: 3px;
}
ul li:last-child, ol li:last-child {
  padding-bottom: 0;
}

/* --- FORMS (Minimal for contact/demo) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fff;
  width: 100%;
  transition: border var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
}

/* --- FOOTER --- */
footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 30px 0 18px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 3px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}
footer div {
  color: #9199aa;
  font-size: 0.94rem;
  text-align: center;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0,0,0,.06);
  border-top: 1.5px solid var(--color-border);
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 24px 18px;
  font-size: 1rem;
  color: var(--color-text);
  transition: transform .35s var(--transition), opacity .35s var(--transition);
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .btn, .cookie-banner button {
  margin-top: 0;
  margin-left: 10px;
  font-size: 1rem;
}
.cookie-banner .btn-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  box-shadow: none;
  font-weight: 600;
}
.cookie-banner .btn-settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19,51,92, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: opacity .34s var(--transition);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 44px rgba(19,49,92,0.18);
  padding: 36px 28px;
  min-width: 320px;
  min-height: 220px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal h2 {
  margin-bottom: 6px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-secondary);
  margin: 0 6px 0 0;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .btn-outline {
  font-weight: 500;
  font-size: 1rem;
  min-width: 110px;
}

/* --- LINKS --- */
a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-primary);
}

/* --- IMAGES & RESPONSIVE WRAPS --- */
img {
  max-width: 100%;
  display: block;
}

/* --- SPACING PATTERNS SPECIFIC --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- RESPONSIVE DESIGN (Mobile First) --- */
@media (max-width: 1100px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.34rem; }
  .card { padding: 24px 18px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 16px;
    right: 20px;
  }
  section,
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
  .content-wrapper, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.1rem; }
  .card { padding: 16px 6px; }
  .cookie-modal-content { padding: 20px 7px; }
  .cookie-banner { font-size: 0.92rem; }
}

/* --- MICRO-INTERACTIONS/ANIMATION --- */
.cta-primary, .btn, .card, .testimonial-card, .feature-item, .cookie-banner,
.cookie-modal-content, .mobile-nav a {
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition), border var(--transition);
}

/* --- HIGHLIGHTED UI --- */
section.hero, .hero {
  background: #fff;
  box-shadow: 0 2px 20px rgba(19,49,92,.04);
  border-radius: var(--radius);
}

/* --- ACCESSIBILITY: FOCUS STATES --- */
a:focus,
.btn:focus,
.cta-primary:focus,
.cookie-modal-close:focus,
.mobile-menu-close:focus,
.mobile-menu-toggle:focus {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- UTILITY CLASSES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }

/* --- Z-INDEX LAYERING --- */
header        { z-index: 61; }
.mobile-menu  { z-index: 82; }
.cookie-banner{ z-index: 120; }
.cookie-modal { z-index: 150; }

/* --- MINIMALIST BRAND ACCENT DECORATION (OPTIONAL)--- */
hr {
  border: none;
  border-top: 1.5px solid var(--color-border);
  margin: 36px 0;
}

/* --- END OF STYLES --- */
