/* CSS RESET & NORMALIZATION */
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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F3F8FA;
  color: #222;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img, video {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus {
  outline: 2px solid #7BAE45;
  outline-offset: 3px;
}

/* CUSTOM PROPERTIES (fallbacks for IE ignored as per modern support) */
:root {
  --color-primary: #225077;
  --color-secondary: #7BAE45;
  --color-accent: #F3F8FA;
  --color-dark: #17273b;
  --color-white: #fff;
  --color-neutral: #e5eaf1;
  --shadow: 0 4px 22px 0 rgba(34,80,119,0.07);
  --radius: 12px;
  --transition: all 0.22s cubic-bezier(.47,1.64,.41,.8);
  --font-display: 'Montserrat',Arial,sans-serif;
  --font-body: 'Open Sans',Arial,sans-serif;
}

body {
  font-size: 16px;
}

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

/* HEADER + NAV */
header {
  background: var(--color-primary);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 22px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: bold;
}
nav a {
  color: var(--color-white);
  padding: 8px 10px;
  border-radius: 7px;
  transition: var(--transition);
  position: relative;
}
nav a:hover,
nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(123,174,69, 0.10);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 13px 30px;
  border: none;
  border-radius: 999px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 4px 18px 0 rgba(123,174,69,0.18);
  transition: var(--transition);
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-white);
  color: var(--color-secondary);
  box-shadow: 0 6px 24px 0 rgba(34,80,119,0.12);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 30px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 10px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-white);
  color: var(--color-secondary);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  z-index: 199;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--color-white);
  border: none;
  font-size: 34px;
  margin: 28px 30px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 40px;
  gap: 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  padding: 14px 0;
  width: 100%;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* SECTIONS, CARDS, WRAPPERS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.text-section {
  margin-bottom: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(34,80,119,0.16);
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.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 {
  background: var(--color-white);
  color: #17273b;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 22px;
  min-width: 260px;
}
.testimonial-card p {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.testimonial-card span {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: none;
}
h1 {
  font-size: 42px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h2 {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h3 {
  font-size: 22px;
  color: var(--color-primary);
}
p, li {
  font-family: var(--font-body);
  font-size: 17px;
  color: #222;
}
b, strong {
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--color-primary);
}
ul, ol {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
ul li img, ol li img {
  height: 28px;
  width: 28px;
  margin-right: 7px;
  filter: grayscale(0%) contrast(1.2) brightness(1);
}

/* BUTTONS & INTERACTIVE */
button, .cta-btn  {
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
}

/* FEATURE LISTS */
.feature-item {
  background: var(--color-accent);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-weight: 700;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 38px 0 0 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 15px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-display);
}
footer nav a {
  color: var(--color-white);
  font-size: 16px;
  letter-spacing: 0.005em;
  padding: 5px 4px;
  border-radius: 6px;
  font-weight: 600;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 15px;
  color: #e5eaf1;
  margin-bottom: 14px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-copy {
  width: 100%;
  font-size: 13px;
  color: #b3c5d9;
  text-align: center;
  padding: 16px 0 24px 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 11px;
    font-size: 15px;
  }
  .cta-btn {
    padding: 10px 20px;
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 11px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 8px;
  }
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: unset;
    padding: 17px 10px;
  }
  .footer-brand img {
    height: 38px;
  }
  footer .container {
    gap: 17px;
  }
  .footer-contact {
    gap: 2px;
    font-size: 13px;
  }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 7px;
  }
  .cta-btn {
    padding: 9px 7px;
    font-size: 15px;
  }
  h1 { font-size: 23px; }
  h2 { font-size: 16px; }
  h3 { font-size: 15px; }
}

/* ANIMATIONS */
.mobile-menu {
  transition: transform 0.27s cubic-bezier(.47,1.64,.41,.8);
}
.mobile-menu.active {
  box-shadow: 0 0 0 9000px rgba(10,25,40,0.28);
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 -3px 16px 0 rgba(20,40,60,0.17);
  z-index: 1998;
  padding: 24px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  font-size: 16px;
  font-family: var(--font-body);
  animation: cookieSlideUp 0.38s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes cookieSlideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 9px;
  color: var(--color-secondary);
}
.cookie-banner p {
  font-size: 16px;
  color: #e5eaf1;
}
.cookie-banner-btns {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.cookie-banner-btns button {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  border-radius: 26px;
  border: none;
  outline: none;
  padding: 11px 24px;
  cursor: pointer;
  transition: var(--transition);
  margin: 0;
}
.cookie-accept {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 2px 7px 0 rgba(123,174,69,0.11);
}
.cookie-accept:hover {
  background: var(--color-white);
  color: var(--color-secondary);
}
.cookie-reject {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-reject:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-settings {
  background: transparent;
  color: #fff;
  border: 2px solid #aac7ff;
}
.cookie-settings:hover {
  background: #fff;
  color: var(--color-primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,27,37, 0.46);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 8px 44px 0 rgba(34,80,119,0.16);
  border-radius: 18px;
  padding: 38px 40px 28px 40px;
  width: 90vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2232;
  animation: modalSlideIn 0.33s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes modalSlideIn {
  0% { transform: translateY(70px) scale(.97); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 21px;
  height: 21px;
  cursor: pointer;
}
.cookie-category .essential {
  font-weight: 700;
  color: var(--color-secondary);
}
.cookie-category .always {
  font-size: 13px;
  color: #9bb7b7;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  padding: 10px 21px;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  transition: var(--transition);
}
.cookie-modal-actions .cookie-accept { background: var(--color-secondary); color: #fff; }
.cookie-modal-actions .cookie-reject { background: transparent; border: 2px solid var(--color-secondary); color: var(--color-secondary);}
.cookie-modal-actions .cookie-accept:hover { background: var(--color-white); color: var(--color-secondary); }
.cookie-modal-actions .cookie-reject:hover { background: var(--color-secondary); color: #fff; }

@media (max-width: 520px) {
  .cookie-modal {
    padding: 24px 9px 18px 9px;
    max-width: 98vw;
  }
  .cookie-modal h4 {
    font-size: 17px;
  }
  .cookie-category { font-size: 14px; }
  .cookie-modal-actions button {
    font-size: 13px;
    padding: 7px 11px;
  }
  .cookie-banner {
    padding: 17px 7px 17px 7px;
    font-size: 13px;
  }
}

/* UTILITIES & SPACING */
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }

/* HIDE SHOW CLASSES */
.hide { display: none !important; }
.show { display: block !important; }

/* MICRO-INTERACTIONS */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner-btns button, .cookie-modal-actions button {
  transition: var(--transition);
}
.card:hover,
.card:focus-within,
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(34,80,119,0.09);
  transform: translateY(-3px) scale(1.02);
}
input[type='checkbox'], input[type='radio'] {
  accent-color: var(--color-secondary);
}
/* GEOMETRIC DECORATIVE SHAPES (FOR DEMO)*/
.section::before {
  content: '';
  position: absolute;
  left: -70px;
  top: -50px;
  width: 100px;
  height: 100px;
  background: rgba(123,174,69, 0.09);
  border-radius: 32px;
  z-index: 0;
  display: none;
}
@media (min-width: 1060px) {
  .section::before {
    display: block;
  }
}

/* OVERRIDES FOR FORMS (if added later) */
input, textarea {
  border: 2px solid var(--color-neutral);
  border-radius: 8px;
  font-size: 17px;
  padding: 12px 10px;
  margin-bottom: 12px;
  background: #fff;
  color: #222;
  width: 100%;
  transition: border-color 0.17s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* ENSURE NO FLEX OVERLAP */
.card, .testimonial-card, .feature-item, .section, .content-wrapper, .card-container, .content-grid, .text-image-section, .footer-contact, .footer-brand, .footer-copy {
  margin-bottom: 20px;
}
/* Remove last margin in flex lists */
.card-container > :last-child, .content-grid > :last-child, .content-wrapper > :last-child, .footer-contact > :last-child {
  margin-bottom: 0 !important;
}
