/* --- 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #F9F6EE;
  color: #232323;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #256FAE;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #117733;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  appearance: none;
  border: none;
  outline: none;
  line-height: 1.5;
}

/* --- Font Face includes --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@600;700&display=swap');

body {
  font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  color: #256FAE;
  margin-bottom: 20px;
}
h1 { font-size: 2.75rem; line-height: 1.12; letter-spacing: -1px; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 1.4rem; line-height: 1.18; margin-bottom: 14px; color: #117733; }
h4, h5, h6 { font-size: 1.1rem; color: #1879c0; margin-bottom: 12px; }
p, ul, ol { font-size: 1.0875rem; margin-bottom: 16px; }
strong { font-weight: 700; }

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section { margin-bottom: 60px; padding: 40px 20px; background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(37, 111, 174, .08); }
.card-container {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card {
  background: #fff; border-radius: 12px; box-shadow: 0 1px 10px rgba(37, 111, 174, .07);
  margin-bottom: 20px; position: relative; padding: 28px 22px 22px 22px;
  display: flex; flex-direction: column; justify-content: center;
  transition: box-shadow .2s;
}
.card:hover, .card:focus { box-shadow: 0 8px 24px rgba(37, 111, 174, 0.15); }

.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;
  color: #222; background: #f4f4ef; border-radius: 12px; box-shadow: 0 2px 12px rgba(37, 111, 174, 0.07);
  margin-bottom: 20px; min-width: 0;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: 0 6px 18px rgba(37, 111, 174, .12); }

.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}
.faq-accordion > div {
  border-bottom: 1px solid #e7e7e0;
  padding: 18px 0;
}
.faq-accordion h3 {
  cursor: pointer; font-size: 1.09rem; color: #117733; transition: color .2s;
}
.faq-accordion h3:hover { color: #256FAE; }

/* --- Header & Navigation --- */
header {
  background: #fff; box-shadow: 0 3px 24px rgba(37,111,174,.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  position: relative;
  gap: 0;
  min-height: 68px;
}
header a img {
  height: 45px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.13rem;
  color: #256FAE;
  padding: 8px 8px 6px 8px;
  border-radius: 6px;
  transition: background .17s, color .14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F9F6EE;
  color: #117733;
}

.btn {
  font-family: 'Montserrat', Georgia, serif;
  display: inline-block;
  background: transparent;
  color: #256FAE;
  border-radius: 8px;
  border: 1px solid #256FAE;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 11px 28px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(37, 111, 174, 0.05);
  transition: background .22s, color .18s, box-shadow .19s;
  margin-left: 24px;
  text-align: center;
}
.btn-primary {
  background: #256FAE;
  color: #fff;
  border: 1px solid #256FAE;
}
.btn:hover, .btn:focus {
  background: #117733;
  color: #fff;
  border-color: #117733;
  box-shadow: 0 4px 16px rgba(37, 111, 174, 0.17);
}

/* Hamburger Mobile Button */
.mobile-menu-toggle {
  display: none;
  background: #256FAE;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background .2s;
  z-index: 1020;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #117733;
}

/* --- Mobile Navigation Menu --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
  box-shadow: 4px 0 28px rgba(37,111,174,.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #256FAE;
  font-size: 2.2rem;
  border: none;
  margin: 18px 24px 0 0;
  cursor: pointer;
  z-index: 2020;
  border-radius: 8px;
  transition: background .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #e7eaef;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 32px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #256FAE;
  font-size: 1.3rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  width: 100%;
  border-radius: 6px;
  transition: background .15s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9F6EE;
  color: #117733;
}

/* --- Hero, Features, Sections --- */
.hero {
  background: #F9F6EE url('../assets/hero-bg.png') top/cover no-repeat;
  min-height: 335px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.features {
  margin-bottom: 60px;
}
.features .content-wrapper > ul,
.features .content-wrapper > div > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 54px;
  margin: 0 0 0 0;
  padding: 0;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.09rem;
  margin-bottom: 14px;
  max-width: 410px;
}
.features img {
  height: 32px;
  width: 32px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* --- Text Section --- */
.text-section {
  font-size: 1.15rem;
  color: #37414B;
  line-height: 1.7;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-section ul {
  list-style: disc inside;
  margin-left: 0 !important;
}
.text-section li {
  margin-bottom: 10px;
}

.services button,
.features button,
.card button,
.section button {
  font-family: 'Montserrat', Georgia, serif;
  background: #256FAE;
  color: #fff;
  font-weight: 700;
  border: 1px solid #256FAE;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .14s, border-color .14s;
}
.services button:hover,
.features button:hover,
.card button:hover,
.section button:hover {
  background: #117733;
  border-color: #117733;
  color: #fff;
}

/* --- Testimonial Section --- */
.testimonials {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(37,111,174,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-card p {
  font-size: 1.19rem;
  font-style: italic;
  color: #232323;
}
.testimonial-card strong {
  color: #117733;
  font-size: 1.09rem;
  margin-left: 16px;
}

/* --- CTA Section --- */
.cta {
  background: #256FAE;
  padding: 48px 20px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 60px;
  text-align: center;
}
.cta h2, .cta p {
  color: #fff !important;
}
.cta .btn-primary {
  background: #fff;
  color: #256FAE;
  border: 1px solid #fff;
  font-weight: 600;
  margin-left: 0;
}
.cta .btn-primary:hover, .cta .btn-primary:focus {
  background: #117733;
  color: #fff;
  border-color: #fff;
}

/* --- Footer --- */
footer {
  background: #f4f4f4;
  padding: 40px 0 16px 0;
  box-shadow: 0 -2px 18px rgba(37,111,174,0.06);
  font-size: 1.04rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}
footer nav {
  font-size: 1.03rem;
  display: flex; flex-wrap: wrap; gap: 10px;
}
footer nav a {
  color: #256FAE;
  font-weight: 600;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.01rem;
  transition: color .18s;
}
footer nav a:hover, footer nav a:focus {
  color: #117733;
}
footer img {
  height: 32px;
  margin-bottom: 14px;
}
footer p, footer span {
  color: #37414B;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
footer span {
  font-style: italic; color: #256FAE; margin-top: 8px; font-size: 1.01rem;
}

/* --- Forms & Inputs --- */
input[type='search'], input[type='text'], input[type='email'], textarea {
  border: 1px solid #cfd6df;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 18px;
  background: #f9f6ee;
  transition: border .15s;
}
input[type='search']:focus,
input[type='text']:focus,
input[type='email']:focus, textarea:focus {
  border: 1.5px solid #256FAE;
}
form button[type='submit'] {
  background: #256FAE;
  color: #fff;
  border: 1px solid #256FAE;
  border-radius: 8px;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 22px;
  transition: background .15s, border-color .14s;
}
form button[type='submit']:hover, form button[type='submit']:focus {
  background: #117733;
  border: 1px solid #117733;
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10500;
  background: #fff;
  color: #222;
  border-top: 2px solid #256FAE;
  box-shadow: 0 -2px 16px rgba(37,111,174,0.11);
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  transition: transform .42s cubic-bezier(.68,.09,.27,.97);
}
.cookie-consent-banner.hide {
  transform: translateY(110%);
}
.cookie-consent-banner p {
  margin-bottom: 0;
  color: #232323;
  flex: 1;
  font-size: 1.11rem;
  margin-right: 18px;
}
.cookie-consent-banner .cookie-btns {
  display: flex; gap: 14px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Georgia, serif;
  border-radius: 8px;
  border: 1px solid #256FAE;
  font-weight: 600;
  padding: 8px 17px;
  font-size: .98rem;
  background: #256FAE;
  color: #fff;
  transition: background .16s, border-color .13s, color .13s;
  cursor: pointer;
}
.cookie-consent-banner button.cookie-settings {
  background: #F9F6EE;
  border-color: #117733;
  color: #117733;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #117733;
  color: #fff;
  border-color: #117733;
}
.cookie-consent-banner button.cookie-settings:hover, .cookie-consent-banner button.cookie-settings:focus {
  background: #fff;
  color: #256FAE;
  border-color: #256FAE;
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10600;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37, 111, 174, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity .35s;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 4px 32px rgba(37,111,174,0.13);
  padding: 35px 28px 25px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: popInCookie .37s cubic-bezier(.48,.82,.41,1.19) 1;
}
@keyframes popInCookie {
  0% { transform: scale(.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #256FAE;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .category {
  display: flex; align-items: center; gap: 14px; margin: 10px 0;
}
.cookie-modal .category label {
  font-weight: 600;
  color: #117733;
  font-size: 1rem;
  flex: 1;
}
.cookie-modal .category input[type="checkbox"]{
  accent-color: #256FAE;
  width: 18px; height: 18px;
  cursor: pointer;
}
.cookie-modal .category.essential label {
  color: #37414B;
}
.cookie-modal .category.essential input[type="checkbox"] {
  accent-color: #117733;
}
.cookie-modal .close-cookie-modal {
  background: #256FAE;
  color: #fff;
  border-radius: 7px;
  border: none;
  font-size: 1.13rem;
  padding: 8px 16px;
  align-self: flex-end;
  margin-top: 10px;
  cursor: pointer;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: #117733;
}

/* --- Utilities, Chips, Microinteractions --- */
.chip {
  border-radius: 22px;
  background: #e5e7eb;
  color: #256FAE;
  font-size: 0.98rem;
  padding: 7px 16px;
  font-weight: 600;
  margin: 0 5px 5px 0;
  display: inline-block;
}

/* --- Media Queries (Mobile-First) --- */
@media (max-width: 1050px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .main-nav { gap: 12px; }
  .container {padding: 0 8px;}
}
@media (max-width: 820px) {
  .footer .content-wrapper,
  footer .container { flex-direction: column !important; align-items: flex-start !important; gap: 24px !important; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  header .container {
    flex-direction: row;
    padding: 9px 6px;
    min-height: 54px;
  }
  .main-nav { display: none !important; }
  .btn { margin-left: 0; margin-right: 12px; }
  .mobile-menu-toggle { display: flex !important; }
  .footer .content-wrapper, footer .container {flex-direction: column !important; align-items: flex-start !important; gap: 12px !important;}
  .card-container, .content-grid, .features .content-wrapper > ul, .features .content-wrapper > div > ul { flex-direction: column; gap: 18px !important; }
  .testimonial-card { flex-direction: column; }
  .features li { max-width: 100%; }
  .section, .cta, .testimonials { padding: 24px 7px !important; }
  .cta { padding: 32px 7px !important; }
  .hero { min-height: 180px; }
  .text-image-section { flex-direction: column !important; gap: 18px !important; align-items: flex-start; }
  .card { padding: 17px 10px 15px 10px; }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.14rem; }
  .section, .cta, .testimonials { border-radius: 10px; }
  .card, .testimonial-card { border-radius: 8px; padding: 11px 7px 12px 7px; }
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; padding: 14px 8px; gap: 9px; }
  .cookie-consent-banner p { font-size: 1.02rem; }
  .cookie-consent-banner .cookie-btns { width: 100%; justify-content: flex-end; }
  .cookie-modal { padding: 17px 7px 13px 7px; border-radius: 8px; max-width: 100vw; }
}

/* --- Animations and Transitions --- */
.btn, .btn-primary, button, a, .main-nav a, .mobile-nav a {
  transition: background .18s, color .18s, border-color .14s, box-shadow .18s;
}
.card, .testimonial-card, .faq-accordion div, .chip {
  transition: box-shadow .18s, background .15s, color .1s;
}

/* --- Hide/reveal body scrollbar when modal/menu open --- */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}
