/* ===== ACCESIBILITATE-WCAG.RO – Brand Wawsome ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

:root {
  /* Wawsome Brand Palette */
  --navy:        #0f1040;
  --navy-light:  #1a1760;
  --navy-mid:    #16135a;
  --purple:      #5b21b6;
  --purple-mid:  #7c3aed;
  --violet:      #8b5cf6;
  --violet-bright:#a855f7;
  --violet-light:#ede9fe;
  --violet-pale: #f5f3ff;
  --accent:      #7c3aed;
  --accent-glow: rgba(124,58,237,.35);

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #fafafa;
  --gray-100:    #f4f4f5;
  --gray-200:    #e4e4e7;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --gray-900:    #111827;

  /* Semantic */
  --green:       #10b981;
  --green-light: #d1fae5;
  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --red:         #ef4444;
  --red-light:   #fee2e2;
  --teal:        #06b6d4;
  --teal-light:  #cffafe;

  /* Typography */
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 1px 3px rgba(15,16,64,.08);
  --shadow:     0 4px 20px rgba(15,16,64,.10);
  --shadow-lg:  0 12px 48px rgba(15,16,64,.14);
  --shadow-purple: 0 8px 32px rgba(124,58,237,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--gray-600); line-height: 1.8; }
a  { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; color: var(--gray-800); }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 52px 0; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--navy); text-decoration: none; letter-spacing: -.02em;
}
.nav-logo img { height: 28px; width: auto; mix-blend-mode: multiply; } /* dark logo on white bg */
.nav-logo-sep { width: 1px; height: 22px; background: var(--gray-200); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  color: var(--gray-600); font-size: .9rem; font-weight: 500;
  transition: all .15s;
}
.nav-links a:hover { background: var(--violet-pale); color: var(--purple); text-decoration: none; }
.nav-links a.active { color: var(--purple); background: var(--violet-light); font-weight: 600; }
.btn-nav {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 8px 18px !important; border-radius: var(--radius-sm) !important;
  font-weight: 700 !important; letter-spacing: -.01em;
  transition: all .18s !important; white-space: nowrap;
}
.btn-nav:hover { background: var(--purple) !important; transform: translateY(-1px); box-shadow: var(--shadow-purple) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200); gap: 2px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .2s; text-decoration: none; border: none;
  letter-spacing: -.01em;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-purple); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--violet-pale); text-decoration: none; }
.btn-light  { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--gray-100); text-decoration: none; color: var(--navy); }
.btn-ghost  { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; color: var(--white); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; border-radius: var(--radius); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 100px; font-size: .77rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge-purple { background: var(--violet-light); color: var(--purple); }
.badge-navy   { background: #e8eaf6; color: var(--navy); }
.badge-green  { background: var(--green-light); color: #065f46; }
.badge-amber  { background: var(--amber-light); color: #92400e; }
.badge-red    { background: var(--red-light); color: #b91c1c; }
.badge-teal   { background: var(--teal-light); color: #0e7490; }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 100px 0 96px;
}
/* Animated dot grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(139,92,246,.18) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* Purple glow orbs */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(124,58,237,.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(91,33,182,.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 22px; font-weight: 700; }
.hero h1 span { color: #c4b5fd; } /* high-contrast violet on dark — passes WCAG AA */
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 38px; max-width: 580px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 6px 14px; font-size: .82rem; color: rgba(255,255,255,.75);
  margin-bottom: 22px;
}
.hero-pill span { color: var(--violet-bright); font-weight: 700; }

/* Stat bar */
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--white); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-stat-num span { color: #c4b5fd; } /* lighter violet — better contrast on dark bg */
.hero-stat-label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 5px; line-height: 1.4; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 30px;
  transition: all .22s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--violet); transform: translateY(-3px); }
.card-grid   { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

/* ===== PURPLE BAND ===== */
.band-purple {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #2d1b7e 100%);
  position: relative; overflow: hidden;
}
.band-purple::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(139,92,246,.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.band-purple::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 85% 50%, rgba(124,58,237,.4) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== LAW BOX ===== */
.law-box {
  background: linear-gradient(135deg, var(--navy) 0%, #2d1b7e 100%);
  border-radius: var(--radius-lg); padding: 40px; color: var(--white);
  position: relative; overflow: hidden;
}
.law-box::before {
  content: '§';
  position: absolute; right: 28px; top: 8px;
  font-size: 160px; font-family: var(--font-display); font-weight: 800;
  color: rgba(255,255,255,.04); line-height: 1; pointer-events: none;
}
.law-box h3 { color: var(--white); margin-bottom: 12px; }
.law-box p  { color: rgba(255,255,255,.88); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2d1b7e 100%);
  border-radius: var(--radius-xl); padding: 60px 52px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(139,92,246,.15) 1px, transparent 1px);
  background-size: 30px 30px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.5) 0%, transparent 70%);
  top: -120px; right: -80px; pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.88); margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Wawsome logo in banner */
.cta-logo { margin-bottom: 24px; }
.cta-logo img { height: 36px; width: auto; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.feature-list li:last-child { border-bottom: none; }
.feature-list-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--violet-light); color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: var(--violet-pale); border-left: 4px solid var(--purple); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 24px 0; }
.highlight-box.warning { background: var(--amber-light); border-color: var(--amber); }
.highlight-box.success { background: var(--green-light); border-color: var(--green); }
.highlight-box.danger  { background: var(--red-light); border-color: var(--red); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead { background: var(--navy); }
thead th { padding: 14px 18px; text-align: left; font-weight: 700; color: var(--white); font-family: var(--font-display); font-size: .85rem; letter-spacing: .02em; }
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--violet-pale); }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--red); }

/* ===== LEVEL BADGES ===== */
.criterion-level { padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.level-a   { background: var(--green-light); color: #065f46; }
.level-aa  { background: var(--violet-light); color: var(--purple); }
.level-aaa { background: var(--navy); color: var(--white); }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 22px; position: relative; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step-line { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; z-index: 1; font-family: var(--font-display); }
.step-connector { width: 2px; flex: 1; background: var(--gray-200); margin: 6px 0; }
.step:last-child .step-connector { display: none; }
.step-content { padding-top: 10px; }
.step-content h4 { margin-bottom: 6px; color: var(--navy); }

/* ===== ACCORDION ===== */
.accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion-btn {
  width: 100%; background: none; border: none; padding: 18px 22px;
  text-align: left; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; color: var(--gray-800); transition: background .15s;
}
.accordion-btn:hover { background: var(--violet-pale); }
.accordion-btn[aria-expanded="true"] { background: var(--violet-light); color: var(--purple); }
.accordion-icon { flex-shrink: 0; transition: transform .25s; width: 20px; height: 20px; }
.accordion-btn[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 4px 22px 20px; }
.accordion-body.open { display: block; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--navy);
  padding: 64px 0 56px; color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(139,92,246,.15) 1px, transparent 1px);
  background-size: 30px 30px;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(124,58,237,.4) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; font-weight: 700; }
.page-hero p  { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 640px; line-height: 1.7; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .84rem; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: rgba(255,255,255,.9); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }
.breadcrumb-current { color: rgba(255,255,255,.85); }

/* ===== WAWSOME PARTNER BAR ===== */
.partner-bar {
  background: var(--navy); border-bottom: 1px solid rgba(139,92,246,.3);
  padding: 10px 0;
}
.partner-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: .85rem; color: rgba(255,255,255,.8);
}
/* Light logo (white text) on dark backgrounds — screen blend removes black bg */
.partner-bar img,
.footer-logo img,
.cta-logo img,
img.logo-light {
  height: 22px; width: auto;
  mix-blend-mode: screen; /* removes black JPEG background on dark bg */
}
.footer-logo img { height: 28px; }
.cta-logo img    { height: 34px; }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 28px; width: auto; }
.footer-desc { font-size: .87rem; line-height: 1.75; color: rgba(255,255,255,.75); }
.footer-col h5 { color: var(--white); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: .87rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.65); }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.text-violet { color: var(--violet-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== CONTRAST FIXES — WCAG AA compliance ===== */
/* All text on dark navy/purple backgrounds must pass 4.5:1 */
.band-purple p,
.band-purple div { color: rgba(255,255,255,.88); }
.band-purple h2,
.band-purple h3  { color: white; }

/* Feature card subtitles inside dark sections */
.band-purple .card p { color: rgba(255,255,255,.85); }

/* Law box muted data labels */
.law-box [style*="rgba(255,255,255,."] { color: rgba(255,255,255,.75) !important; }

/* Hero subtitle on dark bg */
.hero-sub { color: rgba(255,255,255,.88) !important; }

/* ===== OVERFLOW PREVENTION ===== */
.hero-stat-num { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.hero-stats > div { min-width: 0; flex: 0 1 auto; }

/* SVG inside dark containers: default font-family fix */
svg text { font-family: system-ui, -apple-system, sans-serif; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.6rem; }
  .cta-banner { padding: 40px 24px; }
  .law-box { padding: 28px 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.4rem; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}
