/* ====================================
   CSS RESET & 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: #181a1b;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  min-height: 100vh;
  background: #181a1b;
  color: #181a1b;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #181A1B;
  background: #FAFAFA;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

/* ====================================
   BASE COLORS
==================================== */
:root {
  --clr-primary: #172A3A;
  --clr-secondary: #548CA8;
  --clr-accent: #FAFAFA;
  --clr-black: #181a1b;
  --clr-white: #FAFAFA;
  --clr-gray-100: #f6f7f8;
  --clr-gray-200: #e9ecef;
  --clr-gray-400: #c5ccd1;
  --clr-gray-700: #46494c;
  --clr-gray-800: #232628;
  --clr-shadow: rgba(20,24,31,0.13);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --section-gap: 60px;
}

/* ====================================
   FONTS & TYPOGRAPHY
==================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,500,700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--clr-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
}
h5 {
  font-size: 1rem;
}

p, li, dd {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--clr-gray-800);
}
p:last-child, li:last-child, dd:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
  color: var(--clr-primary);
}

em, i {
  font-style: italic;
  color: var(--clr-gray-700);
}

/* ====================================
   GENERAL LAYOUTS & CONTAINERS
==================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

main {
  min-height: 60vh;
  background: var(--clr-accent);
  color: var(--clr-black);
}

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

.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section:last-child {
  margin-bottom: 0;
}

/* ====================================
   FLEXBOX CARDS/PATTERNS
==================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clr-white);
  box-shadow: 0 3px 13px var(--clr-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.21s, transform 0.21s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(23,42,58,0.21);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 16px;
}

.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;
  background: #fff;
  color: #181a1b;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20,20,30,0.07);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 500px;
  font-size: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  background: #f6f7f8;
  box-shadow: 0 7px 23px rgba(23, 42, 58, 0.14);
  transform: translateY(-3px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.section .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-list > div {
  background: #fff;
  color: #181a1b;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(23,42,58,0.09);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list > div:hover {
  box-shadow: 0 8px 28px rgba(81,93,102,0.13);
  transform: translateY(-2px) scale(1.018);
  z-index: 2;
}
.service-list > div h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.service-list > div span {
  color: var(--clr-secondary);
  font-weight: bold;
  margin-top: 8px;
}

/* ====================================
   HEADER & NAVIGATION
==================================== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(23,42,58,0.08);
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
.logo img {
  height: 40px;
}
nav {
  display: flex;
  gap: 18px;
}
nav a {
  color: var(--clr-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 24px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover,
nav a:focus {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 12px 36px;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  margin-left: 10px;
  margin-right: 0;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 3px 13px var(--clr-shadow);
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--clr-secondary);
  color: #fff;
  transform: translateY(-1.5px) scale(1.01);
}
.btn-secondary {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-1.5px) scale(1.01);
}

.mobile-menu-toggle {
  display: none;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.45rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--clr-secondary);
}

/* ====================================
   MOBILE MENU
==================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #181a1bEE;
  box-shadow: 0 4px 40px rgba(20,24,41,0.19);
  z-index: 110;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0;
  transition: transform 0.33s cubic-bezier(.4,0,.2,1), opacity 0.24s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin: 28px 28px 12px 0;
  z-index: 111;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 0 0 38px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  text-decoration: none;
  padding: 13px 6px;
  border-radius: 12px;
  transition: background var(--transition), color var(--transition);
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: var(--clr-primary);
  text-decoration: underline;
}

/* ====================================
   HERO SECTIONS
==================================== */
.hero {
  background: linear-gradient(107deg, #fff 50%, #e9ecef 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--section-gap);
  box-shadow: 0 3px 20px rgba(20,24,31,0.06);
  border-bottom: 1px solid var(--clr-gray-200);
}
.hero .content-wrapper {
  padding: 56px 14px 56px 14px;
  max-width: 600px;
  text-align: left;
  align-items: flex-start;
}
.hero h1 {
  color: var(--clr-primary);
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.hero p {
  color: var(--clr-gray-700);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

/* ====================================
   SECTION & CONTENT STYLES
==================================== */
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
dt {
  font-weight: bold;
  margin-bottom: 4px;
}
dd {
  margin-bottom: 10px;
}
table {
  width: 100%;
  margin: 24px 0 24px 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(23,42,58,0.07);
  overflow: hidden;
}
thead th {
  background: #172a3a;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  padding: 12px 14px;
}
td, th {
  border: 1px solid var(--clr-gray-200);
  padding: 11px 14px;
  text-align: left;
}
tbody tr:nth-child(even) {
  background: #f6f7f8;
}

/* ====================================
   FOOTER
==================================== */
footer {
  background: #181a1b;
  color: #fff;
  font-size: 1rem;
  padding: 42px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--clr-secondary);
  text-decoration: underline;
}
.footer-info {
  opacity: 0.82;
  font-size: .97rem;
  padding-top: 5px;
}

/* =====================================
   COOKIE CONSENT BANNER & MODAL
===================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #181a1bcc;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 26px 18px 20px 18px;
  z-index: 1200;
  box-shadow: 0 -3px 18px rgba(23,42,58,0.17);
  font-size: 1rem;
  opacity: 1;
  transition: transform 0.44s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.cookie-banner button, .cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  margin: 0 6px 0 0;
  font-size: 1rem;
  padding: 8px 28px;
  border-radius: 22px;
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .btn-primary {
  background: var(--clr-secondary);
  color: #fff;
}
.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
  background: var(--clr-primary);
}
.cookie-banner .btn-secondary {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus {
  background: #fff;
  color: var(--clr-primary);
}
/* Cookie settings modal overlay */
.cookie-modal-overlay {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #181a1bcc;
  z-index: 1300;
  opacity: 1;
  transition: opacity .33s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  max-width: 370px;
  width: 94vw;
  padding: 40px 28px 28px 28px;
  border-radius: 17px;
  box-shadow: 0 6px 48px rgba(15,19,25,0.17);
  color: #181a1b;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  animation: showCookieModal .38s cubic-bezier(.4,0,.2,1);
}
@keyframes showCookieModal {
  from {
    opacity:0;
    transform: translateY(60px) scale(0.94);
  }
  to {
    opacity:1;
    transform: translateY(0) scale(1);
  }
}
.cookie-modal h3 {
  margin-bottom: 0;
  font-size: 1.27rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--clr-primary);
  margin-right: 7px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--clr-primary);
  width: 17px;
  height: 17px;
}
.cookie-category .always-on {
  color: var(--clr-secondary);
  background: #f2f2f2;
  border-radius: 3px;
  font-size: 0.97em;
  font-style: italic;
  padding: 2px 9px;
  margin-left: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}
.cookie-modal button,
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  padding: 10px 28px;
  border-radius: 22px;
  background: var(--clr-secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 5px;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .btn-secondary {
  border: 2px solid var(--clr-primary);
  background: transparent;
  color: var(--clr-primary);
}
.cookie-modal .btn-secondary:hover,
.cookie-modal .btn-secondary:focus {
  background: var(--clr-primary);
  color: #fff;
}
.cookie-modal .btn-primary:hover,
.cookie-modal .btn-primary:focus {
  background: var(--clr-primary);
}

/* ====================================
   MISC: ANCHOR, IMG, ETC.
==================================== */
a {
  color: var(--clr-secondary);
  text-decoration: underline;
  transition: color 0.14s;
}
a:hover,
a:focus {
  color: var(--clr-primary);
  text-decoration: underline dotted;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ====================================
   UTILS
==================================== */
.hide { display: none!important; }
.invisible { opacity: 0 !important; pointer-events: none !important; }

/* ====================================
   RESPONSIVE DESIGN
==================================== */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
  .hero .content-wrapper { max-width: 490px; }
}
@media (max-width: 900px) {
  .container { max-width: 96vw; padding-left: 2vw; padding-right: 2vw; }
  .hero .content-wrapper { max-width: 92vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .content-wrapper { max-width: 97vw; }
  .section { padding: 25px 7vw; margin-bottom: 36px; }
  .hero { min-height: 210px; }
  .hero .content-wrapper { padding: 34px 0; }
  .service-list,
  .card-container, .section .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  nav {
    display: none;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 25px;
    font-size: 0.97rem;
    margin-left: 0 !important;
    margin-top: 7px;
    margin-bottom: 5px;
    min-width: 160px;
    text-align: center;
  }
  .logo img {
    height: 31px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    gap: 7px;
  }
  .footer-links, footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  table thead th, table td {
    padding: 7px 6px;
    font-size: 0.97rem;
    font-weight: 500;
  }
  .testimonial-card, .service-list > div, .card {
    min-width: 0;
    max-width: 98vw;
  }
}
@media (max-width: 550px) {
  html, body { font-size: 15px; }
  h1 { font-size: 1.25rem; }
  .hero .content-wrapper { padding: 19px 0 25px 0; }
  .section { padding: 14px 2vw; }
  .cookie-modal { padding: 28px 6vw 23px 6vw; }
}
