/* ============================
   Radiant Influence – style.css
   Geometric Structured Style
   Brand Colors: Primary #21243d, Secondary #5296d5, Accent #ffe156
   Brand Fonts: Montserrat (display), Open Sans (body)
============================= */

/* --- CSS RESET / 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,
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 {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #f9f9fb;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #21243d;
  background: #f9f9fb;
  min-height: 100vh;
  line-height: 1.58;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #5296d5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #21243d;
  text-decoration: underline;
}

/* =============================
   TYPOGRAPHY
============================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, small {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #30334e;
  font-weight: 400;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.873rem;
  color: #595d8e;
}

ul, ol {
  margin: 0 0 24px 22px;
  padding: 0;
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===================
   CONTAINERS & LAYOUT
=================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  position: relative;
  box-shadow: 0 4px 24px rgba(33,36,61,0.07);
  transition: box-shadow 0.18s;
}
@media (max-width: 992px) {
  .section {
    padding: 32px 10px;
    border-radius: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 18px 4px;
    margin-bottom: 32px;
    border-radius: 13px;
  }
  .container {
    padding: 0 8px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 640px;
}

.card-container,
.feature-grid,
.testimonial-grid,
.case-study-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.feature-grid {
  gap: 28px 32px;
}

@media (max-width: 1024px) {
  .feature-grid, .testimonial-grid, .card-container, .card-grid, .content-grid, .case-study-grid {
    gap: 18px 14px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .testimonial-grid, .card-container, .card-grid, .content-grid, .case-study-grid {
    flex-direction: column;
    gap: 20px 0;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===================
   NAVIGATION & HEADER
==================== */
header {
  background: #fff;
  border-bottom: 2px solid #dae2f1;
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 130;
}
header > a img {
  height: 40px;
  margin-right: 32px;
}
header nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #21243d;
  padding: 10px 8px 8px 8px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  font-weight: 600;
  letter-spacing: 0.025em;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: #ffe15688;
  color: #5296d5;
}
header .cta.primary {
  margin-left: 28px;
  margin-right: 8px;
  min-width: 120px;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #21243d;
  padding: 9px 14px;
  display: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #dae2f1;
}
@media (max-width: 1024px) {
  header nav {
    gap: 18px;
  }
  header > a img {
    height: 34px;
    margin-right: 16px;
  }
}
@media (max-width: 820px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================
   MOBILE MENU STYLES
=================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #21243ddc;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.69,.03,.43,.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: #21243d;
  font-size: 2.25rem;
  border: none;
  margin: 28px 28px 0 0;
  border-radius: 32px;
  padding: 2px 20px 4px 20px;
  cursor: pointer;
  transition: background 0.16s, color 0.19s;
  box-shadow: 0 2px 12px rgba(33,36,61,0.10);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #ffe156;
  color: #5296d5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 24px 36px 0 36px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #fff;
  padding: 12px 0 10px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.2s, color 0.17s;
  font-weight: 700;
  letter-spacing: 0.036em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #ffe156;
  color: #21243d;
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===================
   BUTTONS & CTA
=================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 20px;
  min-width: 112px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(33,36,61,0.09);
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
}
.cta.primary {
  background: #5296d5;
  color: #fff;
  border: 2px solid #5296d5;
}
.cta.primary:hover, .cta.primary:focus {
  background: #21243d;
  color: #ffe156;
  border-color: #21243d;
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary {
  background: #ffe156;
  color: #21243d;
  border: 2px solid #ffe156;
  margin-top: 9px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #fff;
  color: #5296d5;
  border-color: #5296d5;
  transform: translateY(-2px) scale(1.03);
}

button {
  font-family: inherit;
  font-size: inherit;
}

/* ===================
   CARDS & FEATURE ITEMS
=================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(33,36,61,0.09);
  padding: 30px 26px 28px 26px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px rgba(82,150,213,0.16);
  transform: translateY(-3px) scale(1.01);
}

.feature-item {
  background: #f6faff;
  border: 2.2px solid #dae2f1;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 20px 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  transition: box-shadow 0.17s, border 0.21s, transform 0.10s;
  position: relative;
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
}
.feature-item h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #21243d;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feature-item p {
  color: #30334e;
  font-size: 1rem;
}
.feature-item:hover, .feature-item:focus-within {
  border-color: #5296d5;
  box-shadow: 0 4px 22px rgba(82,150,213,0.18);
  transform: scale(1.025) translateY(-2px);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 100%;
}

/* ===============
   TESTIMONIALS & CASE STUDOY CARDS
=============== */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #ffe156;
  border-radius: 21px;
  box-shadow: 0 2px 16px rgba(82,150,213,0.14);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 230px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  color: #21243d;
  position: relative;
  border: 2.2px solid #21243d22;
  transition: box-shadow 0.18s, transform 0.13s, border 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border: 2.2px solid #5296d5;
  box-shadow: 0 6px 36px rgba(33,36,61,0.13);
  transform: scale(1.03) translateY(-2px);
}
.testimonial-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.09rem;
  color: #21243d;
  margin-bottom: 8px;
  line-height: 1.6;
}
.testimonial-meta {
  font-size: 1rem;
  color: #21243d;
  opacity: 0.72;
  font-family: 'Montserrat', Arial, sans-serif;
}

.case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(33,36,61,0.09);
  padding: 26px;
  margin-bottom: 18px;
  flex: 1 1 310px;
  border: 2.2px solid #dae2f1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: box-shadow 0.19s, border 0.19s, transform 0.15s;
}
.case-study-card:hover, .case-study-card:focus-within {
  border-color: #ffe156;
  box-shadow: 0 6px 26px rgba(82,150,213,0.14);
  transform: scale(1.017);
}

@media (max-width: 992px) {
  .feature-item, .testimonial-card, .case-study-card {
    min-width: 180px;
  }
  .feature-item, .testimonial-card, .card, .case-study-card {
    flex: 1 1 220px;
    padding: 20px 12px;
  }
}
@media (max-width: 680px) {
  .feature-item, .card, .case-study-card, .testimonial-card {
    padding: 14px 7px;
    border-radius: 10px;
    font-size: 0.96rem;
    min-width: 120px;
  }
  .feature-item h3, .testimonial-meta, .card h3, .case-study-card h3 {
    font-size: 1rem;
  }
}

/* ===============
   INSIGHTS & RESOURCES
=============== */
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.insight-row {
  padding: 22px 18px;
  background: #f6faff;
  border-radius: 13px;
  border: 2px solid #dae2f1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s, border 0.17s;
}
.insight-row:hover {
  border: 2px solid #5296d5;
  box-shadow: 0 2px 12px rgba(82,150,213,0.13);
}

.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.resource-item {
  background: #fff;
  border: 2px solid #ffe15699;
  border-radius: 21px;
  flex: 1 1 260px;
  min-width: 200px;
  padding: 22px 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  transition: box-shadow 0.13s, border 0.18s;
}
.resource-item a {
  margin-top: 8px;
  color: #5296d5;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  transition: color 0.14s;
}
.resource-item a:hover, .resource-item a:focus {
  color: #21243d;
}
.resource-item:hover {
  border: 2px solid #21243d;
  box-shadow: 0 4px 20px rgba(33,36,61,0.11);
}

/* ===============
   CONTACT DETAILS
=============== */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.contact-details img {
  width: 22px;
  margin-right: 2px;
}

/* ===============
   FOOTER
=============== */
footer {
  background: #fff;
  border-top: 2px solid #dae2f1;
  padding: 35px 0 21px 0;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer > .container > a img {
  height: 32px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  font-size: 1rem;
  color: #21243d;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.021em;
  padding: 4px 7px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #ffe156;
  color: #5296d5;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.98rem;
  color: #30334e;
  font-family: 'Open Sans', sans-serif;
}
.footer-contact img {
  margin-bottom: -3px;
  margin-right: 3px;
  width: 18px;
  vertical-align: middle;
}
@media (max-width: 992px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===================
   COOKIE CONSENT BANNER
=================== */
.cookie-banner {
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #21243dd2;
  color: #fff;
  padding: 24px 10px 20px 10px;
  box-shadow: 0 -4px 32px rgba(33,36,61,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookieFadeIn 0.38s cubic-bezier(.22,.68,.38,1.16);
  font-size: 1.08rem;
}
@keyframes cookieFadeIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 5px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 25px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.19s, color 0.18s;
  box-shadow: 0 2px 12px rgba(33,36,61,0.11);
}
.cookie-banner .cookie-accept {
  background: #ffe156;
  color: #21243d;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #5296d5;
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #dae2f1;
  color: #21243d;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #21243d;
  color: #ffe156;
}
.cookie-banner .cookie-settings {
  background: #5296d5;
  color: #fff;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #ffe156;
  color: #21243d;
}

/* === Cookie Preferences Modal === */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,36,61,0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn 0.24s cubic-bezier(.22,.68,.38,1.16);
}
.cookie-modal {
  background: #fff;
  color: #21243d;
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(82,150,213,0.21);
  min-width: 310px;
  max-width: 96vw;
  padding: 36px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.55rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6faff;
  border-radius: 13px;
  padding: 12px 17px;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #5296d5;
}
.cookie-category .cookie-essential {
  opacity: 0.54;
  font-weight: 600;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  border: none;
  background: none;
  color: #21243d;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #ffe15644;
}
@media (max-width: 680px) {
  .cookie-modal {
    padding: 20px 9px 12px 12px;
    min-width: 140px;
  }
}

/* ===================
   RESPONSIVE BREAKPOINTS
=================== */
@media (max-width: 1240px) {
  .container { max-width: 100%; }
}
@media (max-width: 820px) {
  header, footer { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 680px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .feature-item, .testimonial-card, .case-study-card, .resource-item {
    min-width: 120px;
    padding: 12px 4px;
    border-radius: 10px;
  }
  .section { padding: 12px 2px; }
}

/* ===================
   GEOMETRIC DECORATIVE ELEMENTS
=================== */
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -25px; left: -25px;
  width: 80px; height: 80px;
  background: #ffe15622;
  border-radius: 21px 0 28px 0;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: "";
  display: block;
  position: absolute;
  right: -33px; bottom: -33px;
  width: 58px; height: 58px;
  background: #5296d511;
  border-radius: 0 28px 18px 23px;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 780px) {
  .section:before, .section:after {
    display: none;
  }
}

/* ===================
   MISC. & ACCESSIBILITY
=================== */
:focus {
  outline: 2.5px solid #ffe156;
  outline-offset: 2px;
  z-index: 10;
}
[tabindex="0"]:focus {
  outline: 3px solid #5296d5;
}

::-webkit-input-placeholder { color:#929bb0; }
::-moz-placeholder { color:#929bb0; }
:-ms-input-placeholder { color:#929bb0; }
::placeholder { color:#929bb0; }

/* ===================
   PRINT STYLES
=================== */
@media print {
  header, nav, footer, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  body { color: #21243d; }
}
