/* Kimani & Muriithi Associates. Brand colours taken from the firm's logo. */
:root {
  --teal: #005b6e;
  --teal-deep: #003d4a;
  --cyan: #00abc5;
  --grey: #6d6e71;
  --ink: #1b2a2f;
  --paper: #fbfaf7;
  --line: #dde5e7;
  --mist: #eef5f6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand img { width: 220px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; letter-spacing: .02em; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: 600 .9rem var(--sans); color: var(--teal); cursor: pointer; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--teal-deep); overflow: hidden; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero .wrap { position: relative; padding-block: clamp(72px, 12vw, 140px); }
.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 18px; }
.hero h1 { font: 500 clamp(2.4rem, 5.5vw, 4.1rem)/1.05 var(--serif); margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; margin: 0 0 32px; color: #e7f3f5; }
.rule { width: 64px; height: 3px; background: var(--cyan); border: 0; margin: 0 0 22px; }

.btn { display: inline-block; background: var(--cyan); color: #04262e; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 3px; transition: background-color .15s ease; }
.btn:hover { background: #fff; color: var(--teal-deep); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); margin-left: 10px; }
.btn.ghost:hover { background: #fff; color: var(--teal-deep); }
.btn.dark { background: var(--teal); color: #fff; }
.btn.dark:hover { background: var(--teal-deep); color: #fff; }

/* Page title band for inner pages */
.band { background: var(--teal); color: #fff; }
.band .wrap { padding-block: 56px 48px; }
.band h1 { font: 500 clamp(2.1rem, 4.5vw, 3.2rem)/1.1 var(--serif); margin: 0; }
.band p { margin: 10px 0 0; color: #d4ecf0; max-width: 60ch; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section.alt { background: #fff; border-block: 1px solid var(--line); }
h2 { font: 500 clamp(1.8rem, 3.2vw, 2.4rem)/1.15 var(--serif); color: var(--teal); margin: 0 0 18px; text-wrap: balance; }
h3 { font: 600 1.25rem/1.3 var(--sans); color: var(--teal-deep); margin: 0 0 8px; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote { font: italic 500 1.6rem/1.35 var(--serif); color: var(--teal); border-left: 3px solid var(--cyan); padding-left: 20px; margin: 0; }

/* Practice areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { background: #fff; padding: 28px 26px 30px; }
.area .num { font: 500 1.05rem var(--serif); color: var(--cyan); display: block; margin-bottom: 10px; }
.area p { margin: 0; color: #40525a; }

/* Team */
.team-group + .team-group { margin-top: 56px; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.person { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); padding: 26px 28px; }
.person .role { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 14px; }
.person p { margin: 0 0 .9em; color: #34464d; }
.person p:last-child { margin-bottom: 0; }

/* Contact */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.office { background: #fff; border: 1px solid var(--line); padding: 26px 28px; }
.office address { font-style: normal; margin-bottom: 12px; }
.office dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.office dt { color: var(--grey); }
.office dd { margin: 0; }
form.enquiry { display: grid; gap: 16px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9c9cd; border-radius: 3px; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 3px; margin-bottom: 20px; }
.notice.ok { background: #e3f4ee; border: 1px solid #9fd2be; }
.notice.err { background: #fbeceb; border: 1px solid #e6b3ae; }

/* Call to action strip */
.cta { background: var(--teal-deep); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 44px; }
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: 6px 0 0; color: #cfe6ea; }

/* Footer */
.site-foot { background: #0f1f24; color: #b8c7cb; font-size: .95rem; }
.site-foot .wrap { padding-block: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-foot a { color: #d9e6e9; }
.site-foot p { margin: 0 0 6px; }
.foot-base { border-top: 1px solid #22353b; }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px; grid-template-columns: none; font-size: .85rem; }
.foot-base a { color: #9fb3b8; }

@media (max-width: 900px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .brand img { width: 170px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { display: block; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .areas, .people, .offices { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .btn.ghost { margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
