/* ===========================================================
   RESET & BASELINE NORMALIZATION (MOBILE-FIRST)
=========================================================== */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #f5f7fa;
  color: #193446;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #076678;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, .main-nav a.active, .footer-nav a.active, .mobile-nav a.active {
  color: #fabd2f;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/* ==========================
   BRAND TYPOGRAPHY
========================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #08314c;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.section h2, .section h3 {
  margin-top: 0;
}
p {
  margin-bottom: 12px;
}
.text-section p {
  margin-bottom: 10px;
}

/* ===============================
   CONTAINER & LAYOUT STRUCTURE
================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(9,38,53,0.05);
}

/* ================================
   HEADER & NAVIGATION (DESKTOP)
================================ */
header {
  width: 100%;
  background: #ecf0f1;
  border-bottom: 1.5px solid #dbe3ea;
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 24px;
  height: 54px;
  transition: opacity 0.2s;
}
.logo-link:hover {
  opacity: .85;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #193446;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a:focus {
  background: #076678;
  color: #fff;
}

/* Burger Button (Mobile Only) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #076678;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #d7e3ef;
  outline: none;
}

/* ================================
   MOBILE NAVIGATION MENU
================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 34, 51, 0.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin: 32px 0 24px 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fabd2f;
  cursor: pointer;
  border-radius: 8px;
  transition: background .18s;
  align-self: flex-start;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #183e54;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-left: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: color 0.19s, background 0.18s;
  min-width: 150px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #076678;
  color: #fabd2f;
}

/* ================================
   HERO BANNER
================================ */
.hero {
  background: linear-gradient(90deg, #eaf6fa 10%, #e3e8ec 93%);
  padding: 50px 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 40px rgba(45, 84, 113, 0.05);
  margin-bottom: 60px;
  min-height: 240px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 20px;
}
.hero h1 {
  color: #076678;
  font-size: 2.3rem;
}
.hero p {
  font-size: 1.1rem;
  color: #183e54;
  max-width: 600px;
  text-align: center;
}

/* ================================
   CTA BUTTONS
================================ */
.cta-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #076678;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.19s, color 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 12px 0 rgba(7,102,120,0.04);
  display: inline-block;
  outline: none;
}
.cta-btn.primary {
  background: #076678;
  color: #fabd2f;
}
.cta-btn:hover, .cta-btn:focus {
  background: #12596c;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(20,80,120,0.08);
}

/* ================================
   LISTS, ICONS, PRICE INFO
================================ */
ul li img {
  margin-right: 12px;
  vertical-align: middle;
  width: 24px;
  height: 24px;
}
.price-info, ul li span {
  background: #ecf0f1;
  color: #076678;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 7px;
  margin-left: 12px;
  font-size: 0.98em;
  letter-spacing: 0.01em;
}

/* ================================
   CARD, GRID, FLEX STRUCTURE
================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px 0 rgba(9,38,53,0.04);
  padding: 24px 16px 20px 16px;
  min-width: 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(7,102,120,0.13);
}
.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;
  background: #eceff3;
  color: #193446;
  padding: 20px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(16, 34, 51, 0.07);
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 680px;
  transition: box-shadow .17s, background .18s;
}
.testimonial-card p {
  font-size: 1rem;
  margin: 0 0 3px 0;
  color: #183e54;
}
.testimonial-card span {
  color: #076678;
  font-weight: 700;
  font-size: 0.98rem;
}
.testimonial-card:hover {
  background: #dae9f5;
  box-shadow: 0 3px 12px rgba(20,80,120,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f0f6fa;
  border-radius: 10px;
  padding: 18px 12px;
  min-width: 180px;
}

/* ================================
   TEXT SECTIONS
================================ */
.text-section {
  background: #f9fafb;
  padding: 22px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.text-section ul {
  margin-bottom: 0;
}

/* ================================
   FOOTER
================================ */
footer {
  background: #152837;
  color: #fff;
  padding: 44px 0 30px 0;
  border-top: 1.5px solid #dbe3ea;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 6px;
}
.footer-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 7px;
  padding: 7px 13px;
  transition: background 0.19s, color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #076678;
  color: #fabd2f;
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.97rem;
  color: #c5d3e4;
}
footer .logo-link img {
  max-width: 56px;
  margin-bottom: 10px;
}

/* ================================
   SECTION SPACING (MANDATORY)
================================ */
.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; }

/* ================================
   COOKIE CONSENT BANNER
================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #183e54;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 26px;
  z-index: 9001;
  box-shadow: 0 -3px 14px rgba(7,102,120,0.08);
  font-size: 1rem;
  transition: transform .38s cubic-bezier(.68,.34,.31,1.3);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-banner .cookie-message {
  flex: 1 1 300px;
  margin-right: 14px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.16s, color 0.11s, box-shadow 0.17s;
}
.cookie-btn.accept {
  background: #076678;
  color: #fabd2f;
  border: 1.5px solid #076678;
  box-shadow: 0 2px 8px rgba(7,102,120,0.09);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #12596c;
  color: #fff;
}
.cookie-btn.reject {
  background: #e5eaed;
  color: #076678;
  border: 1px solid #b1bbc4;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #fabd2f;
  color: #076678;
}
.cookie-btn.settings {
  background: transparent;
  color: #fabd2f;
  border: 1px solid #fabd2f;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #fabd2f;
  color: #076678;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(16,34,51,0.70);
  z-index: 9010;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal .modal-content {
  background: #fff;
  color: #183e54;
  border-radius: 12px;
  padding: 32px 26px 26px 26px;
  width: 94vw;
  max-width: 400px;
  box-shadow: 0 9px 40px rgba(20,80,120,0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn .26s cubic-bezier(.6,.01,.45,.95);
}
@keyframes fadeIn {
  from { transform: scale(.95) translateY(32px); opacity: 0; }
  to {   transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #076678;
  cursor: pointer;
  border-radius: 7px;
  transition: background .18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #e5eaed;
}
.cookie-modal h2 {
  color: #076678;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1em;
  color: #183e54;
}
.cookie-toggle {
  width: 36px;
  height: 22px;
  background: #e2e7eb;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  transition: background .21s;
  flex-shrink: 0;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 18px;
  height: 18px;
  background: #fabd2f;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left .18s, background .16s;
}
.cookie-toggle input:checked + span {
  left: 16px;
  background: #076678;
}
.cookie-category.essential .cookie-toggle { opacity: 0.35; pointer-events: none; }

/* ===============================
   MEDIA QUERIES (RESPONSIVE)
=============================== */
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .main-nav { gap: 8px; }
  .footer-nav { gap: 12px; }
}
@media (max-width: 820px) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.3rem; }
  .section { padding: 32px 11px; margin-bottom: 38px; }
  .footer-nav { gap: 10px; }
}
@media (max-width: 768px) {
  header .container { height: 60px; gap: 0; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .hero { padding: 32px 0; min-height: 140px; }
  .footer-nav { flex-direction: column; gap: 6px; }
  .container { padding: 0 10px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.12rem; }
  h2 { font-size: 1rem; }
  .container { max-width: 100vw; }
  .hero .content-wrapper, .content-wrapper {
    gap: 9px;
    align-items: flex-start;
  }
  .section { padding: 20px 3px; margin-bottom: 22px; border-radius: 9px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 11px; padding: 13px; }
  .feature-item { padding: 10px 4px; }
  .text-image-section { flex-direction: column; gap: 10px; }
  .mobile-menu {
    padding-top: 16px;
  }
}

/* Mobile Flex Directions */
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===============================
   FORM ELEMENTS & COMMON STATES
=============================== */
input, button, select, textarea {
  font-family: inherit;
  font-size: 1em;
  border-radius: 7px;
  outline: none;
}
button {
  cursor: pointer;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #076678;
  border-color: #fabd2f;
}

/* ===============================
   MISCELLANEOUS EFFECTS
=============================== */
::-webkit-input-placeholder { color: #b1bbc4; }
::-moz-placeholder { color: #b1bbc4; }
:-ms-input-placeholder { color: #b1bbc4; }
::placeholder { color: #b1bbc4; }

/* Subtle scroll for long modals/menus */
.mobile-menu, .cookie-modal .modal-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Remove weird IOS tap effect for buttons/links */
a, button, .cta-btn, .cookie-btn {
  -webkit-tap-highlight-color: rgba(7,102,120,0.11);
}

/* z-index order for overlays */
.mobile-menu { z-index: 9999; }
.cookie-consent-banner { z-index: 9001; }
.cookie-modal { z-index: 9010; }

/* ===============================
   PRINT MINIMAL RESET
=============================== */
@media print {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  img { max-width: 80vw !important; }
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
  .container, .content-wrapper, .section {
    margin: 0 !important; padding: 0 !important; box-shadow: none !important;
  }
}
