/* TewodrosLaw — shared styles. Mobile first. */

:root {
  --navy: #13294B;
  --navy-deep: #0D1D36;
  --navy-soft: #1D3760;
  --brass: #B08D57;          /* decoration, and text on navy only */
  --brass-ink: #7A5C2E;      /* brass for text on light backgrounds (AA) */
  --paper: #FAF8F4;
  --paper-2: #F2EEE6;
  --ink: #1E1E1E;
  --ink-soft: #4A4A4A;
  --stone: #E4DDD0;

  --serif: "Noto Serif Ethiopic", "Noto Serif", Georgia, serif;
  --sans: "Noto Sans Ethiopic", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  --step-4: clamp(2rem, 1.3rem + 3.2vw, 3.3rem);

  --wrap: 72rem;
  --measure: 38rem;
  --gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 4.25rem; /* room for the mobile action bar */
}
html[lang="en"] body { line-height: 1.65; }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: var(--brass-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: #E3C891; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 0.6em;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.lead { font-size: var(--step-1); color: var(--ink-soft); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--paper); padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--stone);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.2; display: block; }
.brand-sub { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; display: block; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 1px solid var(--stone); border-radius: var(--radius);
  color: var(--navy); font: inherit; font-size: 0.9rem; padding: 0.35rem 0.7rem; cursor: pointer;
}
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--stone);
  box-shadow: 0 12px 24px -16px rgba(19, 41, 75, 0.35);
}
.site-nav ul { list-style: none; display: flex; flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: 0.65rem 0; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--stone);
}
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.lang-switch {
  font-size: 0.9rem; text-decoration: none; color: var(--navy);
  border-bottom: 1px solid var(--brass); padding-bottom: 1px;
}

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { flex-direction: row; gap: 1.6rem; padding: 0; }
  .site-nav a { border: 0; padding: 0.4rem 0; font-size: 0.95rem; position: relative; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brass);
  }
  .lang-switch { margin-left: 0.6rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  padding: 0.85rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn .icon { width: 1.2rem; height: 1.2rem; }
.btn--brass { background: var(--brass); color: var(--navy-deep); }
.btn--brass:hover { background: #C4A270; color: var(--navy-deep); }
.btn--line { border-color: rgba(250, 248, 244, 0.45); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); color: var(--paper); background: rgba(255,255,255,0.06); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--navy-soft); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--paper); max-width: 16em; }
.hero-sub { font-size: var(--step-1); color: #D9DEE7; max-width: 32rem; }
.hero-name {
  font-family: var(--serif); color: var(--brass); font-size: 1rem; margin: 1.5rem 0 1.75rem;
  padding-left: 0.9rem; border-left: 2px solid var(--brass);
}
.hero-name span { display: block; color: #C9D0DC; font-family: var(--sans); font-size: 0.92rem; }

.portrait {
  margin: 0 0.9rem 0 0; position: relative; aspect-ratio: 4 / 5; width: min(100% - 0.9rem, 18rem); justify-self: center;
  background: var(--navy-soft); border-radius: var(--radius);
}
.portrait::before { /* offset brass frame */
  content: ""; position: absolute; inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 1px solid var(--brass); border-radius: var(--radius); pointer-events: none;
}
.portrait img, .portrait video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); position: relative; }
.portrait-monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: var(--brass); font-size: 7rem; line-height: 1;
}
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: -2.6rem; font-size: 0.85rem; color: #C9D0DC; }

.portrait--empty { display: none; }
@media (min-width: 60rem) { .portrait--empty { display: block; } }
@media (max-width: 30rem) {
  .brand-sub { display: none; }
  .brand-name { font-size: 0.98rem; }
  .brand-mark { width: 2.2rem; height: 2.2rem; }
}

/* The career path: the hero's signature element */
.path-block { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.path-caption { color: #C9D0DC; font-size: 0.95rem; margin-bottom: 1.25rem; max-width: 34rem; }
.path { list-style: none; display: grid; gap: 0; position: relative; padding-left: 1.6rem; }
.path::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.6rem; bottom: 0.6rem; width: 2px;
  background: var(--brass); transform-origin: top; animation: draw-y 1.3s cubic-bezier(.6,.05,.3,1) both;
}
.path li { position: relative; padding: 0 0 1.1rem; animation: rise 0.5s ease-out both; }
.path li::before {
  content: ""; position: absolute; left: -1.6rem; top: 0.45rem; width: 0.85rem; height: 0.85rem;
  border-radius: 50%; background: var(--navy); border: 2px solid var(--brass);
}
.path li:last-child::before { background: var(--brass); }
.path li:nth-child(1) { animation-delay: 0.25s; }
.path li:nth-child(2) { animation-delay: 0.55s; }
.path li:nth-child(3) { animation-delay: 0.85s; }
.path li:nth-child(4) { animation-delay: 1.15s; }
.path-year { display: block; font-size: 0.85rem; color: var(--brass); font-variant-numeric: tabular-nums; }
.path-role { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--paper); line-height: 1.35; }
.path-place { display: block; font-size: 0.85rem; color: #AEB8C8; }

@media (min-width: 48rem) {
  .path { grid-template-columns: repeat(4, 1fr); padding-left: 0; padding-top: 1.6rem; gap: 1.5rem; }
  .path::before { left: 0; right: 0; top: 0.35rem; bottom: auto; width: auto; height: 2px;
    transform-origin: left; animation-name: draw-x; }
  .path li { padding: 0; }
  .path li::before { left: 0; top: -1.6rem; }
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 4rem; }
  .portrait { justify-self: end; width: 22rem; }
}
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--paper); padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.page-head h1 { color: var(--paper); margin-bottom: 0.3em; }
.page-head p { color: #D3D9E3; max-width: var(--measure); margin: 0; font-size: var(--step-1); }
.page-head .rule { width: 3.5rem; height: 2px; background: var(--brass); margin-bottom: 1.25rem; }

/* ---------- Split layout: heading column + text column ---------- */
.split { display: grid; gap: 1rem 3rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 17rem 1fr; } .split > h2 { padding-top: 0.2rem; } }

/* ---------- Why choose us ---------- */
.reasons { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--stone); }
.reasons li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--stone); }
.reasons .icon { width: 2rem; height: 2rem; color: var(--brass-ink); margin-top: 0.2rem; }
.reasons h3 { margin-bottom: 0.3em; }
.reasons p { margin: 0; color: var(--ink-soft); }
@media (min-width: 48rem) {
  .reasons { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ---------- Practice areas ---------- */
.areas-index { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--stone); }
.areas-index a {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 0; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--stone);
}
.areas-index a:hover { color: var(--navy); }
.areas-index .icon { color: var(--brass-ink); }
@media (min-width: 48rem) { .areas-index { grid-template-columns: 1fr 1fr 1fr; column-gap: 2.5rem; } }

.areas { display: grid; gap: 1.25rem; }
.area {
  background: #fff; border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem; border-top: 3px solid var(--navy);
}
.area-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.6rem; }
.area-head .icon { width: 2rem; height: 2rem; color: var(--brass-ink); }
.area h2 { font-size: var(--step-1); margin: 0; }
.area-en { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.area ul { padding-left: 1.1rem; }
.area li { margin-bottom: 0.45rem; }
.area li::marker { color: var(--brass); }
.area p { margin: 0; }
@media (min-width: 48rem) { .areas { grid-template-columns: 1fr 1fr; } }

/* ---------- About ---------- */
.statement { border-left: 3px solid var(--brass); padding: 0.2rem 0 0.2rem 1.25rem; font-family: var(--serif); font-size: var(--step-1); color: var(--navy); line-height: 1.7; }
.values { list-style: none; display: grid; gap: 0; }
.values li { padding: 1rem 0; border-bottom: 1px solid var(--stone); }
.values li:first-child { border-top: 1px solid var(--stone); }
.values strong { font-family: var(--serif); color: var(--navy); display: block; font-size: 1.1rem; }

/* ---------- Attorney ---------- */
.profile { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .profile { grid-template-columns: 1fr 19rem; gap: 4rem; align-items: start; } }
.profile-side { display: grid; gap: 1.25rem; align-content: start; }
.profile-photo { width: 100%; height: auto; max-width: 19rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.photo-wide { margin: 2rem 0 0; }
.photo-wide img { width: 100%; height: auto; border-radius: var(--radius); }
.photo-wide figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.facts { background: var(--navy); color: var(--paper); padding: 1.5rem; border-radius: var(--radius); }
.facts dl { margin: 0; }
.facts dt { font-size: 0.82rem; color: var(--brass); margin-top: 1rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; font-family: var(--serif); }

.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 0.4rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--stone); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -2rem; top: 0.4rem; width: 0.95rem; height: 0.95rem;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--brass);
}
.timeline li:first-child::before { background: var(--brass); }
.t-year { font-size: 0.9rem; font-weight: 600; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0.1rem 0 0.4rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.edu { list-style: none; }
.edu li { padding: 0.9rem 0; border-bottom: 1px solid var(--stone); }
.edu li:first-child { border-top: 1px solid var(--stone); }
.edu strong { font-family: var(--serif); color: var(--navy); display: block; }
.edu span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--stone); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 1.5rem; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--brass-ink); border-bottom: 2px solid var(--brass-ink);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.8rem; }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-soft); }
.faq .answer p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.details { list-style: none; }
.details li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--stone); }
.details li:first-child { border-top: 1px solid var(--stone); }
.details .icon { color: var(--brass-ink); margin-top: 0.15rem; }
.details .label { display: block; font-size: 0.85rem; color: var(--ink-soft); }
.details a { color: var(--navy); font-weight: 600; text-decoration: none; }
.details a:hover { text-decoration: underline; }
.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--stone); border-radius: 50%; color: var(--navy); }
.social a:hover { border-color: var(--brass); }

.form { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--navy); }
.field .req { color: var(--brass-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #CFC6B6; border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.hp { display: none !important; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); margin: 1rem 0 0; padding-left: 0.8rem; border-left: 2px solid var(--stone); }
.form-status { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E8F1EA; color: #1E5631; }
.form-status.err { background: #F8E9E7; color: #8A2A1E; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.map { margin-top: var(--section); }
.map iframe { width: 100%; height: 22rem; border: 0; border-radius: var(--radius); }
.map-pending { border: 1px dashed #CFC6B6; border-radius: var(--radius); padding: 1.5rem; color: var(--ink-soft); }

/* ---------- Videos ---------- */
.videos { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .videos { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } }
.video { margin: 0; }
.video video { width: 100%; aspect-ratio: 9 / 16; max-height: 32rem; object-fit: cover; background: var(--navy); border-radius: var(--radius); }
.video.landscape video { aspect-ratio: 16 / 9; }
.video figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--navy-deep); color: var(--paper); padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.cta h2 { color: var(--paper); max-width: 22em; }
.cta p { color: #C9D0DC; max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D0DC; padding-block: 3.5rem 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--paper); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); color: var(--paper); font-size: 1.1rem; line-height: 1.4; margin-bottom: 0.5rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--brass); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer .social a { border-color: rgba(255,255,255,0.25); color: var(--paper); }
.disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: #AEB8C8; }
.disclaimer p { max-width: 50rem; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--navy-deep); border-top: 1px solid var(--brass);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.55rem 0.25rem;
  color: var(--paper); text-decoration: none; font-size: 0.8rem; line-height: 1.2;
}
.action-bar a + a { border-left: 1px solid rgba(255,255,255,0.12); }
.action-bar .icon { width: 1.3rem; height: 1.3rem; color: var(--brass); }
@media (min-width: 60rem) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Simple pages (thanks / 404) ---------- */
.simple { min-height: 50vh; display: grid; align-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .action-bar, .cta, .site-footer .social { display: none; }
  body { padding: 0; }
}
