/* ==============================================================
   Imran Zaheer & Co. — stylesheet
   1. Tokens          5. Sections
   2. Base            6. Cards & lists
   3. Layout          7. Forms
   4. Header & nav    8. Footer
   ============================================================== */

/* 1. Tokens ---------------------------------------------------- */
:root{
  --ink:        #101a22;
  --ink-soft:   #1b2831;
  --ink-line:   rgba(255,255,255,.14);
  --brass:      #b08d57;
  --brass-lt:   #c9a870;
  --brass-dk:   #957545;
  --stone:      #f5f2ec;
  --stone-dk:   #ece7dd;
  --line:       #e4dfd5;
  --body:       #4b565e;
  --head:       #14202a;
  --white:      #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 2px;
  --shadow: 0 18px 40px -24px rgba(16,26,34,.45);
}

/* 2. Base ------------------------------------------------------ */
*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  color:var(--body);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:var(--serif);
  color:var(--head);
  font-weight:600;
  line-height:1.18;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2.3rem, 4.4vw, 3.5rem); }
h2{ font-size:clamp(1.85rem, 3vw, 2.6rem); }
h3{ font-size:1.3rem; }
h4{ font-size:1.05rem; }

p{ margin:0 0 1.15em; }
p:last-child{ margin-bottom:0; }

a{ color:var(--brass-dk); text-decoration:none; transition:color .18s ease; }
a:hover{ color:var(--ink); }

img{ max-width:100%; display:block; }

ul{ margin:0; padding:0; list-style:none; }

:focus-visible{
  outline:2px solid var(--brass);
  outline-offset:3px;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

.skip-link{
  position:absolute; left:16px; top:-60px; z-index:99;
  background:var(--ink); color:var(--white);
  padding:10px 18px; font-size:.9rem;
  transition:top .2s ease;
}
.skip-link:focus{ top:16px; color:var(--white); }

/* 3. Layout ---------------------------------------------------- */
.wrap{
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.section{ padding:96px 0; }
.section--tight{ padding:68px 0; }
.section--stone{ background:var(--stone); }
.section--ink{ background:var(--ink); color:rgba(255,255,255,.72); }
.section--ink h2,.section--ink h3{ color:var(--white); }

.section-head{ max-width:44rem; margin-bottom:52px; }
.section-head--center{ margin-inline:auto; text-align:center; }
.section-head p{ font-size:1.05rem; }

/* A short brass rule used to open a section. Marks hierarchy,
   not decoration: it appears only above top-level section titles. */
.rule{
  display:block;
  width:56px; height:2px;
  background:var(--brass);
  margin-bottom:22px;
}
.section-head--center .rule{ margin-inline:auto; }

.lede{
  font-size:1.2rem;
  line-height:1.72;
  color:var(--head);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  font-family:var(--sans);
  font-size:.94rem; font-weight:600; letter-spacing:.01em;
  padding:14px 28px;
  border:1px solid transparent;
  border-radius:var(--radius);
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--gold{ background:var(--brass); color:var(--white); }
.btn--gold:hover{ background:var(--brass-dk); color:var(--white); }
.btn--ink{ background:var(--ink); color:var(--white); }
.btn--ink:hover{ background:var(--ink-soft); color:var(--white); }
.btn--ghost{
  background:transparent; color:var(--white);
  border-color:rgba(255,255,255,.4);
}
.btn--ghost:hover{ background:rgba(255,255,255,.1); color:var(--white); }
.btn--outline{ background:transparent; color:var(--head); border-color:var(--line); }
.btn--outline:hover{ border-color:var(--brass); color:var(--brass-dk); }

/* 4. Header & nav ---------------------------------------------- */
.topbar{
  background:var(--ink);
  color:rgba(255,255,255,.62);
  font-size:.83rem;
}
.topbar__inner{
  display:flex; flex-wrap:wrap; gap:8px 28px;
  align-items:center; justify-content:space-between;
  min-height:44px;
}
.topbar__item{ margin:0; }
.topbar__contact{ display:flex; gap:24px; flex-wrap:wrap; }
.topbar a{ color:rgba(255,255,255,.75); }
.topbar a:hover{ color:var(--brass-lt); }

.masthead{
  background:var(--white);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.masthead__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; min-height:84px;
}

.brand{ display:flex; align-items:center; gap:13px; color:var(--head); }
.brand:hover{ color:var(--head); }
.brand__mark{ color:var(--brass); flex:none; }
.brand__text{ display:flex; flex-direction:column; line-height:1.25; }
.brand__name{ font-family:var(--serif); font-size:1.32rem; font-weight:600; }
.brand__sub{ font-size:.72rem; color:var(--body); letter-spacing:.06em; }

.nav{ display:flex; align-items:center; gap:34px; }
.nav__list{ display:flex; gap:30px; }
.nav__list a{
  color:var(--head);
  font-size:.94rem; font-weight:500;
  padding:8px 0;
  border-bottom:2px solid transparent;
}
.nav__list a:hover{ color:var(--brass-dk); }
.nav__list a[aria-current="page"]{
  color:var(--brass-dk);
  border-bottom-color:var(--brass);
}
.nav__cta{ padding:11px 22px; font-size:.88rem; }

.nav-toggle{
  display:none;
  background:none; border:1px solid var(--line);
  border-radius:var(--radius);
  padding:11px 12px; cursor:pointer;
}
.nav-toggle__bars{ display:block; width:20px; }
.nav-toggle__bars i{
  display:block; height:2px; background:var(--head);
  margin:4px 0; transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* 5. Sections -------------------------------------------------- */

/* Hero */
.hero{
  background:var(--ink);
  color:rgba(255,255,255,.74);
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(80% 120% at 88% 8%, rgba(176,141,87,.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.25));
  pointer-events:none;
}
.hero__inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.15fr .85fr;
  gap:64px; align-items:center;
  padding:104px 0 108px;
}
.hero__eyebrow{
  font-size:.85rem; color:var(--brass-lt);
  letter-spacing:.14em; margin-bottom:18px;
}
.hero h1{ color:var(--white); margin-bottom:24px; }
.hero__text{ font-size:1.1rem; max-width:38rem; }
.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }

.hero__panel{
  background:rgba(255,255,255,.05);
  border:1px solid var(--ink-line);
  padding:36px 34px;
}
.hero__panel h2{
  font-size:1.15rem; color:var(--white);
  margin-bottom:20px;
}
.hero__panel-list li{
  display:flex; gap:12px;
  padding:12px 0;
  border-top:1px solid var(--ink-line);
  font-size:.96rem;
}
.hero__panel-list li:first-of-type{ border-top:0; padding-top:0; }
.hero__panel-list span{ color:var(--brass-lt); flex:none; }

/* Page banner for interior pages */
.banner{
  background:var(--ink);
  color:rgba(255,255,255,.7);
  padding:74px 0 78px;
  position:relative; overflow:hidden;
}
.banner::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(70% 130% at 92% 0%, rgba(176,141,87,.18), transparent 62%);
}
.banner__inner{ position:relative; z-index:1; max-width:46rem; }
.banner h1{ color:var(--white); margin-bottom:14px; }
.banner p{ font-size:1.05rem; }

.crumbs{
  font-size:.85rem; color:rgba(255,255,255,.5);
  margin-bottom:18px;
}
.crumbs a{ color:rgba(255,255,255,.72); }
.crumbs a:hover{ color:var(--brass-lt); }
.crumbs span{ margin:0 8px; }

/* Stats strip */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  background:var(--white);
}
.stats__item{
  padding:34px 28px;
  border-right:1px solid var(--line);
}
.stats__item:last-child{ border-right:0; }
.stats__value{
  font-family:var(--serif); font-size:2.5rem;
  color:var(--head); line-height:1; margin-bottom:8px;
}
.stats__label{ font-size:.9rem; margin:0; }

/* Two-column prose + aside */
.split{
  display:grid; grid-template-columns:1.25fr .75fr;
  gap:70px; align-items:start;
}

.aside-card{
  background:var(--stone);
  border-top:3px solid var(--brass);
  padding:34px 32px;
}
.aside-card h3{ font-size:1.15rem; margin-bottom:16px; }
.aside-card ul li{
  padding:10px 0;
  border-top:1px solid var(--stone-dk);
  font-size:.95rem;
}
.aside-card ul li:first-child{ border-top:0; }

/* 6. Cards & lists --------------------------------------------- */
.grid{ display:grid; gap:26px; }
.grid--2{ grid-template-columns:repeat(2,1fr); }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }

/* Practice-area card */
.area-card{
  display:flex; flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  padding:34px 30px 30px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.area-card:hover{ border-color:var(--brass); box-shadow:var(--shadow); }
.area-card h3{ margin-bottom:12px; }
.area-card h3 a{ color:var(--head); }
.area-card:hover h3 a{ color:var(--brass-dk); }
.area-card p{ font-size:.97rem; margin-bottom:20px; }
.area-card__link{
  margin-top:auto;
  font-size:.88rem; font-weight:600;
  color:var(--brass-dk);
  border-bottom:1px solid rgba(176,141,87,.4);
  align-self:flex-start;
  padding-bottom:2px;
}
.area-card__link:hover{ border-bottom-color:var(--brass); }

/* Compact index of every practice area */
.area-index{
  display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
.area-index a{
  display:block;
  padding:20px 24px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--head);
  font-size:.97rem; font-weight:500;
}
.area-index a:hover{ background:var(--stone); color:var(--brass-dk); }

/* Team */
.person{ background:var(--white); }
.person__photo{
  position:relative;
  aspect-ratio:4/5; overflow:hidden;
  background:var(--stone-dk);
  margin-bottom:18px;
}
.person__photo img{
  width:100%; height:100%; object-fit:cover; object-position:center top;
}
.person__name{ font-size:1.18rem; margin-bottom:4px; }
.person__name a{ color:var(--head); }
.person__name a:hover{ color:var(--brass-dk); }
.person__role{
  font-size:.82rem; color:var(--brass-dk);
  letter-spacing:.08em; margin:0 0 10px;
}
.person__creds{ font-size:.9rem; }
.person__creds li{ margin-bottom:3px; }

/* Team member detail */
.profile{
  display:grid; grid-template-columns:340px 1fr;
  gap:56px; align-items:start;
}
.profile__aside img{
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center top;
  margin-bottom:24px;
}
.profile__meta{
  border-top:1px solid var(--line);
  padding-top:18px; font-size:.93rem;
}
.profile__meta dt{
  color:var(--head); font-weight:600;
  margin-bottom:2px;
}
.profile__meta dd{ margin:0 0 16px; }
.profile__titles{
  font-size:.98rem; color:var(--brass-dk);
  border-left:2px solid var(--brass);
  padding-left:18px; margin-bottom:28px;
}

/* Education timeline — content really is chronological */
.timeline{ border-left:1px solid var(--line); padding-left:28px; margin-top:8px; }
.timeline li{ position:relative; padding-bottom:26px; }
.timeline li::before{
  content:""; position:absolute; left:-33px; top:9px;
  width:9px; height:9px; background:var(--brass); border-radius:50%;
}
.timeline__year{ font-size:.82rem; color:var(--brass-dk); letter-spacing:.06em; }
.timeline__title{ font-family:var(--serif); font-size:1.08rem; color:var(--head); margin:2px 0 4px; }
.timeline p{ font-size:.94rem; margin:0; }

/* Checklist of services */
.checks li{
  position:relative;
  padding:10px 0 10px 30px;
  border-top:1px solid var(--line);
  font-size:.98rem;
}
.checks li:first-child{ border-top:0; }
.checks li::before{
  content:""; position:absolute;
  left:2px; top:21px;
  width:9px; height:2px; background:var(--brass);
}
.checks--2{ columns:2; column-gap:48px; }
.checks--2 li{ break-inside:avoid; }

/* Case entries */
.case{
  padding:28px 0;
  border-top:1px solid var(--line);
}
.case:first-child{ border-top:0; padding-top:0; }
.case h3{ font-size:1.2rem; margin-bottom:8px; }
.case p{ margin:0; font-size:.99rem; }

.case-list li{
  padding:13px 0 13px 26px;
  border-top:1px solid var(--line);
  font-size:.96rem;
  position:relative;
}
.case-list li::before{
  content:""; position:absolute; left:0; top:22px;
  width:12px; height:1px; background:var(--brass);
}
.case-list--2{ columns:2; column-gap:56px; }
.case-list--2 li{ break-inside:avoid; }

/* Client groups */
.clients__group{ margin-bottom:36px; }
.clients__group h3{
  font-size:1.05rem; margin-bottom:14px;
  padding-bottom:12px; border-bottom:1px solid var(--ink-line);
}
.section--ink .clients__group h3{ color:var(--white); }
.clients__list{ display:flex; flex-wrap:wrap; gap:10px; }
.clients__list li{
  border:1px solid var(--ink-line);
  padding:9px 18px;
  font-size:.92rem;
}

/* 7. Forms ----------------------------------------------------- */
.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field--full{ grid-column:1 / -1; }
.field label{
  font-size:.88rem; font-weight:600; color:var(--head);
}
.field input,
.field select,
.field textarea{
  font-family:var(--sans); font-size:1rem; color:var(--head);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:13px 15px;
  transition:border-color .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--brass); outline:none;
  box-shadow:0 0 0 3px rgba(176,141,87,.15);
}
.field textarea{ resize:vertical; min-height:150px; }
.field__error{ font-size:.85rem; color:#b23c3c; }
.field--invalid input,
.field--invalid select,
.field--invalid textarea{ border-color:#b23c3c; }

.notice{
  padding:16px 20px;
  border-left:3px solid var(--brass);
  background:var(--stone);
  margin-bottom:28px;
  font-size:.97rem;
}
.notice--ok{ border-left-color:#3f7d55; }
.notice--error{ border-left-color:#b23c3c; }

.contact-detail{ margin-bottom:28px; }
.contact-detail:last-child{ margin-bottom:0; }
.contact-detail__label{
  font-family:var(--sans);
  font-size:.78rem; font-weight:600;
  letter-spacing:.09em; color:var(--brass-dk);
  margin-bottom:6px;
}
.contact-detail p,
.contact-detail address{
  margin:0; font-style:normal; font-size:.98rem;
}

/* Callout above footer */
.callout{ background:var(--stone); border-top:1px solid var(--line); }
/* When the last section is already stone, flip the callout so the two
   don't merge into one undifferentiated block. */
.section--stone + .callout{ background:var(--white); }
.callout__inner{
  display:flex; flex-wrap:wrap; gap:28px;
  align-items:center; justify-content:space-between;
  padding:56px 24px;
}
.callout__title{ font-size:1.85rem; margin-bottom:6px; }
.callout__text{ margin:0; }
.callout__actions{ display:flex; flex-wrap:wrap; gap:12px; }
.callout .btn--ghost{ color:var(--head); border-color:var(--line); }
.callout .btn--ghost:hover{ background:var(--white); color:var(--head); }

/* 8. Footer ---------------------------------------------------- */
.footer{
  background:var(--ink);
  color:rgba(255,255,255,.6);
  font-size:.94rem;
}
.footer__grid{
  display:grid; grid-template-columns:1.5fr 1fr 1.3fr 1.2fr;
  gap:44px;
  padding-top:66px; padding-bottom:52px;
}
.footer__name{
  font-family:var(--serif); font-size:1.3rem;
  color:var(--white); margin-bottom:12px;
}
.footer__blurb{ font-size:.94rem; }
.footer__heading{
  font-family:var(--sans); font-size:.82rem;
  color:var(--white); letter-spacing:.1em;
  margin-bottom:18px;
}
.footer__list li{ margin-bottom:9px; }
.footer a{ color:rgba(255,255,255,.62); }
.footer a:hover{ color:var(--brass-lt); }
.footer__address{ font-style:normal; margin-bottom:16px; }
.footer__base{
  display:flex; flex-wrap:wrap; gap:8px 24px;
  justify-content:space-between;
  border-top:1px solid var(--ink-line);
  padding-top:24px; padding-bottom:28px;
  font-size:.86rem; color:rgba(255,255,255,.45);
}
.footer__base p{ margin:0; }

/* Responsive --------------------------------------------------- */
@media (max-width:1024px){
  .hero__inner{ grid-template-columns:1fr; gap:44px; padding:76px 0 84px; }
  .split{ grid-template-columns:1fr; gap:44px; }
  .profile{ grid-template-columns:280px 1fr; gap:40px; }
  .grid--4{ grid-template-columns:repeat(2,1fr); }
  .grid--3{ grid-template-columns:repeat(2,1fr); }
  .footer__grid{ grid-template-columns:repeat(2,1fr); gap:36px; }
  .area-index{ grid-template-columns:repeat(2,1fr); }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .stats__item:nth-child(2n){ border-right:0; }
  .stats__item:nth-child(-n+2){ border-bottom:1px solid var(--line); }
}

@media (max-width:860px){
  .topbar__item{ display:none; }
  .topbar__inner{ justify-content:center; }

  .nav-toggle{ display:block; }
  .nav{
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--white);
    border-bottom:1px solid var(--line);
    padding:8px 24px 24px;
    display:none;
  }
  .nav.is-open{ display:flex; }
  .nav__list{ flex-direction:column; gap:0; }
  .nav__list a{
    display:block; padding:14px 0;
    border-bottom:1px solid var(--line);
  }
  .nav__list a[aria-current="page"]{ border-bottom-color:var(--line); }
  .nav__cta{ margin-top:18px; }
}

@media (max-width:720px){
  body{ font-size:16px; }
  .section{ padding:64px 0; }
  .section--tight{ padding:48px 0; }
  .grid--2,.grid--3,.grid--4{ grid-template-columns:1fr; }
  .profile{ grid-template-columns:1fr; }
  .profile__aside img{ max-width:280px; }
  .form-grid{ grid-template-columns:1fr; }
  .checks--2,.case-list--2{ columns:1; }
  .area-index{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr; }
  .callout__inner{ padding:44px 0; }
  .stats{ grid-template-columns:1fr; }
  .stats__item{ border-right:0; border-bottom:1px solid var(--line); }
  .stats__item:last-child{ border-bottom:0; }
  .stats__item:nth-child(-n+2){ border-bottom:1px solid var(--line); }

  /* Stacked buttons read as a set only if they share an edge. */
  .hero__actions,.callout__actions{ flex-direction:column; align-items:stretch; }
  .hero__actions .btn,.callout__actions .btn{ width:100%; }
}

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