@import url("./tokens.css");

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-meta); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }

p { margin: 0 0 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

section { padding: var(--space-2xl) 0; position: relative; }

@media (max-width: 768px) {
  section { padding: var(--space-xl) 0; }
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider-center {
  margin: 1.5rem auto;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.logo-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 2.25rem;
  align-items: center;
  font-family: var(--font-meta);
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
  display: flex;
}

@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
  gap: 0.4rem;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.7rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-meta);
  font-size: 0.95rem;
}
.mobile-menu a:last-child { border-bottom: none; }

/* === Hero === */
.hero {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero-eyebrow {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 1.4rem;
  max-width: 800px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 660px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--font-meta);
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}

.hero-meta-item label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.hero-meta-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
}

/* === Quick info grid === */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0;
}

@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }

.info-card {
  background: var(--paper);
  padding: 2rem 1.6rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-card-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

.info-card h4 {
  color: var(--ink);
  font-size: 1.15rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.info-card a {
  margin-top: 0.5rem;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.info-card a:hover { color: var(--ink); }

/* === Section header === */
.section-header {
  margin-bottom: 3rem;
  max-width: 720px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* === Practice areas === */
.practice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.practice-item {
  border-bottom: 1px solid var(--rule);
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .practice-item { grid-template-columns: 200px 1fr; gap: 3rem; }
}

.practice-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

.practice-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.practice-content p {
  font-size: 1.02rem;
  line-height: 1.7;
}

.practice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.practice-tag {
  padding: 0.25rem 0.7rem;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* === Profile section === */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 280px 1fr; gap: 4rem; }
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 50%, var(--gold-deep) 100%);
  position: relative;
  overflow: hidden;
}

.profile-photo::after {
  content: "Photograph";
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.7);
  text-align: center;
  border-top: 1px solid rgba(251, 247, 238, 0.2);
  padding-top: 12px;
}

.profile-meta {
  margin-top: 1.5rem;
  font-family: var(--font-meta);
  font-size: 0.88rem;
}

.profile-meta-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.profile-meta-row:last-child { border-bottom: none; }

.profile-meta-row label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
}

.profile-meta-row span {
  color: var(--ink);
  text-align: right;
}

.profile-content h2 {
  margin-bottom: 1rem;
}

.profile-content .designation {
  font-family: var(--font-meta);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.profile-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.qualification-list {
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.qualification-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

@media (min-width: 600px) {
  .qualification-list li { grid-template-columns: 100px 1fr; gap: 1.5rem; align-items: baseline; }
}

.qual-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-deep);
}

.qual-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.qual-text span {
  font-family: var(--font-meta);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* === Office === */
.office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .office-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.office-block {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.office-block h4 {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.office-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.office-block .small {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}

.office-stack { display: flex; flex-direction: column; gap: 2rem; }

.map-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #2D3F62 0%, #1A2B4A 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder::before,
.map-placeholder::after {
  content: "";
  position: absolute;
  background: rgba(168, 133, 74, 0.15);
}

.map-placeholder::before {
  top: 30%;
  left: 0;
  right: 0;
  height: 1px;
}

.map-placeholder::after {
  top: 0;
  bottom: 0;
  left: 40%;
  width: 1px;
}

.map-pin {
  position: absolute;
  top: 30%;
  left: 40%;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 6px rgba(168, 133, 74, 0.2);
}

.map-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(251, 247, 238, 0.8);
  background: rgba(26, 43, 74, 0.6);
  padding: 6px 12px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* === About chambers section === */
.chambers-section {
  background: var(--cream-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chambers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .chambers-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.chambers-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.chambers-content p + p { margin-top: 1.2rem; }

.chambers-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  max-width: 480px;
}

.chambers-quote-attr {
  font-family: var(--font-meta);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-top: 1rem;
  font-style: normal;
}

/* === Footer === */
.footer {
  background: var(--ink);
  color: rgba(251, 247, 238, 0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer .logo { color: var(--cream); }
.footer .logo-mark { background: var(--gold); color: var(--ink); }

.footer-about p {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(251, 247, 238, 0.6);
  max-width: 360px;
}

.footer h4 {
  color: var(--cream);
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-meta); font-size: 0.92rem; }
.footer li { padding: 0.35rem 0; }
.footer a { transition: color 0.2s; color: rgba(251, 247, 238, 0.65); }
.footer a:hover { color: var(--gold); }

.footer-disclaimer {
  padding: 2rem 0;
  border-top: 1px solid rgba(251, 247, 238, 0.1);
  font-family: var(--font-meta);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(251, 247, 238, 0.55);
  max-width: 720px;
}

.footer-disclaimer strong {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 247, 238, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  color: rgba(251, 247, 238, 0.4);
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
