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

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  background: #F7FAFC;
  color: #232F3E;
}

ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #2371A8;
  outline-offset: 2px;
}

/* ========================== */
/*  BRAND VARIABLES           */
/* ========================== */
:root {
  --color-primary: #2371A8;
  --color-secondary: #53B673;
  --color-accent: #F7FAFC;
  --color-bg: #F7FAFC;
  --color-text: #232F3E;
  --color-text-light: #F7FAFC;
  --color-darkgray: #3F4C5C;
  --color-lightgray: #DFE4EA;
  --color-table-bg: #EEF3F7;
  --color-button-hover: #195A85;
  --shadow-card: 0 2px 8px rgba(35, 113, 168, 0.08);
  --shadow-medium: 0 4px 24px rgba(35, 113, 168, 0.06);
  --radius-card: 14px;
  --radius-btn: 6px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --transition-fast: .18s cubic-bezier(0.4,0,0.2,1);
}

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

/* ========================== */
/*  TYPOGRAPHY                */
/* ========================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
h1 { font-size: 2.75rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }
p, ul, ol, li {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-darkgray);
  margin-bottom: 16px;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}

/* ========================== */
/*  LAYOUT UTILITIES & SPACING */
/* ========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition-fast);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35,113,168,0.12);
}
.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 {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 0;
  margin-bottom: 24px;
  flex: 1 1 380px;
  flex-wrap: wrap;
  color: var(--color-text);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 260px;
  margin-right: 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Generic content wrapper for section alignment */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

/* Blog cards, case studies */
.blog-card, .case-study {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(35,113,168,0.10);
}

/* Contact details & map */
.contact-details, .map-placeholder {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 300px;
}

/* CTA areas in main sections */
.contact-cta, .cta, .newsletter-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 12px 0;
}

/* ========================== */
/*  HEADER & NAVIGATION       */
/* ========================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-lightgray);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 8px rgba(35,113,168,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
.logo {
  height: 42px;
  width: auto;
  margin-right: 24px;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 10px;
  color: var(--color-darkgray);
  border-radius: 4px;
  transition: color 0.14s, background 0.14s;
}
nav a.button, nav .button {
  margin-left: 18px;
}
nav a:hover, nav a:active {
  color: var(--color-primary);
  background: #EFF5FA;
}
/* Hide menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 1.6rem;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 14px;
  transition: background .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-button-hover);
}

/* =============================== */
/*  MOBILE NAVIGATION OVERLAY      */
/* =============================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 49, 62, 0.93);
  box-shadow: 0 8px 32px rgba(35,113,168,0.18);
  z-index: 2000;
  transform: translateX(-105%);
  transition: transform .33s cubic-bezier(.36,.55,.19,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: #fff;
  color: var(--color-primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.9rem;
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 102;
  transition: background .18s;
  border: none;
  box-shadow: 0 2px 10px rgba(35,113,168,0.10);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 85px;
  width: 100%;
  align-items: center;
  gap: 24px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: background .14s, color .14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.07);
}

/* ========================== */
/*  HERO SECTION              */
/* ========================== */
.hero {
  background: linear-gradient(90deg, #F7FAFC 70%, #e8f1f8 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
  padding-bottom: 40px;
}
.hero .container {
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 700px;
  padding: 0;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.7rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.25rem;
  color: var(--color-darkgray);
  margin-bottom: 28px;
}

/* ========================== */
/*  BUTTONS                   */
/* ========================== */
.button, a.button {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: none;
  box-shadow: 0 2px 10px rgba(35,113,168,0.08);
  letter-spacing: 0.5px;
  margin-top: 12px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform .11s;
  cursor: pointer;
  display: inline-block;
  position: relative;
  text-align: center;
}
.button.primary, a.button.primary {
  background: var(--color-primary);
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-button-hover);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(35,113,168,0.12);
}
.button.secondary, a.button.secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.button.secondary:hover, .button.secondary:focus {
  background: #f3fafd;
  color: var(--color-button-hover);
  border-color: var(--color-button-hover);
}
.button:active {
  transform: scale(.99);
}

/* ========================== */
/*  FEATURE/TESTIMONIALS ETC. */
/* ========================== */
.star-rating img {
  display: inline;
  height: 22px;
  width: 22px;
  margin-right: 2px;
}
.star-rating img:last-child {
  margin-right: 0;
}

/* Prcing Table */
.pricing-table {
  width: 100%;
  background: var(--color-table-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(35,113,168,0.06);
}
.pricing-table th, .pricing-table td {
  font-size: 1.05rem;
  padding: 16px 15px;
  font-family: var(--font-body);
  text-align: left;
}
.pricing-table tr {
  border-bottom: 1px solid #DFE4EA;
}
.pricing-table tr:last-child {
  border-bottom: none;
}
.pricing-table th {
  background: #e4eef8;
  color: var(--color-primary);
}

/* FAQ, List, Blog Tools */
.faq-list {
  flex: 2 1 350px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.blog-tools {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.blog-tools input[type=text], .blog-tools select {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  box-shadow: 0 1px 4px rgba(35,113,168,0.04);
  transition: border-color 0.18s;
}
.blog-tools input[type=text]:focus, .blog-tools select:focus {
  border-color: var(--color-primary);
}

/* ========================== */
/*  FOOTER STYLING            */
/* ========================== */
footer {
  background: #16344C;
  color: #fff;
  font-size: 1rem;
  padding-top: 48px;
  padding-bottom: 32px;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-nav,
.footer-brand,
.footer-contact,
.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav {
  justify-content: flex-start;
  gap: 16px;
}
.footer-nav a {
  color: #e2e8f0;
  font-size: 0.98rem;
  font-family: var(--font-body);
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-brand span {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-left: 12px;
}
.footer-contact span {
  color: #e2e8f0;
  font-size: 0.99rem;
  gap: 8px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.footer-social img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  filter: grayscale(.2) contrast(1.3);
  transition: opacity .16s;
  cursor: pointer;
}
.footer-social img:hover {
  opacity: 1;
}

/* ========================== */
/*  COOKIE CONSENT BANNER     */
/* ========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: #fff;
  color: var(--color-text);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -4px 24px rgba(35,113,168,.10);
  padding: 28px 24px 28px 32px;
  transition: transform .25s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-message {
  max-width: 480px;
  font-family: var(--font-body);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner .button {
  padding: 10px 20px;
  font-size: 1rem;
  min-width: 120px;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 60px rgba(35,113,168,.17);
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 96vw;
  width: 440px;
  transform: translate(-50%, -53%) scale(0.94);
  z-index: 4200;
  padding: 38px 32px 32px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .22s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.cookie-modal .modal-header {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 22px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(35,113,168,0.08);
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #eaf3ff;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  font-size: 1rem;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-darkgray);
}
.cookie-modal .toggle-switch {
  width: 46px;
  height: 24px;
  background: #e3e9f2;
  border-radius: 32px;
  position: relative;
  margin-right: 6px;
  flex-shrink: 0;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: transform 0.16s, background 0.2s;
  z-index: 2;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
  transform: translateX(22px);
}
.cookie-modal .cookie-category.disabled { color: #A0AEC0; }
.cookie-modal .cookie-category.disabled .toggle-switch {
  background: #d6d4d4;
}
.cookie-modal .cookie-category.disabled .toggle-slider {
  background: #c1c5c9;
}
.cookie-modal .cookie-category.disabled label {
  color: #A0AEC0;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 8px;
}

.cookie-modal-bg {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,113,168,.23);
  z-index: 4100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal.open ~ .cookie-modal-bg {
  opacity: 1;
  pointer-events: auto;
}

/* ========================== */
/*  RESPONSIVE DESIGN         */
/* ========================== */
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero .container { padding-left: 14px; }
}
@media (max-width: 880px) {
  .container { max-width: 98vw; }
  .hero .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  nav { gap: 16px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 767px) {
  .container {
    max-width: 100vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  header .container {
    padding-left: 7px; padding-right: 7px; min-height: 56px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 36px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card, .feature-item, .card {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
  }
  .content-wrapper, .cta, .newsletter-cta, .contact-cta {
    gap: 14px;
  }
  .blog-tools {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
  }
  .contact-details, .map-placeholder {
    width: 100%;
    padding: 16px 8px;
  }
  footer .container {
    gap: 8px;
    padding: 11px 7px;
  }
  .footer-brand span, .footer-brand {
    font-size: 0.97rem;
  }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 17px 5px 17px 8px;  }
  .cookie-banner .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-modal {
    width: 97vw;
    min-width: unset;
    padding: 20px 6vw 24px 6vw;
    font-size: 1rem;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.23rem; }
  .hero .container, .hero .content-wrapper { padding: 0 2px; }
  .card, .feature-item, .testimonial-card, .contact-details, .map-placeholder {
    padding: 12px 5px;
  }
  .blog-card, .case-study { padding: 12px 6px; }
  .cookie-modal { padding: 11px 3vw 18px 3vw; }
}

/* ========================== */
/*  ACCESSIBILITY & FOCUS     */
/* ========================== */
a:focus, .button:focus, input:focus, select:focus, .mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary) !important;
  outline-offset: 1.5px;
}

/* ========================== */
/*  MISC. UTILITIES           */
/* ========================== */
hr {
  border: 0; height: 1px; background: #d7e0e7; margin: 16px 0 20px 0;
}
ul, ol { padding-left: 22px; margin-bottom: 18px; }
li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-darkgray);
}
.text-section ul, .content-wrapper ul {
  padding-left: 20px;
  margin-top: 10px; margin-bottom: 16px; 
}
.text-section ul li:before {
  content: '•';
  margin-right: 8px;
  color: var(--color-secondary);
}
.service-item h2, .case-study h3 {
  font-size: 1.11rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ========================== */
/*  HIDE MOBILE MENU OVERLAY INITIALLY */
/* ========================== */
.mobile-menu { display: flex; }
.mobile-menu:not(.open) { pointer-events: none; }

/* ========================== */
/*  PRINT STYLES              */
/* ========================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-bg { display: none !important; }
  body { background: #fff !important; color: #222 !important; }
  .container { padding: 0 !important; }
  .card, .section, .card-container, .feature-item, .testimonial-card, .content-wrapper, .contact-details, .map-placeholder {
    box-shadow: none !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
  }
}
