/* RESET AND 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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F4F4F4;
  color: #222;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #9FC131;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* BRAND FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: #003366;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.22rem;
  color: #33547A;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, blockquote, address, .contact-info {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #322E26;
  font-size: 1rem;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  padding-left: 15px;
  border-left: 3px solid #9FC131;
  margin-bottom: 12px;
  color: #2d2d2d;
}

/* GENERAL LAYOUT */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,34,102,0.07);
}

/* HERO SECTIONS */
.hero-section {
  background: #fffdfa;
  padding: 48px 0 42px 0;
  border-bottom: 1px solid #E2E2E2;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  max-width: 640px;
  gap: 18px;
}
.hero-section h1 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 10px;
}
.hero-section h2 {
  font-size: 1.5rem;
  color: #9FC131;
  margin-bottom: 10px;
}

/* BUTTONS / CTA */
.cta {
  display: inline-block;
  font-family: 'Roboto Slab', Georgia, serif;
  padding: 12px 36px;
  background: #fff;
  border: 2px solid #9FC131;
  color: #003366;
  font-size: 1.1rem;
  border-radius: 32px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  text-align: center;
  margin-top: 5px;
  box-shadow: 0 1px 6px rgba(0,34,102,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color .18s;
  position: relative;
}
.cta.primary {
  background: #003366;
  color: #fff;
  border-color: #003366;
}
.cta:hover, .cta:focus {
  background: #9FC131;
  color: #003366;
  border-color: #9FC131;
  box-shadow: 0 3px 15px rgba(159,193,49,0.09);
}

/* NAVIGATION (Desktop) */
header {
  background: #fffdfa;
  border-bottom: 1px solid #E2E2E2;
  padding-bottom: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.02rem;
  color: #003366;
  padding: 7px 0 7px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #9FC131;
  border-bottom: 2px solid #9FC131;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid #003366;
  color: #003366;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s;
  z-index: 999;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #9FC131;
  color: #fff;
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(246,245,235,0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 24px;
  padding-left: 0;
  width: 100%;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.72,.2,.36,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #003366;
  font-size: 2.2rem;
  padding: 0 20px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #9FC131;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  margin-top: 0;
}
.mobile-nav a {
  display: block;
  padding: 20px 32px 18px 36px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.25rem;
  color: #003366;
  border-bottom: 1px solid #e7e7e7;
  transition: background .15s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #faffed;
  color: #9FC131;
}

/* FLEXBOX LAYOUT UTILITIES AND PATTERNS */
.card-container, .feature-grid, .service-grid, .invention-grid, .bio_fact_grid, .team-list, .icon-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
  position: relative;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 20px 24px;
  background: #f7f9f5;
  border-radius: 10px;
  border-left: 4px solid #9FC131;
  box-shadow: 0 1px 4px rgba(0,51,102,0.07), 0 0.5px 2px rgba(31,36,5,0.08);
  margin-bottom: 20px;
  max-width: 600px;
}
.testimonial-card blockquote {
  margin-bottom: 6px;
  color: #2b2b23;
  font-size: 1.06rem;
}
.testimonial-card p {
  margin: 0;
  color: #003366;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Cards/Service/Features */
.feature-grid > div,
.service-grid > div,
.invention-grid > div,
.bio_fact_grid > div,
.team-list > div {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 8px rgba(0,51,102,.06);
  padding: 24px 20px 18px 20px;
  flex: 1 1 235px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  max-width: 370px;
  gap: 8px;
  border: 1px solid #ededed;
  transition: box-shadow 0.17s, border 0.17s;
  margin-bottom: 20px;
}
.feature-grid > div:hover,
.service-grid > div:hover,
.invention-grid > div:hover,
.bio_fact_grid > div:hover {
  box-shadow: 0 2px 18px rgba(0,51,102,0.14);
  border-color: #9FC13140;
}
.icon-grid {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
}
.icon-grid img {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  box-shadow: 0 2px 9px rgba(0,34,102,.06);
  background: #f8faee;
  padding: 10px;
  border: 1px solid #eaeaea;
  transition: box-shadow 0.18s;
}
.icon-grid img:hover,
.icon-grid img:focus {
  box-shadow: 0 4px 16px rgba(159,193,49,0.08);
  border: 1px solid #b9d557;
}

/* ADDRESS BLOCK */
.address-block {
  font-size: 1rem;
  background: #f3f6ed;
  border-radius: 8px;
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,41,61,0.07);
}

/* LISTS IN SECTIONS */
.content-wrapper ul {
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 25px;
  font-size: 1rem;
}
.content-wrapper ul li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* FOOTER */
footer {
  background: #f5f5ef;
  border-top: 1px solid #e8e7db;
  padding: 32px 0 18px 0;
  margin-top: 45px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.footer-links {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.03rem;
  color: #003366;
  margin-bottom: 10px;
  text-align: center;
}
.footer-links a {
  color: #003366;
  margin: 0 2px;
  transition: color 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #9FC131;
}
.contact-info {
  color: #555;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 7px;
}
.contact-info a {
  color: #003366;
  text-decoration: underline dotted;
  transition: color 0.18s;
}
.contact-info a:hover {
  color: #9FC131;
}
.footer-logo {
  margin: 8px auto 0 auto;
  display: block;
  width: 50px;
  height: 50px;
}
.footer-logo img {
  width: 50px;
  height: 50px;
  display: block;
}

/* MODALS & COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: #fffdfa;
  color: #222;
  font-size: 1rem;
  box-shadow: 0 -1px 18px rgba(0,34,102,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px 22px 18px;
  gap: 28px;
  width: 100%;
  min-height: 68px;
  border-top: 1.5px solid #e3e6e0;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.32s, transform 0.37s;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Roboto Slab', Georgia, serif;
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 21px;
  border: 2px solid #003366;
  color: #003366;
  background: #fff;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cookie-banner .accept {
  background: #003366;
  color: #fff;
  border-color: #003366;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #9FC131;
  color: #003366;
  border-color: #9FC131;
}
.cookie-banner .settings {
  border-color: #9FC131;
  color: #003366;
  background: #fafbf2;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #9FC13133;
  color: #003366;
  border-color: #9FC131;
}
.cookie-banner .reject {
  border-color: #003366;
  color: #003366;
  background: #fff;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #d7eac9;
  color: #003366;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,29,3,0.18);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fffdfa;
  border-radius: 13px;
  box-shadow: 0 3px 24px rgba(0,51,102,0.14);
  padding: 38px 26px 32px 26px;
  max-width: 400px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalIn 0.37s cubic-bezier(.53,1.35,.57,.9) both;
}
@keyframes modalIn {
  from { transform: scale(.93) translateY(60px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-dialog h2 {
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #003366;
  font-size: 1.45rem;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #9FC131;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal label {
  font-size: 1rem;
  margin-bottom: 0;
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #9FC131;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 2px 7px rgba(100,110,0,0.06);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}

/* Section - Spacing override for non-section wrappers */
main > section {
  margin-bottom: 60px;
  padding: 40px 0;
}
main > section .container {
  padding: 0 18px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1020px) {
  .container {
    padding: 0 7px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .service-grid > div, .invention-grid > div, .bio_fact_grid > div, .team-list > div {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 62px;
    padding: 0 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-links, .contact-info {
    font-size: .96rem;
  }
  .footer-logo {
    margin-top: 14px;
    width: 40px;
    height: 40px;
  }
  .footer-logo img {
    width: 40px;
    height: 40px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 12px 16px 12px;
    gap: 12px;
  }
  .cookie-banner .cookie-banner-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
  /* Section spacing on mobile */
  .section, main > section {
    padding: 22px 0 22px 0;
    margin-bottom: 40px;
    border-radius: 7px;
  }
  .feature-grid, .service-grid, .invention-grid, .bio_fact_grid, .team-list, .icon-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-item, .testimonial-card {
    margin-bottom: 18px;
    max-width: 100%;
  }
  .content-wrapper {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .hero-section h1 {
    font-size: 1.4rem;
  }
  .hero-section h2 {
    font-size: 1.09rem;
  }
  .cta, .cta.primary {
    padding: 10px 20px;
    font-size: 1rem;
  }
  main > section {
    padding: 15px 0;
  }
}

/* SUBTLE ANIMATIONS */
.card, .feature-item, .testimonial-card, .address-block {
  transition: box-shadow 0.19s, border 0.13s, transform 0.14s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .address-block:hover {
  box-shadow: 0 5px 32px rgba(159,193,49,0.10);
  transform: scale(1.018);
  border-color: #9FC1314D;
}

/* SELECTION COLOR */
::selection {
  background: #9FC13144;
}
::-moz-selection {
  background: #9FC13144;
}

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

/* REMOVE INPUT STYLES FOR FUTURE FORMS */
input,
select,
textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1.5px solid #dbdbda;
  margin-bottom: 13px;
  background: #f9f9f3;
}
input:focus,
select:focus,
textarea:focus {
  border: 1.5px solid #9FC131;
  outline: none;
  background: #fcfcf1;
}

/* Hide scroll on mobile menu when open */
body.mobile-menu-open {
  overflow: hidden;
}

/* END OF STYLE.CSS */
