/* ====================================
  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, 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 {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F5FAFF 0%, #e0f2fe 100%);
  font-family: 'Roboto', Arial, sans-serif;
  color: #123763;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1B98A7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #123763;
  outline: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/* ============================
   FONT FACE / GOOGLE FONTS
============================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* ======================
   VARIABLES
======================= */
:root {
  --brand-primary: #123763;
  --brand-secondary: #1B98A7;
  --brand-accent: #F5FAFF;
  --shadow-base: 0 4px 16px rgba(18, 55, 99, 0.07);
  --shadow-card: 0 4px 20px rgba(27, 152, 167, 0.14);
  --radius-base: 16px;
  --radius-btn: 28px;
  --font-header: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ======================
   LAYOUT & CONTAINERS
======================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-base);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px rgba(27, 152, 167, 0.20);
  transform: translateY(-4px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* =======================
   TYPOGRAPHY
========================*/
h1, .hero h1 {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
@media (max-width:600px) {
  h1, .hero h1 {
    font-size: 2rem;
  }
}
h2 {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
h3 {
  font-size: 1.34rem;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--brand-secondary);
}
h4, h5, h6 {
  font-family: var(--font-header);
}
p, li, blockquote, cite {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1A2739;
}
blockquote {
  font-size: 1.09rem;
  font-style: italic;
  color: #123763;
  line-height: 1.5;
  margin-bottom: 12px;
}
cite {
  font-weight: 500;
  color: #888;
  font-size: 0.98rem;
}
ul, ol {
  padding-left: 2em;
  margin-top: 8px;
}
ul li,
ol li {
  margin-bottom: 7px;
  position: relative;
}

.text-section ul,
.text-section ol {
  padding-left: 1.3em;
}
.text-section ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand-secondary);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
  margin-left: -16px;
}
.text-section ol li {
  counter-increment: ts-counter;
}
.text-section ol {
  counter-reset: ts-counter;
}
.text-section ol li:before {
  content: counter(ts-counter)". ";
  font-weight: bold;
  color: var(--brand-secondary);
  margin-left: -18px;
  margin-right: 8px;
}

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

/* =====================
   HEADER & NAVIGATION
======================*/
header {
  width: 100%;
  background: linear-gradient(90deg, #F5FAFF 20%, #E0F2FE 100%);
  box-shadow: 0 2px 16px rgba(18, 55, 99, 0.05);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
nav ul li {
  position: relative;
}
nav ul li a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--brand-primary);
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.17s, color 0.18s;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: linear-gradient(90deg, var(--brand-secondary), #11cbd7 87%);
  color: #fff;
  font-family: var(--font-header);
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-base);
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, box-shadow 0.21s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #147d8b, var(--brand-primary) 97%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(27, 152, 167, 0.18);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: #fff;
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
  border-radius: var(--radius-btn);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.20s, color 0.20s, border-color 0.19s, transform 0.19s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-secondary);
  color: #fff;
  border-color: var(--brand-secondary);
  transform: scale(1.04);
}

button {
  cursor: pointer;
}

/* =========================
   HERO SECTION
==========================*/
.hero {
  background: linear-gradient(135deg, var(--brand-accent), #E0F2FE 95%);
  padding: 60px 0 52px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}
.hero h1 {
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 2.5rem;
}
.hero p {
  max-width: 600px;
  font-size: 1.17rem;
  color: #1A2739;
}

/* ==============================
   FLEX & CARD LAYOUTS
================================*/
.card-container, .content-grid, .blog-list, .case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.card, .post-preview, .case-study, .testimonial-card {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  max-width: 100%;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover,
.post-preview:hover,
.case-study:hover,
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(27, 152, 167, 0.22);
  transform: translateY(-2px) scale(1.01);
}

/* =======================
   TESTIMONIALS
======================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  max-width: 600px;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card blockquote {
  color: #152742;
  margin: 0;
  font-weight: 500;
  font-size: 1.07rem;
}
.testimonial-card cite {
  margin-left: 20px;
  color: #42617c;
  font-style: normal;
  font-size: 0.97rem;
}
/* Contrast check: always dark text on light bg */

/* =====================
   CASE STUDIES & BLOG
======================*/
.case-study-list,
.blog-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  flex: 1 1 320px;
}
.case-study h3 {
  margin-bottom: 6px;
}
.case-highlight {
  background: var(--brand-secondary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  align-self: flex-start;
}

.post-preview {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 22px 16px;
  min-width: 220px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.post-preview h3 {
  font-size: 1.23rem;
}

.blog-categories {
  margin-top: 28px;
  font-size: 1rem;
}
.blog-categories ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.blog-categories li {
  background: #E0F2FE;
  color: var(--brand-primary);
  border-radius: 9px;
  padding: 6px 16px;
  font-weight: 600;
}

.blog-search {
  margin-top: 22px;
}
.blog-search input[type="search"] {
  border: 2px solid var(--brand-secondary);
  border-radius: var(--radius-btn);
  padding: 11px 18px;
  font-size: 1rem;
  background: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.18s;
}
.blog-search input[type="search"]:focus {
  border-color: var(--brand-primary);
}

/* ==================
   FORMS & INPUTS
=================== */
input[type="email"],
input[type="text"],
input[type="search"],
textarea {
  border: 1.5px solid #D1EAEF;
  border-radius: var(--radius-btn);
  padding: 13px 16px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.18s;
}
input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--brand-secondary);
  outline: none;
}
form button[type="submit"] {
  margin-top: 8px;
}

/* ====================
   FOOTER STYLES
===================== */
footer {
  background: linear-gradient(90deg, #F5FAFF, #E0F2FE 90%);
  padding: 40px 0 24px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  max-height: 68px;
  margin-bottom: 12px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-menu a {
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.19s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--brand-secondary);
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.social-links a {
  display: inline-flex;
  padding: 9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 9px rgba(27, 152, 167, 0.12);
  align-items: center;
  transition: background 0.18s, box-shadow 0.18s;
}
.social-links a:hover,
.social-links a:focus {
  background: #E0F2FE;
  box-shadow: 0 4px 16px rgba(18, 55, 99, 0.09);
}

/* ========================
   MOBILE NAVIGATION
========================= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--brand-secondary);
  color: #fff;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 100;
}
.mobile-menu-toggle:focus {
  outline: 3px solid #b2e2e9;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 250, 255, 0.96);
  z-index: 9990;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.66, .03, .29, .97), opacity 0.3s;
}
.mobile-menu.active {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 28px;
  right: 24px;
  z-index: 10001;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 90px 28px 0 28px;
  min-width: 230px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--brand-primary);
  font-family: var(--font-header);
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 4px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}

/* Hide desktop nav, show burger on mobile */
@media (max-width: 900px) {
  nav ul, nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: 8px;
  }
}
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* ================
   RESPONSIVE
================= */
@media (max-width: 1100px) {
  .content-wrapper, .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 30px;
  }
  .case-study-list, .blog-list, .footer .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 97vw;
    padding-left: 11px;
    padding-right: 11px;
  }
  .content-grid, .card-container, .blog-list, .case-study-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 35px 0 30px 0;
    min-height: 160px;
  }
  .section {
    margin-bottom: 38px;
    padding: 20px 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .footer .content-wrapper, .footer-menu {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .social-links {
    margin-top: 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 600px) {
  h1, .hero h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .card, .post-preview, .case-study, .testimonial-card {
    padding: 14px 7px;
  }
  .blog-categories ul {
    gap: 8px;
  }
}

/* ================
   COOKIE CONSENT
================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--brand-secondary) 0%, #11cbd7 100%);
  color: #fff;
  z-index: 20000;
  box-shadow: 0 0 16px 0 rgba(18, 55, 99, .16);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 20px 16px;
  gap: 20px;
  transition: transform 0.38s cubic-bezier(.79,.13,.25,.96), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  text-align: center;
  font-size: 1rem;
  max-width: 680px;
  color: #fff;
}
.cookie-banner__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cookie-btn {
  font-family: var(--font-header);
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  background: #fff;
  color: var(--brand-secondary);
  margin: 0 3px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 1px 5px rgba(18,55,99,.1);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #E0F2FE;
  color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(27, 152, 167, 0.12);
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #fff;
  color: var(--brand-secondary);
}
/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 20100;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 55, 99, 0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: 0 8px 48px rgba(27,152,167,.24);
  padding: 34px 28px;
  width: 95vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: fadein 0.39s;
}
@keyframes fadein {
  from {opacity: 0; transform: scale(0.96) translateY(25px);}
  to {opacity: 1; transform: scale(1) translateY(0);}
}
.cookie-modal h3 {
  font-family: var(--font-header);
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category .cookie-toggle {
  width: 38px;
  height: 22px;
  background: #E0F2FE;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}
.cookie-toggle input[type="checkbox"] {
  width: 0; height: 0; opacity: 0;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-toggle input[type="checkbox"]:checked + .slider {
  left: 18px;
  background: var(--brand-secondary);
}
.cookie-category span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: #1A2739;
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  color: #6b94c5;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.4rem;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--brand-primary);
}

/* ================
   ANIMATIONS
================= */
a, .btn-primary, .btn-secondary, .cookie-btn, .card, .post-preview, .case-study, .testimonial-card {
  transition: box-shadow .19s, background .15s, color .18s, transform .18s;
}

/* ==============================
   EXTRA HELPER CLASSES
=============================== */
.hide-mobile {
  display: block !important;
}
@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }
}

.hide-desktop {
  display: none !important;
}
@media (max-width: 900px) {
  .hide-desktop {
    display: block !important;
  }
}

/* =============
Layout rules
============ */
.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; }

/* ================
   PRINT STYLES
================= */
@media print {
  *, *:before, *:after {
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}

