/* ============================================================
   ProvenanceMedIA — Main Stylesheet
   Design: Institutional / NGO / EU-style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables ----------------------------------------------- */
:root {
  --blue-dark:    #1a3a5c;
  --blue-main:    #2563eb;
  --blue-light:   #dbeafe;
  --orange:       #f97316;
  --orange-light: #fff7ed;
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --radius:       8px;
  --radius-lg:    12px;
  --transition:   .2s ease;
  --max-width:    1100px;
}

/* --- Reset & Base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --------------------------------------------- */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);      font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout ------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section        { padding: 5rem 0; }
.section--gray  { background: var(--bg); }
.section--white { background: var(--surface); }

/* --- Navbar ------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.navbar__logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
}
.navbar__logo-symbol { flex-shrink: 0; display: block; }
.navbar__wordmark    { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.navbar__brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #003399;
  letter-spacing: -0.01em;
  line-height: 1;
}
.navbar__brand-med { font-weight: 400; }
.navbar__brand-ia  { font-weight: 700; color: var(--orange); }
.navbar__tagline {
  font-family: 'DM Mono', monospace;
  font-size: .48rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(0,51,153,.38);
  line-height: 1;
}
.navbar__nav {
  display: flex; align-items: center; gap: .1rem; list-style: none;
}
.navbar__nav a {
  color: var(--text-muted); font-size: .84rem; font-weight: 500;
  padding: .4rem .65rem; border-radius: var(--radius);
  transition: all var(--transition);
}
.navbar__nav a:hover,
.navbar__nav a.active { color: var(--blue-main); background: var(--blue-light); }
.navbar__right { display: flex; align-items: center; gap: .75rem; }
.lang-switcher { position: relative; }
.lang-switcher__btn {
  display: flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; font-size: .78rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.lang-switcher__btn:hover { border-color: var(--blue-main); color: var(--blue-main); }
.lang-switcher__btn svg { transition: transform var(--transition); }
.lang-switcher.open .lang-switcher__btn svg { transform: rotate(180deg); }
.lang-switcher__menu {
  display: none; position: absolute; top: calc(100% + .4rem); right: 0;
  min-width: 7rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  list-style: none; padding: .25rem 0; margin: 0; z-index: 200;
}
.lang-switcher__menu li { display: block; }
.lang-switcher.open .lang-switcher__menu { display: block; }
.lang-switcher__menu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; font-size: .8rem; font-weight: 600;
  color: var(--text-muted); transition: all var(--transition);
}
.lang-switcher__menu a:hover { background: var(--blue-light); color: var(--blue-main); }
.lang-switcher__menu a.active { color: var(--blue-main); font-weight: 700; }

/* Hamburger */
.navbar__toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; flex-direction: column; gap: 5px;
}
.navbar__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* --- Hero --------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0f2744 100%);
  color: #fff; padding: 7rem 0 5.5rem; text-align: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600;
  padding: .3rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  max-width: 780px; margin: 0 auto 1.5rem; color: #fff;
  font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.15;
}
.hero__subtitle {
  max-width: 520px; margin: 0 auto .75rem;
  font-size: 1.2rem; color: rgba(255,255,255,.7);
}
.hero__descriptor {
  max-width: 560px; margin: 0 auto 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: .8rem; letter-spacing: .16em;
  color: rgba(255,255,255,.38); text-transform: uppercase;
}
.hero__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
}
.btn--primary { background: var(--blue-main); color: #fff; border-color: var(--blue-main); }
.btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn--orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--orange:hover { background: #ea6c00; border-color: #ea6c00; color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-main); border-color: var(--blue-main); }
.btn--ghost:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn--sm { padding: .45rem 1rem; font-size: .85rem; }

/* --- Cards -------------------------------------------------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.4rem;
}
.card__icon--blue   { background: var(--blue-light); }
.card__icon--orange { background: var(--orange-light); }
.card h3 { margin-bottom: .5rem; color: var(--blue-dark); }

/* --- Section header ----------------------------------------- */
.section-header {
  text-align: center; max-width: 640px; margin: 0 auto 3.5rem;
}
.section-header h2 { color: var(--blue-dark); margin-bottom: .75rem; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }

/* --- Page header -------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0f2744 100%);
  color: #fff; padding: 4rem 0 3rem;
}
.page-header h1 { color: #fff; margin-bottom: .75rem; }
.page-header p  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 620px; }

/* --- Neutral banner ----------------------------------------- */
.neutral-banner {
  background: var(--blue-light); border-left: 4px solid var(--blue-main);
  padding: 1rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--blue-dark); font-weight: 500; margin: 2rem 0;
}

/* --- Alert box ---------------------------------------------- */
.alert-box {
  background: var(--orange-light); border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.alert-box__label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--orange); margin-bottom: .3rem;
}

/* --- Info box ----------------------------------------------- */
.info-box {
  background: var(--blue-light); border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.info-box__title {
  font-weight: 700; color: var(--blue-dark); margin-bottom: .4rem;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
}

/* --- Two columns -------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* --- Check list --------------------------------------------- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.55; }
.check-list li::before {
  content: '✓'; background: var(--blue-main); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; flex-shrink: 0; margin-top: .18rem;
}

/* --- Steps -------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 2.5rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step__number {
  width: 48px; height: 48px; background: var(--blue-main); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
}
.step__content h3 { margin-bottom: .5rem; color: var(--blue-dark); font-size: 1.1rem; }
.step__content p  { color: var(--text-muted); }

/* --- Email template box ------------------------------------- */
.email-box {
  background: #f1f5f9; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 1rem;
}
.email-box__header {
  background: var(--border); padding: .6rem 1rem;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.email-box__subject {
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; color: var(--blue-dark);
}
.email-box__body {
  padding: 1rem; font-size: .875rem; line-height: 1.75;
  white-space: pre-wrap; color: var(--text);
}

/* --- FAQ accordion ------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item__question {
  width: 100%; text-align: left; padding: 1.1rem 1.5rem;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .975rem; font-weight: 600; color: var(--blue-dark);
  transition: background var(--transition);
}
.faq-item__question:hover { background: var(--blue-light); }
.faq-item__question::after {
  content: '+'; font-size: 1.5rem; font-weight: 300;
  color: var(--blue-main); transition: transform var(--transition); flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-item__question::after { transform: rotate(45deg); }
.faq-item__answer {
  display: none; padding: 0 1.5rem 1.1rem; color: var(--text-muted); line-height: 1.7;
}
.faq-item.open .faq-item__answer { display: block; }

/* --- Contact form ------------------------------------------- */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 500; margin-bottom: .4rem;
  font-size: .88rem; color: var(--blue-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface); transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-main);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-message {
  padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500;
}
.form-message--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-message--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- Resources ---------------------------------------------- */
.resource-list { display: flex; flex-direction: column; gap: .65rem; }
.resource-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.resource-item:hover { border-color: var(--blue-main); box-shadow: var(--shadow-sm); }
.resource-item__icon { font-size: 1.3rem; flex-shrink: 0; }
.resource-item__title { font-weight: 600; color: var(--blue-dark); margin-bottom: .1rem; }
.resource-item__meta  { font-size: .78rem; color: var(--text-muted); }

/* --- Resources note ----------------------------------------- */
.resources-note {
  max-width: 760px; margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .875rem; font-style: italic;
  color: var(--text-muted); line-height: 1.7;
}

/* --- Glossary ----------------------------------------------- */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; }
.glossary-term {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.glossary-term dt { font-weight: 700; color: var(--blue-dark); margin-bottom: .3rem; }
.glossary-term dd { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* --- Why urgent section ------------------------------------- */
.why-urgent { background: var(--blue-dark); color: #fff; padding: 4.5rem 0; }
.why-urgent h2 { color: #fff; margin-bottom: 1rem; }
.why-urgent p  { color: rgba(255,255,255,.8); max-width: 640px; margin-bottom: 1.5rem; }

/* --- Lucide icons ------------------------------------------- */
/* Card icon box */
.card__icon svg           { width: 26px; height: 26px; color: var(--blue-main); }
.card__icon--orange svg   { color: var(--orange); }

/* Risk card h3 icon */
.risk-card h3 svg         { width: 18px; height: 18px; color: var(--orange); vertical-align: middle; margin-right: .35rem; margin-bottom: 2px; }

/* Obligation block h3 icon */
.obligation-block h3 svg  { width: 18px; height: 18px; color: var(--blue-main); vertical-align: middle; margin-right: .35rem; margin-bottom: 2px; }

/* How-it-works step icon */
.step-icon                { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--blue-light); border-radius: var(--radius-lg); margin: 0 auto .9rem; }
.step-icon svg            { width: 28px; height: 28px; color: var(--blue-main); }

/* Sections titles */
.section-icon svg         { width: 24px; height: 24px; color: var(--blue-dark); vertical-align: middle; margin-right: .4rem; margin-bottom: 3px; }

/* Resource item icon */
.resource-item__icon svg  { width: 22px; height: 22px; color: var(--blue-main); }

/* Sanctions section */
.sanctions-icon svg       { width: 22px; height: 22px; color: var(--blue-dark); vertical-align: middle; margin-right: .4rem; margin-bottom: 3px; }

/* --- Tag ---------------------------------------------------- */
.tag {
  display: inline-block; padding: .2rem .65rem; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.tag--orange { background: var(--orange-light); color: var(--orange); border: 1px solid #fed7aa; }
.tag--blue   { background: var(--blue-light);   color: var(--blue-main); border: 1px solid #bfdbfe; }

/* --- Risk cards -------------------------------------------- */
.risk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; border-top: 4px solid var(--orange);
}
.risk-card h3 { color: var(--blue-dark); margin-bottom: .6rem; }
.risk-card p  { color: var(--text-muted); font-size: .95rem; }

/* --- Obligation block --------------------------------------- */
.obligation-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.obligation-block h3 {
  color: var(--blue-dark); margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-light);
}

/* --- Footer ------------------------------------------------- */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer__brand-name    { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer__brand-tagline { font-size: .85rem; line-height: 1.6; margin-bottom: .75rem; }
.footer__neutral       { font-size: .8rem; font-style: italic; color: rgba(255,255,255,.45); }
.footer__col-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: .75rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.footer__links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: .8rem;
}
.footer__langs { display: flex; gap: .5rem; align-items: center; }
.footer__langs a {
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.4);
  padding: .15rem .3rem; transition: color var(--transition);
}
.footer__langs a:hover,
.footer__langs a[aria-current] { color: #fff; }

/* --- Responsive --------------------------------------------- */
@media (max-width: 960px) {
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__nav.open {
    display: flex; flex-direction: column; gap: .2rem;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; z-index: 99; box-shadow: var(--shadow-md);
  }
  .navbar__nav.open a { padding: .6rem .75rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .glossary { grid-template-columns: 1fr; }
}
