/* 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;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* Brand variables (fallbacks included) */
:root {
  --color-primary: #183153;
  --color-secondary: #2E8C7C;
  --color-accent: #E5F4FB;
  --color-gray-100: #f6f8fa;
  --color-gray-200: #e1e8f0;
  --color-gray-300: #b3bed4;
  --color-white: #fff;
  --color-black: #181a18;
  --color-error: #e74c3c;
  --color-success: #2ecc40;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(24,49,83, 0.04);
  --shadow-sm: 0 2px 8px rgba(24,49,83, 0.08);
  --shadow-md: 0 6px 18px rgba(24,49,83, 0.15);
  --shadow-lg: 0 12px 40px rgba(24,49,83, 0.18);
}

body {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-accent);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.65;
}

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

/*-------------------------*
  TYPOGRAPHY
*-------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  text-transform: none;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.38rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.16rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.subheadline {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: 1.18rem;
  letter-spacing: 0.1px;
  font-weight: 400;
  margin-bottom: 24px;
}
p {
  margin-bottom: 16px;
  color: var(--color-primary);
}
strong, b {
  font-weight: 700;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
  position: relative;
}
ul li img, ol li img {
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
}

.text-section h2, .text-section h1 {
  margin-top: 0;
}
.text-section ul {
  margin-left: 18px;
  margin-bottom: 18px;
}
.text-section ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--color-secondary);
  border-radius: 2px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .subheadline { font-size: 1rem; }
}

/*-------------------------*
  LAYOUT & FLEX GRIDS
*-------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container, .feature-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 24px 20px;
  flex: 1 1 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.25s cubic-bezier(.36,1.42,.7,1.08), border-color 0.15s;
}
.card:hover, .card:focus {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .card-container, .feature-grid, .card-grid, .content-grid {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .feature-grid, .card-container, .card-grid, .footer-cols, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .section {
    margin-bottom: 40px;
    padding: 30px 10px;
  }
}

/*-------------------------*
  HEADER / NAVBAR
*-------------------------*/
header {
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  position: relative;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
  gap: 12px;
}
header a img {
  height: 36px;
  margin-right: 10px;
  transition: filter 0.16s;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 2.5px solid transparent;
  transition: color 0.18s, border 0.16s;
}
nav a:hover, nav a:active {
  color: var(--color-secondary);
  border-bottom: 2.5px solid var(--color-secondary);
}
nav .cta {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 9px 23px;
  border-radius: var(--radius-lg);
  margin-left: 10px;
  font-weight: 700;
  border-bottom: none;
  letter-spacing: .07em;
  box-shadow: var(--shadow-xs);
  transition: background 0.16s, box-shadow 0.18s;
}
nav .cta:hover, nav .cta:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 2rem;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 101;
  outline: none;
  border: none;
}
.mobile-menu-toggle:hover { background: var(--color-primary); }

@media (max-width: 1100px) {
  nav {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  nav {
    gap: 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/*-------------------------*
 MOBILE MENU
*-------------------------*/
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--color-white);
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  border: none;
  font-size: 2.2rem;
  padding: 8px 16px;
  align-self: flex-end;
  margin: 24px 22px 12px 0;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: var(--color-error);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 22px 34px 0 32px;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.16rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.mobile-nav a.cta {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  margin-top: 12px;
  font-weight: 700;
  border-bottom: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a.cta:hover, .mobile-nav a.cta:focus {
  background: var(--color-white);
  color: var(--color-secondary);
}
@media (max-width: 768px) {
  .mobile-menu {
    padding-top: 12px;
  }
  .mobile-nav {
    gap: 20px;
    padding: 10px 14px 0 18px;
  }
}

/*-------------------------*
  BUTTONS & CTA STYLES
*-------------------------*/
.cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  background: var(--color-secondary);
  padding: 11px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: background 0.18s, color 0.17s, box-shadow 0.14s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  margin-top: 8px;
}
.cta:hover, .cta:focus, .button:hover, .button:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/*-------------------------*
  FEATURE & CARD GRIDS
*-------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--color-gray-200);
  padding: 22px 18px 18px 18px;
  transition: box-shadow 0.18s, border 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  border: 1.5px solid var(--color-secondary);
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .feature-grid > div {
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  .feature-grid > div {
    min-width: 110px;
  }
}

/*-------------------------*
  TESTIMONIALS
*-------------------------*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin: 18px 0 0 0;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-green-200, #e3fbee);
  max-width: 680px;
}
.testimonial-card p {
  font-size: 1.09rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
}
.testimonial-card strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.testimonial-card img {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin: 0 2px;
}
@media (max-width: 650px) {
  .testimonial-card {
    padding: 16px 6px;
  }
}

/*-------------------------*
  FOOTER
*-------------------------*/
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 38px 0 0 0;
  margin-top: 60px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 38px;
}
.footer-cols > div {
  min-width: 200px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 3px;
}
.footer-cols a {
  color: var(--color-accent);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  transition: color 0.17s;
}
.footer-cols a:hover,
.footer-cols a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-cols img {
  height: 28px;
}
.legal {
  margin-top: 6px;
  padding: 20px 0 18px 0;
  border-top: 1px solid rgba(229, 244, 251, 0.14);
  text-align: center;
  color: var(--color-gray-200);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .footer-cols {
    flex-direction: column;
    gap: 22px;
  }
  .footer-cols > div {
    min-width: 0;
  }
}

/*-------------------------*
  FORMS (Newsletter, Cookie Banner etc.)
*-------------------------*/
input, textarea,
select {
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1rem;
  color: var(--color-primary);
  transition: border 0.16s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.5px solid var(--color-secondary);
}
label {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/*-------------------------*
  COOKIE CONSENT BANNER
*-------------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  padding: 26px 20px 22px 20px;
  font-size: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  animation: cookieSlideIn 0.5s cubic-bezier(.25,.75,.7,1.2);
}
.cookie-consent-banner .cookie-message {
  flex: 1 1 480px;
  color: var(--color-accent);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  appearance: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: var(--radius-lg);
  border: none;
  padding: 10px 24px;
  margin-left: 0px;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.13s;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-xs);
}
.cookie-consent-banner .accept-all {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-consent-banner .accept-all:hover,
.cookie-consent-banner .accept-all:focus {
  background: var(--color-success);
  color: var(--color-white);
}
.cookie-consent-banner .reject-all {
  background: var(--color-error);
  color: var(--color-white);
}
.cookie-consent-banner .reject-all:hover,
.cookie-consent-banner .reject-all:focus {
  background: #c0392b;
  color: var(--color-white);
}
.cookie-consent-banner .cookie-settings {
  background: var(--color-gray-200);
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-settings:hover,
.cookie-consent-banner .cookie-settings:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px 18px 8px;
  }
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/*-------------------------*
  COOKIE MODAL
*-------------------------*/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,49,83,0.65);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieOverlayIn 0.3s;
}
@keyframes cookieOverlayIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 90vw;
  padding: 34px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookieModalIn 0.4s cubic-bezier(.36,1.42,.7,1.08);
}
@keyframes cookieModalIn {
  from { transform: scale(0.96) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  margin: 20px 0 0 0;
  width: 100%;
  justify-content: flex-end;
}

/*-------------------------*
  GEOMETRIC / STRUCTURED COMPONENT DECORATIONS
*-------------------------*/
.feature-grid > div, .card {
  overflow: visible;
}
.card:before, .feature-grid > div:before {
  content: '';
  display: block;
  position: absolute;
  left: -12px;
  top: -12px;
  width: 28px;
  height: 28px;
  background: var(--color-secondary);
  clip-path: polygon(0% 0%, 100% 0, 0 100%);
  opacity: 0.09;
  border-radius: 5px;
  pointer-events: none;
}
.card:after, .feature-grid > div:after {
  content: '';
  display: block;
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: var(--color-secondary);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  opacity: 0.07;
  border-radius: 4px;
  pointer-events: none;
}

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

/*-------------------------*
  CUSTOM SCROLLBAR
*-------------------------*/
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-200);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/*-------------------------*
  MICRO-INTERACTIONS
*-------------------------*/
a, .cta, button, .mobile-menu-toggle, .mobile-menu-close, .feature-grid > div,
.card, .testimonial-card, input, textarea, select {
  transition: all 0.17s cubic-bezier(.36,1.42,.7,1.08);
}

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


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