/* MIDEAST | Law — brand stylesheet
   Palette: deep navy + warm gold, on a warm cream ground. */

:root {
  --navy: #0a1f3d;
  --navy-deep: #061428;
  --navy-mid: #142c52;
  --gold: #c9a45c;
  --gold-light: #e4cd94;
  --cream: #f8f6f1;
  --paper: #ffffff;
  --ink: #1b2027;
  --muted: #5c6472;
  --line: #e3ddd0;
  --shadow: 0 20px 50px -20px rgba(10, 31, 61, 0.35);
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Top notice bar (links back to portfolio) ---------- */
.origin-bar {
  background: var(--navy-deep);
  color: #cfd8e3;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 12px;
}
.origin-bar a { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.brand {
  display: flex;
  flex-direction: column;
  color: #fff;
  letter-spacing: 0.04em;
}
.brand strong {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #fff;
}
.brand strong span { color: var(--gold); font-weight: 400; margin: 0 6px; }
.brand small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9aa8bd;
  margin-top: 2px;
}

nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  color: #dfe6ef;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 6px 28px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(150deg, rgba(6,20,40,0.92), rgba(10,31,61,0.86)),
    repeating-linear-gradient(115deg, rgba(201,164,92,0.06) 0 2px, transparent 2px 90px);
  color: #fff;
  padding: 100px 0 90px;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  margin-bottom: 22px;
  border: 1px solid rgba(228,205,148,0.4);
  padding: 6px 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 820px;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead {
  max-width: 640px;
  color: #cfd8e3;
  font-size: 1.08rem;
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { color: var(--navy-deep); background: #fff; border-color: #fff; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.stat b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  color: var(--navy);
}
.stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Generic section ---------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .kicker {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.card .icon-line {
  width: 40px; height: 3px; background: var(--gold); margin-bottom: 18px;
}

/* practice-area list */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 0.86rem;
  color: var(--navy-mid);
  border-radius: 999px;
}

/* quote / editorial banner */
.quote-banner {
  background: var(--navy);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.quote-banner blockquote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 800px;
  margin: 0 auto;
  color: #f1ece0;
  font-style: italic;
}
.quote-banner cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

.person {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 24px;
}
.person .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.person h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person .role { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; display:block; }
.person .office { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.person .focus { font-size: 0.88rem; color: var(--ink); }
.person .focus b { color: var(--navy-mid); }

.team-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.team-filter button {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--navy-mid);
}
.team-filter button.active,
.team-filter button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Locations ---------- */
.office-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  border-left: 3px solid var(--gold);
}
.office-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.office-card .region { color: var(--gold); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; display: block; margin-bottom: 14px; }
.office-card address { font-style: normal; color: var(--muted); font-size: 0.92rem; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.news-item .tag {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  padding-top: 4px;
}
.news-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.news-item p { color: var(--muted); }
.news-item .read-more { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); font-weight: 600; }
@media (max-width: 620px) {
  .news-item { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #b9c3d3;
  padding: 60px 0 30px;
}
footer.site-footer .grid-4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { footer.site-footer .grid-4 { grid-template-columns: 1fr 1fr; } }
footer.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: inherit;
  margin-bottom: 16px;
}
footer.site-footer a { color: #b9c3d3; display: block; margin-bottom: 9px; font-size: 0.9rem; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer .brand-mark {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
footer.site-footer .brand-mark span { color: var(--gold); }
footer.site-footer .fine-print {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.78rem;
  color: #7c879a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.site-footer .fine-print a { display: inline; color: #9aa8bd; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 54px;
}
.page-header .kicker {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
}
.page-header h1 { color: #fff; margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-header p { color: #c3cddc; max-width: 640px; margin-top: 14px; }
.breadcrumb { font-size: 0.78rem; color: #93a0b6; margin-bottom: 6px; }
.breadcrumb a { color: #93a0b6; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- imagery ---------- */
/* Portrait sits over the initials circle; if the remote image fails to load
   its onerror handler removes it and the initials show through. */
.person .avatar {
  position: relative;
  overflow: hidden;
  width: 84px; height: 84px;
  font-size: 1.5rem;
}
.person .avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.34;
}
/* scrim keeps headline text legible over the photo */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,20,40,0.86) 0%, rgba(6,20,40,0.45) 55%, rgba(6,20,40,0.15) 100%);
}
.hero, .page-header { position: relative; overflow: hidden; }
.hero > .container, .page-header > .container { position: relative; z-index: 1; }

.brand-logo { height: 42px; width: auto; display: block; }

.office-card .office-photo,
.news-item .news-photo {
  display: block; width: 100%; height: 160px;
  object-fit: cover; margin-bottom: 16px;
}
.news-item { grid-template-columns: 200px 1fr; }
.news-item .news-photo { height: 130px; margin-bottom: 10px; }
@media (max-width: 620px) { .news-item { grid-template-columns: 1fr; } }
