/* ----------------------------
   CSS RESET & BASE 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, menu, 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;
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { line-height: 1.6; min-height: 100vh; background: #F7F8FA; color: #213447; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

/* ------------------------------------
   VARIABLE FONT & COLOR DECLARATIONS
------------------------------------- */
:root {
  --primary: #213447;
  --secondary: #31A462;
  --accent: #F7F8FA;
  --text-dark: #213447;
  --text-light: #fff;
  --border-radius: 16px;
  --shadow: 0 4px 16px 0 rgba(33,52,71,0.08);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --transition: 0.23s cubic-bezier(.7,.4,.22,1.0);
}

/* ------------------
   TYPOGRAPHY SCALE
-------------------- */
h1,h2,h3,h4,h5,h6 {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.16;
}
h1 { font-size: 2.7rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.18rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1.06rem;
  margin-bottom: 14px;
  max-width: 700px;
}
ul, ol { padding-left: 24px; }
li { margin-bottom: 9px; }

strong, b { font-weight: bold; color: var(--primary); }
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: #178046;
  text-decoration: underline;
}

/* GEOMETRIC STRUCTURED FONT ENFORCEMENT */
body, input, textarea, button {
  font-family: var(--font-body);
}
h1, h2, h3, h4, h5, h6, .logo {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0.025em;
}

.logo img {
  height: 48px;
}

/* -------------------------------
   LAYOUT & CONTAINER STRUCTURE
-------------------------------- */
.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  padding-bottom: 18px;
}

/* FLEX-BASED STRUCTURED CARDS, GRIDS, ETC. */
.card-container, .feature-grid, .guides-tools, .insights-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 0 0;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.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 28px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-direction: column;
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 240px;
  max-width: 322px;
  flex: 1 1 260px;
}
.feature-item img {
  height: 48px;
  width: 48px;
}

/* INSIGHTS, GUIDES, ETC */
.guides-tools > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px 17px 20px 22px;
  min-width: 250px;
  flex: 1 1 260px;
}
.insights-articles {
  margin-bottom: 20px;
}
.article-summary {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  flex: 1 1 260px;
  min-width: 240px;
}

.market-reports {
  margin-top: 24px;
  margin-bottom: 16px;
}
.insight-categories {
  margin-bottom: 10px;
  font-size: 1.02rem;
  font-weight: 500;
  color: #555;
}

/* Card & Logo layouts */
.client-logos {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.client-logos img {
  height: 40px;
  width: auto;
  filter: grayscale(30%);
}
.awards {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  margin-top: 16px;
  font-weight: bold;
}
.awards img {
  height: 36px;
}

/* --------------------
   HEADER & NAVIGATION
---------------------- */
header {
  background: #fff;
  border-bottom: 1.5px solid #e3e7eb;
  box-shadow: 0 2px 8px rgba(33,52,71,0.03);
  z-index: 30;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1240px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-right: 30px;
  color: var(--primary);
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.06rem;
  margin-left: 22px;
}
.main-nav a {
  color: var(--primary);
  padding: 4px 10px 4px 10px;
  border-radius: 7px;
  transition: background var(--transition),color var(--transition);
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.cta-button {
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.09rem;
  padding: 10px 30px;
  border: none;
  border-radius: 40px 7px 40px 7px;
  box-shadow: 0 2px 4px 0 rgba(49,164,98,0.03);
  font-weight: 700;
  margin-left: 32px;
  transition: background var(--transition),box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  letter-spacing: 0.04em;
  display: inline-block;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #178046;
  transform: translateY(-1px) scale(1.045);
  box-shadow: 0 7px 28px 0 rgba(49,164,98,0.10);
}


/* -------------------------------
    MOBILE NAVIGATION - BURGER MENU
---------------------------------*/
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  display: none;
  margin-left: 28px;
  transition: color var(--transition);
  z-index: 41;
  line-height: 1;
  padding: 5px 8px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 320px;
  background: #fff;
  box-shadow: 3px 0 24px 0 rgba(33,52,71,0.13);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  padding: 32px 28px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1100;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 42px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-menu::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; bottom: 0; right: -132vw; left: 100%;
  background: rgba(33,52,71,0.22);
  z-index: -1;
}

/* Overlay on menu open (pseudo, handled by parent with .open class) */
body.mobile-menu-open {
  overflow: hidden;
}
@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .cta-button { margin-left: 0; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* Hide mobile nav/overlay by default */
.mobile-menu {
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
}

/* ---------------------
   MAIN / HERO / SECTIONS
-----------------------*/
main {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  width: 100%;
  background: none;
  border: none;
}
section .container {
  padding: 0 20px;
}
/* Block for address/contact summary in both footer & contact page */
.address-phone-email-block, .address-details, .phone-and-email, .business-hours {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 21px;
  margin-bottom: 20px;
  color: var(--primary);
}
.address-details img, .phone-and-email img, .business-hours img {
  vertical-align: middle;
  width: 22px;
  margin-right: 7px;
}

/* -------------
   FOOTER
--------------*/
footer {
  background: #fff;
  border-top: 1.5px solid #e3e7eb;
  padding: 24px 0;
  margin-top: 40px;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-menu {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 1.09rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.footer-menu a {
  color: var(--primary);
  opacity: 0.9;
  transition: color var(--transition),opacity var(--transition);
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-info {
  font-size: 0.92rem;
  color: #8592a2;
}

/* ---------------------
  HOVERS & MICROINTERACTIONS
------------------------ */
.feature-item, .article-summary, .guides-tools > div {
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover, .feature-item:focus,
.article-summary:hover, .article-summary:focus,
.guides-tools > div:hover, .guides-tools > div:focus {
  box-shadow: 0 10px 36px 0 rgba(49,164,98,0.08), 0 2px 8px 0 rgba(33,52,71,0.10);
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
}

.testimonial-card {
  box-shadow: 0 2px 16px 0 rgba(33,52,71,0.07);
  position: relative;
}

.testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 7px; height: 61%;
  background: var(--secondary);
  border-radius: 0 14px 14px 0;
  opacity: 0.18;
}

/* ---------------------
   COOKIE CONSENT BANNER
---------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: #213447;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -2px 16px 0 rgba(33,52,71,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  gap: 22px;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform 0.42s cubic-bezier(.58,.08,.45,.96), opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  padding: 8px 20px;
  border: none;
  border-radius: 16px 4px 16px 4px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 5px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #178046;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(49,164,98,0.11);
}
.cookie-banner .reject {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #fff;
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-banner .settings {
  background: #fff;
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* ------------
  COOKIE MODAL
-------------*/
.cookie-modal-overlay {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(33,52,71,0.44);
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .23s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #213447;
  border-radius: 16px;
  box-shadow: 0 12px 62px 0 rgba(33,52,71,0.11);
  padding: 36px 32px 30px 32px;
  max-width: 430px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal 0.45s cubic-bezier(.62,.03,.30,.82);
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: scale(.95) translateY(38px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal .essential {
  font-weight: 600;
}
.cookie-modal .category-desc {
  color: #6b7684;
  font-size: 0.97rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}
.cookie-modal-actions {
  display: flex;
  gap: 19px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  padding: 8px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 12px 5px 12px 5px;
  border: none;
  cursor: pointer;
  outline: none;
}
.cookie-modal-actions .save {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal-actions .save:hover {
  background: #178046;
}
.cookie-modal-actions .cancel {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-modal-actions .cancel:hover {
  background: var(--accent);
  border-color: var(--secondary);
}

/* -----------
  MISC GENERAL
------------*/
::-webkit-input-placeholder { color: #717c8a; }
::-moz-placeholder { color: #717c8a; }
:-ms-input-placeholder { color: #717c8a; }
::placeholder { color: #717c8a; }

img {
  max-width: 100%;
  display: block;
}
hr {
  border: none;
  height: 1px;
  background: #e3e7eb;
  margin: 32px 0;
}

/* Hide scrollbars on mobile menu, allow scroll */
.mobile-menu {
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ------------
  RESPONSIVE
-------------*/
@media (max-width: 991px) {
  .container {
    max-width: 99vw;
    padding: 0 14px;
  }
  .feature-grid, .card-container, .guides-tools, .insights-articles {
    gap: 18px;
  }
  .feature-item, .card, .article-summary, .guides-tools > div {
    min-width: 170px;
    flex: 1 1 240px;
    padding: 16px 13px;
  }
  .testimonial-card {
    padding: 17px 15px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.13rem; }
  .content-wrapper, .content-grid {
    max-width: 98vw;
    padding: 0;
  }
  .section, section {
    padding: 30px 0 0 0;
    margin-bottom: 35px;
  }
  .feature-grid, .card-container, .guides-tools, .insights-articles {
    flex-direction: column;
    gap: 13px;
  }
  .content-grid, .client-logos, .insights-articles {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .awards {
    flex-direction: column;
    gap: 8px;
  }
  .testimonial-card {
    padding: 16px 8px;
  }
}
@media (max-width: 540px) {
  header .container, main, footer .container {
    padding: 0 3vw;
  }
  .logo img {
    height: 38px;
  }
  .cookie-modal { padding: 18px 9vw 18px 9vw; }
  .mobile-menu { width: 90vw; min-width: unset; }
}

/* -----------
  ACCESSIBILITY
--------------*/
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --------------
  UTILITY CLASSES
---------------- */
.mt-4 { margin-top: 32px; }
.mb-3 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 15px; }

/* -----------------------------
  END: Investor Nexus CSS Styles
------------------------------ */
