/* ===================================================================
   Radixta Flare — style.css
   Design style: warm_friendly (warm colors, rounded corners, friendly fonts, soft shadows)
   Brand: deep navy primary, sea-blue secondary, light accent + warm neutrals
   Layout: Mobile-first, ONLY Flexbox (no CSS Grid/Columns)
   =================================================================== */

/* ------------------------------
   0) 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, 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;
}

*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 20px; }
button, input, select, textarea { font: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ------------------------------
   1) CSS Variables (with sensible fallbacks in rules)
   ------------------------------ */
:root {
  --brand-primary: #0A2A43;
  --brand-secondary: #2F6F8C;
  --brand-accent: #F5F9FC;
  --text-primary: #1C1C1C;
  --text-secondary: #3F4A54;

  /* Warm palette to deliver warm_friendly feel */
  --warm-bg: #FFF7F0;      /* soft warm background */
  --warm-100: #FFEDE2;     /* card bg */
  --warm-200: #FFD8C2;     /* hover tint */
  --warm-300: #FFC4A6;     /* accents */
  --warm-accent: #E86F3E;  /* buttons/highlights */

  --surface: #FFFFFF;
  --border: #E6E6E6;
  --shadow: 0 8px 22px rgba(10, 42, 67, 0.08);
  --shadow-soft: 0 4px 14px rgba(10, 42, 67, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
}

/* ------------------------------
   2) Typography
   ------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif; /* Brand body */
  color: var(--text-primary, #1C1C1C);
  background: var(--brand-accent, #F5F9FC);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: var(--brand-primary, #0A2A43); }
h1 { font-size: 32px; line-height: 1.2; margin-bottom: var(--space-16); }
h2 { font-size: 28px; line-height: 1.25; margin-bottom: var(--space-16); }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: var(--space-12); }

p { margin-bottom: var(--space-12); color: var(--text-secondary, #3F4A54); }
strong { color: var(--brand-primary, #0A2A43); font-weight: 700; }
em { font-style: italic; }

.subheadline { font-size: 18px; color: var(--text-secondary, #3F4A54); }

/* Typography scaling on larger screens */
@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  .subheadline { font-size: 20px; }
}

/* ------------------------------
   3) Global Layout Helpers (Flex-only)
   ------------------------------ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex;              /* Flex-only layout */
  flex-direction: column;     /* Mobile-first */
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;              /* Flex container */
  flex-direction: column;
  gap: var(--space-20);
}

/* Mandatory spacing/align patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; 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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Apply similar spacing to semantic sections in these pages */
main section { padding: var(--space-40) 0; }
main section + section { margin-top: var(--space-20); }

/* ------------------------------
   4) Header & Navigation
   ------------------------------ */
header {
  position: relative;
  background: var(--surface, #FFFFFF);
  box-shadow: var(--shadow);
  z-index: 50;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav {
  display: none;              /* Mobile: hidden */
  align-items: center;
  gap: var(--space-16);
}

.main-nav a {
  color: var(--brand-primary, #0A2A43);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover { background: var(--brand-accent, #F5F9FC); color: var(--brand-secondary, #2F6F8C); transform: translateY(-1px); }

/* Primary CTA in header */
header .btn-primary { display: none; }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  border-radius: 50%;
  color: var(--brand-primary, #0A2A43);
  background: var(--warm-100, #FFEDE2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.mobile-menu-toggle:hover { transform: scale(1.05); background: var(--warm-200, #FFD8C2); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 42, 67, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu[aria-hidden="false"], .mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--surface, #FFFFFF);
  padding: var(--space-32) var(--space-20);
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu[aria-hidden="false"] .mobile-nav, .mobile-menu.open .mobile-nav { transform: translateX(0); }

.mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--warm-100, #FFEDE2);
  color: var(--brand-primary, #0A2A43);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav a {
  color: var(--brand-primary, #0A2A43);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-accent, #F5F9FC);
  box-shadow: var(--shadow-soft);
}
.mobile-nav a:hover { background: var(--warm-100, #FFEDE2); }

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

/* ------------------------------
   5) Hero Sections
   ------------------------------ */
.hero {
  background: var(--warm-bg, #FFF7F0);
  border-bottom: 1px solid var(--border, #E6E6E6);
}
.hero .container { align-items: stretch; }
.hero .content-wrapper { padding: var(--space-20) 0; }
.hero h1 { color: var(--brand-primary, #0A2A43); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
}

/* ------------------------------
   6) Buttons & Links
   ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--surface, #FFFFFF);
  color: var(--brand-primary, #0A2A43);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-accent, #F5F9FC); }

.btn-primary {
  background: var(--warm-accent, #E86F3E);
  color: #FFFFFF;
  border-color: #E86F3E;
}
.btn-primary:hover { background: #d65f2f; border-color: #d65f2f; }

.btn-secondary {
  background: var(--brand-secondary, #2F6F8C);
  color: #FFFFFF;
  border-color: var(--brand-secondary, #2F6F8C);
}
.btn-secondary:hover { background: #275e76; border-color: #275e76; }

/* Focus states for accessibility */
:focus-visible {
  outline: 3px solid rgba(232, 111, 62, 0.45);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ------------------------------
   7) Common Content Blocks
   ------------------------------ */
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* Card-like treatment for key groupings to feel warm & friendly */
.feature-grid, .service-cards, .case-teasers, .case-list, .content-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
}

.feature-grid .text-section,
.service-cards .text-section,
.case-teasers .text-section,
.case-list .text-section,
.content-list .text-section {
  background: var(--warm-100, #FFEDE2);
  border: 1px solid rgba(232, 111, 62, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  box-shadow: var(--shadow-soft);
  flex: 1 1 260px;
  min-width: 240px;
}

.supporting-bullets, .benefit-list, .industry-list { display: flex; flex-direction: column; gap: 8px; }
.supporting-bullets li, .benefit-list li, .industry-list li {
  position: relative;
  list-style: none;
  padding-left: 22px;
}
.supporting-bullets li::before, .benefit-list li::before, .industry-list li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--warm-accent, #E86F3E);
  position: absolute; left: 0; top: 9px;
}

.process-steps {
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: step;
}
.process-steps li {
  list-style: none;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.kpi-tiles {
  display: flex; flex-wrap: wrap; gap: var(--space-16);
}
.kpi-tiles p {
  flex: 1 1 160px; min-width: 140px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.kpi-tiles p strong { font-size: 20px; }

.supporting-stats { color: var(--brand-primary, #0A2A43); font-weight: 600; }

/* Testimonial cards — ensure strong contrast (dark text on light bg) */
.testimonial-card {
  background: #FFFFFF; /* high readability */
  border: 1px solid var(--border, #E6E6E6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.testimonial-card p { color: var(--text-primary, #1C1C1C); }

/* Footer */
footer {
  background: var(--surface, #FFFFFF);
  border-top: 1px solid var(--border, #E6E6E6);
  margin-top: var(--space-60);
}
footer .container { padding-top: var(--space-24); padding-bottom: var(--space-24); }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--space-16); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { color: var(--brand-secondary, #2F6F8C); padding: 6px 10px; border-radius: var(--radius-sm); }
.footer-nav a:hover { background: var(--brand-accent, #F5F9FC); }

/* ------------------------------
   8) Page-specific tweaks
   ------------------------------ */
/* Index service cta row */
.service-cta-row, .cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-12); }

/* Breadcrumbs in hero (simple) */
.hero nav[aria-label] { display: flex; gap: 6px; color: var(--text-secondary, #3F4A54); font-size: 14px; }
.hero nav[aria-label] a { color: var(--brand-secondary, #2F6F8C); text-decoration: underline; }

/* Case / content lists as cards */
.case-list, .content-list { align-items: stretch; }
.case-list .text-section h3, .content-list .text-section h3 { color: var(--brand-primary, #0A2A43); }

/* Lists inside .text-section */
.text-section ul { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
.text-section li { margin-left: 0; }

/* Contact blocks */
.text-section a { color: var(--brand-secondary, #2F6F8C); text-decoration: underline; }
.text-section a:hover { color: var(--warm-accent, #E86F3E); }

/* ------------------------------
   9) Forms (if added later) minimal base
   ------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #E6E6E6);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------
   10) Cookie Consent: Banner & Modal
   ------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  background: #FFFFFF;
  border-top: 1px solid var(--border, #E6E6E6);
  box-shadow: 0 -8px 22px rgba(10, 42, 67, 0.08);
  padding: var(--space-16) var(--space-20);
  z-index: 1100;
  transform: translateY(100%);
  opacity: 0; pointer-events: none;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-text { color: var(--text-secondary, #3F4A54); }
.cookie-banner .cookie-buttons {
  display: flex; flex-wrap: wrap; gap: var(--space-12);
}
.cookie-banner .btn-settings { background: var(--brand-accent, #F5F9FC); border-color: var(--border, #E6E6E6); }
.cookie-banner .btn-accept { background: var(--warm-accent, #E86F3E); color: #FFFFFF; border-color: #E86F3E; }
.cookie-banner .btn-reject { background: var(--surface, #FFFFFF); color: var(--brand-primary, #0A2A43); border-color: var(--border, #E6E6E6); }

/* Cookie modal (preferences) */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 42, 67, 0.28);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.cookie-modal.is-visible { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content {
  width: 92%; max-width: 680px;
  background: #FFFFFF; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-24);
  display: flex; flex-direction: column; gap: var(--space-16);
}
.cookie-categories { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-category { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border, #E6E6E6); border-radius: var(--radius-md); }
.cookie-category .row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }

/* Simple toggle style (use with checkbox inputs) */
.cookie-toggle { position: relative; width: 46px; height: 26px; background: var(--brand-accent, #F5F9FC); border: 1px solid var(--border, #E6E6E6); border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.02); }
.cookie-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-soft); transition: transform 0.2s ease, background-color 0.2s ease; }
.cookie-toggle.is-on { background: rgba(232, 111, 62, 0.2); border-color: #E86F3E; }
.cookie-toggle.is-on::after { transform: translateX(20px); background: #E86F3E; }

.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }

/* ------------------------------
   11) Responsive Layout Rules (Flex direction & alignment)
   ------------------------------ */
/* Default mobile: column stacks already applied via flex-direction: column */

/* Text-image or dual blocks: ensure vertical centering */
.text-image-section { align-items: center; }

@media (min-width: 768px) {
  /* Wider containers: row when helpful */
  .content-wrapper.row-on-desktop { flex-direction: row; align-items: flex-start; }

  .text-image-section { flex-wrap: nowrap; }

  /* Header container already row. Keep main sections neat */
  .container.section-row { flex-direction: row; }
}

/* ------------------------------
   12) Cards, Shadows, and Visual Hierarchy
   ------------------------------ */
.card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-20);
}

/* Decorative chips/badges (trust badges area) */
.trust-badges { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.trust-badges .text-section {
  background: #FFFFFF;
  border: 1px solid var(--border, #E6E6E6);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------
   13) Utilities
   ------------------------------ */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; } .mb-40 { margin-bottom: 40px; }

/* ------------------------------
   14) Desktop Enhancements
   ------------------------------ */
@media (min-width: 992px) {
  .container { flex-direction: column; }
  main .container { flex-direction: column; }

  /* Allow some groups to align side-by-side gracefully */
  .feature-grid .text-section,
  .service-cards .text-section,
  .case-teasers .text-section,
  .case-list .text-section,
  .content-list .text-section { flex: 1 1 calc(33% - 20px); }
}

/* ------------------------------
   15) Print (basic)
   ------------------------------ */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* ------------------------------
   16) Accessibility & Micro-interactions
   ------------------------------ */
::selection { background: rgba(232, 111, 62, 0.25); }

/* Smooth hover raise for cards */
.feature-grid .text-section:hover,
.service-cards .text-section:hover,
.case-teasers .text-section:hover,
.case-list .text-section:hover,
.content-list .text-section:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(10, 42, 67, 0.12);
}

/* Ensure no overlapping by default spacing */
main section > .container > .content-wrapper > * { margin-bottom: 20px; }
main section > .container > .content-wrapper > *:last-child { margin-bottom: 0; }

/* ------------------------------
   17) Ensure Flex-only Layout for all key group wrappers
   ------------------------------ */
/* Already ensured: .container, .content-wrapper, .feature-grid, .service-cards, .case-teasers, .case-list, .content-list, .cta-row, .testimonial-card, .kpi-tiles, .footer-nav, .process-steps, .trust-badges, .mobile-nav, .cookie-* wrappers all use flex. */
