/* =====================================================================
   CSS RESET & BASE NORMALIZATION (for consistency and minimalism)
   ===================================================================== */
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, caption, tbody, tfoot, thead, tr, th, td, section, 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: #19223A;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: #154266;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #43BCCD;
}
h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  color: #154266;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.12rem; margin-bottom: 10px; }

/* =====================================================================
   BRAND COLORS & TYPOGRAPHY (minimalist, per guidelines)
   ===================================================================== */
:root {
  --color-primary: #154266;
  --color-secondary: #43BCCD;
  --color-accent: #F4F7FB;
  --color-text: #19223A;
  --color-muted: #BAC4CE;
  --color-shadow: rgba(21, 66, 102, 0.06);
}

body {
  background: #fff;
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
}

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

/* Headings */
h1, .h1 { font-size: 2.25rem; font-family: 'Oswald', Arial, sans-serif; color: var(--color-primary); letter-spacing: -0.5px; margin-bottom: 24px; }
h2, .h2 { font-size: 1.5rem; font-family: 'Oswald', Arial, sans-serif; color: var(--color-primary); letter-spacing: -0.5px; margin-bottom: 20px; }
h3, .h3 { font-size: 1.12rem; font-family: 'Oswald', Arial, sans-serif; color: var(--color-primary); margin-bottom: 10px; }

p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

/* Small Text */
small, .privacy-statement {
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Tagline */
.tagline { color: var(--color-secondary); font-weight: 500; margin-bottom: 12px; font-size: 1.10rem; letter-spacing: 0.25px; }

/* =====================================================================
   LAYOUT STRUCTURE (All layouts use only FLEXBOX)
   ===================================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.feature-grid, .service-cards, .service-list, .team-profiles, .case-list, .blog-post-list, .resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container, .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 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 20px 24px;
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  max-width: 420px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(21,66,102,0.12);
}
.testimonial-author {
  color: var(--color-primary);
  font-size: 1rem;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}

.case-list > div, .blog-post-list > div, .resource-list > div, .team-profiles > div, .service-list > div, .feature-grid > div, .service-cards > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.case-list > div:hover, .blog-post-list > div:hover, .resource-list > div:hover, .service-cards > div:hover {
  box-shadow: 0 6px 24px rgba(21,66,102,0.13);
}

.feature-grid > div img, .service-cards > div img, .service-list > div img, .team-profiles > div img, .values-list img, .company-info img, .footer-contact img {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  filter: grayscale(20%) contrast(1.08);
  opacity: 0.96;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--color-text);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.expertise-highlights ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.expertise-highlights li {
  background: var(--color-accent);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.98rem;
  color: var(--color-primary);
}

ol.process-steps li {
  background: var(--color-accent);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 10px;
  font-size: 1rem;
}

ul, ol {
  margin-bottom: 16px;
}

blockquote {
  background: var(--color-accent);
  border-left: 4px solid var(--color-secondary);
  margin: 12px 0;
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--color-primary);
  font-style: italic;
}

/* =====================================================================
   MAIN NAVIGATION & MOBILE MENU
   ===================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #ECF1F5;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1240px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  padding: 8px 0;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.01rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-secondary);
}

/* Primary Button */
.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 30px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 10px var(--color-shadow);
  outline: none;
  text-align: center;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  box-shadow: 0 3px 16px rgba(67,188,205,0.16);
}
.download-btn {
  background: var(--color-secondary);
  color: #fff;
  padding: 7px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  transition: background 0.18s;
  font-family: 'Oswald', Arial, sans-serif;
  margin-top: 12px;
  cursor: pointer;
}
.download-btn:hover, .download-btn:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Hamburger button */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  display: none;
  cursor: pointer;
  margin-left: 12px;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-secondary);
}

/* Mobile Nav */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.6, 0.05, 0.28, 0.91);
  box-shadow: -3px 0 14px rgba(21,66,102,0.08);
  display: flex;
  flex-direction: column;
  padding-top: 44px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 32px 0 32px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: var(--color-primary);
  font-family: 'Oswald', Arial, sans-serif;
  padding: 12px 0;
  border-bottom: 1px solid #F3F3F6;
  transition: color 0.2s;
  font-weight: 620;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
  border-radius: 8px;
}

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

/* Hide mobile menu on desktop */
@media (min-width: 950px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================================================
   HERO, CTA & SPECIAL SECTIONS
   ===================================================================== */
.hero {
  background: var(--color-accent);
  border-radius: 0 0 28px 28px;
  min-height: 280px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 #ECF1F5;
}
.hero .container {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  justify-content: center;
  gap: 0;
  padding-top: 28px;
  padding-bottom: 24px;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.12rem;
  margin-bottom: 22px;
  color: #19223A;
}

/* CTA BANNER reuse hero style */
section .btn-primary {
  margin-top: 12px;
  min-width: 190px;
}

/* =====================================================================
   FORMS & INPUTS (see newsletter-form etc)
   ===================================================================== */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
.newsletter-form input[type="email"] {
  padding: 10px 16px;
  border: 1px solid #E2EBF2;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  outline: none;
  background: #fff;
  transition: border 0.2s;
  min-width: 220px;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--color-secondary);
}
.newsletter-form button {
  background: var(--color-secondary);
  border: none;
  border-radius: 22px;
  color: #fff;
  padding: 10px 24px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 8px;
}
.newsletter-form button:hover, .newsletter-form button:focus {
  background: var(--color-primary);
}
.privacy-statement {
  margin-top: 10px;
  color: var(--color-muted);
}

.category-filter, .resource-types-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px 0;
  font-size: 1rem;
}
.category-filter select, .resource-types-filter select {
  border: 1px solid #E2EBF2;
  background: #fff;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  outline: none;
  min-width: 120px;
  transition: border 0.18s;
}
.category-filter select:focus, .resource-types-filter select:focus {
  border-color: var(--color-secondary);
}

/* =====================================================================
   FOOTER & UTILITY NAV
   ===================================================================== */
footer {
  background: #f7fafd;
  border-top: 1px solid #ECF1F5;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 420;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--color-text);
}
.footer-logo img {
  width: 54px;
  height: auto;
  opacity: 0.94;
  margin-top: 8px;
}

/* =====================================================================
   COOKIE CONSENT BANNER & MODAL (fixed, minimal, with flexbox layout)
   ===================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ECF1F5;
  box-shadow: 0 -6px 20px rgba(21,66,102,0.08);
  z-index: 3000;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  animation: cookieFadeIn 0.44s cubic-bezier(0.18,0.6,0.32,1.37);
}
@keyframes cookieFadeIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  color: var(--color-text);
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: 'Oswald', Arial, sans-serif;
  padding: 8px 18px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 620;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.settings {
  background: #E4F6FA;
  color: var(--color-primary);
  border: 1px solid #C7DFE7;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(21,66,102,0.13);
  z-index: 3500;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookieFadeIn 0.4s cubic-bezier(0.18,0.6,0.32,1.37); 
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 30px 30px 30px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 16px 40px rgba(21,66,102,.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.65rem;
  position: absolute;
  right: 18px;
  top: 14px;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #EEF3F9;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category strong {
  font-family: 'Oswald',Arial,sans-serif;
  font-size: 1.07rem;
  color: var(--color-primary);
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 18px;
  background: #E2EBF2;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 1px;
  transition: left 0.19s;
}
.cookie-toggle:checked:before {
  left: 19px;
}

/* =====================================================================
   RESPONSIVE DESIGN - MOBILE FIRST (FLEX ONLY)
   ===================================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 930px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 700px;
  }
  .footer-logo {
    display: none;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  section { padding: 32px 0 0 0; margin-bottom: 48px; }
  .hero {
    min-height: 170px;
    border-radius: 0 0 16px 16px;
  }
  .hero h1 { font-size: 1.48rem; }
  .main-nav { display: none !important; }
  .card-container, .feature-grid, .service-cards, .service-list, .case-list, .team-profiles, .blog-post-list, .resource-list {
    flex-direction: column;
    gap: 20px;
  }
  .client-logos, .expertise-highlights ul, .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact {
    font-size: 0.95rem;
  }
  .content-wrapper {
    padding: 0 2px;
  }
  .footer-logo {
    display: none;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  header .container, footer .container {
    padding: 0 6px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 6px;
    align-items: flex-start;
    min-height: unset;
  }
  .hero .container {
    padding-top: 14px;
    padding-bottom: 10px;
  }
}

/* =====================================================================
   MISCELLANEOUS / ACCESSIBILITY / MICRO-INTERACTIONS
   ===================================================================== */
button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #8892A0; opacity: 1; }
::-moz-placeholder { color: #8892A0; opacity: 1; }
:-ms-input-placeholder { color: #8892A0; opacity: 1; }
::placeholder { color: #8892A0; opacity: 1; }

/* Remove spinner for inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Disabled State Styles */
input[disabled], button[disabled] {
  background: #F5F5F7;
  color: #B3C0D7;
  opacity: 0.75;
  cursor: not-allowed;
}

/* Card/box shadows */
.card, .card-container > div, .case-list > div, .service-cards > div, .testimonial-card {
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: 14px;
}

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

/* HERO Heading in confirmation page */
.thankyou-main {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* General transitions for hover micro-interactions */
a, .btn-primary, .download-btn, .main-nav a, .mobile-nav a, button, .category-filter select, .resource-types-filter select {
  transition: background 0.2s, color 0.20s, box-shadow 0.18s, border-color 0.18s;
}

/* CTA Section special padding on mobile */
@media (max-width: 480px) {
  .section {
    padding: 22px 6px;
  }
  section {
    padding: 18px 0 0 0;
  }
}

/* Ensure input and button spacing does not stack/jam on smallest screens */
@media (max-width: 380px) {
  .newsletter-form {
    gap: 5px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Minimal style HR, in case used: */
hr {
  border: none;
  border-top: 1px solid #ECF1F5;
  margin: 24px 0;
}

/* Helper utility: hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
