/* ===============================================
   RESET & BASELINE NORMALIZATION
   =============================================== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #0A171F;
  background: #fff;
  min-height: 100vh;
  line-height: 1.7;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
a {
  color: #14365C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: none;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* ===============================================
   BRAND COLOR VARIABLES (with fallbacks)
   =============================================== */
:root {
  --color-primary: #14365C;
  --color-secondary: #0A171F;
  --color-accent: #F3E6C1;
  --color-bg: #fff;
  --color-text: #0A171F;
  --color-muted: #7F8D97;
  --color-border: #E5E8EA;
  --shadow-soft: 0 2px 12px rgba(20,54,92,0.04), 0 1.5px 4px rgba(20,54,92,0.06);
}

/* ===============================================
   TYPOGRAPHY
   =============================================== */
h1, .hero-block h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
p, li, blockquote {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 16px;
}
.subheadline, .confirmation-message, .next-steps {
  color: var(--color-muted);
  font-size: 1.15rem;
}
strong {
  font-weight: 600;
}

/* ===============================================
   CONTAINER & SPACING
   =============================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(20,54,92,0.09);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}
.logo img {
  height: 48px;
  width: auto;
}
nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
nav.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  margin: 0 auto;
  width: 0;
  background: var(--color-accent);
  transition: width 0.18s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  color: var(--color-primary);
}
nav.main-nav a:hover::after,
nav.main-nav a:focus::after {
  width: 60%;
}

.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 22px;
  padding: 12px 30px;
  font-size: 1.08rem;
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.15s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(20,54,92,0.09);
  display: inline-block;
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(20,54,92,0.13);
  transform: translateY(-1px) scale(1.025);
  color: #fff;
}

/* ===============================================
   MOBILE MENU
   =============================================== */
.mobile-menu-toggle {
  display: none;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.21s;
  z-index: 130;
  border-radius: 6px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (max-width: 992px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10,23,31,0.96);
  transform: translateX(-100vw);
  transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  position: absolute;
  top: 24px;
  right: 34px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  margin-top: 70px;
  width: 100vw;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 8px;
  width: 90vw;
  max-width: 420px;
  transition: background 0.18s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* ===============================================
   HERO & CTA BLOCKS
   =============================================== */
.hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
  padding: 30px 0 48px 0;
  max-width: 720px;
  margin: 0 auto 0 0;
}
.hero-block .subheadline {
  font-size: 1.18rem;
  color: var(--color-muted);
}
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 38px 20px;
  min-width: 0;
  margin: 0 auto;
  margin-bottom: 12px;
}
.cta-block h2, .cta-block p {
  color: var(--color-secondary);
  text-align: center;
}
.cta-block .btn-primary {
  margin-left: 0;
}

/* ===============================================
   FEATURE GRID & CARDS
   =============================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 30px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  min-width: 235px;
  max-width: 330px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 24px rgba(20,54,92,0.11);
  transform: translateY(-2px) scale(1.015);
  z-index: 2;
}

/* ===============================================
   BLOG LIST, CARDS & GRID
   =============================================== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(20,54,92,0.03);
  padding: 24px 18px;
  min-width: 230px;
  flex: 1 1 285px;
  transition: box-shadow 0.17s, border-color 0.18s, transform 0.18s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-post h3 {
  color: var(--color-secondary);
  font-size: 1.13rem;
  margin-bottom: 6px;
}
.blog-post a {
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline;
  transition: color 0.17s;
}
.blog-post a:hover, .blog-post a:focus {
  color: var(--color-secondary);
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.99rem;
  color: var(--color-muted);
  align-items: center;
}
.category-filter a {
  color: var(--color-secondary);
  padding: 3px 6px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.category-filter a:hover { background: var(--color-accent); color: var(--color-primary); }

/* ===============================================
   TESTIMONIAL CARDS & FEEDBACK
   =============================================== */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  max-width: 580px;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: var(--color-secondary);
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-muted);
  font-style: italic;
}

/* High contrast for testimonial for accessibility */
@media (max-width: 700px) {
  .testimonial-card { max-width: 100%; }
}

/* ===============================================
   TEXT & IMAGE SECTIONS, FLEX CONTAINER HELPERS
   =============================================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 11px;
  box-shadow: 0 1px 5px rgba(20,54,92,0.04);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .blog-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===============================================
   UTILITY & INTERFACE COMPONENTS
   =============================================== */
.map-box, .team-box {
  background: #f9f9f7;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(20,54,92,0.03);
  padding: 18px 16px;
  margin-bottom: 18px;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
  background: #fff;
  box-shadow: 0 -2px 12px rgba(20,54,92,0.06);
  padding: 24px 0 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
}
.footer-block {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 30px;
}
.footer-block > * {
  margin-right: 18px;
}
.footer-nav, .footer-utility {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.99rem;
  margin-bottom: 10px;
}
.footer-nav a, .footer-utility a {
  color: var(--color-muted);
  transition: color 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover, .footer-utility a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.97rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact a {
  color: var(--color-primary);
  transition: color 0.17s;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  opacity: 0.66;
  transition: opacity 0.12s, transform 0.17s;
}
.footer-social a:hover img {
  opacity: 1;
  transform: scale(1.08);
}
@media (max-width: 900px) {
  .footer-block {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===============================================
   COOKIE CONSENT BANNER & MODAL
   =============================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9000;
  background: #fff;
  box-shadow: 0 -4px 22px rgba(20,54,92,0.08), 0 -1px 6px rgba(10,23,31,0.04);
  padding: 26px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-border);
  animation: cookieFadeIn 0.45s cubic-bezier(0.7,0,0.25,1);
}
@keyframes cookieFadeIn {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-secondary);
  text-align: center;
  margin: 0 0 9px 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn,
.cookie-btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: 17px;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 1px 5px rgba(20,54,92,0.03);
  transition: background 0.17s, color 0.17s;
}
.cookie-btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-border);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 10020;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(10,23,31,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: cookieFadeIn 0.43s cubic-bezier(0.7,0,0.25,1);
}
.cookie-modal-box {
  background: #fff;
  padding: 34px 28px 22px 28px;
  border-radius: 15px;
  box-shadow: 0 6px 34px rgba(20,54,92,0.19);
  min-width: 300px;
  max-width: 98vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
}
.cookie-modal-box h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-secondary);
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--color-border);
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: var(--color-primary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s cubic-bezier(.33,1.54,.57,1), background 0.18s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.13);
}
.cookie-toggle:checked:before {
  left: 18px;
  background: var(--color-accent);
}
.cookie-category .cookie-toggle[disabled] {
  opacity: 0.69;
}
@media (max-width: 660px) {
  .cookie-modal-box {
    padding: 18px 8px 14px 8px;
    min-width: 0;
    width: 96vw;
  }
}

/* ===============================================
   RESPONSIVE LAYOUTS
   =============================================== */
@media (max-width: 1200px) {
  .container, .footer-block { max-width: 96vw; }
}
@media (max-width: 700px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.39rem; }
  .hero-block { padding: 18px 0 25px 0; }
  .section {
    margin-bottom: 22px;
    padding: 16px 2px;
    border-radius: 8px;
  }
  .feature, .blog-post, .testimonial-card {
    padding: 17px 10px;
    border-radius: 7px;
  }
  .cta-block { padding: 19px 6px; border-radius: 8px; }
}

/* ===============================================
   FORM ELEMENTS, BUTTONS UTILITIES
   =============================================== */
input, button, select, textarea {
  font: inherit;
}
input[type="text"], input[type="email"], textarea {
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 11px 12px;
  transition: border-color 0.13s;
  margin-bottom: 12px;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ===============================================
   SCROLLBAR for webkit
   =============================================== */
::-webkit-scrollbar {
  width: 6px;
  background: #f3f3ef;
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

/* ===============================================
   MICRO-INTERACTIONS (Minimalist Animations)
   =============================================== */
.card, .feature, .blog-post, .testimonial-card, .cta-block {
  transition: box-shadow 0.17s, transform 0.17s;
  will-change: transform, box-shadow;
}
.card:hover, .feature:hover, .blog-post:hover, .cta-block:hover {
  box-shadow: 0 7px 26px rgba(20,54,92,0.09);
  transform: translateY(-3px) scale(1.015);
  z-index: 2;
}

/* ===============================================
   MISCELLANEOUS & HELPER CLASSES
   =============================================== */
.nowrap { white-space: nowrap; }
.hide, [hidden] { display: none !important; }
.mt-2 { margin-top: 10px; }
.mb-2 { margin-bottom: 10px; }

/* Gap for all lists in text-section */
.text-section ul, .text-section ol {
  margin-left: 1.4em;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* --- END CSS --- */
