/*--- 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,main,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:#F4F6F8;
  color:#253B53;
  font-family:'Open Sans', Arial, Helvetica, sans-serif;
  font-size:16px;
}
img {
  max-width:100%;
  display:block;
  height:auto;
}
a {
  color:inherit;
  text-decoration:none;
  transition:color .2s;
}
button, input, select, textarea {
  font:inherit;
}
ul,ol {
  list-style: none;
}

:root {
  --primary: #253B53;
  --secondary: #A7B7C9;
  --accent: #F4F6F8;
  --brand-accent: #3586ff;
  --white: #fff;
  --black: #191c1f;
  --danger: #c0392b;
}

/*--- BASE TYPOGRAPHY ---*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight:800;
  line-height:1.15;
  letter-spacing: -0.01em;
  margin-bottom: .5em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: .4em;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.1rem;
  font-weight: 800;
}

p, li, a, span, button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
p {
  font-size: 1rem;
  margin-bottom: .7em;
}
strong {
  font-weight: 800;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

.feature-grid > div, .service-list > div {
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(37,59,83,0.10);
  border-radius: 18px;
  padding: 36px 26px;
  min-width: 230px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .15s, transform .15s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 28px 0 rgba(37,59,83,.17);
  transform: translateY(-4px) scale(1.03);
}
/*.card-container -- for potential card layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(37,59,83,0.10);
  padding: 28px 20px;
  flex: 1 1 260px;
  transition: box-shadow .13s, transform .12s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(37,59,83,.15);
  transform:translateY(-3px);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*--- HEADER ---*/
header {
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(37,59,83,0.05);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 102;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 18px;
  gap: 22px;
  position: relative;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 14px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-weight: 800;
  font-size: 1.07rem;
  padding: 6px 14px;
  color: var(--primary);
  border-radius: 10px;
  transition: background .13s, color .13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--brand-accent);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
  font-size: 1.08rem;
  background: var(--brand-accent);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 4px 24px 0 rgba(37,59,83,0.14);
  letter-spacing: 0.025em;
  transition: background .2s, box-shadow .16s, color .1s, transform .13s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1563c7;
  box-shadow: 0 8px 36px 0 rgba(53,134,255,0.16);
  color: #fff;
  transform: scale(1.035);
}
/*--- Mobile Menu ---*/
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 9px;
  padding: 4px 14px 6px 14px;
  margin-left: 10px;
  cursor: pointer;
  transition: background .14s, color .14s;
  z-index: 120;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height:100vh;
  background: var(--primary);
  color: #fff;
  transform: translateX(-100vw);
  transition: transform .31s cubic-bezier(0.7, 0, 0.33, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.15rem;
  border: none;
  padding: 16px;
  margin-left: auto;
  cursor: pointer;
  margin-top: 10px;
  margin-right: 12px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  margin-top: 34px;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
  padding: 13px 0;
  color: #fff;
  border-radius: 10px;
  transition: background .13s, color .17s;
  width: 90vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1563c7;
  color: #fff; 
}
header .btn-primary {
  margin-left: 18px;
  white-space: nowrap;
}

/*--- HERO SECTION ---*/
section:first-of-type {
  background: linear-gradient(115deg, var(--accent) 65%, var(--secondary) 100%);
  padding-top: 62px;
  padding-bottom: 56px;
  margin-bottom: 50px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px 0 rgba(37,59,83,0.10);
}
section:first-of-type h1 {
  color: var(--primary);
  font-size: 2.7rem;
}
section:first-of-type .btn-primary {
  margin-top: 18px;
}
section h2 {
  margin-bottom: 18px;
}

/*--- TESTIMONIALS CARDS ---*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  color: var(--primary);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  min-width: 230px;
  box-shadow: 0 2px 14px 0 rgba(37,59,83,0.10);
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  z-index: 1;
  transition: box-shadow .15s, transform .18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(53,134,255,0.10);
  transform: scale(1.025) translateY(-3px);
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 0.3em;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #606d7e;
}

/*--- FAQ ACCORDION ---*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(37,59,83,.09);
  padding: 17px 22px;
  cursor: pointer;
  transition: box-shadow .15s;
}
.faq-item:hover {
  box-shadow: 0 8px 21px 0 rgba(53,134,255,.13);
}
.faq-item h3 {
  font-size: 1.15rem;
  margin: 0 0 7px 0;
  color: var(--brand-accent);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
}
.faq-content {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
}

/*--- BLOG LIST ---*/
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  flex: 2 1 450px;
}
.blog-post {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 6px 0 rgba(37,59,83,0.08);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow .13s, transform .13s;
}
.blog-post:hover {
  box-shadow: 0 10px 22px 0 rgba(37,59,83,0.13);
  transform: translateY(-3px) scale(1.02);
}
.blog-post h3 {
  color: var(--brand-accent);
  font-size:1.15rem;
  margin-bottom: 0.3em;
}
.blog-post a {
  color: var(--brand-accent);
  text-decoration: underline;
  margin-top: 6px;
  font-weight: 600;
}
.blog-categories {
  flex: 1 1 180px;
  margin-left: 28px;
  margin-bottom: 20px;
}
.blog-categories h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 13px;
}
.blog-categories ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 0;
}
.blog-categories li a {
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 1.05rem;
}
.blog-categories li a:hover {
  text-decoration: underline;
}

/*--- FORMS & CONTACT ----*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 1.04rem;
}
.contact-info a {
  color: var(--brand-accent);
  font-weight: 700;
}
.contact-info img {
  height: 1.3em;
  width: auto;
  vertical-align:middle;
}

/*--- FOOTER ---*/
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 26px 0;
  position: relative;
  z-index: 20;
  font-size: 16px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 46px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Merriweather', Georgia, serif;
}
.footer-branding img {
  height:32px;
  width:auto;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: #fff;
  font-weight: 700;
  font-size: 1em;
  border-radius: 7px;
  transition: background .16s;
}
.footer-menu a:hover {
  background: #1563c7;
  color: #fff;
  padding: 2px 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .98em;
  color: var(--secondary);
}
.footer-contact a {
  color: var(--brand-accent);
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  height: 26px;
  transition: filter .16s, opacity .16s;
  opacity: 0.86;
}
.footer-social a:hover img {
  filter: brightness(2);
  opacity: 1;
}

/*--- COOKIE CONSENT BANNER ---*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--primary);
  border-top: 3px solid var(--brand-accent);
  box-shadow: 0 -2px 24px 0 rgba(37,59,83,0.13);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 7vw 22px 7vw;
  gap: 28px;
  animation: bannerIn .31s cubic-bezier(.65,0,.42,1);
}
@keyframes bannerIn {
  from { transform: translateY(85px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  padding: 9px 21px;
  font-weight: 800;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  border-radius: 10px;
  margin-left: 0;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(37,59,83,0.07);
  transition: background .18s, color .14s;
}
.cookie-banner .accept {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #1563c7;
}
.cookie-banner .reject {
  background: #e2e8f0;
  color: var(--danger);
}
.cookie-banner .reject:hover {
  background: #f7d9d5;
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--secondary);
}

/*--- COOKIE SETTINGS MODAL ---*/
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  background: rgba(37,59,83,0.68);
  z-index: 11000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn .24s ease;
}
@keyframes fadeIn {
  from{ opacity:.0; }
  to{ opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 40px 28px 28px 28px;
  border-radius: 18px;
  box-shadow: 0 6px 64px 0 rgba(37,59,83,0.22);
  max-width: 430px;
  min-width: 310px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h3 {
  font-size: 1.4rem;
  font-family:'Merriweather', Georgia,serif;
  margin-bottom: 0.2em;
}
.cookie-modal-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}
.cookie-modal-row label {
  font-weight: 700;
  font-size: 1.05rem;
}
.cookie-modal-close {
  background: var(--secondary);
  color: var(--primary);
  border:none;
  border-radius: 7px;
  cursor:pointer;
  font-size:1.19rem;
  padding: 4px 14px;
  align-self: flex-end;
  margin-bottom: 8px;
}

.toggle-switch {
  position:relative;
  width:44px;
  height:22px;
  display:inline-block;
}
.toggle-switch input {display:none;}
.toggle-slider {
  position:absolute;top:0;left:0;right:0;bottom:0;
  background:#e2e8f0;
  border-radius:13px;
  transition:.2s;
  cursor:pointer;
}
.toggle-slider:before {
  content: "";
  position:absolute;
  left:2px;
  top:2px;
  width:18px;
  height:18px;
  background:#fff;
  border-radius:50%;
  transition:.2s;
  box-shadow:0 2px 6px 0 rgba(53,134,255,0.11);
}
.toggle-switch input:checked+.toggle-slider {
  background: var(--brand-accent);
}
.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(22px);
}

/*--- MEDIA QUERIES RESPONSIVE ---*/
@media (max-width: 990px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .main-nav {
    gap: 12px;
  }
  .feature-grid, .service-list {
    gap: 18px;
  }
  .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .blog-categories {
    margin-left: 0;
  }
}

@media (max-width: 870px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  header .container {
    min-height: 64px;
    flex-wrap:wrap;
  }
  .main-nav,.btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .text-section {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  section:first-of-type {
    padding-top: 36px;
    padding-bottom: 32px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    font-size: .99rem;
    padding: 16px 12px;
  }
  .blog-post, .feature-grid > div, .service-list > div {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 15px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 4vw 16px 4vw;
    font-size: .98em;
  }
}
@media (max-width: 570px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  section {
    padding: 22px 2px 22px 2px;
  }
}

/*--- MICROINTERACTIONS / TRANSITIONS ---*/
*, *:before, *:after {
  box-sizing: inherit;
  transition: background .13s, box-shadow .13s, color .12s, transform .12s;
}

/*--- Accessibility and Focus States ---*/
a:focus, button:focus, .btn-primary:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset:2px;
}

/*--- Utilities ---*/
.d-none { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/*--- GEOMETRIC DECORATIVE SHAPES Example ---*/
.shape-deco {
  position: absolute;
  z-index:0;
  pointer-events: none;
  opacity: .16;
}
/* Example: <div class="shape-deco" style="top:0;right:0;width:112px;height:112px;background:var(--brand-accent);border-radius:40% 60% 33% 67% / 60% 40% 60% 40%;"></div> */

/*--- END STYLE.CSS ---*/
