/* =======================
   CSS RESET & BASE NORMALIZATION
   ======================= */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { background: #fff; color: #17181C; font-family: 'Open Sans', Arial, sans-serif; }
article, aside, footer, header, nav, section, main { display: block; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; border-style: none; }
button { border: none; background: none; font: inherit; cursor: pointer; }
:focus { outline: 2px solid #21304A; outline-offset: 1px; }

/* =======================
  BRANDING & MONOCHROME VARIABLES
   ======================= */
:root {
  --color-primary: #21304A;
  --color-secondary: #E6B006;
  --color-accent: #F4F4F8;
  --color-black: #17181C;
  --color-gray-dark: #24262B;
  --color-gray: #7C7E87;
  --color-gray-light: #F4F4F8;
  --color-white: #fff;
  --shadow-elevate: 0 3px 18px 0 rgba(33, 48, 74, 0.11);
  --shadow-subtle: 0 1.5px 7px 0 rgba(33, 48, 74, 0.07);
  --radius-card: 12px;
  --radius-btn: 6px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* =======================
  TYPOGRAPHY SYSTEM
   ======================= */
h1, .hero-section h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.22;
  margin-bottom: 18px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  color: var(--color-gray-dark);
  line-height: 1.65;
  margin-bottom: 20px;
}
strong { color: var(--color-primary); font-weight: 600; }

ul, ol {
  margin: 0 0 24px 24px;
  padding-left: 14px;
}
ul li,
ol li {
  font-size: 1rem;
  color: var(--color-gray-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.section h2, .section h1, section h2, section h1 {
  margin-bottom: 18px;
}

/* ===============
   LAYOUT CONTAINERS
   =============== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-card);
}

/* FLEXPATTERNS BY MANDATE */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-elevate);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 7px 28px 0 rgba(33,48,74,0.16);
  transform: translateY(-2px) scale(1.015);
}
.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;
  background: var(--color-accent);
  color: var(--color-black);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card p {
  color: var(--color-black); font-size: 1.1rem; margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem; font-weight: 500;
  color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============
   HEADER & NAVIGATION
   ============= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid var(--color-gray-light);
  z-index: 1009;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 6px 0;
  margin-right: 26px;
}
.header .container, .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--color-black);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0 6px 0;
  border-radius: 4px;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:not(.button):hover {
  color: var(--color-secondary);
}
/* Primary CTA Button */
.button.primary {
  background: var(--color-black);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1.5px 7px 0 rgba(33,48,74,0.07);
  border: 2px solid transparent;
  margin-left: 10px;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-secondary);
  color: var(--color-black);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px 0 rgba(33,48,74,0.15);
}

.button.secondary {
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-black);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.button.secondary:hover, .button.secondary:focus {
  background: var(--color-black);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-black);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  border: none;
  z-index: 1011;
  box-shadow: 0 2px 8px 0 rgba(33,48,74,0.11);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-black);
  color: var(--color-secondary);
}

/* =========================
   MOBILE MENU (overlay nav)
   ========================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23, 24, 28, 0.96);
  z-index: 2010;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.31s cubic-bezier(.4,0,.2,1);
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--color-white);
  font-size: 2.3rem;
  background: none;
  padding: 14px 22px 14px 0;
  border: none;
  align-self: flex-end;
  margin: 4px 10px 0 0;
  transition: color var(--transition);
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  width: 100%;
  margin: 35px 28px 0 0;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.19rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 0 6px 0;
  transition: color var(--transition);
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

/* =============
   HERO SECTIONS
   ============= */
.hero-section {
  background: linear-gradient(to top, var(--color-gray-light) 82%, #fff 100%);
  padding: 44px 0 50px;
  min-height: 325px;
  margin-bottom: 32px;
}
.hero-section .container, .hero-section .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 22px;
}

.hero-section h1 {
  color: var(--color-primary);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(33,48,74,0.04);
}
.hero-section p {
  color: var(--color-black);
  font-size: 1.13rem;
  font-weight: 400;
}

.cta-section, .thank-you-section {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
.cta-section h2, .thank-you-section h1 {
  color: var(--color-black);
  margin-bottom: 16px;
}

/* =============
   FEATURE CARDS, TEAM, BRAND LOGOS
   ============= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid .feature {
  background: var(--color-white);
  box-shadow: var(--shadow-elevate);
  border-radius: var(--radius-card);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 230px;
  max-width: 295px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid .feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  filter: grayscale(1) contrast(4);
}
.features-grid .feature:hover {
  box-shadow: 0 7px 24px rgba(33,48,74,0.17);
  transform: translateY(-3px) scale(1.015);
}

.team-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.team-member {
  flex: 1 1 250px;
  min-width: 200px;
  background: var(--color-gray-light);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 14px;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}
.brand-logos img {
  width: 74px; height: 74px;
  filter: grayscale(1) brightness(0.82) contrast(1.5);
  opacity: 0.78;
  transition: filter var(--transition), opacity var(--transition);
}
.brand-logos img:hover {
  opacity: 1; filter: grayscale(0) contrast(1.5);
}

/* =============
   BLOG ARTICLES
   ============= */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-list article {
  background: var(--color-gray-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 23px 18px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-list article:hover {
  box-shadow: 0 4px 16px rgba(33, 48, 74, 0.11);
  transform: translateY(-1.5px) scale(1.008);
}
.post-list h3 {
  color: var(--color-primary);
}
.post-list span {
  color: var(--color-gray);
  font-size: .97rem;
  font-style: italic;
}
.featured-post {
  border-left: 3.5px solid var(--color-secondary);
  background: var(--color-white);
  padding: 22px 18px;
  margin-top: 18px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
}
.featured-post h3 { color: var(--color-black); font-weight: 600; margin-bottom: 8px; }

/* =============
   CONTACT & FAQ
   ============= */
.contact-details, .map-location {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 22px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-black);
}

.faq-list {
  margin-top: 6px;
  gap: 15px;
}
.faq-list li {
  margin-bottom: 18px;
  background: var(--color-gray-light);
  border-radius: var(--radius-card);
  padding: 16px 12px;
  box-shadow: var(--shadow-subtle);
  color: var(--color-black);
}
.faq-list strong { color: var(--color-primary); }

/* =============
   FOOTER
   ============= */
footer {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 44px;
  padding-top: 36px;
  padding-bottom: 18px;
}
footer .container {
  flex-direction: column;
  gap: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--color-gray-light);
  font-size: .98rem;
  padding: 6px 0;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-secondary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .98rem;
  color: var(--color-accent);
}
.footer-contact img {
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.footer-social a {
  display: inline-block;
  background: var(--color-accent);
  border-radius: 50%;
  padding: 8px;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--color-secondary); }
.footer-social img { width: 22px; height: 22px; }
.footer-copyright {
  color: var(--color-gray);
  font-size: .9rem;
  text-align: left;
}

/* =============
   COOKIE CONSENT BANNER
   ============= */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-black);
  color: var(--color-white);
  z-index: 3500;
  padding: 30px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -7px 34px 0 rgba(33,48,74,0.13);
  font-size: 1rem;
  animation: slideUp .55s cubic-bezier(.4,0,.2,1);
  gap: 14px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner button,
.cookie-banner .button-cookie {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  margin: 0 2.5px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-banner .cookie-accept {
  background: var(--color-secondary);
  color: var(--color-black);
}
.cookie-banner .cookie-accept:hover { background: var(--color-white); color: var(--color-black); }
.cookie-banner .cookie-reject {
  background: transparent;
  color: var(--color-gray-light);
  border: 1.5px solid var(--color-gray);
}
.cookie-banner .cookie-reject:hover { background: var(--color-gray); color: var(--color-black); }
.cookie-banner .cookie-settings {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .cookie-settings:hover { background: var(--color-secondary); color: var(--color-black); border: 1.5px solid var(--color-secondary); }

@keyframes slideUp {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}

/* =======================
   COOKIE PREFERENCES MODAL
   ======================= */
#cookie-modal, .cookie-modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,24,28,0.83);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-black);
  max-width: 355px;
  padding: 36px 28px 32px 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevate);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: growIn .38s cubic-bezier(.4,0,.2,1);
}
@keyframes growIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 13px;
  color: var(--color-gray);
  font-size: 2.1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover { color: var(--color-secondary); }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px; height: 18px;
}
.cookie-category .category-label strong { color: var(--color-primary); margin-right: 5px; }
.cookie-category.essential strong { color: var(--color-gray); }
.cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-actions .button {
  min-width: 104px;
}

/* =============
   UTILITIES / MISC
   ============= */
img, svg { max-width: 100%; height: auto; display: inline-block; }
[hidden] { display: none !important; }
.button, .button-cookie {
  cursor: pointer;
}
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* =============
   MONOCHROME & MICROINTERACTIONS
   ============= */
.card, .features-grid .feature, .team-member, .faq-list li, .content-wrapper, .post-list article, .featured-post {
  border: 1.6px solid rgba(34,37,45,0.055);
  background: var(--color-white);
}

a, .button, .footer-social a, .mobile-nav a {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border var(--transition), transform var(--transition);
}
.button:active, .button-cookie:active {
  transform: scale(0.97);
}

/* =============
   RESPONSIVE (MOBILE-FIRST)
   ============= */
@media (max-width: 1023px) {
  .main-nav {
    gap: 14px;
  }
  .features-grid, .team-grid, .content-grid {
    gap: 16px;
  }
  .brand-logos {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw; padding: 0 8px;
  }
  .section, .cta-section, .thank-you-section {
    padding: 26px 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .features-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .team-grid {
    flex-direction: column;
    gap: 13px;
  }
  .brand-logos {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-section {
    padding: 30px 0 24px;
    min-height: unset;
  }
  .testimonial-card, .card, .features-grid .feature, .post-list article, .faq-list li, .team-member {
    padding: 18px 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 3px;
    max-width: 99vw;
  }
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  p, ul li, ol li { font-size: .98rem; }
  .section {
    padding: 18px 2px;
    margin-bottom: 36px;
  }
  .cta-section, .thank-you-section { padding: 18px 4px; margin-bottom: 28px; }
  .footer-nav { gap: 10px; flex-direction: column; }
}

/* =============
   Z-INDEX LAYERING (NO OVERLAPS!)
   ============= */
header { z-index: 1009; position: relative; }
footer { z-index: 1006; position: relative; }
.mobile-menu { z-index: 2010; }
#cookie-banner, .cookie-banner { z-index: 3500; }
#cookie-modal, .cookie-modal { z-index: 4000; }

/* =============
   CLEARING FLOATS, APPEARANCE
   ============= */
.clearfix:before,
.clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }

/* =============
   ACCESSIBILITY
   ============= */
a:focus-visible, .button:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =============
   FORMS (minimal, for newsletter/contact input fields)
   ============= */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  border: 1.5px solid var(--color-gray);
  border-radius: 5px;
  padding: 10px 14px;
  margin-bottom: 18px;
  width: 100%;
  background: var(--color-accent);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}
label { font-family: var(--font-display); font-size: .97rem; color: var(--color-primary); margin-bottom: 6px; display: block; }

/* =============
   THANK YOU SECTION
   ============= */
.thank-you-section ul {
  margin: 18px 0 20px 23px;
  padding-left: 10px;
  text-align: left;
}
.thank-you-section a.button {
  margin-top: 22px;
}

