/* --- 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, 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; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff;
  color: #191919;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #123A56; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #000; text-decoration: underline; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #111;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.125;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }

p, li, label, input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  color: #212325;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
strong { font-weight: 700; }

/* --- Containers & Layout Flex --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 24px rgba(30,30,33,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 240px;
  flex: 1 1 290px;
  transition: box-shadow 0.23s cubic-bezier(.25,.8,.25,1);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 36px rgba(1,1,4,0.14);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  background: #f8f8fa;
  color: #111;
  padding: 20px 32px;
  border-radius: 10px;
  box-shadow: 0 1px 14px rgba(15,20,28,0.07);
  min-width: 270px;
  max-width: 500px;
}
.testimonials .testimonial-card { margin-bottom: 28px; }

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

/* --- Header & Navigation --- */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 6px rgba(10,10,15,0.05);
  position: sticky; top: 0; z-index: 110;
}
header .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo img, .footer-logo img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
  margin-left: 32px;
}
nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #191919;
  letter-spacing: 0.02em;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
}
nav a:focus, nav a:hover {
  background: #f8f8fa;
  color: #123A56;
}
.btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  margin-left: 24px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(20,20,23,0.09);
  transition: background 0.22s, box-shadow 0.32s;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #123A56;
  color: #f8f8fa;
  box-shadow: 0 6px 24px rgba(20,20,23,0.12);
  outline: none;
}

/* --- Mobile Menu Hamburger --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #191919;
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.15s;
  z-index: 220;
}
.mobile-menu-toggle:focus,.mobile-menu-toggle:hover {
  color: #123a56;
}
@media (max-width: 991px) {
  .mobile-menu-toggle { display: block; }
  nav { display: none; }
  .btn-primary { margin-left: 0; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.52,.12,.37,.99);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu > nav,
.mobile-menu .mobile-nav {
  background: #fff;
  min-width: 270px;
  width: 85vw;
  max-width: 360px;
  height: 100vh;
  box-shadow: -2px  0 30px rgba(0,0,10,0.17);
  padding: 48px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.33,1,.68,1);
}
.mobile-menu.open > .mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  position: absolute;
  top: 18px; right: 20px;
  font-size: 2.05rem;
  background: none;
  border: none;
  color: #222;
  z-index: 3100;
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #123A56;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.19rem;
  font-weight: 600;
  color: #111;
  padding: 13px 6px;
  margin-bottom: 4px;
  border-radius: 5px;
  transition: background 0.1s, color 0.1s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #f8f8fa;
  color: #123A56;
}

/* --- Hero Section --- */
.hero {
  background: #f8f8fa;
  border-bottom: 1px solid #e6e6ef;
  padding: 64px 20px 48px 20px;
  margin-bottom: 56px;
  min-height: 290px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero h1 {
  color: #111;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero p { font-size: 1.16rem; margin-bottom: 24px; color: #222; }

/* --- Features & Service List --- */
section ul {
  padding-left: 0;
}
section ul li {
  margin-bottom: 24px;
  padding-left: 0;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service-list > div {
  background: #fff;
  border: 1px solid #f0f0f3;
  border-radius: 12px;
  padding: 24px 20px;
  min-width: 252px;
  flex: 1 1 290px;
  box-shadow: 0 2px 16px rgba(20,33,28,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.14s, border 0.15s;
}
.service-list > div:hover,
.service-list > div:focus-within {
  border: 1px solid #123A56;
  box-shadow: 0 4px 24px rgba(20,33,28,0.14);
}
.service-list h3 {
  font-size: 1.17rem; font-weight: 700; color: #123A56; margin-bottom: 12px;
}
.service-list h3 span {
  font-size: 0.96rem;
  color: #999;
  font-weight: 500;
  margin-left: 8px;
}
.service-list ul {
  margin-top: 8px;
  padding-left: 18px;
}
.service-list ul li {
  margin-bottom: 10px;
  list-style: disc;
  color: #444;
  font-size: 1rem;
}

/* --- Tables --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  box-shadow: 0 1px 18px rgba(12,12,12,0.07);
  margin-bottom: 32px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.pricing-table thead th {
  background: #f8f8fa;
  color: #111;
  font-weight: 700;
  border-bottom: 2px solid #eaeaea;
}
.pricing-table tbody tr {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.pricing-table tbody tr:hover {
  background: #f4f4f4;
}

/* --- FAQ Lists --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list li {
  background: #f8f8fa;
  border-radius: 10px;
  padding: 18px 28px;
  box-shadow: 0 1px 12px rgba(20,20,25,0.06);
  color: #191919;
}
.faq-list li strong {
  color: #123A56;
}

/* --- Blog teasers --- */
.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-teasers article {
  padding: 26px 18px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 16px rgba(20,33,28,0.07);
  border: 1px solid #f0f0f3;
  flex: 1 1 265px;
  min-width: 250px;
  transition: box-shadow 0.13s, border 0.13s;
}
.blog-teasers article:hover {
  box-shadow: 0 6px 28px rgba(20,33,28,0.16);
  border: 1px solid #123A56;
}
.blog-teasers h3 {
  font-size: 1.15rem;
  color: #123A56;
}

.blog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 22px;
}
.blog-tools label {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
}
.blog-tools select, .blog-tools input[type='search'] {
  border-radius: 6px;
  padding: 7px 13px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: border 0.15s;
}
.blog-tools select:focus, .blog-tools input[type='search']:focus {
  outline: 2px solid #123A56;
  border-color: #123A56;
}

/* --- Map/Contact Details --- */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 6px 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-details a { color: #123A56; text-decoration: underline; }

/* --- Footer --- */
footer {
  background: #191919;
  color: #f8f8fa;
  padding: 52px 0 32px 0;
  width: 100%;
}
footer .container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  padding: 0;
}
.footer-logo img { height: 44px; width: auto; filter: grayscale(0.85); }
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 170px;
}
.footer-menu a {
  color: #f8f8fa;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  opacity: 0.97;
  transition: opacity 0.13s;
}
.footer-menu a:focus, .footer-menu a:hover {
  opacity: 1;
  color: #fff;
}
.mini-contact {
  background-color: #e9eaea; font-size: 1rem; line-height: 1.5; max-width: 270px;
}
.brand-tagline {
  margin-top: 20px;
  color: #8a8a93;
  font-family: 'Montserrat',sans-serif;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #2C2C35;
  color: #f8f8fa;
  box-shadow: 0 -5px 38px rgba(10,10,15,0.11);
  z-index: 3500;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  justify-content: center;
  gap: 22px;
  min-height: 76px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s cubic-bezier(.23,1,.32,1);
}
.cookie-consent-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-consent-banner p {
  color: #f8f8fa;
  margin-bottom: 0;
  margin-right: 18px;
}
.cookie-consent-banner .cookie-btn {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 23px;
  margin-left: 9px;
  background: #111;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: #123A56;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #8a8a93;
  color: #f8f8fa;
}
.cookie-consent-banner .cookie-btn.settings {
  background: transparent;
  color: #f8f8fa;
  border: 1px solid #f8f8fa;
  transition: background 0.15s, color 0.15s;
}
.cookie-consent-banner .cookie-btn:hover, 
.cookie-consent-banner .cookie-btn:focus {
  background: #fff;
  color: #123A56;
}

/* Cookie Consent Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(12,12,20,0.48);
  z-index: 3550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.27,.8,.52,1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 7px;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 40px rgba(25,25,28,0.18);
  padding: 38px 34px 32px 34px;
  max-width: 94vw;
  width: 370px;
  color: #191919;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  color: #111;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cookie-modal ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal label {
  font-weight: 500;
  margin-right: 2px;
  color: #191919;
}
.cookie-modal input[type="checkbox"] { accent-color: #123A56; }
.cookie-modal .category-essential {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  width: 100%;
}
.cookie-modal .cookie-btn {
  width: auto;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #111;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:focus, 
.cookie-modal .cookie-modal-close:hover {
  color: #123A56;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 991px) {
  .service-list, .blog-teasers, .card-container, .content-grid, .footer .content-wrapper {
    flex-direction: column;
  }
  .footer-menu,
  .mini-contact,
  .footer-logo {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .footer .content-wrapper {
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper {
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.34rem; }
  .hero { padding: 36px 10px 26px 10px; }
  .section { margin-bottom: 40px; padding: 20px 7px; }
  .content-wrapper, .service-list, .card-container, .content-grid {
    gap: 14px;
  }
  .text-image-section,
  .content-grid {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: flex-start;
  }
  .testimonial-card { max-width: 100%; padding: 18px 10px; }
  .service-list > div, .card { min-width: 90%; max-width: 100%; }
  .blog-teasers article { min-width: 100%; }
  footer { padding: 30px 0; }
  .footer-logo img { height: 40px; }
}
@media (max-width: 490px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 10px;
    font-size: 0.95rem;
  }
  .cookie-modal {
    padding: 21px 9vw 18px 9vw;
    width: 96vw;
  }
}

/* --- Utilities & Microinteractions --- */
::-webkit-scrollbar {
  width: 7px; background: #eaeaea;
}
::-webkit-scrollbar-thumb {
  background: #c5c5c7; border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #123A56;
  border-color: #123A56;
}

/* Animations */
.btn-primary, .cookie-btn, .card, .service-list > div, .testimonial-card, .faq-list li, .blog-teasers article {
  transition: box-shadow 0.22s, border 0.1s, background 0.22s, color 0.15s, transform 0.19s;
}
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.card:active, .service-list > div:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* --- Z-Index Management --- */
header { z-index: 110; }
.mobile-menu { z-index: 3000; }
.cookie-consent-banner { z-index: 3500; }
.cookie-modal-backdrop { z-index: 3550; }

/* --- Misc --- */
::-moz-selection { background: #123A56; color: #fff; }
::selection { background: #123A56; color: #fff; }

/* --- Hide elements visually only --- */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* --- Table Responsiveness --- */
@media (max-width: 650px) {
  .pricing-table, .pricing-table thead, .pricing-table tbody, .pricing-table th, .pricing-table td, .pricing-table tr {
    display: block;
    width: 100%;
  }
  .pricing-table th {
    background: #f8f8fa;
    color: #111;
    text-align: left;
    font-weight: 700;
    border: none;
    border-bottom: none;
    padding: 11px 7px;
  }
  .pricing-table td { padding: 10px 7px; }
  .pricing-table tr { margin-bottom: 18px; }
}
