/* ===============================
   Rapid Ember – style.css
   Warm Friendly, Mobile-first, Flex-only
   =============================== */

/* ---------- CSS Reset & Normalize ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid rgba(191, 96, 52, 0.65); outline-offset: 2px; border-radius: 8px; }

/* ---------- Theme Variables (with fallbacks) ---------- */
:root {
  --c-primary: #0B3A66;       /* Brand navy */
  --c-secondary: #2F7D68;     /* Brand teal */
  --c-accent: #F5F7FB;        /* Brand light */
  --c-ink: #2A2E33;           /* Body text */
  --c-muted: #6B7177;         /* Muted text */
  --c-warm-50: #FFF7F0;       /* Warm background */
  --c-warm-100: #FDE9D9;      /* Warm soft */
  --c-warm-200: #FAE1CF;      /* Warm card */
  --c-cta: #B84D1C;           /* Warm friendly CTA (accessible on white) */
  --c-cta-hover: #A24218;
  --c-border: #E6E8EB;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(11, 58, 102, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 58, 102, 0.10);
  --shadow-lg: 0 16px 42px rgba(11, 58, 102, 0.12);
  --container-max: 1120px;
  --gap-8: 8px; --gap-12: 12px; --gap-16: 16px; --gap-20: 20px; --gap-24: 24px; --gap-30: 30px; --gap-40: 40px;
}

/* ---------- Base Typography ---------- */
body {
  font-family: Arial, Helvetica, sans-serif; /* Brand body */
  color: var(--c-ink);
  background-color: #FFFDFB; /* gentle warm white */
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--c-primary); margin: 0 0 12px 0; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

p { margin: 0 0 14px 0; color: var(--c-ink); }
small { font-size: 14px; color: var(--c-muted); }
strong { color: var(--c-primary); }

/* Typographic scaling for larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  body { font-size: 17px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  body { font-size: 18px; }
}

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

/* Sections default spacing (plus mandatory .section class below) */
section { padding: 40px 0; }

/* ---------- Mandatory Spacing/Alignment Patterns ---------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.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; }

/* Responsive rule (required) */
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

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

.main-nav { display: none; align-items: center; gap: var(--gap-16); }
.main-nav a { color: var(--c-primary); padding: 10px 12px; border-radius: var(--radius-sm); transition: background-color .25s ease, color .25s ease; }
.main-nav a:hover { background: var(--c-accent); }
.main-nav a[aria-current="page"] { background: var(--c-warm-100); color: var(--c-primary); font-weight: bold; }

.lang-switch { color: var(--c-muted); font-size: 14px; display: none; }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--c-warm-100);
  color: var(--c-primary); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s ease, background .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); background: var(--c-warm-200); }

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

/* CTA button inside nav inherits .cta styles below */

/* ---------- Mobile Menu (Slide-in) ---------- */
.mobile-menu {
  position: fixed; inset: 0; display: flex; flex-direction: column; gap: var(--gap-20);
  background: rgba(11,58,102,0.08);
  transform: translateX(100%);
  transition: transform .35s ease; z-index: 9999; padding: 16px;
}
.mobile-menu .mobile-nav {
  display: flex; flex-direction: column; gap: 8px; background: #fff; padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.mobile-menu .mobile-nav a { padding: 12px 10px; border-radius: 10px; color: var(--c-primary); }
.mobile-menu .mobile-nav a:hover { background: var(--c-accent); }
.mobile-menu .mobile-nav a[aria-current="page"] { background: var(--c-warm-100); font-weight: bold; }
.mobile-menu-close {
  align-self: flex-end; width: 40px; height: 40px; border: none; border-radius: 10px; background: #fff;
  color: var(--c-primary); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.mobile-menu-close:hover { transform: translateY(-1px); background: var(--c-accent); }

/* Open state (support both attribute and helper class) */
.mobile-menu.open, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }

/* ---------- Hero ---------- */
.hero { background: var(--c-warm-50); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero .content-wrapper { gap: var(--gap-16); }
.brand-intro { display: flex; align-items: center; gap: 14px; }
.brand-intro img { width: 44px; height: 44px; }
.tagline { color: var(--c-secondary); margin: 0; font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--gap-12); }
.support-text { color: var(--c-muted); }

/* ---------- Buttons & Links ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--c-cta); color: #fff; padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(184, 77, 28, 0.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  font-weight: 700;
}
.cta:hover { transform: translateY(-2px); background: var(--c-cta-hover); box-shadow: 0 10px 24px rgba(184, 77, 28, 0.35); }
.cta:active { transform: translateY(0); }

/* Secondary CTA style */
.cta.secondary { background: transparent; color: var(--c-secondary); border: 2px solid var(--c-secondary); box-shadow: none; }
.cta.secondary:hover { background: var(--c-secondary); color: #fff; }

/* ---------- Lists & Content Elements ---------- */
.benefits, .icon-list, .feature-list, .benefit-bullets, .document-checklist,
.process-timeline, .stepper, .planning-timeline, .risk-mitigation-list,
.problem-statements, .appeal-options, .timeline-estimates, .rights-list,
.legal-bullets, .cookie-categories, .external-links-list, .download-list,
.evidence-sources, .country-expertise, .values-list, .quality-assurance,
.resource-list, .prohibited-uses, .timeline-short, .contact-list, .pain-point-list {
  display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none;
}

/* Icon bullets (img + text) */
.benefits li, .icon-list li, .contact-list li { display: flex; align-items: center; gap: 10px; }
.benefits img, .icon-list img, .contact-list img { width: 22px; height: 22px; }

/* Numbered steps */
.process-timeline li, .stepper li, .document-reconstruction-steps li, .timeline-short li {
  display: flex; align-items: center; gap: 12px;
}
.process-timeline li::before, .stepper li::before, .document-reconstruction-steps li::before, .timeline-short li::before {
  content: counter(step);
  counter-increment: step;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%; background: var(--c-warm-200); color: var(--c-primary); font-weight: 700;
}
.process-timeline, .stepper, .document-reconstruction-steps, .timeline-short { counter-reset: step; }

.text-section { display: flex; flex-direction: column; gap: 10px; background: #fff; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.note, .privacy-note, .security-note, .usage-notes, .form-notes, .billing-notes, .language-support-info { color: var(--c-muted); }

.disclaimer {
  background: #fff; border-left: 6px solid var(--c-secondary); padding: 14px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.stat-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--c-accent); color: var(--c-primary);
  padding: 12px 14px; border-radius: 999px; font-weight: 600;
}

/* ---------- Feature grids & cards (Flex-only) ---------- */
.feature-grid, .service-cards, .persona-cards, .checklist-cards, .resource-list {
  display: flex; flex-wrap: wrap; gap: var(--gap-20);
}
.feature-grid > div, .service-cards article, .persona-cards article, .checklist-cards article, .resource-list article {
  flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm);
}
.feature-grid h3 img { width: 22px; height: 22px; margin-right: 6px; vertical-align: middle; }

/* Persona, scenarios, solution teasers */
.persona, .solution-teasers, .scenario-matrix, .support-channels { display: flex; flex-direction: column; gap: 12px; background: var(--c-accent); padding: 16px; border-radius: var(--radius-md); }

/* ---------- Testimonials (dark text on light bg) ---------- */
.testimonial-card {
  background: var(--c-warm-100); color: var(--c-ink); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.rating-summary { color: var(--c-primary); font-weight: 700; }

/* ---------- Details / Summary ---------- */
details { border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
summary {
  list-style: none; cursor: pointer; padding: 14px 16px; color: var(--c-primary); font-weight: 700; display: flex; align-items: center; justify-content: space-between;
}
summary::after { content: '▾'; color: var(--c-secondary); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(180deg); }
details .text-section { border: none; box-shadow: none; border-top: 1px solid var(--c-border); border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* ---------- Footer ---------- */
footer { background: #fff; border-top: 1px solid var(--c-border); }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--gap-20); padding: 22px 0; }
footer .brand { display: flex; flex-direction: column; gap: 8px; }
footer .brand img { height: 36px; }
.mini-nav, .legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-nav a, .legal-links a { color: var(--c-primary); padding: 6px 8px; border-radius: 8px; }
.mini-nav a:hover, .legal-links a:hover { background: var(--c-accent); }
.contact-info { display: flex; flex-direction: column; gap: 6px; color: var(--c-muted); }

/* ---------- Link styles globally ---------- */
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-secondary); }

/* ---------- Address block ---------- */
address { font-style: normal; }

/* ---------- Forms (if added later) ---------- */
input, select, textarea { border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 12px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(47, 125, 104, 0.15); outline: none; }

/* ---------- Page-specific gentle accents ---------- */
/* Hero titles get soft shadow to add warmth */
.hero h1 { text-shadow: 0 1px 0 rgba(255,255,255,0.6); }

/* ---------- Lang switch ---------- */
.lang-switch { background: var(--c-accent); padding: 6px 10px; border-radius: 999px; }

/* ---------- Layout helpers ---------- */
.trust, .pricing { display: flex; flex-direction: column; gap: var(--gap-20); }
.pricing > .text-section { flex: 1 1 260px; }

/* Ensure adequate spacing between all content areas */
section .testimonial-card + .testimonial-card { margin-top: 16px; }
section .content-wrapper > * + * { margin-top: 4px; }

/* ---------- Tables (if appear) ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--c-border); }
th { background: var(--c-accent); color: var(--c-primary); }

/* ---------- Responsive adjustments ---------- */
@media (min-width: 768px) {
  .content-wrapper { gap: var(--gap-24); }
  .trust, .pricing { flex-direction: row; flex-wrap: wrap; }
  .pricing { align-items: flex-start; }
}

/* ---------- Cards hover micro-interactions ---------- */
.feature-grid > div:hover, .service-cards article:hover, .persona-cards article:hover, .checklist-cards article:hover, .resource-list article:hover, .text-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: box-shadow .25s ease, transform .25s ease;
}

/* ---------- Accessibility & Contrast in review/testimonial areas ---------- */
/* Dark text, light backgrounds already applied; reinforce link contrast */
.testimonial-card a { color: var(--c-primary); text-decoration: underline; }

/* ---------- Mandatory: prevent overlaps & ensure gaps ---------- */
section .content-wrapper { gap: var(--gap-20); }
.feature-grid, .service-cards, .persona-cards, .checklist-cards, .resource-list { gap: var(--gap-24); }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9998;
  display: flex; flex-direction: column; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  transform: translateY(120%); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.btn-accept { background: var(--c-secondary); color: #fff; }
.btn-accept:hover { background: #276B59; }
.btn-reject { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn-reject:hover { background: var(--c-accent); }
.btn-settings { background: #fff; color: var(--c-secondary); border-color: var(--c-secondary); }
.btn-settings:hover { background: #ECF7F3; }

/* Cookie Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -40%) scale(.95);
  display: flex; flex-direction: column; gap: 12px; width: min(680px, 92%);
  background: #fff; border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px; z-index: 9999; opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
}
.cookie-modal.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Utilities ---------- */
.hr { height: 1px; background: var(--c-border); border: none; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--c-accent); color: var(--c-primary); font-weight: 700; font-size: 13px; }

/* ---------- Page-specific list groupings ---------- */
.appeal-options li::marker,
.problem-statements li::marker,
.values-list li::marker,
.rights-list li::marker { content: '– '; color: var(--c-secondary); }

/* ---------- Header nav CTA alignment ---------- */
.main-nav .cta { padding: 10px 14px; }

/* ---------- Alignments for common sections ---------- */
.persona ul, .problem-statements, .planning-timeline, .risk-mitigation-list { padding-left: 0; }

/* ---------- Images in lists ---------- */
li img { flex: 0 0 auto; }

/* ---------- Ensure non-overlapping content on larger layouts ---------- */
@media (min-width: 992px) {
  .container { gap: var(--gap-24); }
  .content-grid { justify-content: space-between; }
  .pricing { gap: var(--gap-24); }
}

/* ---------- Address stylistic elements ---------- */
.address, .languages-list { color: var(--c-muted); }

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

/* ---------- Extra: text-image-section specific responsiveness ---------- */
.text-image-section > * { flex: 1 1 300px; }

/* ---------- Additional small helpers ---------- */
.brand img, .logo img { border-radius: 6px; }

/* ---------- Support for rating and proof points ---------- */
.proof-points { color: var(--c-secondary); font-weight: 600; }

/* ---------- Accessibility contrast tweaks where needed ---------- */
.details, details p, .testimonial-card p { color: var(--c-ink); }

/* ---------- End of file ---------- */