/*
Theme Name: AM Legal
Theme URI: https://amlic.in
Author: Maulik Sharma
Description: Design system for AM Legal Institute & Chambers. Ported from the approved local build: navy/parchment/brass palette, Cormorant Garamond + Jost, scroll reveals, sticky chrome, blog archive and post template.
Version: 1.0
License: Unlicensed, private site theme
Text Domain: amlic
*/
/* ============================================================
   AM LEGAL INSTITUTE & CHAMBERS â€” design system
   Palette: navy / parchment / brass. Display serif + clean sans.
   Brief calls for navy blue + gold (classic legal colours).
   ============================================================ */

:root {
  --ink:        #0d1926;   /* deep navy â€” the institutional blue */
  --ink-2:      #14222f;
  --ink-3:      #1b2b3a;
  --navy:       #0d1926;
  --navy-lt:    #213447;
  --paper:      #f5f1e8;
  --paper-2:    #ece4d6;
  --paper-3:    #e3d9c8;
  --brass:      #c39a4f;
  --brass-lt:   #e3c48a;
  --brass-dp:   #9c7533;
  --oxblood:    #7a3038;
  --whatsapp:   #1f6b46;   /* used only as an accent on the WhatsApp line */
  --slate:      #4a545e;
  --slate-lt:   #6b7580;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 18px 40px -22px rgba(12,17,21,.28);
  --shadow-lg: 0 40px 80px -40px rgba(12,17,21,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { display: block; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; min-width: 0; }
.wrap-wide { width: min(1400px, 94vw); margin-inline: auto; min-width: 0; }

/* fine grain overlay for premium depth */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brass-dp), var(--brass-lt)); z-index: 80; transition: width .1s linear; }

/* ---------- typography ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--slate); max-width: 62ch; }
.dark .lead { color: #b9c2cc; }

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dp);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: var(--brass-lt); }

.quote { font-family: var(--serif); font-size: clamp(1.4rem,2.4vw,2rem); line-height: 1.35; color: var(--ink); font-style: italic; }
.dark .quote { color: #e7dfd2; }

.muted { color: var(--slate-lt); }
.dark .muted { color: #9fb0bd; }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums; }

/* ---------- layout rhythm ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section.tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.dark { background: var(--ink); color: #efe9df; }
.dark h1, .dark h2, .dark h3 { color: #f3eee5; }
.dark .wrap { position: relative; }
.band { background: var(--paper-2); }
.dark.band { background: var(--ink-2); }

.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid > *, .split > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }

@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4, .split, .split.rev { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 70;
  background: rgba(12,17,21,.92); backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(195,154,79,.22);
  color: #f1ece2;
}
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand .seal { width: 42px; height: 42px; flex: none; }
.brand .name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .06em; line-height: 1.1; }
.brand .name small { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-lt); margin-top: .25rem; }
.nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.nav a { position: relative; padding: .35rem 0; color: #cfd6de; transition: color .25s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--brass); transition: width .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.head-cta { display: flex; align-items: center; gap: .8rem; }
.burger { display: none; background: none; border: 1px solid rgba(195,154,79,.4); color: inherit; border-radius: 6px; padding: .45rem .6rem; cursor: pointer; font-size: 1rem; }
@media (max-width: 1000px) {
  .burger { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 1.2rem 4vw; gap: 1rem; display: none; border-bottom: 1px solid rgba(195,154,79,.25); }
  .nav.open { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid var(--brass-dp);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn.primary { background: var(--brass); border-color: var(--brass); color: #1a1410; }
.btn.primary:hover { background: var(--brass-lt); border-color: var(--brass-lt); transform: translateY(-2px); }
.btn.ghost { border-color: rgba(195,154,79,.45); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brass); transform: translateY(-2px); }
.dark .btn.ghost, .hero .btn.ghost, .site-head .btn.ghost { color: #f1ece2; }
.dark .btn.ghost:hover, .hero .btn.ghost:hover, .site-head .btn.ghost:hover { color: #fff; }
.btn.sm { padding: .6rem 1.1rem; font-size: .74rem; }
.link-arrow { font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dp); display: inline-flex; gap: .5rem; align-items: center; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.dark .link-arrow { color: var(--brass-lt); }

/* ---------- cards ---------- */
.card {
  position: relative; background: #fffdf9; border: 1px solid rgba(12,17,21,.10);
  border-radius: var(--r); padding: 1.6rem 1.5rem; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brass-dp), var(--brass-lt)); transition: width .45s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(195,154,79,.45); box-shadow: var(--shadow); }
.card:hover::before { width: 100%; }
.dark .card { background: var(--ink-3); border-color: rgba(195,154,79,.22); }
.card h3, .card h4 { margin: .2rem 0 .6rem; }
.card h4 { font-family: var(--serif); font-size: 1.35rem; }
.card .kicker { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dp); font-weight: 700; }
.dark .card .kicker { color: var(--brass-lt); }
.card p:last-child { margin-bottom: 0; }

/* number badge */
.num-big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brass-dp); }
.dark .num-big { color: var(--brass-lt); }

/* ---------- media ---------- */
.media { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 3/4; }
.media.wide { aspect-ratio: 16/10; }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,21,.05), rgba(12,17,21,.42)); }
.media .frame { position: absolute; inset: 12px; border: 1px solid rgba(227,196,138,.45); border-radius: 8px; pointer-events: none; }
.imgzoom img { transition: transform 1.2s var(--ease); }
.imgzoom:hover img { transform: scale(1.06); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 86vh; display: grid; align-items: center; overflow: hidden; background: var(--ink); color: #f2ece3; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; filter: saturate(.92) contrast(1.02); }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,17,21,.88) 20%, rgba(12,17,21,.55) 60%, rgba(12,17,21,.72)), radial-gradient(140% 100% at 20% 30%, rgba(12,17,21,.25), rgba(12,17,21,.85) 75%); }
.hero .wrap { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; min-width: 0; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow { color: var(--brass-lt); }
.hero .sub { max-width: 60ch; color: #cbd4dd; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero .rule { width: 120px; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); margin: 1.4rem 0 1.2rem; }
.hero .sub strong { color: var(--brass-lt); font-weight: 600; }
.hero .wrap > * { animation: heroIn 1s var(--ease) both; }
.hero .wrap > *:nth-child(2) { animation-delay: .12s; }
.hero .wrap > *:nth-child(3) { animation-delay: .2s; }
.hero .wrap > *:nth-child(4) { animation-delay: .28s; }
.hero .wrap > *:nth-child(5) { animation-delay: .36s; }
.hero .wrap > *:nth-child(6) { animation-delay: .44s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-meta { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0bd; }
.hero-meta b { color: var(--brass-lt); font-weight: 600; }

/* scales watermark in hero */
.hero .watermark { position: absolute; right: 6vw; bottom: -4vh; width: min(46vw, 520px); opacity: .12; z-index: 1; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink-2); color: #e6ddcd; border-block: 1px solid rgba(195,154,79,.25); overflow: hidden; }
.marquee .track { display: flex; gap: 2.5rem; padding: 1rem 0; white-space: nowrap; animation: slide 34s linear infinite; font-family: var(--serif); font-size: 1.1rem; }
.marquee .track span { display: inline-flex; gap: 2.5rem; align-items: center; }
.marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger.in > * { animation: rise .7s var(--ease) both; }
.stagger.in > *:nth-child(1) { animation-delay: .05s; }
.stagger.in > *:nth-child(2) { animation-delay: .13s; }
.stagger.in > *:nth-child(3) { animation-delay: .21s; }
.stagger.in > *:nth-child(4) { animation-delay: .29s; }
.stagger.in > *:nth-child(5) { animation-delay: .37s; }
.stagger.in > *:nth-child(6) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- list / feature rows ---------- */
.ticklist { list-style: none; margin: 0; padding: 0; }
.ticklist li { position: relative; padding-left: 1.6rem; margin-bottom: .65rem; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--brass); transform: rotate(45deg); }

.kv { display: grid; gap: .8rem; }
.kv .row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(12,17,21,.14); }
.dark .kv .row { border-color: rgba(195,154,79,.25); }

/* ---------- accordion (FAQ) ---------- */
.faq { border-top: 1px solid rgba(12,17,21,.12); }
.dark .faq { border-color: rgba(195,154,79,.22); }
.faq details { border-bottom: 1px solid rgba(12,17,21,.12); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--brass-dp); font-size: 1.4rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--slate); }
.dark .faq details p { color: #b6c1cb; }

/* ---------- pricing ---------- */
.plan { position: relative; padding: 2rem 1.6rem; border-radius: var(--r); background: #fffdf9; border: 1px solid rgba(12,17,21,.12); }
.dark .plan { background: var(--ink-3); border-color: rgba(195,154,79,.22); }
.plan.featured { border-color: var(--brass); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan .price { font-family: var(--serif); font-size: 2.8rem; line-height: 1; margin: .6rem 0 .2rem; }
.plan .per { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-lt); }
.plan .tag { position: absolute; top: -12px; right: 16px; background: var(--brass); color: #1a1410; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; font-weight: 700; }
.plan ul { margin: 1.2rem 0 1.4rem; padding: 0; list-style: none; }
.plan li { padding: .45rem 0; border-bottom: 1px dashed rgba(12,17,21,.12); font-size: .95rem; }
.dark .plan li { border-color: rgba(195,154,79,.18); }

/* ---------- testimonials ---------- */
.testi { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--r); background: rgba(255,253,249,.6); border: 1px solid rgba(12,17,21,.10); }
.dark .testi { background: var(--ink-3); border-color: rgba(195,154,79,.2); }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; color: #1a1410; background: linear-gradient(140deg, var(--brass-lt), var(--brass-dp)); font-weight: 700; }
.stars { color: var(--brass); letter-spacing: .15em; font-size: .9rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cfd6de; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; border-top: 1px solid rgba(195,154,79,.28); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .wordmark { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); color: #f3eee5; letter-spacing: .04em; }
.foot-brand .wordmark span { color: var(--brass); }
.site-foot h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .55rem; font-size: .92rem; }
.site-foot a:hover { color: var(--brass-lt); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(195,154,79,.18); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #9fb0bd; }

/* ---------- misc ---------- */
.hairline { height: 1px; background: linear-gradient(90deg, rgba(156,117,51,.6), transparent); margin: 2rem 0; }
.dark .hairline { background: linear-gradient(90deg, rgba(227,196,138,.5), transparent); }
.pill { display: inline-block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(195,154,79,.4); color: var(--brass-dp); background: rgba(195,154,79,.08); }
.dark .pill { color: var(--brass-lt); background: rgba(195,154,79,.12); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters button { font: inherit; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: .62rem .95rem; border-radius: 999px; border: 1px solid rgba(12,17,21,.18); background: transparent; cursor: pointer; transition: all .25s var(--ease); }
.filters button:hover, .filters button.on { border-color: var(--brass); background: rgba(195,154,79,.14); }

.note { font-size: .78rem; color: var(--slate-lt); font-style: italic; }
.dark .note { color: #8b98a5; }

.caption { font-size: .8rem; color: var(--slate-lt); margin-top: .6rem; }
.dark .caption { color: #a4b3c0; }
.caption b { color: var(--brass-dp); font-weight: 600; }
.dark .caption b { color: var(--brass-lt); }

/* ---------- official logo ---------- */
.logo-chip { display: inline-block; background: #fffdf9; border: 1px solid rgba(195,154,79,.35); border-radius: 10px; padding: .6rem .8rem; box-shadow: var(--shadow); }
.logo-chip img { width: 140px; display: block; }
.dark .logo-chip { border-color: rgba(227,196,138,.4); }
.site-foot .logo-chip { margin-bottom: 1rem; }
.logo-plate { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(195,154,79,.35); background: #fffdf9; padding: clamp(1rem,2vw,1.5rem); box-shadow: var(--shadow-lg); }
.logo-plate img { width: 100%; max-width: 420px; margin-inline: auto; }
.dark .logo-plate { background: #f7f2e8; }
@media (max-width: 640px) { .logo-plate img { max-width: 320px; } }

/* fee line used on course tracks */
.fee { font-size: .95rem; font-weight: 600; color: var(--brass-dp); border-left: 3px solid var(--brass); padding-left: .8rem; margin-bottom: 1rem; }
.dark .fee { color: var(--brass-lt); }
.fee a { font-weight: 600; text-decoration: underline; }

/* form */
.demo-form { max-width: 640px; margin-inline: auto; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-lt); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .8rem .9rem;
  border: 1px solid rgba(12,17,21,.18); border-radius: var(--r-sm); background: #fffdf9; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(195,154,79,.15); }
.dark .field input, .dark .field select, .dark .field textarea { background: var(--ink-3); border-color: rgba(195,154,79,.3); color: #f1ece2; }

/* ---------- faculty / advocates ---------- */
.profile {
  position: relative;
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem); align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #fffdf9; border: 1px solid rgba(12,17,21,.12);
  border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.profile::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brass-dp), var(--brass-lt));
  transition: width .45s var(--ease);
}
.profile:hover { transform: translateY(-6px); border-color: rgba(195,154,79,.5); box-shadow: var(--shadow-lg); }
.profile:hover::before { width: 100%; }
.dark .profile { background: var(--ink-3); border-color: rgba(195,154,79,.24); }

.portrait { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(12,17,21,.45); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(.95) contrast(1.04); transition: transform 1.2s var(--ease); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,21,.02), rgba(12,17,21,.30)); pointer-events: none; }
.portrait .frame { position: absolute; inset: 10px; border: 1px solid rgba(227,196,138,.5); border-radius: 6px; pointer-events: none; z-index: 2; }
.profile:hover .portrait img { transform: scale(1.05); }
.portrait .plate {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: #f3eee5;
  background: rgba(12,17,21,.62); border: 1px solid rgba(227,196,138,.35);
  padding: .35rem .6rem; border-radius: 999px; backdrop-filter: blur(4px);
}

.profile .who h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 .35rem; }
.profile .who .role { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dp); margin-bottom: .8rem; }
.dark .profile .who .role { color: var(--brass-lt); }
.profile .bio { color: var(--slate); margin-bottom: .9rem; max-width: 54ch; }
.dark .profile .bio { color: #b9c2cc; }

.creds { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.creds .pill { font-size: .7rem; letter-spacing: .14em; }
.profile .contact-line { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.profile .contact-line .glyph { color: var(--brass-dp); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.dark .profile .contact-line .glyph { color: var(--brass-lt); }
.profile .contact-line a { font-weight: 600; }
.profile .contact-line a:hover { color: var(--brass-dp); }

/* the number itself is the label â€” brass, serif, tap-to-call */
.profile .contact-line a.dial,
.card .contact-line a.dial {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brass-dp); border-bottom: 1px solid rgba(195,154,79,.42);
  padding-bottom: .12rem; transition: color .25s var(--ease), border-color .25s var(--ease);
}
.dark .profile .contact-line a.dial, .dark .card .contact-line a.dial { color: var(--brass-lt); border-color: rgba(227,196,138,.42); }
.profile .contact-line a.dial:hover, .card .contact-line a.dial:hover { color: var(--ink); border-color: var(--brass); }
.dark .profile .contact-line a.dial:hover, .dark .card .contact-line a.dial:hover { color: #f3eee5; }

/* compact faculty cards (homepage teaser) */
.person { padding: 0; overflow: hidden; }
.person .photo { position: relative; aspect-ratio: 4/5; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; filter: saturate(.95) contrast(1.04); }
.person .photo .frame { position: absolute; inset: 12px; border: 1px solid rgba(227,196,138,.5); border-radius: 6px; pointer-events: none; }
.person .body { padding: 1.2rem 1.4rem; }
.person .body h4 { margin: 0 0 .35rem; }
.person .creds-mini { font-size: .82rem; color: var(--slate-lt); margin-bottom: .8rem; }
.person .person-line { font-size: .92rem; color: var(--slate); margin-bottom: .9rem; max-width: 44ch; }
.dark .person .person-line { color: #b9c2cc; }

/* faculty profile stack */
.faculty { display: grid; gap: 1.2rem; }

/* service map â€” civil / criminal / clat / judicial, as on the calling card */
.servicemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1.2rem; }
.servicemap .node {
  text-align: center; padding: 1rem .8rem; border-radius: var(--r-sm);
  border: 1px solid rgba(195,154,79,.35); background: rgba(195,154,79,.06);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dp);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.servicemap .node:hover { transform: translateY(-3px); background: rgba(195,154,79,.14); }
.dark .servicemap .node { color: var(--brass-lt); background: rgba(195,154,79,.10); }
.servicemap .node small { display: block; margin-top: .4rem; font-size: .74rem; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--slate-lt); }
.servicemap.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .servicemap, .servicemap.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .servicemap, .servicemap.six { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* ---------- authority strip (founders' credentials) ---------- */
.credbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.credbar .pill { font-size: .68rem; }
.credbar .pill.gold { background: rgba(195,154,79,.16); border-color: rgba(195,154,79,.5); }

.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
@media (max-width: 900px) { .statband { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .statband { grid-template-columns: 1fr; } }
.statband .stat { padding: 1.3rem 1.2rem; border-radius: var(--r); background: rgba(195,154,79,.07); border: 1px solid rgba(195,154,79,.28); }
.dark .statband .stat { background: rgba(195,154,79,.10); border-color: rgba(195,154,79,.3); }
.statband .stat .n { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--brass-dp); }
.dark .statband .stat .n { color: var(--brass-lt); }
.statband .stat .l { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-lt); margin-top: .5rem; }
.dark .statband .stat .l { color: #a4b3c0; }

/* ---------- facilities + library ---------- */
.fac { position: relative; padding: 1.5rem 1.4rem; border-radius: var(--r); background: #fffdf9; border: 1px solid rgba(12,17,21,.10); overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.fac::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brass-dp), var(--brass-lt)); transition: width .45s var(--ease); }
.fac:hover { transform: translateY(-6px); border-color: rgba(195,154,79,.45); box-shadow: var(--shadow); }
.fac:hover::before { width: 100%; }
.dark .fac { background: var(--ink-3); border-color: rgba(195,154,79,.22); }
.fac .glyph { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(195,154,79,.12); border: 1px solid rgba(195,154,79,.38); margin-bottom: .8rem; }
.fac .glyph svg { width: 20px; height: 20px; stroke: var(--brass-dp); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dark .fac .glyph { background: rgba(195,154,79,.14); }
.dark .fac .glyph svg { stroke: var(--brass-lt); }
.fac h4 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .5rem; }
.fac p { margin: 0; font-size: .95rem; color: var(--slate); }
.dark .fac p { color: #b6c1cb; }
.facgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
@media (max-width: 1000px) { .facgrid, .facgrid.half { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .facgrid, .facgrid.half { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.gallery > figure:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
.gallery > figure { aspect-ratio: 4/3; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery > figure:nth-child(1) { grid-column: span 2; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery > figure:nth-child(1) { grid-column: span 1; } }

/* ---------- location / map ---------- */
.map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(195,154,79,.42); box-shadow: var(--shadow-lg); background: #fffdf9; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.map .plate { position: absolute; left: 14px; bottom: 14px; z-index: 3; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #f3eee5; background: rgba(13,25,38,.72); border: 1px solid rgba(227,196,138,.4); padding: .4rem .7rem; border-radius: 999px; backdrop-filter: blur(4px); }
.map .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; background: rgba(13,25,38,.04); pointer-events: none; }
.map .fallback a { pointer-events: auto; }

/* ---------- enquiry / lead block ---------- */
.enquiry { position: relative; border-radius: var(--r); padding: clamp(1.4rem, 2.4vw, 2rem); background: #fffdf9; border: 1px solid rgba(195,154,79,.4); box-shadow: var(--shadow); }
.dark .enquiry { background: var(--ink-3); border-color: rgba(195,154,79,.28); }
.enquiry h3 { margin-top: 0; }
.enquiry .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .enquiry .form-row { grid-template-columns: 1fr; } }
.enquiry .trackline { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dp); margin-bottom: .9rem; }
.dark .enquiry .trackline { color: var(--brass-lt); }
.enquiry .actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* ---------- WhatsApp ---------- */
.wa { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid rgba(31,107,70,.45); background: rgba(31,107,70,.08); color: var(--whatsapp); transition: transform .3s var(--ease), background .3s var(--ease); }
.dark .wa { color: #7fc9a3; border-color: rgba(127,201,163,.4); background: rgba(31,107,70,.18); }
.wa:hover { transform: translateY(-2px); background: rgba(31,107,70,.16); }
.wa svg { width: 17px; height: 17px; fill: currentColor; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 75; display: inline-flex; align-items: center; gap: .5rem; background: var(--whatsapp); color: #fff; border-radius: 999px; padding: .7rem 1.1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; box-shadow: var(--shadow-lg); }
.wa-float svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 640px) { .wa-float { right: 12px; bottom: 12px; padding: .65rem .9rem; } }

/* ---------- testimonials / success board ---------- */
.slot { border: 1px dashed rgba(195,154,79,.45); border-radius: var(--r); padding: 1.4rem; background: rgba(195,154,79,.05); }
.slot .kicker { color: var(--brass-dp); }
.dark .slot .kicker { color: var(--brass-lt); }
.testi-feature { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: clamp(1.2rem,3vw,2.4rem); align-items: start; }
@media (max-width: 900px) { .testi-feature { grid-template-columns: 1fr; } }
.board { display: grid; gap: .7rem; margin-top: 1.4rem; }
.board .row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .8rem 1rem; border-radius: var(--r-sm); background: rgba(255,253,249,.7); border: 1px solid rgba(12,17,21,.10); }
.dark .board .row { background: var(--ink-3); border-color: rgba(195,154,79,.2); }
.board .row .yr { font-family: var(--serif); font-size: 1.15rem; color: var(--brass-dp); flex: none; }
.dark .board .row .yr { color: var(--brass-lt); }
.board .row .who { font-size: .95rem; }
.board .row .tag { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-lt); }

/* ---------- blog ---------- */
.postlist { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.postcard { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1.2rem; border-radius: var(--r); background: #fffdf9; border: 1px solid rgba(12,17,21,.10); transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.postcard:hover { transform: translateY(-4px); border-color: rgba(195,154,79,.45); box-shadow: var(--shadow); }
.dark .postcard { background: var(--ink-3); border-color: rgba(195,154,79,.22); }
.postcard .thumb { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.postcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.postcard h3, .postcard h4 { margin: 0 0 .4rem; }
.byline { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dp); margin-bottom: .6rem; }
.dark .byline { color: var(--brass-lt); }
.post-body { font-size: 1.02rem; line-height: 1.75; max-width: 66ch; }
.dark .post-body { color: #cbd4dd; }
.post-body h3 { margin-top: 1.8rem; }
.post-body p, .post-body li, .post-body table { margin-bottom: 1rem; }
.post-body ul { padding-left: 1.2rem; }
.post-body blockquote { margin: 1.4rem 0; padding-left: 1.1rem; border-left: 3px solid var(--brass); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.post-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2rem 0; }
.post-table th, .post-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid rgba(12,17,21,.12); }
.dark .post-table th, .dark .post-table td { border-color: rgba(195,154,79,.24); }
.post-table th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dp); }
.dark .post-table th { color: var(--brass-lt); }
.sources { font-size: .85rem; color: var(--slate-lt); }
.sources a { text-decoration: underline; }

/* ---------- social ---------- */
.social { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.social a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; border: 1px solid rgba(195,154,79,.4); background: rgba(195,154,79,.06); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dp); transition: transform .25s var(--ease), background .25s var(--ease); }
.social a:hover { transform: translateY(-2px); background: rgba(195,154,79,.14); }
.dark .social a { color: var(--brass-lt); background: rgba(195,154,79,.12); }
.social svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.site-foot .social a { border-color: rgba(195,154,79,.3); }

/* ---------- misc ---------- */
.crumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-lt); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--brass-dp); }
.dark .crumbs { color: #8b98a5; }

/* ---------- mobile pass (â‰¤640px) ---------- */
@media (max-width: 640px) {
  .postcard { grid-template-columns: 1fr; }
  .postcard .thumb { aspect-ratio: 16/10; }
  .map iframe { height: 300px; }
  .post-table { font-size: .88rem; }
  .post-table th, .post-table td { padding: .5rem .55rem; }
  .hero .watermark { right: 4vw; bottom: -2vh; width: min(72vw, 320px); }
  .plan .price { font-size: 2.3rem; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .enquiry .actions { gap: .6rem; }
  .social a { font-size: .72rem; padding: .55rem .85rem; }
}
a, .post-body, .sources { overflow-wrap: anywhere; }

/* utility */
.center { text-align: center; }
.form-status { display: block; }
.form-status.show { font-style: normal; font-weight: 600; color: var(--brass-dp); }
.dark .form-status.show { color: var(--brass-lt); }

/* tap-to-call number used anywhere on the page, not only inside a profile card */
a.dial { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--brass-dp); border-bottom: 1px solid rgba(195,154,79,.4); transition: color .25s var(--ease); }
.dark a.dial { color: var(--brass-lt); border-color: rgba(227,196,138,.4); }
a.dial:hover { color: var(--ink); }
.site-foot a.dial { color: var(--brass-lt); }
.mt { margin-top: 1.6rem; }
.mb { margin-bottom: 1.6rem; }
.hidden { display: none; }

/* ---------- pieces WordPress renders that the static build did not have ---------- */
/* the header bar fits one line from about 1100px up; below that the CTA is allowed to
   drop to its own row rather than squeezing the nav */
@media (min-width: 1100px) {
  .site-head .bar { flex-wrap: nowrap; }
  .nav { gap: 1.05rem; font-size: .8rem; flex-wrap: nowrap; }
  .nav li > a { white-space: nowrap; }
  .brand, .head-cta { flex: none; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .nav { gap: .85rem; font-size: .76rem; }
  .nav li > a { padding: .35rem 0; }
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 8px; z-index: 120; }

/* the primary menu is a list; keeping the items as contents preserves the original
   nav look (anchors as flex children) instead of boxing each one in a list item */
.nav ul { margin: 0; padding: 0; list-style: none; }
.nav li { display: contents; }
.nav li > a { display: inline-block; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: #fff; }
.nav .current-menu-item > a::after, .nav .current_page_item > a::after { width: 100%; }

main { padding-bottom: 2rem; }
main > .entry { width: min(var(--maxw), 92vw); margin-inline: auto; }
.entry p, .entry ul, .entry ol, .entry table { margin-bottom: 1.1rem; }
.entry ul, .entry ol { padding-left: 1.2rem; }
.entry li { margin-bottom: .45rem; }
.entry figure { margin: 1.2rem 0; }
.entry img { border-radius: 12px; }

.pagination { margin-top: 1.6rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: .45rem .85rem; border: 1px solid rgba(195,154,79,.4); border-radius: 999px; font-size: .8rem; font-weight: 600; margin: 0 .3rem; color: var(--brass-dp); }
.pagination .current { background: rgba(195,154,79,.16); }

.searchform { margin-top: 1.2rem; }
.searchform input[type=search] { width: 100%; padding: .7rem .9rem; border: 1px solid var(--paper-3); border-radius: 10px; background: #fffdf9; font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.searchform input:focus { outline: none; border-color: var(--brass); }

/* honeypot field for the enquiry handler — present in the DOM, never visible */
.h-cf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* single post card thumbnail inside the archive keeps its ratio */
.postcard .thumb { margin: 0; }
.postcard .thumb img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
