/* =====================================================
   Voltix Ray — Professional Corporate CSS (Flexbox-only)
   Mobile-first, blue/gray palette, business fonts
   ===================================================== */
/* ----------------------
   Reset & Base
----------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #0F172A; /* slate-900 */
  background-color: #FFFFFF;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
ul, ol { margin: 0; padding-left: 1.2rem; }
li { margin: 0.35rem 0; }
a { color: #0B3D91; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #2C7A7B; outline-offset: 2px; }
::selection { background: #0B3D91; color: #fff; }

/* ----------------------
   CSS Variables (with fallbacks in rules)
----------------------- */
:root {
  --primary: #0B3D91; /* brand blue */
  --secondary: #2C7A7B; /* teal */
  --accent: #F4F7FB; /* light background */
  --ink: #0F172A; /* text */
  --muted: #475569; /* slate-600 */
  --border: #E5E7EB; /* light gray */
  --surface: #FFFFFF; /* white */
  --shadow: 0 6px 20px rgba(11, 61, 145, 0.08);
}

/* ----------------------
   Containers & Sections
----------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Sections manage spacing */
}
main > section { padding: 40px 0; }

/* Mandatory spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 61, 145, 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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

.content-wrapper { display: flex; flex-direction: column; gap: 20px; }

/* ----------------------
   Typography
----------------------- */
h1, h2, h3 { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; color: var(--ink); margin: 0 0 8px 0; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: -0.2px; }
h2 { font-size: 24px; letter-spacing: -0.1px; margin-top: 8px; }
h3 { font-size: 18px; }
p { margin: 0; color: #2C7A7B; }
.small, .muted { color: var(--muted); font-size: 14px; }
strong { font-weight: 700; }

/* Step up sizes on larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ----------------------
   Header & Navigation
----------------------- */
header { background: #FFFFFF; border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 20px; }
.main-nav a { color: var(--ink); font-weight: 600; padding: 8px 10px; border-radius: 6px; transition: background-color 180ms ease, color 180ms ease; }
.main-nav a:hover { background: var(--accent); color: var(--primary); text-decoration: none; }

.header-ctas { display: none; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.mobile-menu-toggle:hover { background: var(--accent); border-color: #CBD5E1; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); display: flex; justify-content: flex-end; transform: translateX(100%); transition: transform 280ms ease; z-index: 999; }
.mobile-menu .mobile-nav { background: #FFFFFF; width: 84%; max-width: 360px; height: 100%; display: flex; flex-direction: column; padding: 20px; gap: 8px; box-shadow: -10px 0 30px rgba(0,0,0,0.18); }
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; background: transparent; border: none; font-size: 22px; line-height: 1; color: var(--ink); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; }
.mobile-menu-close:hover { background: var(--accent); }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.mobile-nav a:hover { background: var(--accent); color: var(--primary); text-decoration: none; }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ----------------------
   Buttons
----------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; min-height: 44px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; letter-spacing: 0.2px; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 120ms ease; box-shadow: 0 2px 8px rgba(11, 61, 145, 0.12); }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: #093476; border-color: #093476; }
.btn.secondary { background: #FFFFFF; color: var(--primary); border-color: var(--primary); }
.btn.secondary:hover { background: var(--accent); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----------------------
   Hero
----------------------- */
.hero { background: var(--accent); border-bottom: 1px solid var(--border); }
.hero .content-wrapper { padding-top: 10px; padding-bottom: 10px; }
.hero p { color: #1F2937; font-size: 16px; }

/* Supporting bullets */
.supporting-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.supporting-bullets li { display: flex; align-items: center; gap: 10px; color: #334155; }
.supporting-bullets img { width: 20px; height: 20px; }

.trust-badges { color: #475569; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ----------------------
   Reusable Grids (Flex-only)
----------------------- */
.stats-grid, .feature-grid, .service-overview-grid, .industry-grid, .roles-grid, .differentiators-grid, .service-grid, .categories-grid, .article-list, .case-teasers, .case-list, .events, .testimonials, .downloads-list, .pricing-models, .benefits-list, .partners-list, .expertise-tags, .short-bios-list, .pain-points, .solutions-mapping, .values-list, .tools-stack-list, .rights-list, .featured-articles {
  display: flex; flex-wrap: wrap; gap: 20px;
}

/* Default card look for articles inside grids */
.feature-grid article, .service-overview-grid article, .industry-grid article, .roles-grid article, .differentiators-grid article, .service-grid article, .categories-grid article, .article-list article, .case-teasers article, .case-list article, .events article {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 20px; box-shadow: var(--shadow); flex: 1 1 100%; transition: transform 200ms ease, box-shadow 200ms ease; }
.feature-grid article:hover, .service-overview-grid article:hover, .industry-grid article:hover, .roles-grid article:hover, .differentiators-grid article:hover, .service-grid article:hover, .categories-grid article:hover, .article-list article:hover, .case-teasers article:hover, .case-list article:hover, .events article:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 61, 145, 0.12); }

/* Stat cards */
.stats-grid { gap: 16px; }
.stats-grid .stat { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 16px; box-shadow: var(--shadow); }
.stats-grid .stat strong { font-size: 28px; color: var(--primary); }
.stats-grid .stat span { color: #475569; font-size: 14px; }

/* Headings with inline icons */
.feature-grid h3 img, .industry-grid h3 img { width: 20px; height: 20px; margin-right: 8px; }
.feature-grid h3, .industry-grid h3 { display: flex; align-items: center; gap: 8px; }

/* Lists as chips or columns (Flex) */
.expertise-tags, .partners-list {
  gap: 10px; padding-left: 0; list-style: none;
}
.expertise-tags li, .partners-list li {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #0B3D91; border: 1px solid #DBEAFE; font-weight: 600; font-size: 14px;
}

.values-list, .tools-stack-list, .rights-list, .benefits-list, .pricing-models, .pain-points, .downloads-list, .featured-articles {
  list-style: none; padding-left: 0; }
.values-list li, .tools-stack-list li, .rights-list li, .benefits-list li, .pricing-models li, .pain-points li, .downloads-list li, .featured-articles li {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); flex: 1 1 100%; }

.short-bios-list { flex-direction: column; }

/* FAQ */
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: #FFFFFF; padding: 16px; box-shadow: var(--shadow); transition: border-color 200ms ease, transform 200ms ease; }
.faq-item:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.faq-item h3 { margin-bottom: 6px; }

/* Process steps */
.process-steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; }
.process-steps li { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }

/* Testimonials – dark text on light BG for readability */
.testimonials { gap: 20px; }
.testimonial-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-left: 4px solid var(--primary); border-radius: 10px; color: var(--ink); box-shadow: var(--shadow); }
.testimonial-card p { margin: 0; }

/* Pagination */
.pagination-controls { display: flex; align-items: center; justify-content: center; padding-top: 8px; color: #475569; }

/* Text section spacing */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section h3 { margin-top: 12px; margin-bottom: 2px; color: var(--primary); }

/* Methodology note */
.methodology-note { color: #475569; font-size: 14px; }

/* Links panels */
.featured-articles li { position: relative; padding-left: 14px; }
.featured-articles li::before { content: "•"; position: relative; margin-right: 6px; color: var(--secondary); }

/* Contact rows with icons */
.content-wrapper p img[alt] { display: inline-block; vertical-align: middle; margin-right: 8px; width: 18px; height: 18px; }

/* ----------------------
   Footer
----------------------- */
footer { background: #082B6A; color: #E5E7EB; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-nav a { color: #E5E7EB; font-weight: 600; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-contact, .footer-legal { color: #E2E8F0; font-size: 14px; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .footer-brand { flex: 1 1 260px; }
  .footer-nav { flex: 1 1 260px; }
  .footer-contact { flex: 1 1 100%; }
  .footer-legal { flex: 1 1 100%; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 12px; }
}

/* ----------------------
   Responsive Flex Layouts
----------------------- */
@media (min-width: 768px) {
  /* Multi-column feel via flexible widths */
  .stats-grid .stat { flex: 1 1 calc(50% - 10px); }
  .feature-grid article, .service-overview-grid article, .industry-grid article, .roles-grid article, .differentiators-grid article, .service-grid article, .categories-grid article, .article-list article, .case-teasers article, .case-list article, .events article { flex: 1 1 calc(50% - 10px); }
  .values-list li, .tools-stack-list li, .rights-list li, .benefits-list li, .pricing-models li, .pain-points li, .downloads-list li, .featured-articles li { flex: 1 1 calc(50% - 10px); }
}
@media (min-width: 1024px) {
  .stats-grid .stat { flex: 1 1 calc(33.333% - 12px); }
  .feature-grid article, .service-overview-grid article, .industry-grid article, .roles-grid article, .differentiators-grid article, .service-grid article, .categories-grid article, .article-list article, .case-teasers article, .case-list article, .events article { flex: 1 1 calc(33.333% - 14px); }
}

/* ----------------------
   Utilities & Micro-interactions
----------------------- */
.shadow { box-shadow: var(--shadow); }
.rounded { border-radius: 10px; }
.border { border: 1px solid var(--border); }
.muted { color: #475569; }

/* ----------------------
   Cookie Consent Banner & Modal
----------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(2, 6, 23, 0.08); display: none; padding: 16px; z-index: 998; transform: translateY(100%); transition: transform 280ms ease; }
.cookie-banner.show, .cookie-banner.active { display: flex; transform: translateY(0); }
.cookie-banner .container { flex-direction: column; gap: 12px; }
.cookie-content { display: flex; flex-direction: column; gap: 8px; color: #1F2937; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-width: 140px; }
.cookie-actions .btn.accept { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.cookie-actions .btn.reject { background: #FFFFFF; color: #B91C1C; border-color: #B91C1C; }
.cookie-actions .btn.settings { background: var(--accent); color: var(--primary); border-color: #DBEAFE; }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: none; align-items: center; justify-content: center; z-index: 1001; }
.cookie-modal.open, .cookie-modal.active { display: flex; }
.cookie-modal-content { background: #FFFFFF; width: 92%; max-width: 680px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); border: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px; gap: 14px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-header h3 { margin: 0; }
.cookie-modal-close { background: transparent; border: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; }
.cookie-modal-close:hover { background: var(--accent); }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #FFFFFF; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-toggle input[type="checkbox"] { width: 18px; height: 18px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ----------------------
   Alignment rules for text-image sections (responsive)
----------------------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ----------------------
   Page-specific small tweaks
----------------------- */
.proof-points, .impact-metrics, .methodology-note { color: #475569; }

/* Case lists spacing */
.case-teasers, .case-list { align-items: stretch; }

/* Newsletter list spacing */
main ul { display: flex; flex-wrap: wrap; gap: 10px; }
main ul li { flex: 1 1 100%; }
@media (min-width: 768px) {
  main ul li { flex: 1 1 calc(50% - 10px); }
}

/* Maintain adequate spacing between sections and cards */
main > section + section { border-top: 1px solid #F1F5F9; }

/* Ensure no overlaps */
main, header, footer { position: relative; z-index: 1; }

/* ----------------------
   Accessibility: Reduced motion
----------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ----------------------
   Desktop refinements
----------------------- */
@media (min-width: 992px) {
  .hero .content-wrapper { flex-direction: column; gap: 16px; }
  .content-wrapper { gap: 24px; }
}

/* ----------------------
   Compliance with mandatory patterns (explicit duplicates)
----------------------- */
/* These ensure exact class names are present per requirement */
/* Already defined above but kept here for clarity; no grid/columns used */
/* .section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item */
