/* ===============================
   Glimra Charge — Industrial Modern UI
   Single style.css for all pages
   Mobile-first, Flexbox-only layouts
   =============================== */

/* ===== CSS Reset & Normalize ===== */
* { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #2EB2A4; outline-offset: 2px; }

/* ===== Design Tokens (with fallbacks) ===== */
:root {
  --bg: #0e1116;
  --surface: #141923;
  --surface-2: #1a1f2a;
  --surface-3: #1f2633;
  --line: #2a2f38;
  --metal: #8a919e;
  --metal-2: #6f7682;
  --text: #e8edf4;
  --muted: #b7bec8;
  --primary: #1E3A8A; /* brand primary */
  --secondary: #2EB2A4; /* brand secondary */
  --accent: #F3F6FB; /* brand accent (light) */
  --danger: #ef4444;
  --success: #16a34a;
  --shadow: 0 2px 8px rgba(0,0,0,0.35), 0 6px 18px rgba(0,0,0,0.25);
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, 'Segoe UI', Tahoma, sans-serif; /* body font */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; /* display font */
  letter-spacing: 0.3px;
  color: var(--text);
}

h1 { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
h4 { font-size: 16px; margin-bottom: 6px; }

p, li, span, a { font-size: 16px; }
small { font-size: 14px; color: var(--muted); }

/* Links */
a { color: var(--secondary); transition: color .2s ease, opacity .2s ease; }
a:hover { color: #24a294; }
a:active { opacity: 0.9; }

/* Containers & Layout (Flex-only) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; /* flex-only */
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
}

section { border-top: 1px solid var(--line); }

/* MANDATORY SPACING 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; }

/* ===== Header & Navigation ===== */
header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.logo img { height: 32px; filter: grayscale(10%) contrast(110%); }

.main-nav { display: none; align-items: center; gap: 14px; }
.main-nav a { color: var(--text); padding: 8px 10px; border-radius: 6px; display: inline-flex; align-items: center; }
.main-nav a:hover { background: var(--surface-2); }

.mobile-menu-toggle {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.mobile-menu-toggle:hover { background: var(--surface-3); transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 9999;
}
.mobile-menu > nav, .mobile-nav {
  width: 85%; max-width: 360px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 14px; padding: 24px; border-left: 1px solid var(--line);
}
.mobile-menu.active, .mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 14px; right: 12px; z-index: 10000;
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-3); color: var(--text);
}
.mobile-nav a { color: var(--text); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mobile-nav a:hover { background: var(--surface-3); }

/* ===== Hero ===== */
.hero { background: var(--surface); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero h1 { font-size: 28px; }
.hero p { color: var(--muted); max-width: 66ch; }
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.trust-badges img { width: 28px; height: 28px; filter: grayscale(100%) brightness(1.1); opacity: 0.9; }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 10px; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; font-weight: bold; letter-spacing: .3px; }
.btn-primary { background: var(--secondary); color: #0b1a18; border: 1px solid #219c90; box-shadow: 0 6px 16px rgba(46,178,164,0.25); }
.btn-primary:hover { transform: translateY(-2px); background: #27a999; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: transparent; color: var(--secondary); border: 1px solid var(--secondary); }
.btn-secondary:hover { background: rgba(46,178,164,0.1); }

/* ===== Cards & Surfaces ===== */
.card,
.features-grid > div,
.service-cards > div,
.use-cases > div,
.steps-timeline > div,
.testimonials-grid > div,
.plan-teasers > div,
.plan-cards > div,
.add-on-cards > div,
.case-study-cards > div,
.team-list > div,
.posts-list > div,
.post-teasers-grid > div,
.cta-block,
.newsletter-signup,
.contact-teaser,
.featured-post,
.faq-list > div,
.plan-highlights,
.plan-highlights ul,
.whats-included-list,
.limits-table > div,
.integration-logos,
.categories-list,
.categories-filter,
.tags-filter,
.outcome-metrics,
.billing-toggle,
.rating-summary,
.quote-highlights,
.cookie-banner .cookie-inner,
.comparison-matrix > div {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #acacac; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset; margin-bottom: 20px;
}

/* Industrial accent edge */
.card::after,
.features-grid > div::after,
.service-cards > div::after,
.use-cases > div::after,
.steps-timeline > div::after,
.plan-cards > div::after,
.add-on-cards > div::after,
.case-study-cards > div::after { content: ""; display: block; height: 3px; width: 34px; background: var(--metal); border-radius: 2px; opacity: .35; }

/* Light surfaces for testimonials/reviews (accessibility requirement) */
.testimonial-card { background: var(--accent); color: #0f141a; border: 1px solid #d9e1ec; border-left: 4px solid var(--primary); border-radius: 12px; box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.testimonial-card p { color: #0e1014; }
.testimonial-author { color: #202735; font-weight: bold; }

.rating-summary { flex-direction: row; align-items: center; gap: 10px; background: var(--surface-2); border-left: 3px solid var(--secondary); }
.rating-summary img { width: 20px; height: 20px; filter: none; }

/* ===== Feature & Service Blocks ===== */
.features-grid, .service-cards, .use-cases, .steps-timeline, .plan-teasers, .plan-cards, .add-on-cards, .testimonials-grid, .case-study-cards, .team-list, .posts-list, .post-teasers-grid {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch;
}
.features-grid > div, .service-cards > div, .use-cases > div, .steps-timeline > div, .plan-teasers > div, .add-on-cards > div, .case-study-cards > div, .team-list > div, .posts-list > div, .post-teasers-grid > div, .plan-cards > div {
  flex: 1 1 280px; min-width: 260px;
}

.features-grid img, .steps-timeline img, .features-icons img { width: 36px; height: 36px; filter: grayscale(100%) contrast(105%); }
.features-icons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.industry-tag, .industry-tags span { display: inline-flex; align-items: center; padding: 6px 10px; gap: 8px; border: 1px solid var(--metal); color: var(--text); border-radius: 999px; background: #171d27; font-size: 14px; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.micro-ctas, .pricing-notes, .security-notes, .terms-note { color: var(--muted); font-size: 14px; }

.expected-outcomes, .benefits-list, .differentiators-list, .popular-topics, .categories-list, .user-rights-list, .data-categories-list, .definitions-list, .user-obligations ul, .work-principles ul, .checklist, .next-steps-list, .metrics-highlights ul, .whats-included-list {
  display: flex; flex-direction: column; gap: 10px;
}
.expected-outcomes li, .benefits-list li, .differentiators-list li, .popular-topics li, .categories-list li, .user-rights-list li, .data-categories-list li, .definitions-list li, .user-obligations li, .work-principles li, .checklist li, .next-steps-list li, .metrics-highlights li, .whats-included-list li {
  position: relative; padding-left: 16px; color: var(--text);
}
.expected-outcomes li::before, .benefits-list li::before, .differentiators-list li::before, .popular-topics li::before, .categories-list li::before, .user-rights-list li::before, .data-categories-list li::before, .definitions-list li::before, .user-obligations li::before, .work-principles li::before, .checklist li::before, .next-steps-list li::before, .metrics-highlights li::before, .whats-included-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); position: absolute; left: 0; top: 10px;
}

/* ===== Comparison & Tables (Flex-not-grid) ===== */
.comparison-matrix { display: flex; flex-direction: column; gap: 10px; }
.comparison-matrix > div { flex-direction: row; align-items: center; gap: 10px; background: var(--surface-2); }
.comparison-matrix > div b { flex: 1 1 40%; color: var(--text); }
.comparison-matrix > div span { flex: 1 1 20%; text-align: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); }

.cookie-table { width: 100%; border-collapse: collapse; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cookie-table th, .cookie-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.cookie-table tr:nth-child(even) { background: #18202b; }
.cookie-table th { background: var(--surface-3); color: var(--text); }

.limits-table { display: flex; flex-direction: column; gap: 10px; }
.limits-table > div { display: flex; justify-content: space-between; gap: 10px; background: var(--surface-2); }
.limits-table > div span { padding: 6px 8px; }

/* ===== Pricing & Plans ===== */
.plan-cards > div { background: #131925; border: 1px solid #213047; }
.plan-cards > div h3 { color: var(--accent); }
.plan-price { font-size: 18px; font-weight: bold; color: var(--secondary); }
.guarantee-badge { display: inline-flex; align-items: center; gap: 10px; border-left: 3px solid var(--secondary); background: var(--surface-2); }
.guarantee-badge img { width: 20px; height: 20px; }

.billing-toggle { display: inline-flex; flex-direction: row; gap: 8px; align-items: center; background: var(--surface-2); }
.billing-toggle span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }

/* ===== Blog & Posts ===== */
.featured-post { border-left: 4px solid var(--primary); }
.categories-filter, .tags-filter { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
.tags-filter span { background: #101620; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.pagination { display: flex; gap: 10px; align-items: center; }
.pagination a, .pagination span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pagination span { background: var(--secondary); color: #0b1a18; border-color: #219c90; }

.search-box { display: flex; }
.search-box input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #101620; color: var(--text); }
.search-box input:disabled { opacity: .7; cursor: not-allowed; }

/* ===== Testimonials Slider (Flex scroll) ===== */
.testimonial-slider { display: flex; flex-direction: row; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.testimonial-slider .testimonial-card { min-width: 280px; scroll-snap-align: start; }

/* ===== CTA & Newsletter ===== */
.cta-block { background: #101620; border: 1px solid var(--line); }
.newsletter-signup { background: #111824; border: 1px solid #233046; }

/* ===== Contact Details ===== */
.contact-details { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-details span, .contact-details div { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; border-radius: 10px; }
.contact-details img { width: 18px; height: 18px; filter: grayscale(100%); }

.data-protection-note, .sla-highlights, .security-compliance, .request-procedure, .expected-response-time { background: var(--surface-2); border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; }

/* ===== Story & Quote ===== */
.story-timeline, .quote-highlights { display: flex; flex-direction: column; gap: 12px; }
.story-timeline > div { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; }
.story-timeline span { color: var(--secondary); font-weight: bold; }
.quote-highlights h3 { margin-bottom: 6px; }
blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--secondary); color: var(--accent); font-style: italic; }

/* ===== Footer ===== */
footer { background: #0d121a; border-top: 1px solid var(--line); margin-top: 40px; }
footer .container { padding-top: 24px; padding-bottom: 24px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-cols > * { flex: 1 1 220px; }
.footer-menu, .footer-legal { display: flex; flex-direction: column; gap: 10px; }
.footer-menu a, .footer-legal a { color: var(--muted); }
.footer-menu a:hover, .footer-legal a:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 12px; border-radius: 10px; }
.social-links { display: flex; gap: 12px; }
.social-links img { width: 22px; height: 22px; filter: grayscale(100%) brightness(1.2); opacity: .9; }

/* ===== Client & Integration Logos ===== */
.client-logos, .integration-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.client-logos img, .integration-logos img { height: 28px; filter: grayscale(100%) contrast(110%); opacity: 0.8; }

/* ===== Mobile-first spacing for sections ===== */
main section .container { padding-top: 24px; padding-bottom: 24px; }

/* ===== Mobile Menu visibility rules ===== */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ===== Responsive Layout Adjustments ===== */
@media (min-width: 768px) {
  .hero h1 { font-size: 36px; }
  .text-image-section { flex-direction: row; }
  .content-wrapper { gap: 20px; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .footer-cols { flex-direction: column; }
}

/* ===== Accessibility & Micro-interactions ===== */
.card:hover, .service-cards > div:hover, .features-grid > div:hover, .plan-cards > div:hover, .case-study-cards > div:hover, .add-on-cards > div:hover { box-shadow: var(--shadow); transform: translateY(-1px); transition: box-shadow .2s ease, transform .2s ease; }

/* ===== Header prominence on scroll (optional utility) ===== */
header.scrolled { box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

/* ===== Utilities ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }

/* ===== Form-like elements (newsletter placeholders) ===== */
input[type="text"], input[type="email"], input[type="search"], textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #101620; color: var(--text); }
input::placeholder, textarea::placeholder { color: #8e98a6; }

/* ===== Cookie Consent Banner ===== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: #101418; color: #e8ecf2; border-top: 1px solid var(--line); transform: translateY(100%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show, .cookie-banner.active { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 16px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.cookie-buttons .btn-accept { background: var(--secondary); border-color: #219c90; color: #0b1a18; }
.cookie-buttons .btn-reject { background: #1d2430; }
.cookie-buttons .btn-settings { background: transparent; border-color: var(--secondary); color: var(--secondary); }
.cookie-buttons .btn:hover { transform: translateY(-1px); }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 10020; }
.cookie-modal.open, .cookie-modal.active { display: flex; }
.cookie-modal-content { width: 92%; max-width: 720px; background: var(--accent); color: #0f141a; border: 1px solid #cfd6df; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #eef3fa; border: 1px solid #d9e1ec; border-radius: 10px; padding: 10px 12px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-toggle input { width: 38px; height: 22px; appearance: none; background: #c6cfdb; border-radius: 999px; position: relative; outline: none; transition: background .2s ease; }
.cookie-toggle input:checked { background: #27a999; }
.cookie-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.cookie-toggle input:checked::after { transform: translateX(16px); }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal-actions .btn-save { background: var(--secondary); border: 1px solid #219c90; color: #0b1a18; padding: 10px 14px; border-radius: 10px; }
.cookie-modal-actions .btn-cancel { background: transparent; border: 1px solid #9aa3b0; color: #0f141a; padding: 10px 14px; border-radius: 10px; }

/* ===== Special: Testimonials page quote highlight readability ===== */
.quote-highlights { background: var(--surface-2); border: 1px solid var(--line); }

/* ===== Tables & policy content blocks ===== */
.policy-content { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 16px; border-radius: 12px; }
.controller-details, .processor-list, .data-retention-policy, .termination-terms, .governing-law, .limitations-of-liability { background: var(--surface-2); border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; }

/* ===== Header/Section Title styling for Industrial feel ===== */
section h2 { display: inline-flex; align-items: center; gap: 10px; }
section h2::before { content: ""; width: 22px; height: 2px; background: var(--metal); display: inline-block; border-radius: 2px; opacity: .6; }

/* ===== Plan Highlights list presentation ===== */
.plan-highlights ul { background: transparent; border: none; padding: 0; }

/* ===== RSS & minor components ===== */
.rss-link { display: flex; align-items: center; gap: 10px; }
.rss-link img { width: 18px; height: 18px; }

/* ===== Header logo alt on dark ===== */
header .logo img { filter: brightness(1.1) saturate(0.95); }

/* ===== Plan levels & service levels badges ===== */
.service-level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #112033; border: 1px solid #274162; color: #d9e6ff; font-size: 12px; }

/* ===== Misc helpers ===== */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { display: flex; align-items: center; justify-content: center; }
.spacer-20 { height: 20px; }

/* ===== Ensure adequate spacing between all cards/sections ===== */
section .content-wrapper > * + * { margin-top: 8px; }

/* ===== Desktop refinements ===== */
@media (min-width: 1080px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 44px; }
  .container { gap: 24px; }
}

/* ===== Ensure no overlap; spacing around sliders/lists ===== */
.testimonial-slider { padding-top: 6px; margin-top: 6px; }

/* ===== End ===== */
