/* ==================================================
   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, 
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 {
  font-size: 16px;
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  background: #F7F8FB;
  color: #23264D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.56;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E2C465;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* =============================
   BRAND COLORS & FONTS
============================= */
:root {
  --color-primary: #23264D;
  --color-secondary: #48A9E6;
  --color-accent: #FDFCFB;
  --color-gold: #E2C465;
  --color-grey: #F7F8FB;
  --color-bg: #F7F8FB;
  --color-dark: #1C1B28;
  --color-footer-dark: #22243D;
  --color-shadow: rgba(35,38,77,0.07);
  --color-text: #23264D;
  --color-button-text: #23264D;
  --color-btn-hover: #F8F2DC;
  --color-white: #fff;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* Import Montserrat and Open Sans - fallback if not provided elsewhere */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* =============================
   LAYOUT CONTAINERS & SPACING
============================= */
.container {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
}


/* Card containers & cards */
.card-container,
.card-grid,
.post-grid,
.feature-grid,
.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative;
  padding: 28px 26px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 4px 32px rgba(35,38,77,0.12);
}

.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;
  margin-bottom: 24px;
  background: #F8F2DC;
  border: 1.5px solid var(--color-gold);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  flex-direction: column;
  max-width: 630px;
}
.testimonial-card blockquote {
  color: var(--color-dark);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.07rem;
}

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

/* =============================
   TYPOGRAPHY & HEADINGS
============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.14;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.06rem;
  font-weight: 500;
}
p, ul, ol, blockquote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.7;
}
blockquote {
  border-left: 4px solid var(--color-gold);
  padding-left: 18px;
  color: var(--color-dark);
  background: none;
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Links & Hover states */
a.cta-btn {
  font-family: var(--font-display);
  background: var(--color-gold);
  color: var(--color-primary);
  padding: 13px 34px;
  border-radius: 2em;
  font-size: 1.10rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px rgba(35,38,77,0.11);
  border: none;
  display: inline-block;
  margin-top: 12px;
  transition: background 0.12s, color 0.2s, box-shadow 0.18s;
  position: relative;
}
a.cta-btn:hover, a.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 4px 28px rgba(35,38,77,0.20);
}
a.cta-btn:active {
  background: #bca34b;
}

/* Text link hover style */
a:not(.cta-btn):hover, .main-nav a:hover, .footer-links a:hover, .mobile-nav a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  background: var(--color-white);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.07rem;
  padding: 3px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a.active {
  color: var(--color-gold);
}
/* hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-btn-hover);
}

/* =============================
   MOBILE MENU
============================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,36,61,0.98);
  z-index: 1003;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1), opacity 0.32s;
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 28px 0 0;
  color: var(--color-gold);
  background: none;
  border: none;
  font-size: 2.15rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #fff;
  outline: 2px solid var(--color-gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 52px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.30rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* Responsive navigation rules */
@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============================
   SECTION/CONTENT BLOCKS
============================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  min-width: 0;
  box-shadow: 0 4px 24px var(--color-shadow);
}
@media (max-width: 600px) {
  section {
    padding: 28px 8px;
    margin-bottom: 44px;
    border-radius: 12px;
  }
}

/* Features list */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-grid li {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ede5c3;
  border-radius: 15px;
  padding: 26px 22px;
  box-shadow: 0 2px 9px var(--color-shadow);
  transition: border 0.17s, box-shadow 0.18s;
  min-width: 190px;
}
.feature-grid li img {
  margin-bottom: 16px;
  height: 36px;
}
.feature-grid li h3 {
  color: var(--color-primary);
  font-size: 1.07rem;
  margin-bottom: 8px;
}
.feature-grid li:hover {
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 4px 18px rgba(35,38,77,0.12);
}

/* Service List */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-list li {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 15px;
  border: 1px solid #ede5c3;
  box-shadow: 0 2px 9px var(--color-shadow);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border 0.23s, box-shadow 0.18s;
  min-width: 190px;
}
.service-list li img {
  margin-bottom: 17px;
  height: 36px;
}
.service-list li h3 {
  font-size: 1.07rem;
  margin-bottom: 9px;
}
.service-list li:hover {
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 4px 18px rgba(35,38,77,.13);
}

/* Solutions grid */
.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  margin-top: 10px;
}
.solutions-grid > div {
  flex: 1 1 210px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 22px 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  min-width: 165px;
  transition: border 0.16s, box-shadow 0.18s;
}
.solutions-grid > div:hover {
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 4px 16px rgba(226,196,101,0.07);
}
.solutions-grid h3 {
  color: var(--color-secondary);
  font-size: 1.11rem;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Post grid for blog */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.post-grid article {
  flex: 1 1 295px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 26px 20px;
  min-width: 200px;
  transition: box-shadow 0.15s;
  border: 1px solid #eee;
}
.post-grid article h3 {
  font-size: 1.14rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.post-grid article a {
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 0.98rem;
  display: inline-block;
  margin-top: 12px;
  transition: color 0.17s;
}
.post-grid article a:hover {
  color: var(--color-gold);
}
.post-grid article:hover {
  box-shadow: 0 4px 24px rgba(72,169,230,.12);
  border: 1.5px solid var(--color-gold);
}

/* FAQs */
.faq-list h3 {
  font-size: 1.04rem;
  color: var(--color-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}
.faq-list p {
  margin-bottom: 16px;
  color: var(--color-dark);
}

/* Workflow highlight */
.workflow-highlight {
  background: #F8F2DC;
  border-left: 4px solid var(--color-gold);
  padding: 16px 22px;
  border-radius: 7px;
  margin: 18px 0 0 0;
  color: var(--color-dark);
  font-weight: 500;
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--color-footer-dark);
  color: #fff;
  border-top: 2.5px solid var(--color-gold);
  padding: 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 34px 20px 30px 20px;
  font-size: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.19rem;
  gap: 10px;
}
.footer-brand img {
  width: 39px;
  height: auto;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-links a {
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.86;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--color-gold);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.97rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #E7E7F1;
  margin-bottom: 2px;
}
.footer-contact img {
  width: 17px;
  height: auto;
  opacity: 0.8;
}

/* =============================
   COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1C1B28;
  color: var(--color-accent);
  z-index: 1100;
  padding: 26px 18px 18px 18px;
  box-shadow: 0 -4px 20px rgba(35,38,77,.23);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform .5s cubic-bezier(.77,0,.18,1), opacity .3s;
}
.cookie-banner.hide {
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #faf7ec;
  font-size: 1.03rem;
  text-align: center;
  margin-bottom: 0;
}
.cookie-btn-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2px;
  justify-content: center;
}

.cookie-btn,
.cookie-banner button, .cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 10px 28px;
  margin: 0 3px;
  box-shadow: 0 2px 8px rgba(35,38,77,0.10);
  transition: background 0.18s, color 0.16s;
  background: var(--color-gold);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-footer-dark);
  color: var(--color-accent);
  border: 1.5px solid var(--color-gold);
}
.cookie-btn.reject {
  background: #312f21;
  color: #F5EBD7;
  border: 1.5px solid var(--color-gold);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,38,77,0.73);
  z-index: 1203;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay .22s linear;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  min-width: 320px;
  max-width: 96vw;
  padding: 32px 28px;
  box-shadow: 0 8px 48px rgba(35,38,77,.24);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  color: var(--color-primary);
  z-index: 1204;
  animation: fadeInModal .29s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInModal {
  from { transform: scale(0.92) translateY(42px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.26rem;
  margin-bottom: 7px;
  font-family: var(--font-display);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #F7F8FB;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 21px;
  height: 21px;
  margin-right: 2px;
}
.cookie-category.essential input {
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  color: var(--color-secondary);
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-gold);
  outline: 2px solid var(--color-gold);
}

/* =============================
   RESPONSIVE & FLEX ADJUSTMENTS
============================= */
@media (max-width: 940px) {
  .container {
    max-width: 98vw;
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 24px;
  }
  .footer-links, .footer-brand, .footer-contact {
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .section,
  section {
    padding: 26px 8px;
    margin-bottom: 40px;
    border-radius: 9px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .card-grid,
  .feature-grid, .service-list, .solutions-grid,
  .post-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .testimonial-card {
    align-items: flex-start;
    padding: 14px 12px;
    font-size: 0.96rem;
    margin-bottom: 17px;
  }
  .footer-contact {
    gap: 4px;
    font-size: 0.96rem;
  }
  .footer-brand {
    font-size: 1.04rem;
  }
  .footer-links {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .footer-brand, .footer-links, .footer-contact {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-links, .footer-contact {
    justify-content: center;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 5px 16px 5px;
    font-size: 0.97rem;
  }
  .testimonial-card {
    padding: 11px 7px;
    font-size: 0.92rem;
  }
  .cookie-modal {
    min-width: unset;
    width: 94vw;
    padding: 18px 5px;
    font-size: 1rem;
  }
}

/* =============================
   MICRO-INTERACTIONS & SHADOWS
============================= */
.card, .feature-grid li, .service-list li, .solutions-grid > div, .testimonial-card, .post-grid article {
  transition: box-shadow 0.15s, border 0.14s;
}
.card:hover, .feature-grid li:hover, .service-list li:hover, .solutions-grid > div:hover, .post-grid article:hover {
  box-shadow: 0 6px 26px rgba(35,38,77,0.14);
  border-color: var(--color-gold);
}

/* Subtle shadow for CTA */
a.cta-btn {
  box-shadow: 0 2px 16px rgba(226,196,101,0.14);
  transition: background 0.16s, color 0.13s, box-shadow 0.18s;
}
a.cta-btn:active {
  box-shadow: 0 1px 6px rgba(226,196,101,0.26);
}

/* Scrollbar for desktop/app look */
body::-webkit-scrollbar {
  width: 11px;
  background: var(--color-bg);
}
body::-webkit-scrollbar-thumb {
  background: #e8e5c6;
  border-radius: 12px;
}

/* =============================
   BRAND GOLD ACCENTS
============================= */
h1, h2 {
  border-left: 5px solid var(--color-gold);
  padding-left: 18px;
  background: none;
  display: inline-block;
}
@media (max-width: 700px) {
  h1, h2 {
    border-left-width: 3px;
    padding-left: 10px;
    font-size: 1.15rem;
  }
}

/* =============================
   ICON ALIGNMENT
============================= */
ul li img, .footer-contact img {
  margin-right: 6px;
  vertical-align: middle;
}


/* =============================
   MISC HELPERS
============================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* =============================
   ARIA/VISUALLY HIDDEN FOR ACCESSIBILITY
============================= */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px; width: 1px;
  margin: -1px; padding: 0; border: 0;
}

/* =============================
   ANIMATIONS
============================= */
@media (prefers-reduced-motion: no-preference) {
  .cta-btn, .card, .card:hover, .feature-grid li, .feature-grid li:hover, .service-list li, .service-list li:hover, .solutions-grid > div, .solutions-grid > div:hover {
    transition: box-shadow 0.14s, border 0.16s, background 0.16s, color 0.14s;
  }
}

/* =============================
   PRINT ADJUSTMENTS
============================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  section { box-shadow: none !important; border-radius: 0 !important; }
}
