/* digitalfinance.asfromania.ro — ASF palette (#0f4c81) and typeface (Muli / Mulish) */
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/mulish-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/mulish-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --asf: #0f4c81;
  --asf-dark: #0b3a63;
  --navy: #082442;
  --sky: #3a8fd4;
  --sky-soft: #9cc7ec;
  --ink: #142a44;
  --muted: #55677d;
  --line: #d6e1ee;
  --soft: #eef3f9;
  --soft-2: #e3ebf5;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 36, 66, .06), 0 8px 24px rgba(8, 36, 66, .08);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "Mulish", "Muli", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--asf); }
a:hover { color: var(--sky); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--asf-dark); }
h1 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .8em 1.4em; border-radius: 999px; font-weight: 800;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-primary { background: var(--asf); color: var(--white); }
.btn-primary:hover { background: var(--asf-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--asf); }
.btn-light:hover { background: var(--soft); color: var(--asf-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-outline { border-color: var(--asf); color: var(--asf); }
.btn-outline:hover { background: var(--asf); color: var(--white); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--asf); color: var(--white);
  box-shadow: 0 2px 12px rgba(8, 36, 66, .25); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--white); text-decoration: none; }
.brand img { width: 130px; height: auto; display: block; }
.brand-text { font-weight: 800; font-size: .95rem; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .35); line-height: 1.25; max-width: 160px; }
.brand:hover { color: var(--white); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; color: var(--white); text-decoration: none; font-weight: 700; border-radius: 8px; }
.site-nav ul a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sky-soft); border-radius: 0; }
.lang { color: var(--white); font-weight: 800; text-decoration: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px; padding: 3px 9px; font-size: .85rem; }
.lang:hover { background: var(--white); color: var(--asf); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white); content: ""; transition: transform .2s; }
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { top: -7px; left: 0; }
.nav-toggle span:first-child::after { top: 7px; left: 0; }

/* home hero: pattern generated by pattern.py */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: url(/assets/img/hero-pattern.svg) 62% center / cover no-repeat, linear-gradient(135deg, var(--asf) 0%, var(--navy) 100%); }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 36, 66, .55) 0%, rgba(8, 36, 66, .25) 45%, rgba(8, 36, 66, 0) 70%); }
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 900px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .82rem; color: var(--sky-soft); margin-bottom: 1.1em; }
.kicker-dark { color: var(--sky); }
.motto { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; color: #dbe9f7; max-width: 820px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.hero-meta span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.hero-intro { max-width: 760px; color: #d2e2f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* inner page hero */
.page-hero { color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden;
  background: url(/assets/img/hero-pattern.svg) right center / cover no-repeat, linear-gradient(135deg, var(--asf) 0%, var(--navy) 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 36, 66, .6) 0%, rgba(8, 36, 66, .2) 55%, rgba(8, 36, 66, 0) 80%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: #d2e2f2; max-width: 820px; font-size: 1.1rem; margin: 0; }

/* sections */
.section { padding: 80px 0; }
.section-soft { background: linear-gradient(180deg, var(--soft) 0%, var(--soft-2) 100%); }
.section-title { margin-bottom: .3em; }
.section-lead { color: var(--muted); margin-bottom: 32px; }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); }
.prose p:first-child { color: var(--ink); font-size: 1.08rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.tags li { border: 1.5px solid var(--asf); color: var(--asf); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* themes */
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.theme-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: 32px 28px; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--asf); transition: transform .2s, box-shadow .2s; }
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8, 36, 66, .14); color: var(--ink); }
.theme-card .num { font-size: 2.6rem; font-weight: 800; color: var(--sky-soft); line-height: 1; margin-bottom: 18px; }
.theme-card p { color: var(--muted); flex: 1; }
.theme-card .more { color: var(--asf); font-weight: 800; font-size: .92rem; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0 0; }
.fact { background: var(--soft); border-radius: var(--radius); padding: 22px 22px; border-left: 4px solid var(--asf); }
.fact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.fact dd { margin: 6px 0 0; font-weight: 800; color: var(--asf-dark); font-size: 1.1rem; line-height: 1.35; }
.facts-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-compact .fact { padding: 18px 16px; }
.facts-compact .fact dt { font-size: 1.3rem; white-space: nowrap; letter-spacing: 0; text-transform: none; color: var(--asf); }
.facts-compact .fact dd { font-weight: 600; font-size: .92rem; color: var(--muted); }

/* QR cards, after the example's "Plan your day" */
.qr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qr-card { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fafd 0%, #e2eaf5 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-card .qr { width: 132px; height: 132px; flex: none; background: var(--white); border-radius: 8px; padding: 4px; }
.qr-event { font-weight: 800; color: var(--asf); margin: 0; line-height: 1.25; }
.qr-meta { font-size: .86rem; color: var(--ink); margin: 6px 0 8px; line-height: 1.4; }
.qr-name { font-size: 1.15rem; margin: 0 0 12px; color: var(--asf); font-weight: 800; }

/* closing band */
.closing { background: var(--asf); color: var(--white); text-align: center; padding: 64px 0; }
.closing p { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; max-width: 860px; margin: 0 auto 26px; }

/* agenda */
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.slot { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 40px; margin-bottom: 28px; position: relative; }
.slot::before { content: ""; position: absolute; left: 86px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--asf); box-shadow: 0 0 0 4px var(--white); }
.slot-time { text-align: right; font-weight: 800; color: var(--asf); display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1.3; padding-top: 2px; }
.slot-time span + span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.slot-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.slot-body h2 { font-size: 1.45rem; }
.slot-body h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 22px 0 10px; }
.slot-label { display: inline-block; background: var(--asf); color: var(--white); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.slot-sub { color: var(--muted); font-size: 1.02rem; margin: -4px 0 0; }
.slot-break::before { background: var(--sky-soft); }
.slot-break .slot-body { background: var(--soft); box-shadow: none; border-style: dashed; padding: 16px 28px; }
.slot-break .slot-body h2 { font-size: 1.1rem; margin: 0; color: var(--muted); }
.topics { margin: 0; padding-left: 1.1em; color: var(--ink); }
.topics li { margin-bottom: 4px; }
.topics li::marker { color: var(--sky); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.person { display: flex; gap: 14px; align-items: center; }
.person strong { display: block; color: var(--asf-dark); }
.person .role { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.agenda-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.side-box { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.side-box .btn { margin-top: 18px; width: 100%; justify-content: center; text-align: center; font-size: .92rem; }
.side-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.qr-box img { display: block; width: 180px; height: 180px; background: var(--white); border-radius: 8px; padding: 6px; margin-bottom: 12px; }
.small { font-size: .88rem; color: var(--muted); }
.downloads { margin: 0; padding-left: 1.1em; font-size: .92rem; font-weight: 700; }

/* avatars */
.avatar { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--white);
  background: linear-gradient(135deg, var(--sky) 0%, var(--asf) 70%); font-size: 2.4rem; letter-spacing: .02em; }
.avatar-sm { width: 46px; height: 46px; font-size: .95rem; }

/* speakers */
.speaker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.speaker { background: var(--white); border-radius: var(--radius); padding: 28px 22px 22px; text-align: center; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; scroll-margin-top: 100px; }
.speaker .avatar { margin-bottom: 16px; box-shadow: 0 0 0 5px var(--soft); }
.speaker h3 { margin-bottom: .35em; }
.speaker .role { font-size: .9rem; color: var(--muted); line-height: 1.45; flex: 1; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--soft); color: var(--asf);
  padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.chip:hover { background: var(--asf); color: var(--white); }
.chip-plain { background: var(--asf); color: var(--white); }

/* venue */
.map-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
.map iframe { display: block; width: 100%; height: 480px; border: 0; }
address { font-style: normal; font-weight: 800; color: var(--asf-dark); margin-bottom: 18px; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

/* footer */
.site-footer { background: var(--navy); color: #c4d5e8; padding: 56px 0 24px; font-size: .94rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 4fr 3fr 4fr; gap: 40px; }
.footer-grid img { width: 130px; margin-bottom: 16px; }
.footer-logos { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; }
.footer-logos img { margin-bottom: 0; }
.footer-logos img + img { width: auto; height: 40px; }
.footer-event { color: var(--white); font-weight: 800; margin-bottom: .3em; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; font-weight: 700; }
.footer-nav a:hover { text-decoration: underline; color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.values { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--sky-soft); }

/* responsive */
@media (max-width: 1080px) {
  .speaker-grid { grid-template-columns: repeat(3, 1fr); }
  .qr-cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .brand-text { display: none; }
}
@media (max-width: 900px) {
  .hero, .page-hero { background-position: 78% center, 0 0; }
  .hero::before { background: rgba(8, 36, 66, .45); }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--asf-dark); flex-direction: column;
    align-items: stretch; padding: 12px 24px 24px; gap: 12px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sky-soft); }
  .lang { align-self: flex-start; }
  .site-nav .btn { align-self: flex-start; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
  .two-col, .map-layout, .agenda-layout { grid-template-columns: 1fr; gap: 32px; }
  .agenda-side { position: static; }
  .theme-cards { grid-template-columns: 1fr; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .qr-cards, .facts, .facts-compact { grid-template-columns: 1fr; }
  .qr-card .qr { width: 110px; height: 110px; }
  .speaker-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .speaker { padding: 20px 12px 16px; }
  .speaker .avatar { width: 96px; height: 96px; font-size: 1.8rem; }
  .timeline::before { left: 7px; }
  .slot { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; }
  .slot::before { left: 1px; top: 6px; }
  .slot-time { flex-direction: row; gap: 8px; text-align: left; }
  .slot-time span + span::before { content: "– "; }
  .slot-body { padding: 20px 18px; }
  .map iframe { height: 340px; }
}
@media print {
  .site-header, .site-footer, .agenda-side, .hero-actions, .nav-toggle { display: none !important; }
  .page-hero, .hero { background: none; color: var(--ink); padding: 0 0 12px; }
  .page-hero h1, .hero h1 { color: var(--asf); }
  .slot-body { box-shadow: none; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* speaker biographies */
.bio-btn { margin: 0 0 14px; font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: var(--asf);
  background: var(--white); border: 1.5px solid var(--asf); border-radius: 999px; padding: 4px 16px; cursor: pointer; }
.bio-btn:hover, .bio-btn:focus-visible { background: var(--asf); color: var(--white); }
.bio-btn[hidden] { display: none; }
.bio-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(8, 36, 66, .35); color: var(--ink); text-align: left; }
.bio-dialog::backdrop { background: rgba(8, 36, 66, .6); }
.bio-inner { position: relative; padding: 32px 36px 24px; }
.bio-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft);
  color: var(--asf-dark); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.bio-close:hover, .bio-close:focus-visible { background: var(--asf); color: var(--white); }
.bio-head { display: flex; align-items: center; gap: 20px; margin: 0 40px 20px 0; }
.bio-head .avatar { margin: 0; width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--soft); }
.bio-head h3 { margin-bottom: .2em; font-size: 1.3rem; }
.bio-head .role { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.bio-text p { font-size: .98rem; }
@media (max-width: 640px) {
  .bio-inner { padding: 24px 20px 16px; }
  .bio-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-right: 36px; }
  .bio-head .avatar { width: 80px; height: 80px; }
}
