/* === CSS RESET & BASE TYPOGRAPHY === */
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,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,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;
  font-family: 'Roboto', serif;
  background: #F2F5F9;
  color: #253654;
  min-height: 100vh;
  font-size: 16px;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.4em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #253654;
  font-weight: 600;
  margin-bottom: 0.75em;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 0.7em; }
h2 { font-size: 2rem; margin-bottom: 0.7em; }
h3 { font-size: 1.5rem; margin-bottom: 0.5em; }
h4 { font-size: 1.2rem; }
strong, b { font-weight: 700; }
p {
  margin-bottom: 1.3em;
  font-size: 1.0625rem;
  color: #384969;
}
a {
  color: #253654;
  text-decoration: none;
  border-bottom: 1px solid #ced6e7;
  transition: color 0.2s, border-color 0.2s;
}
a:hover, a:focus {
  color: #17223a;
  border-color: #7DA8CE;
}
/* === BRAND COLORS === */
:root {
  --primary: #253654;
  --secondary: #7DA8CE;
  --accent: #F2F5F9;
  --white: #fff;
  --muted: #e6eaf1;
  --shadow: rgba(37,54,84,0.07);
}

/* === CONTAINER LAYOUT === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

main {
  flex: 1 1 auto;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--white);
  box-shadow: 0 2px 22px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 28px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 10px;
  color: var(--primary);
  border: none;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover:not(.cta-primary), header nav a:focus:not(.cta-primary) {
  background: var(--secondary);
  color: var(--white);
}
header nav .cta-primary {
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 700;
  border-radius: 32px;
  border: none;
  font-size: 1rem;
  margin-left: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header nav .cta-primary:hover, header nav .cta-primary:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px var(--shadow);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 20px;
  line-height: 1;
  z-index: 120;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: var(--secondary);
  outline: 2px solid var(--secondary);
}

/* === MOBILE NAVIGATION === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0; 
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 150;
  flex-direction: column;
  transition: transform 0.33s cubic-bezier(.86,0,.07,1), opacity 0.3s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 90px;
  gap: 24px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', serif;
  color: var(--primary);
  text-align: center;
  padding: 10px 0;
  border: none;
  width: 96vw;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 1024px) {
  header .container {
    padding-left: 16px;
    padding-right: 16px;
    height: 62px;
  }
  header nav a { font-size: 0.96rem; }
}
@media (max-width: 910px) {
  header nav {
    gap: 16px;
  }
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 830px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === SECTIONS & LAYOUTS === */
section {
  background: var(--white);
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 22px var(--shadow);
}
@media (max-width: 600px){
  section {
    padding: 24px 4px;
    border-radius: 0;
    margin-bottom: 36px;
  }
}
.content-wrapper {
  width: 100%;
}

/* ==== FLEXBOX CARD & SECTION PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--muted);
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 22px rgba(37,54,84,0.16);
  transform: translateY(-2px);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 min(285px, 100%);
  background: var(--accent);
  border-radius: 12px;
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 1px 8px var(--shadow);
  min-width: 240px;
  min-height: 220px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.feature-grid > div:hover {
  box-shadow: 0 3px 16px var(--shadow);
  transform: translateY(-2px);
}
.feature-grid img {
  width: 42px; height: 42px;
  margin-bottom: 8px;
}
@media (max-width: 1100px) {
  .feature-grid { gap: 20px; }
  .feature-grid>div { min-width:200px;padding:18px; }
}
@media (max-width: 800px) {
  .feature-grid{flex-direction:column;gap:14px;}
}
/* === .testimonial-card === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(37,54,84,.12);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 560px;
  transition: box-shadow 0.18s, transform 0.14s;
  border-left: 5px solid var(--secondary);
  color: var(--primary);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 0.1em;
}
.testimonial-card .stars {
  color: #ECB516;
  font-size: 1.2em;
}
.testimonial-card span {
  display: block;
  font-size: 0.99em;
  color: #52608b;
  font-style: italic;
  margin-top: 0.7em;
}
.testimonial-card:hover {
  box-shadow: 0 5px 30px rgba(37,54,84,0.19);
  transform: translateY(-1px);
}
@media (max-width: 700px){
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
}

/* === BLOG TEASERS (.blog-list, .post-teaser, .faq-teaser) === */
.blog-list, .faq-list, .showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-teaser, .faq-teaser, .showcase > div {
  flex: 1 1 min(320px, 100%);
  min-width: 260px;
  background: var(--muted);
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 26px 20px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.13s;
}
.post-teaser:hover, .faq-teaser:hover, .showcase > div:hover {
  box-shadow: 0 3px 14px var(--shadow);
  transform: translateY(-2px);
}
@media(max-width: 800px){
  .blog-list, .faq-list, .showcase {
    flex-direction: column;
    gap: 14px;
  }
}

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

/* === TEXT-SECTION === */
.text-section {
  margin-bottom: 22px;
}
.text-section ul, .text-section ol {
  margin-bottom: 1em;
}
.text-section li {
  margin-bottom: 0.3em;
}

/* === BUTTONS === */
.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  padding: 14px 32px;
  border-radius: 36px;
  box-shadow: 0 2px 10px var(--shadow);
  margin-top: 12px;
  margin-bottom: 10px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.2s, transform 0.14s;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-1px);
  outline: none;
}

/* === LISTS & FAQ === */
ol, ul {
  padding-left: 22px;
  margin-bottom: 1.3em;
}
.faq-list>div {
  background: var(--muted);
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px var(--shadow);
  transition: box-shadow 0.15s;
}
.faq-list>div:hover {
  box-shadow: 0 3px 18px rgba(37,54,84,0.16);
}

/* === FOOTER === */
footer {
  background: var(--muted);
  padding: 48px 0 12px 0;
  margin-top: auto;
  box-shadow: 0 -2px 18px var(--shadow);
  border-radius: 38px 38px 0 0;
  font-size: 1.07em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px 30px;
  justify-content: space-between;
}
footer img {
  width: 58px;
  margin-bottom: 16px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #52608b;
  font-family: 'Montserrat', serif;
  text-decoration: none;
  margin-bottom: 2px;
  border: none;
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  background: none;
}
footer .text-section {
  font-size: .97em;
  color: #6a7a95;
}
@media (max-width: 900px){
  footer .container { flex-direction: column; gap: 16px; }
  footer .text-section { margin-bottom: 0; }
}
@media (max-width: 600px){
  footer { border-radius: 0; padding: 32px 0 8px 0;}
}

/* === HERO === */
.hero {
  min-height: 320px;
  background: linear-gradient(102deg, var(--accent) 80%, #e6eaf1 100%);
  display: flex;
  align-items: center;
  border-radius: 24px;
  margin-bottom: 50px;
  box-shadow: 0 2px 24px var(--shadow);
}
.hero .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 36vh;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero .content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.hero h1 {
  color: var(--primary);
  text-shadow: 0 1px 3px #f2f5f9cc;
  font-family: 'Montserrat', serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.4em;
}
.hero p {
  color: #3a4761;
  font-size: 1.22rem;
  margin-bottom: 1.6em;
}
@media (max-width: 600px){
  .hero {
    min-height: 200px;
    margin-bottom: 30px;
    border-radius: 0;
  }
  .hero .content-wrapper {
    text-align: left;
    padding: 0 2px;
  }
}

/* === ICONS IN TEXT === */
ul li img, .text-section ul li img {
  width: 22px;
  vertical-align: -5px;
  margin-right: 4px;
  display: inline-block;
}

/* === UTILITY CLASSES === */
.hidden { display: none !important; }
.visible { display: block !important; }

/* === FORM ELEMENTS === */
input, select, textarea {
  font-family: 'Roboto', serif;
  padding: 12px 15px;
  border-radius: 7px;
  border: 1px solid #B6C6D8;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
}

button {
  font-family: 'Montserrat', serif;
  font-size: 1em;
  border: none;
  border-radius: 26px;
  transition: background 0.18s, color 0.16s, box-shadow 0.15s, transform 0.12s;
  outline: none;
  cursor: pointer;
  background: var(--secondary);
  color: var(--white);
  padding: 13px 23px;
  margin-bottom: 10px;
}
button:hover, button:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1.5px);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 9999;
  background: #f7fafc;
  color: #253654;
  box-shadow: 0 -2px 18px var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 22px 24px 26px;
  gap: 34px;
  border-top: 1.5px solid #dde3ee;
  font-size: 0.97rem;
  animation: fadeInUp 0.55s cubic-bezier(.43,.18,.29,1.22);
}
.cookie-banner__info {
  max-width: 820px;
  line-height: 1.58;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', serif;
  font-size: 1em;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 30px;
  min-width: 110px;
  box-shadow: 0 1px 8px var(--shadow);
}
.cookie-banner button.cookie-reject {
  background: #b5bcc3; color: var(--white); font-weight: 500;
  border: none;
}
.cookie-banner button.cookie-settings {
  background: var(--secondary); color: var(--white);
}
.cookie-banner button:focus {
  outline: 3px solid var(--secondary);
  background: var(--secondary);
}
@media (max-width:780px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px; 
    padding: 16px 6px;
  }
  .cookie-banner__info { max-width: 100%;}
  .cookie-banner__actions { gap: 10px; }
}
@keyframes fadeInUp{
  0% { opacity:0; transform:translateY(24px); }
  100% { opacity:1; transform:translateY(0); }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(37,54,84,0.29);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  width: 94vw;
  box-shadow: 0 10px 50px rgba(37,54,84,0.19);
  padding: 34px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInPopup .45s cubic-bezier(.43,.18,.29,1.22);
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 22px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 101;
}
.cookie-modal__heading {
  font-family: 'Montserrat', serif;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.36rem;
  margin-bottom: 6px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-modal__category label {
  font-family: 'Montserrat', serif;
  color: #304573;
  font-weight: 500;
}
.cookie-modal__category input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--secondary);
  border-radius: 7px;
}
.cookie-modal__category .cookie-essential {
  font-weight: 600;
  font-size: .97em;
  color: #6a7a95;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 16px;
}
@keyframes fadeInPopup {
  0% { opacity: 0; transform: scale(0.94); }
  100% {opacity:1;transform:scale(1);}
}
@media (max-width:600px) {
  .cookie-modal__content { padding: 16px 8px; }
  .cookie-modal-close { right: 7px; top: 8px; }
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 1100px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width:600px){
  h1 { font-size:1.5rem; }
  h2 { font-size:1.1rem; }
  .container { padding-left:8px;padding-right:8px; }
}

/* ==== SPACING BETWEEN SECTIONS/CARDS === */
section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* === VISUAL EFFECTS (SHADOW, RADIUS) === */
.card, .post-teaser, .feature-grid > div, .faq-list > div, .showcase > div {
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--shadow);
}

/* === INTERACTIVE MICRO-EFFECTS === */
.card, .feature-grid > div, .testimonial-card, .post-teaser, .faq-teaser, .showcase > div {
  transition: box-shadow 0.22s, transform 0.19s;
}
.card:active, .feature-grid > div:active, .testimonial-card:active, .post-teaser:active, .faq-teaser:active, .showcase > div:active {
  box-shadow: 0 1px 4px var(--shadow);
  transform: scale(0.99);
}

/* === LINKS IN BODY/TEXT === */
.text-section a {
  color: var(--secondary);
  border-bottom: 1px dotted var(--secondary);
}
.text-section a:hover { color: var(--primary); border-bottom-style: solid; }

/* === ACCESSIBILITY (OUTLINES) === */
a:focus, button:focus, input:focus, .cta-primary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
}

/* === HIDE SCROLLBAR FOR MOBILE NAV/COOKIE === */
.mobile-menu, .cookie-modal {
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  display: none;
}

/* === CUSTOM SCROLLBAR === */
body::-webkit-scrollbar {
  width: 11px;
  background: #f3f6fa;
}
body::-webkit-scrollbar-thumb {
  background: #becde0;
  border-radius: 17px;
}

/* === PREVENT OVERLAP & Z-INDEX MANAGING === */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: inherit; }

/* === PRINT STYLES (OPTIONAL) === */
@media print { body,section,footer,header { background: #fff; color:#222; } * { box-shadow:none !important; background-image:none !important; } }
