:root {
  --navy: #101e32;
  --navy2: #1b304a;
  --gold: #d5ae69;
  --cream: #f5f3ee;
  --white: #ffffff;
  --muted: #576477;
  --line: #dfe4e9;
  --danger: #a32d2d;
  --success: #1f6a45;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: var(--white); font-family: Cairo, "DM Sans", Arial, sans-serif; line-height: 1.8; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: auto; }

.site-header { height: 76px; background: var(--navy); color: var(--white); border-bottom: 1px solid #ffffff24; position: sticky; top: 0; z-index: 50; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mark { font: 700 29px "DM Sans", sans-serif; letter-spacing: -2px; }
.mark span { color: var(--gold); }
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: #e5eaf1; font-size: 13px; white-space: nowrap; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions button { padding: 5px 10px; color: var(--white); background: transparent; border: 1px solid #ffffff55; border-radius: 6px; }
#menu { display: none; }

.hero { overflow: hidden; color: var(--white); background: radial-gradient(circle at 22% 76%, #28415e 0, transparent 40%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 40px; align-items: center; min-height: 640px; }
.hero-copy { padding: 85px 0; }
.overline, .eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.hero h1 { margin: 0 0 15px; font-size: clamp(48px, 6vw, 82px); line-height: 1.2; }
.hero h2 { margin: 0 0 14px; color: #eddec4; font-size: clamp(23px, 2.5vw, 35px); font-weight: 600; line-height: 1.55; }
.hero-copy > p:not(.overline) { max-width: 610px; color: #d8e0e8; }
.hero-buttons, .cv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-buttons { margin-top: 35px; }
.btn { display: inline-block; padding: 11px 22px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 700; text-align: center; transition: transform .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { cursor: wait; opacity: .65; }
.gold { color: var(--navy); background: var(--gold); }
.outline { color: var(--white); border: 1px solid #98a7b7; background: transparent; }
.navy { color: var(--white); background: var(--navy); }
.cv-secondary { color: var(--navy); border: 1px solid #b9c3cf; background: var(--white); }
.cv-actions { margin-top: 28px; }
.cv-status { min-height: 24px; margin: 10px 0 0; color: var(--success); font-size: 13px; font-weight: 700; }

.portrait-frame { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 600px; }
.portrait-halo { position: absolute; bottom: 70px; left: 50%; width: 370px; max-width: 85%; height: 370px; border: 1px solid #d5ae6980; border-radius: 50%; box-shadow: 0 0 0 36px #d5ae6910, 0 0 0 76px #d5ae6908; transform: translateX(-50%); }
.portrait-frame img { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 570px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 22px 35px #0004); }

.section { padding: 96px 0; scroll-margin-top: 75px; }
.section h2 { max-width: 790px; margin: 0 0 30px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.4; }
.section-intro { max-width: 710px; margin: -10px 0 32px; color: var(--muted); }
.about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.about-layout p { color: var(--muted); }
.about-layout .lead { color: var(--navy); font-size: 19px; }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts strong { color: #a1793f; font-size: 12px; }
.facts span { font-size: 14px; }
.experience, .certifications { margin-top: 46px; }
.experience h3, .certifications h3 { margin-bottom: 18px; font-size: 24px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.experience-grid article { padding: 24px; border: 1px solid var(--line); background: #f9fafb; }
.experience-grid small { color: #a1793f; font-weight: 700; }
.experience-grid h4 { margin: 8px 0; font-size: 18px; }
.experience-grid p { margin: 0; font-size: 14px; }

.services, .tools { background: var(--cream); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-height: 285px; padding: 28px; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { box-shadow: 0 18px 36px #101e321c; transform: translateY(-4px); }
.card .number { color: #a1793f; font: 700 12px "DM Sans", sans-serif; }
.card h3 { margin: 24px 0 8px; font-size: 24px; line-height: 1.5; }
.card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.card button { align-self: flex-start; padding: 0 0 4px; color: var(--navy); border: 0; border-bottom: 1px solid var(--gold); background: none; font-weight: 700; }
.cert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cert-card { min-height: 210px; cursor: pointer; }
.cert-card h3 { margin-top: 18px; font-size: 20px; }
.cert-card p { margin-bottom: 10px; }
.cert-card .cert-provider { flex: initial; margin: 0; color: #a1793f; font-size: 12px; font-weight: 700; }
.cases { background: var(--white); }
.fineprint, .privacy { color: var(--muted); font-size: 12px; }
.fineprint { margin-top: 20px; }

.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-grid { align-items: start; }
.tool-card { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.tool-card h3 { margin: 0 0 10px; font-size: 23px; }
.tool-card form, #request-form { display: grid; gap: 14px; }
.tool-intro { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
input, select, textarea { width: 100%; padding: 11px 12px; color: var(--navy); border: 1px solid #cbd3dd; border-radius: 5px; background: var(--white); }
textarea { min-height: 100px; resize: vertical; }
.tool-output { margin-top: 18px; font-size: 13px; }
.tool-output:not(:empty) { padding-top: 18px; border-top: 1px solid var(--line); }
.tool-output button { margin-top: 14px; }
.evaluation-result, .diagnostic-result { padding: 18px; border: 1px solid #d8c18f; background: #fffdf8; }
.evaluation-result h4, .diagnostic-result h4 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.evaluation-result p, .diagnostic-result p { margin: 0 0 12px; color: var(--muted); }
.priority-result { display: inline-block; margin-bottom: 0 !important; padding: 4px 10px; color: var(--navy) !important; border-radius: 20px; background: #f1dfbb; font-weight: 700; }
.scorebar { height: 12px; margin: 14px 0 0; overflow: hidden; border-radius: 20px; background: #e5e9ee; }
.scorebar i { display: block; height: 100%; background: var(--gold); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-layout > div > p { color: var(--muted); }
.email { border-bottom: 1px solid var(--gold); font: 600 20px "DM Sans", sans-serif; word-break: break-word; }
.social-links, .footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links { margin-top: 22px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: var(--navy); border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 700; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.social-link:hover { color: #8b672f; border-color: var(--gold); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow { display: grid; gap: 12px; margin-top: 30px; }
.flow span { padding-inline-start: 12px; border-inline-start: 2px solid var(--gold); }
#request-form { padding: 30px; background: var(--cream); }
#form-status { min-height: 24px; margin: 0; font-size: 13px; font-weight: 700; }
#form-status.success { color: var(--success); }
#form-status.error { color: var(--danger); }

footer { color: var(--white); background: #0b1523; }
.footer { display: flex; align-items: center; justify-content: space-between; min-height: 85px; gap: 20px; font: 12px "DM Sans", Cairo, sans-serif; }
.footer > a { font-family: Cairo, sans-serif; }
.footer .social-link { padding: 4px 7px; color: #e5eaf1; border-color: #ffffff35; background: transparent; }
.footer .social-link:hover { color: var(--gold); border-color: var(--gold); }
.footer .social-link svg { width: 15px; height: 15px; }
dialog { width: min(820px, calc(100% - 24px)); max-height: 85vh; padding: 30px; overflow: auto; color: var(--navy); border: 0; border-radius: 9px; }
dialog::backdrop { background: #0c1625c7; }
#dialog-close { float: inline-end; border: 0; background: none; font-size: 27px; }
dialog h2 { clear: both; margin-top: 12px; font-size: 28px; line-height: 1.45; }
dialog h3 { margin: 22px 0 6px; color: var(--navy); font-size: 17px; }
dialog p { color: var(--muted); font-size: 14px; }
.case-detail-block { padding: 2px 0 16px; border-bottom: 1px solid var(--line); }
.case-detail-block:last-of-type { border-bottom: 0; }
.case-detail-list { margin: 10px 0 0; padding-inline-start: 22px; color: var(--muted); font-size: 14px; }
.case-detail-list li { margin-bottom: 7px; }
.dialog-action { margin-top: 22px; }
:focus-visible { outline: 3px solid #b48943; outline-offset: 3px; }

@media (max-width: 980px) {
  nav { gap: 10px; }
  nav a { font-size: 11px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .portrait-frame { min-height: 500px; }
  .portrait-frame img { max-height: 480px; }
  .contact-layout { gap: 40px; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { height: 66px; }
  #menu { display: block; }
  nav { position: absolute; top: 66px; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; padding: 24px; background: var(--navy); box-shadow: 0 20px 40px #0003; }
  nav.open { display: flex; }
  nav a { padding: 6px; font-size: 15px; }
  .hero-grid, .about-layout, .experience-grid, .card-grid, .two-grid, .contact-layout, .cert-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; }
  .hero-copy { padding: 60px 0 10px; }
  .hero h1 { font-size: 50px; }
  .portrait-frame { min-height: 350px; }
  .portrait-frame img { max-height: 350px; }
  .portrait-halo { bottom: 40px; width: 250px; height: 250px; }
  .section { padding: 70px 0; }
  .card { min-height: 230px; }
  #request-form { padding: 20px; }
  .footer { flex-wrap: wrap; justify-content: center; padding: 18px 0; }
}
