/* ===== ACCESIBILITATE-WEB.RO – Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --blue: #1a56db;
  --blue-light: #e8f0fe;
  --blue-dark: #1239a6;
  --navy: #0f1d40;
  --teal: #0d9488;
  --teal-light: #e0f2f1;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --green: #16a34a;
  --green-light: #dcfce7;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
}

*, *::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, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--gray-600); line-height: 1.8; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: var(--gray-800); }

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

/* ===== NAVIGATION ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--navy); text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  color: var(--gray-600); font-size: .92rem; font-weight: 500;
  transition: all .15s;
}
.nav-links a:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }
.nav-links a.active { color: var(--blue); background: var(--blue-light); }
.btn-nav {
  background: var(--blue); color: var(--white) !important;
  padding: 8px 18px !important; border-radius: var(--radius-sm);
  font-weight: 600 !important; transition: background .15s !important;
}
.btn-nav:hover { background: var(--blue-dark) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 12px;
    border-bottom: 1px solid var(--gray-200); gap: 2px; }
  .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: 600; font-size: .95rem;
  cursor: pointer; transition: all .18s; text-decoration: none; border: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.35); text-decoration: none; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); text-decoration: none; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-size: .78rem; font-weight: 600;
}
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-green { background: var(--green-light); color: var(--green); }

/* ===== CARDS ===== */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px; transition: all .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); transform: translateY(-2px); }
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 60%, #1239a6 100%);
  color: var(--white); padding: 96px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary { background: var(--white); color: var(--navy); }
.btn-hero-primary:hover { background: var(--gray-100); text-decoration: none; color: var(--navy); }
.btn-hero-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-hero-secondary:hover { background: rgba(255,255,255,.1); text-decoration: none; color: var(--white); }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 4px; }

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

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

/* ===== LEGAL HIGHLIGHT BOX ===== */
.law-box {
  background: linear-gradient(135deg, #0f1d40, #1a3a8f);
  border-radius: var(--radius-lg); padding: 48px; color: var(--white);
  position: relative; overflow: hidden;
}
.law-box::before {
  content: '§'; position: absolute; right: 32px; top: 16px;
  font-size: 180px; font-family: var(--font-display); color: rgba(255,255,255,.05);
  line-height: 1;
}
.law-box h3 { color: var(--white); }
.law-box p { color: rgba(255,255,255,.75); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--blue-light); border-radius: var(--radius-lg);
  padding: 52px 48px; text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin-bottom: 28px; }

/* ===== ACCORDION ===== */
.accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.accordion-btn {
  width: 100%; background: none; border: none; padding: 18px 24px;
  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(--gray-50); }
.accordion-btn[aria-expanded="true"] { background: var(--blue-light); color: var(--blue-dark); }
.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: 0 24px 20px; }
.accordion-body.open { display: block; }

/* ===== 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(--gray-50); }
thead th { padding: 14px 18px; text-align: left; font-weight: 600; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
tbody td { padding: 14px 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(--gray-50); }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--red); font-size: 1.1rem; }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 24px; position: relative; padding-bottom: 36px; }
.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(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; z-index: 1; }
.step-connector { width: 2px; flex: 1; background: var(--gray-200); margin: 4px 0; }
.step:last-child .step-connector { display: none; }
.step-content { padding-top: 10px; }
.step-content h4 { margin-bottom: 6px; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 60px 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-brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-desc { font-size: .88rem; line-height: 1.7; }
.footer-col h5 { color: var(--white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .88rem; 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,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; }
.footer-bottom p { font-size: .83rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--gray-400); margin-bottom: 20px; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--gray-300); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 100%);
  padding: 64px 0 56px; color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 640px; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 24px; margin: 28px 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); }

/* ===== WCAG CRITERIA ===== */
.criteria-group { margin-bottom: 36px; }
.criteria-group h3 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.criterion { background: var(--gray-50); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 16px; }
.criterion-level { padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.level-a { background: var(--green-light); color: var(--green); }
.level-aa { background: var(--amber-light); color: var(--amber); }
.level-aaa { background: var(--red-light); color: var(--red); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.gap-top { padding-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 32px; }
  .law-box { padding: 32px 24px; }
  .cta-banner { padding: 36px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
