/* ---------------------------------------------------
   CSS Reset and 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.6;
  background: #F9F9F6;
  color: #1B2432;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
}

/* ---------------------------------------------------
   Font Families & Elegant Classic Typography
--------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap');

:root {
  --brand-primary: #19365C;
  --brand-secondary: #38AFA7;
  --brand-accent: #F9F9F6;
  --text-main: #1B2432;
  --text-muted: #5b6b7b;
  --surface-card: #fff;
  --surface-footer: #F3F3EF;
  --border: #E3E0D7;
  --shadow: 0 2px 16px 0 rgba(25, 54, 92, 0.07);

  /* Font scale */
  --h1: 2.8rem;
  --h2: 2.0rem;
  --h3: 1.3rem;
  --p: 1.08rem;
  --small: 0.92rem;
}

body {
  font-family: 'Roboto', Georgia, serif;
  color: var(--text-main);
  background: var(--brand-accent);
  font-size: var(--p);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: var(--h1);
  letter-spacing: -2px;
  line-height: 1.14;
}
h2 {
  font-size: var(--h2);
  letter-spacing: -1.5px;
}
h3 {
  font-size: var(--h3);
  color: var(--brand-primary);
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.08rem;
}
p, ul, ol, li {
  color: var(--text-main);
  font-size: var(--p);
}
strong, b {
  font-weight: 600;
}
.text-muted {
  color: var(--text-muted);
}

/* ---------------------------------------------------
   Layout Containers & Elegant Classic Spacing
--------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1210px;
  padding: 0 22px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 4px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ---------------------------------------------------
   Header & Navigation
--------------------------------------------------- */
header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(25,54,92,0.03);
  z-index: 101;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.08rem;
  color: var(--brand-primary);
  padding: 4px 0;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
}
.cta-button {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 32px;
  border-radius: 30px;
  transition: background 0.28s, box-shadow 0.28s, color 0.2s;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(25,54,92,0.06);
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-block;
  margin-left: 18px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 4px 18px 0 rgba(56,175,167,0.17);
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  margin-left: 18px;
  z-index: 120;
  padding: 2px 10px;
  border-radius: 7px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(56,175,167,0.08);
}

/* ---------------------------------------------------
   Mobile Navigation Overlay
--------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  padding: 0;
  box-shadow: 0 2px 28px rgba(25,54,92,0.17);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.78,.18,.26,1.18);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 1.8rem;
  background: none;
  border: none;
  padding: 18px 22px 14px 8px;
  cursor: pointer;
  color: var(--brand-primary);
  border-radius: 8px;
  margin: 6px 10px 6px 0;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(56,175,167,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 30px 0 0 0;
  padding: 0 32px;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: 'Montserrat', Georgia, serif;
  color: var(--brand-primary);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  transition: color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
}

/* Hide .main-nav and .cta-button on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---------------------------------------------------
   Section, Feature Grids, Cards, Content
--------------------------------------------------- */
.feature-grid, .industry-cards, .post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 12px;
}
.feature, .industry-card, .post {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 30px 22px 20px 22px;
  transition: box-shadow 0.18s, border 0.19s, transform 0.18s;
}
.feature:hover, .industry-card:hover, .post:hover {
  box-shadow: 0 8px 36px 0 rgba(25,54,92,0.10);
  border: 1.5px solid var(--brand-secondary);
  transform: translateY(-3px) scale(1.015);
}
.feature img, .industry-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 220px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(25,54,92,0.09);
  border:1.5px solid var(--brand-secondary);
}

.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-slider, .testimonial-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 24px 0 rgba(25,54,92,0.06);
  padding: 20px 22px 20px 22px;
  gap: 20px;
  max-width: 380px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border 0.13s;
}
.testimonial-card p {
  font-size: 1.12rem;
  font-family: 'Roboto', Georgia, serif;
  color: var(--brand-primary);
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card strong {
  font-size: 1rem;
  font-family: 'Montserrat', Georgia, serif;
  color: var(--text-muted);
}
.testimonial-card:hover {
  box-shadow: 0 10px 45px 0 rgba(25,54,92,0.13);
  border: 1.5px solid var(--brand-secondary);
}

.client-logos {
  margin-top: 26px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.client-logos img {
  width: 64px;
  height: auto;
}

.thankyou-section {
  background: var(--surface-card);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 30px 24px;
  box-shadow: 0 1px 10px 0 rgba(25,54,92,0.05);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.categories-filter {
  margin-top: 24px;
  font-size: 1.03rem;
  color: var(--text-muted);
}
.categories-filter a {
  color: var(--brand-secondary);
  font-weight: 600;
  font-family: 'Montserrat', Georgia, serif;
  padding-right: 4px;
  transition: text-decoration 0.13s;
}
.categories-filter a:hover, .categories-filter a:focus {
  text-decoration: underline;
}

.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
  margin-top: 10px;
}
.team-member {
  background: var(--surface-card);
  border-radius: 13px;
  border: 1.2px solid var(--border);
  box-shadow: 0 2px 18px 0 rgba(25,54,92,0.06);
  padding: 20px 18px;
  min-width: 204px;
  max-width: 260px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.team-member h3 {
  font-size: 1.13rem;
}

.text-section {
  margin-top: 0px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-study-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.case-study {
  border-radius: 12px;
  background: var(--surface-card);
  border: 1.2px solid var(--border);
  padding: 24px 20px;
  min-width: 230px;
  max-width: 360px;
  box-shadow: 0 2px 16px 0 rgba(25,54,92,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
}
.case-study:hover {
  box-shadow: 0 7px 28px 0 rgba(25,54,92,0.10);
  border: 1.5px solid var(--brand-secondary);
}

ul, ol {
  padding-left: 22px;
  margin: 10px 0 12px 0;
}
li {
  margin-bottom: 6px;
}

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

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
footer {
  background: var(--surface-footer);
  border-top: 1px solid var(--border);
  padding: 38px 0 18px;
  margin-top: 60px;
  font-size: var(--small);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px 40px;
}
.footer-logo {
  flex: 0 0 60px;
  margin-right: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--small);
  line-height: 1.6;
  color: var(--text-muted);
}
.footer-contact a {
  color: var(--brand-secondary);
  text-decoration: underline;
  font-weight: 500;
}
.footer-copy {
  width: 100%;
  text-align: right;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .98rem;
  font-family: 'Roboto', Georgia, serif;
}

/* ---------------------------------------------------
   Cookie Consent Banner & Modal
--------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--brand-secondary);
  box-shadow: 0 -4px 28px 0 rgba(25,54,92,0.10);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 22px 18px 18px 18px;
  z-index: 10050;
  font-size: 1.03rem;
  animation: fadeInSlideUp 0.48s both;
}
@keyframes fadeInSlideUp {
  0% { opacity:0;transform:translateY(24px); }
  100% { opacity:1;transform:translateY(0); }
}
.cookie-banner-message {
  max-width: 540px;
  color: var(--text-main);
  font-family: 'Roboto', Georgia, serif;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.01rem;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  margin: 0 2px;
  cursor: pointer;
  background: var(--brand-primary);
  color: #fff;
  transition: background 0.18s, color 0.16s;
  box-shadow: 0 1px 6px 0 rgba(25,54,92,0.09);
}
.cookie-banner button.cookie-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner button.reject {
  background: #f5f5f2;
  color: var(--brand-primary);
  border: 1px solid var(--border);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,54,92,0.23);
  z-index: 10090;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 56px rgba(25,54,92,0.16);
  padding: 38px 34px;
  min-width: 300px;
  max-width: 90vw;
  color: var(--text-main);
  font-family: 'Roboto', Georgia, serif;
  animation: modalIn 0.38s cubic-bezier(.52,1.95,.77,.62);
}
@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.93) translateY(12px); }
  80% { opacity: 1; transform: scale(1.04) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Georgia, serif;
  color: var(--brand-primary);
  font-size: 1.32rem;
  margin-bottom: 17px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category-label {
  font-weight: 500;
  font-family: 'Montserrat', Georgia, serif;
  color: var(--brand-primary);
  min-width: 120px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--brand-secondary);
  width: 22px; height: 22px;
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: var(--brand-secondary);
  filter: grayscale(1);
  pointer-events: none;
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.01rem;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  cursor: pointer;
  background: var(--brand-primary);
  color: #fff;
  transition: background 0.16s, color 0.11s;
}
.cookie-modal-actions button.cookie-cancel {
  background: #f5f5f2;
  color: var(--brand-primary);
  border: 1px solid var(--border);
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-modal-close {
  position: absolute;
  top: 9px; right: 14px;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--brand-primary);
  cursor: pointer;
  border-radius: 7px;
  padding: 4px 9px 2px 7px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: rgba(56,175,167,0.15);
}

/* ---------------------------------------------------
   Utility Classes
--------------------------------------------------- */
.section.bg-alt {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(25,54,92,0.10);
}
.text-center { text-align: center; }
.text-left   { text-align: left; }
.muted { color: var(--text-muted); }
.rounded { border-radius: 18px; }
.shadow { box-shadow: var(--shadow); }
.mb-4 { margin-bottom: 32px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }

/* ---------------------------------------------------
   Responsive: Mobile-first
--------------------------------------------------- */
@media (max-width: 1080px) {
  .container {
    max-width: 100%;
    padding: 0 13px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .industry-cards, .post-grid, .case-study-slider, .testimonial-slider, .testimonial-list, .team-bios, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .header .container { flex-direction: row; }
  .section { padding: 28px 8px; margin-bottom: 34px; }
  .testimonial-slider, .testimonial-list, .feature-grid, .industry-cards, .post-grid, .team-bios, .case-study-slider, .content-grid, .card-container {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section { flex-direction: column; gap: 17px; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.09rem; }
  .cta-button { padding: 10px 19px; font-size: .97rem; }
  .cookie-banner { flex-direction: column; gap: 17px; font-size: .97rem; }
  .cookie-banner-actions { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
  .footer-copy { text-align: left; }
}
@media (max-width: 510px) {
  .footer .container { padding-right: 0; }
  .section { padding: 15px 3px; }
  .testimonial-card, .feature, .industry-card, .post {
    padding: 15px 9px;
    min-width: 0;
    max-width: 100vw;
  }
  .case-study, .card {
    min-width: 0; max-width: 100vw; padding: 13px 6px 13px 10px;
  }
  .cookie-modal { padding: 18px 7vw; min-width: 0; }
}

/* ---------------------------------------------------
   Animations & Microinteractions
--------------------------------------------------- */
.cta-button, .cookie-banner button, .main-nav a, .footer-nav a, .feature, .industry-card, .testimonial-card, .post, .mobile-nav a {
  transition: 
    background 0.18s, 
    color 0.16s, 
    box-shadow 0.19s, 
    border 0.13s, 
    transform 0.18s, 
    text-decoration 0.11s;
}

input[type="checkbox"] {
  accent-color: var(--brand-secondary);
}

/* Ensure adequate spacing between all elements */
.section > .container, .content-wrapper > *:not(:last-child),
.card-container > *, .testimonial-slider > *, .feature-grid > *,
.content-grid > *, .post-grid > *, .case-study-slider > *, .team-bios > * {
  margin-bottom: 0 !important;
}

/* Prevent content overlap */
*:not(.cookie-modal):not(.mobile-menu) { z-index: 0; }

/* ---------------------------------------------------
   Accessibility focus rings
--------------------------------------------------- */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(56,175,167,0.14);
}

/* ---------------------------------------------------
   Custom Scrollbar (for modal/menu)
--------------------------------------------------- */
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 9px;
  background: #E3E0D7;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 9px;
}

/* Hide default nav on mobile, show menu icon */
@media (max-width: 980px) {
  .main-nav,
  header .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
