/* ----------------------------
   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,
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,
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #181818;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #184E77;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #000;
}
b, strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #101010;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 16px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

p, li, blockquote, table, label {
  color: #212121;
  line-height: 1.7;
  font-size: 1rem;
}
hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}

/* Monochrome Sophisticated Palette + Brand */
:root {
  --primary: #184E77;
  --secondary: #F6EEDC;
  --accent: #FFD166;
  --black: #101010;
  --dark-gray: #232323;
  --gray: #666;
  --mid-gray: #B0B0B0;
  --light-gray: #F3F4F6;
  --white: #fff;
}

/* ----------
 Container
---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (max-width: 600px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
}

/* ----------
 Header + Nav
---------- */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header a img {
  height: 46px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--black);
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  color: var(--primary);
  background: var(--light-gray);
}
nav a.cta-primary {
  background: var(--primary);
  color: var(--white);
  border-radius: 32px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 20px;
  margin-left: 6px;
  box-shadow: 0 3px 10px 0 rgba(24,78,119,0.09);
  transition: background 0.25s, color 0.2s, box-shadow 0.2s;
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 6px 24px rgba(24,78,119,0.15);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  color: var(--black);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 210;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--light-gray);
}

/* Hide nav & show burger on mobile */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----------
 Mobile Menu
---------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  background: var(--white);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.83,0,.17,1);
  z-index: 220;
  box-shadow: 0 4px 32px rgba(20, 20, 20, 0.31);
  padding: 0 0 80px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--light-gray);
  border: none;
  font-size: 2rem;
  margin: 24px 24px 8px 0;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 34px;
  padding-left: 24px;
}
.mobile-nav a {
  font-size: 1.16rem;
  color: var(--black);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid var(--light-gray);
  transition: background 0.18s, color 0.18s;
  border-radius: 0px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--light-gray);
  color: var(--primary);
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* --------------
 Main Structure
--------------- */
main {
  min-height: 70vh;
  background: var(--white);
  z-index: 1;
}
.section {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 5px 32px rgba(30,30,30,0.08);
}

.subheadline {
  font-size: 1.21rem;
  color: var(--gray);
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  margin-top: -14px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}
.feature-grid li {
  background: var(--light-gray);
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(24, 78, 119, 0.04);
  padding: 30px 22px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 350px;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.19s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px rgba(24,78,119,0.09);
  transform: translateY(-7px) scale(1.02);
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.92;
  margin-bottom: 12px;
}
.feature-grid h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.feature-grid p {
  color: var(--gray);
  font-size: 1rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(12,14,15,0.07);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(24,78,119,0.09);
  transform: translateY(-6px) scale(1.011);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: linear-gradient(90deg, var(--white) 80%, #ececec 100%);
  border-left: 5px solid var(--primary);
  border-radius: 9px;
  box-shadow: 0 2px 18px rgba(24,78,119,0.08);
  padding: 20px 24px;
  margin-bottom: 20px;
  margin-top: 10px;
  font-size: 1.07rem;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #141414;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--gray);
  font-size: 0.97rem;
  margin-top: 3px;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(24,78,119,0.13);
}

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

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 1rem;
  background: var(--white);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(24,78,119,0.04);
}
thead tr {
  background: var(--primary);
  color: var(--white);
}
th, td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid #ececec;
}
th { font-weight: 700; letter-spacing: 0.02em; }
tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: var(--light-gray);
}
tbody tr:hover {
  background: #e9ecef;
}

/* Service List */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.service-list li {
  background: var(--light-gray);
  border-radius: 7px;
  padding: 22px 20px;
  list-style: none;
  box-shadow: 0 1px 8px rgba(24,78,119,0.04);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.18s;
}
.service-list li:hover {
  box-shadow: 0 4px 16px rgba(24,78,119,0.07);
}
.service-list .price {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 700;
  margin-left: 16px;
  letter-spacing: 0.02em;
}

.included-features {
  margin: 30px 0 10px 0;
  font-weight: 500;
  font-size: 1rem;
}
.included-features ul {
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.included-features li {
  font-size: 1rem;
  color: var(--primary);
  list-style: disc inside;
  background: transparent;
  padding-left: 0;
}

.note {
  color: var(--gray);
  font-size: 0.97rem;
  background: #fbfbfb;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 6px;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 10px;
}
.blog-list li {
  list-style: none;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 20px 18px;
  box-shadow: 0 1px 8px rgba(24,78,119,0.04);
  transition: box-shadow 0.16s;
}
.blog-list li:hover {
  box-shadow: 0 4px 16px rgba(24,78,119,0.08);
}
.blog-list h3 {
  margin-bottom: 11px;
  font-size: 1.13rem;
  color: var(--primary);
}

/* Case Study Summaries */
.case-study-summaries {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.case-study-summaries article {
  background: var(--light-gray);
  flex: 1 1 260px;
  border-radius: 8px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px rgba(24,78,119,0.04);
  transition: box-shadow 0.16s;
}
.case-study-summaries article:hover {
  box-shadow: 0 4px 16px rgba(24,78,119,0.09);
}
@media (max-width: 900px) {
  .case-study-summaries {
    flex-direction: column;
    gap: 18px;
  }
}

/* Contact Details */
.contact-details {
  background: var(--light-gray);
  border-radius: 7px;
  padding: 20px 17px;
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: var(--gray);
}

/* Blockquote for About page */
blockquote {
  font-style: italic;
  background: #eeeeee;
  border-radius: 6px;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  margin-bottom: 16px;
  color: #232323;
}
blockquote span {
  font-style: normal;
  color: var(--primary);
  display: block;
  margin-top: 11px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ----------
 Buttons
---------- */
.cta-primary, .cta-secondary, button, input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 10px 26px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  text-align: center;
  transition: background 0.27s, color 0.17s, box-shadow 0.16s;
  box-shadow: 0 1px 8px rgba(24,78,119,0.05);
  outline: none;
  margin-right: 8px;
}
.cta-primary,
input[type="submit"] {
  background: var(--primary);
  color: var(--white);
}
.cta-primary:hover, .cta-primary:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 5px 24px rgba(24,78,119,0.13);
}
.cta-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(24,78,119,0.06);
}
button:disabled, .cta-primary:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 13px;
  border: 1px solid #b0b0b0;
  border-radius: 6px;
  background: var(--white);
  outline: none;
  transition: border 0.16s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 4px var(--primary, #184E77);
}
label {
  font-size: 1rem;
}

/* ----------
 Footer
---------- */
footer {
  background: var(--white);
  border-top: 1.2px solid #ebeaea;
  box-shadow: 0 -4px 18px rgba(24,78,119,0.05);
  margin-top: 60px;
  padding-top: 18px;
  z-index: 10;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px;
  margin-bottom: 22px;
  width: 100%;
}
.footer-logo img {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
}
.footer-info {
  min-width: 200px;
}
.footer-main-menu, .footer-legal-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-main-menu a, .footer-legal-menu a {
  font-size: 1rem;
  color: var(--mid-gray);
  transition: color 0.14s;
  margin-bottom: 4px;
}
.footer-main-menu a:hover, .footer-legal-menu a:hover, .footer-main-menu a:focus, .footer-legal-menu a:focus {
  color: var(--primary);
}
.footer-bottom {
  font-size: 0.98rem;
  color: var(--gray);
  padding: 15px 0 10px 0;
  text-align: center;
  width: 100%;
  border-top: 1px solid #eaeaea;
}
@media (max-width: 880px) {
  .footer-content {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ----------
 Responsive (Mobile First)
---------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.11rem; }
  .card, .feature-grid li, .testimonial-card, .service-list li,
  .blog-list li, .case-study-summaries article {
    padding: 18px 10px;
  }
  .card-container, .feature-grid, .content-grid, .case-study-summaries {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .footer-logo img {
    width: 46px;
    height: 46px;
  }
  h1 { font-size: 1.35rem; }
  .container { padding: 0 5px; }
}

/* ----------
 Cookie Banner
---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #1b1b1b;
  color: #fff;
  padding: 24px 16px 18px 16px;
  box-shadow: 0 -3px 24px rgba(24,78,119,0.09);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.38s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button, .cookie-banner .cta-primary, .cookie-banner .cta-secondary {
  font-size: 1rem;
  border-radius: 32px;
  padding: 8px 20px;
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0;
}
.cookie-banner .cta-primary {
  background: var(--primary);
  color: var(--white);
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .cta-primary:hover, .cookie-banner .cta-primary:focus {
  background: var(--accent); color: var(--black);
}
.cookie-banner .cta-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  transition: background 0.17s, color 0.17s, border 0.15s;
}
.cookie-banner .cta-secondary:hover, .cookie-banner .cta-secondary:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .cookie-settings-btn {
  background: var(--mid-gray);
  color: var(--white);
  border: none;
  font-weight: 600;
  transition: background 0.17s, color 0.15s;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: var(--black);
  color: var(--accent);
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 11px; font-size: 0.98rem; }
  .cookie-banner .cookie-buttons { gap: 6px; }
}

/* ----------
 Cookie Modal
---------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,24,36,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: var(--white);
  color: var(--black);
  padding: 30px 26px 22px 26px;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(24,78,119,0.15);
  min-width: 320px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.37s cubic-bezier(.71,0,.37,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 9px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 34px;
  height: 18px;
  background: var(--light-gray);
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.22s;
  margin-right: 7px;
  vertical-align: middle;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.22s;
  box-shadow: 0 1px 3px rgba(24,78,119,0.11);
}
.cookie-toggle:checked::after {
  left: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 14px;
}
.cookie-modal .cta-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.8px solid var(--primary);
}
.cookie-modal .cta-secondary:hover, .cookie-modal .cta-secondary:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 12px 5vw 14px 5vw;
    min-width: 0;
  }
}

/* Transitions and micro-interactions */
.card, .feature-grid li, .testimonial-card, .case-study-summaries article, .blog-list li, .service-list li {
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover, .case-study-summaries article:hover, .blog-list li:hover, .service-list li:hover {
  box-shadow: 0 10px 34px rgba(24,78,119,0.12);
  transform: translateY(-3px) scale(1.012);
}

/* Miscellaneous Utility */
.hide { display: none !important; }

/* Focus states for accessibility */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #959595; }
::-moz-placeholder { color: #959595; }
:-ms-input-placeholder { color: #959595; }
::placeholder { color: #959595; }
