/* ========================
   CSS RESET & BASE STYLES 
======================== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #F7F8FA;
  color: #1B263B;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* =========================
   BRANDING VARIABLES
========================= */
:root {
  --primary: #1B263B;
  --secondary: #415A77;
  --accent: #F2A541;
  --light: #F7F8FA;
  --mid: #E1E5ED;
  --white: #fff;
  --shadow: rgba(65, 90, 119, 0.10);
  --radius: 14px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px;}
h2 {font-size: 2rem; margin-bottom: 16px;}
h3 {font-size: 1.25rem;}
p, li, address, input, label, blockquote {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
h1 strong, h2 strong, h3 strong { color: var(--accent); }
blockquote {
  font-style: italic;
  font-size: 1.1rem;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--primary);
  margin-bottom: 18px;
}

/* =========================
   FLEXBOX CONTAINER PATTERNS
========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px rgba(65,90,119,0.16);
}
.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(--light);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 14px var(--shadow);
  flex: 1 1 350px;
  min-width: 260px;
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0;
}
.testimonial-meta {
  color: var(--secondary);
  font-size: 0.98rem;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px var(--shadow);
  padding: 22px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
  max-width: 340px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 3px 18px rgba(65,90,119,0.14);
  transform: translateY(-3px) scale(1.02);
}

/* =========================
   HERO SECTIONS
========================= */
.hero {
  background: linear-gradient(98deg, var(--primary) 60%, var(--secondary) 100%);
  color: var(--white);
  padding: 60px 0 56px 0;
  margin-bottom: 40px;
}
.hero h1, .hero h2, .hero p {
  color: var(--white);
}
.hero .cta-btn {
  background: var(--accent);
  color: #191919;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 36px 0;
    text-align: left;
  }
  .hero .container,
  .hero .content-wrapper {
    padding-left: 0; padding-right: 0;
  }
}

/* ================
   NAVIGATION
================ */
header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 20;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px 0;
}
.main-nav a img {
  width: 158px;
  height: auto;
  margin-right: 16px;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.main-nav ul li a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 7px 0px;
  position: relative;
  transition: color 0.2s;
}
.main-nav ul li a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav ul li a:hover:after,
.main-nav ul li a:focus:after {
  width: 80%;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: var(--accent);
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 11px 32px;
  border-radius: 32px;
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  margin-left: 18px;
  margin-top: 0;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD67A;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(242,165,65,.18);
}

/* ===============
   MOBILE NAVIGATION
================ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 22px;
  top: 21px;
  z-index: 33;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 2px 12px #1B263B15;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.74,0,.23,1);
  will-change: transform;
  padding: 0 22px;
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin: 28px 0 16px 0;
  align-self: flex-end;
  cursor: pointer;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.25s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--mid);
  transition: color 0.2s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: #f8f5f2;
}

@media (max-width: 1027px) {
  .main-nav ul {
    gap: 14px;
  }
  .cta-btn {
    padding: 10px 19px;
    margin-left: 10px;
  }
}

@media (max-width: 900px) {
  .main-nav ul {
    gap: 8px;
  }
}

@media (max-width: 860px) {
  .main-nav ul {display: none;}
  .cta-btn {display: none;}
  .mobile-menu-toggle {display: flex;}
}
@media (min-width: 861px) {
  .mobile-menu {display: none !important;}
  .mobile-menu-toggle {display: none;}
}

/* =========================
   FEATURES/GRID LAYOUTS
========================= */
.features {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 38px;
  padding: 50px 0 39px 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
}
.services {
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 34px;
}
.services ul {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.services .cta-btn {
  margin-top: 10px;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 34px;
  padding-top: 43px;
  padding-bottom: 36px;
}
.testimonials .testimonial-card:not(:last-child) {
  margin-bottom: 32px;
}

/* =========================
   CALLS TO ACTION
========================= */
.cta {
  background: linear-gradient(105deg, #FFD67A 20%, var(--accent) 88%);
  padding: 38px 0 40px 0;
  border-radius: var(--radius);
  margin-bottom: 35px;
  box-shadow: 0 2px 16px var(--shadow);
  color: var(--primary);
}
.cta .cta-btn {
  background: var(--primary);
  color: var(--accent);
  margin-top: 12px;
  margin-left: 0;
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* =========================
   BLOG SEARCH
========================= */
.blog-list input[type="search"] {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--mid);
  font-size: 1rem;
  margin-bottom: 18px;
  background: #FBFCFE;
  transition: border 0.2s;
}
.blog-list input[type="search"]:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
.blog-list ul {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-list li a {
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.blog-list li a:hover, .blog-list li a:focus {
  color: var(--accent);
}

/* =========================
   CASE STUDY GRID
========================= */
.stories-grid .case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 30px;
}
.case-study-tile {
  flex: 1 1 315px;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  border-radius: var(--radius);
  padding: 23px 21px 18px 21px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.case-study-tile:hover, .case-study-tile:focus-within {
  box-shadow: 0 4px 24px rgba(241,165,65,0.09);
  transform: scale(1.025) translateY(-2px);
}
.case-study-tile span {
  font-size: 0.99rem;
  font-style: italic;
  color: var(--secondary);
}
.impact-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 5px;
}
.impact-highlights li {
  background: #FAF7F2;
  color: var(--primary);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
}

/* =========================
   TOOLS & RESOURCE GRID
========================= */
.tools-grid ul, .resources-list ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.tools-grid li,
.resources-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light);
  border-radius: 8px;
  padding: 13px 20px;
  color: var(--primary);
  font-weight: 500;
}

/* =========================
   TEXT SECTION GENERAL
========================= */
.text-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 1px 6px var(--shadow);
  margin-bottom: 38px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--primary);
  color: #e0e4ef;
  padding: 46px 0 24px 0;
  box-shadow: 0 -2px 18px #1B263B17;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ffd67a;
}
.footer-info {
  text-align: center;
  font-size: 0.98rem;
  color: #e0e4ef;
}
.footer-info address {
  font-style: normal;
  color: var(--accent);
  margin-top: 7px;
}

/* =========================
   CONTACT & ICON LISTS
========================= */
.contact-form-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.stay-in-touch a img {
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border-radius: 8px;
  background: #e1e5ed;
  transition: background 0.2s, box-shadow 0.2s;
}
.stay-in-touch a img:hover,
.stay-in-touch a img:focus {
  background: var(--accent);
  box-shadow: 0 2px 8px #F2A54140;
}

/* =========================
   POLICY CONTENT
========================= */
.policy-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 33px 26px 36px 26px;
  box-shadow: 0 1px 6px var(--shadow);
}
.policy-content ul {
  margin: 15px 0 15px 16px;
}
.policy-content ul li {
  list-style: disc;
  margin-bottom: 7px;
  color: var(--secondary);
}

/* =========================
   COOKIE BANNER & MODAL
========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 20000;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 22px 20px;
  box-shadow: 0 0px 16px #1B263B10;
  border-radius: 12px 12px 0 0;
  transition: transform 0.36s cubic-bezier(.7,0,.3,1), opacity 0.23s;
  opacity: 1;
  transform: translateY(0);
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  flex: 1;
  color: #fff;
  line-height: 1.5;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 9px 22px;
  margin: 0;
  transition: background 0.18s, color 0.19s, box-shadow 0.18s;
  box-shadow: 0 1px 4px var(--shadow);
  cursor: pointer;
  background: var(--accent);
  color: var(--primary);
  border: none;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFD67A;
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(27,38,59,0.55);
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  border-radius: 14px;
  max-width: 360px;
  padding: 28px 26px 23px 26px;
  box-shadow: 0 6px 32px #1B263B25;
  z-index: 31000;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--mid);
  font-size: 1rem;
}
.cookie-modal .cookie-category:last-child{
  border-bottom: 0;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e2eaf4;
  border-radius: 22px;
  position: relative;
  transition: background 0.21s;
  outline: none;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--accent);
}
.cookie-modal .cookie-toggle::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 2px; top: 2px;
  transition: transform 0.21s;
}
.cookie-modal .cookie-toggle:checked::-webkit-slider-thumb {
  background: var(--accent);
  transform: translateX(16px);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--accent);
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
.cookie-modal .cookie-actions button {
  font-size: 1rem;
  padding: 10px 22px;
}

/* =========================
   UTILITY / GENERAL
========================= */
.show {
  display: block !important;
  opacity: 1 !important;
}
.hide {
  display: none !important;
  opacity: 0 !important;
}
.flex {
  display: flex;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */
@media (max-width: 1080px) {
  .container {max-width: 990px;}
}
@media (max-width: 900px) {
  .container {max-width: 780px;}
  .feature-grid,
  .stories-grid .case-studies {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 5px;
    padding-right: 5px;
  }
  .content-grid, .feature-grid,
  .stories-grid .case-studies, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section, .services, .features, .testimonials, .cta, .policy-content, .text-section {
    padding: 24px 7px 28px 7px;
    margin-bottom: 30px;
    border-radius: 9px;
  }
  .case-study-tile {
    max-width: 100%;
    padding: 15px 7px 13px 10px;
  }
  .footer-nav, .impact-highlights ul {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

@media (max-width: 525px) {
  .hero h1, .hero h2, h1, h2 {font-size: 1.45rem;}
  h3 {font-size: 1rem;}
  .cookie-modal {max-width: 98vw; padding: 19px 5px 12px 11px;}
  .hero, .cta {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

/* ===============
   ANIMATIONS/MICRO-INTERACTIONS
================ */
.card, .feature-item, .case-study-tile, .testimonial-card {
  transition: box-shadow .17s, transform .17s;
}
.cta-btn, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.17s, color 0.18s, box-shadow 0.16s, transform 0.18s;
}
.cta-btn:active, .cookie-banner button:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(.98);
}
.mobile-menu.open, .cookie-banner, .cookie-modal-overlay {
  animation: fadeInMenu .40s cubic-bezier(.7,0,.3,1);
}
@keyframes fadeInMenu {
  0% {opacity:0;transform: translateY(40px) scale(.96);}
  100% {opacity:1;transform: translateY(0) scale(1);}
}

/* INDICATE FOCUSED INTERACTIVE ELEMENTS */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* =========================
   END OF CSS
========================= */
