/*
Theme Name: Dr Hessam Emergency
Theme URI: https://dr-hessam.ir
Author: Hannover IT
Author URI: https://www.hannoverit.com
Description: A modern bilingual emergency medicine theme for Dr. Roxana Hessam, sharing all content with Dr Hessam Academic.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: dr-hessam
*/

@font-face { font-family: Vazirmatn; src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #061621;
  --navy: #0b2636;
  --navy-2: #12384b;
  --cyan: #25d3c5;
  --cyan-soft: #dff9f6;
  --red: #ff5b62;
  --red-soft: #fff0f1;
  --ice: #eff6f7;
  --paper: #fff;
  --ink: #0b2636;
  --muted: #617681;
  --line: #d8e5e8;
  --shadow: 0 24px 70px rgba(6, 30, 43, .13);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--ice); font-family: Vazirmatn, Tahoma, Arial, sans-serif; line-height: 1.9; -webkit-font-smoothing: antialiased; }
body.lang-en { font-family: Vazirmatn, Inter, Arial, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 99; padding: 10px 16px; color: var(--night); background: var(--cyan); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(96,143,161,.25); background: rgba(6,22,33,.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; font-weight: 700; }
.brand-mark { position: relative; display: grid; place-items: center; width: 43px; height: 43px; overflow: hidden; color: transparent; background: var(--red); border-radius: 12px; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 6px; background: #fff; border-radius: 2px; transform: translate(-50%,-50%); }
.brand-mark::after { transform: translate(-50%,-50%) rotate(90deg); }
.nav { display: flex; align-items: center; gap: 27px; font-size: 13px; font-weight: 600; }
.nav a { position: relative; color: #a9bdc6; transition: color .2s ease; }
.nav a:hover { color: var(--cyan); }
.nav a:not(.language-link)::after { content: ''; position: absolute; inset-inline: 0; bottom: -9px; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.language-link { padding: 7px 14px; color: var(--cyan) !important; border: 1px solid rgba(37,211,197,.42); border-radius: 8px; }
.menu-toggle { display: none; border: 0; color: #fff; background: none; font-size: 24px; }

.hero { position: relative; overflow: hidden; padding: 82px 0 0; color: #fff; background-color: var(--night); background-image: linear-gradient(rgba(54,104,127,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(54,104,127,.10) 1px, transparent 1px), radial-gradient(circle at 18% 25%, rgba(37,211,197,.15), transparent 32%); background-size: 52px 52px, 52px 52px, auto; }
.hero::before { content: ''; position: absolute; width: 500px; height: 500px; inset-inline-end: -260px; top: -240px; border: 80px solid rgba(255,91,98,.07); border-radius: 50%; }
.hero::after { content: ''; position: absolute; inset-inline: 0; bottom: 104px; height: 90px; opacity: .23; background: center/1100px 90px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 90'%3E%3Cpath d='M0 48h180l25-1 18-33 26 66 24-51 17 19h200l22-2 14-25 22 48 22-28 18 7h212' fill='none' stroke='%2325d3c5' stroke-width='3'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 86px; align-items: center; }
.hero-copy { padding-block: 28px 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 7px 12px; color: var(--cyan); border: 1px solid rgba(37,211,197,.28); border-radius: 7px; background: rgba(37,211,197,.06); font-size: 13px; font-weight: 700; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,91,98,.12); }
h1, h2, h3 { margin-top: 0; line-height: 1.45; }
h1 { margin-bottom: 18px; color: #fff; font-size: clamp(44px, 5.7vw, 73px); font-weight: 700; letter-spacing: -.035em; }
body:not(.lang-en) h1 { letter-spacing: -.055em; }
.lead { max-width: 680px; margin: 0 0 29px; color: #b5c8d0; font-size: clamp(17px, 2vw, 21px); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border-radius: 9px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--night); background: var(--cyan); box-shadow: 0 12px 30px rgba(37,211,197,.18); }
.button-secondary { color: #fff; border: 1px solid #385668; background: rgba(255,255,255,.03); }
.portrait-wrap { position: relative; padding: 14px 14px 0 0; }
.portrait-wrap::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 76%; height: 76%; border-top: 3px solid var(--cyan); border-inline-end: 3px solid var(--cyan); }
.portrait-wrap::after { content: 'EM'; position: absolute; inset-inline-start: -18px; bottom: 56px; display: grid; place-items: center; width: 74px; height: 74px; color: #fff; background: var(--red); border: 8px solid var(--night); border-radius: 50%; font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.portrait-card { position: relative; min-height: 510px; overflow: hidden; background: linear-gradient(150deg, #26495b, #132c3a); clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%); box-shadow: var(--shadow); }
.portrait-card img { width: 100%; height: 100%; min-height: 510px; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(1.02); }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.73); font-family: Georgia, serif; font-size: 110px; }
.portrait-note { position: absolute; inset-inline: 18px; bottom: 18px; padding: 14px 18px; color: #fff; border-inline-start: 4px solid var(--cyan); background: rgba(6,22,33,.88); backdrop-filter: blur(10px); border-radius: 5px; font-size: 13px; text-align: center; }
.focus-strip { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; transform: translateY(50%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.focus-item { position: relative; padding: 22px; text-align: center; }
.focus-item + .focus-item { border-inline-start: 1px solid var(--line); }
.focus-code { display: block; margin-bottom: 3px; color: var(--red); font-size: 21px; font-weight: 700; letter-spacing: .08em; }
.focus-label { color: var(--muted); font-size: 13px; }

.section { padding: 104px 0 90px; }
.section-white { background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.section-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: #168f88; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-kicker::before { content: '+'; display: grid; place-items: center; width: 19px; height: 19px; color: #fff; background: var(--red); border-radius: 5px; font-size: 14px; }
.section h2 { margin-bottom: 0; color: var(--night); font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-intro { max-width: 520px; margin: 0; color: var(--muted); }
.bio-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; align-items: start; }
.bio-aside { position: relative; padding: 34px; overflow: hidden; color: #fff; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow); }
.bio-aside::before { content: '+'; position: absolute; inset-inline-end: -18px; top: -45px; color: rgba(37,211,197,.09); font-size: 180px; font-weight: 700; line-height: 1; }
.bio-aside strong { position: relative; display: block; margin-bottom: 10px; color: var(--cyan); font-size: 13px; }
.bio-aside p { position: relative; margin: 0; }
.bio-copy { font-size: 17px; }
.bio-copy p:first-child { margin-top: 0; }

.timeline { display: grid; gap: 14px; }
.credential { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.credential::before { content: ''; position: absolute; inset-block: 20px; inset-inline-start: 0; width: 4px; background: var(--cyan); border-radius: 0 4px 4px 0; }
.credential:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.credential-year { color: var(--red); font-weight: 700; }
.credential h3 { margin-bottom: 5px; color: var(--night); font-size: 18px; }
.credential p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-state { padding: 28px; color: var(--muted); border: 1px dashed #a9c1c7; border-radius: 14px; background: rgba(255,255,255,.55); }

.research-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.research-profile { position: relative; display: flex; flex-direction: column; min-height: 112px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.research-profile::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--cyan); }
.research-profile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.profile-orcid::before { background: #a6ce39; }.profile-researchgate::before { background: #00ccbb; }.profile-scholar::before { background: #4285f4; }
.profile-name { color: var(--night); font-size: 17px; font-weight: 700; }
.profile-stat { margin-top: 5px; color: var(--muted); font-size: 12px; }
.profile-arrow { position: absolute; inset-inline-end: 18px; bottom: 14px; color: var(--red); font-size: 18px; }
.publications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.publication { position: relative; padding: 29px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.publication::after { content: '+'; position: absolute; inset-inline-end: 14px; top: 5px; color: var(--red-soft); font-size: 84px; font-weight: 700; line-height: 1; }
.publication:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.publication-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; color: #168f88; font-size: 12px; font-weight: 700; }
.publication h3 { position: relative; z-index: 1; margin-bottom: 10px; color: var(--night); font-size: 18px; }
.publication p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 14px; }
.source-badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.source-badges span { padding: 3px 8px; color: #087f78; background: var(--cyan-soft); border-radius: 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.publication-authors { direction: ltr; text-align: start; }
.publication-details { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.publication-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px 15px; align-items: center; margin-top: 17px; }
.publication-link { display: inline-flex; color: var(--night); font-weight: 700; font-size: 13px; }
.publication-link-muted { color: #168f88; font-size: 11px; }

.contact-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; padding: 48px; overflow: hidden; color: #fff; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow); }
.contact-card::before { content: ''; position: absolute; inset-inline: 0; bottom: 20px; height: 58px; opacity: .12; background: center/760px 58px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 58'%3E%3Cpath d='M0 30h120l18-22 25 44 24-34 14 12h180l18-20 22 40 20-27 15 7h210' fill='none' stroke='%2325d3c5' stroke-width='3'/%3E%3C/svg%3E"); }
.contact-card h2 { position: relative; color: #fff; margin-bottom: 10px; }
.contact-card p { position: relative; max-width: 680px; margin: 0; color: #bed0d7; }
.contact-card .section-kicker { color: var(--cyan); }
.socials { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; justify-content: end; }
.socials a { padding: 10px 15px; color: #fff; border: 1px solid #446171; border-radius: 8px; font-size: 13px; font-weight: 600; }
.socials a:hover { color: var(--night); border-color: var(--cyan); background: var(--cyan); }

.site-footer { padding: 28px 0; color: var(--muted); background: var(--ice); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.site-footer a { color: #087f78; font-weight: 700; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 78px; inset-inline: 20px; padding: 20px; flex-direction: column; align-items: stretch; background: var(--navy); border: 1px solid #345364; border-radius: 14px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding-top: 48px; }
  .hero-grid, .bio-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { padding-bottom: 20px; }
  .portrait-wrap { max-width: 480px; width: 100%; margin-inline: auto; }
  .section-head { align-items: start; flex-direction: column; }
  .research-profiles { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .socials { justify-content: start; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav { top: 70px; }
  .hero { padding: 36px 0 0; }
  .hero-grid { gap: 30px; }
  .hero-copy { padding-block: 0 16px; }
  h1 { font-size: 42px; }
  .portrait-wrap { padding: 10px 10px 0 0; }
  .portrait-card, .portrait-card img { min-height: 400px; }
  .portrait-wrap::after { width: 62px; height: 62px; inset-inline-start: -8px; bottom: 48px; border-width: 6px; }
  .focus-strip { grid-template-columns: 1fr; margin-top: 28px; transform: translateY(28%); }
  .focus-item + .focus-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section { padding: 82px 0 68px; }
  .credential { grid-template-columns: 1fr; gap: 7px; padding: 23px; }
  .publications { grid-template-columns: 1fr; }
  .contact-card { padding: 31px 23px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
