/* P.G. Wanyonyi & Co. Advocates — site styles */
:root {
  --navy: #0a1a2a;
  --navy-mid: #122538;
  --ink: #1a2430;
  --muted: #5c6b7a;
  --gold: #b8924a;
  --gold-light: #d4b87a;
  --ivory: #f5f2eb;
  --white: #ffffff;
  --line: #e2e6eb;
  --header-h: 80px;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(10, 26, 42, 0.94);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(10, 26, 42, 0.28);
  background: rgba(10, 26, 42, 0.98);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #d8dee6;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.35rem;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), background 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  filter: none;
}

.btn-whatsapp {
  background: #1f9d55;
  border-color: #1f9d55;
  color: var(--white);
}

.btn-nav {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 18, 30, 0.96) 0%, rgba(7, 18, 30, 0.82) 42%, rgba(7, 18, 30, 0.55) 100%),
    url("../assets/hero.jpg") center / cover no-repeat;
}

.hero > .container {
  width: min(1120px, 92%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 38rem;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero .lede {
  font-size: 1.1rem;
  color: #e4e9ef;
  margin-bottom: 1.85rem;
  max-width: 36rem;
}

.hero .lede strong {
  color: var(--gold-light);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}

.hero-contact a:hover {
  text-decoration: underline;
}

.hero-contact span {
  opacity: 0.55;
}

.hero-years {
  justify-self: stretch;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  padding: 2rem 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.years-figure {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 8vw, 5.25rem);
  line-height: 0.95;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}

.years-figure span {
  font-size: 0.72em;
}

.years-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #e4e9ef;
  margin-bottom: 1.25rem;
}

.years-line {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(200, 164, 93, 0.55);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background: var(--navy);
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 28rem;
}

.page-hero p {
  margin-top: 0.9rem;
  color: #c5ced8;
  max-width: 36rem;
}

/* —— Sections —— */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-head p,
.prose p {
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

.bg-ivory {
  background: var(--ivory);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-navy h2 {
  color: var(--white);
}

.bg-navy .section-head p {
  color: #b8c4d0;
}

/* —— Home strips —— */
.trust-strip {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.trust-grid span {
  font-size: 0.88rem;
  color: var(--muted);
}

.home-about .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 1.35rem;
}

.cta-band {
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band p {
  color: #b8c4d0;
  max-width: 32rem;
  margin: 0.75rem auto 1.75rem;
}

/* —— Why choose us —— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.why-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Principal —— */
.credential-list {
  margin: 1.25rem 0;
  padding-left: 1.1rem;
}

.credential-list li {
  list-style: disc;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.profile-panel {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem;
}

.profile-panel .eyebrow {
  color: var(--gold-light);
}

.profile-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.75rem 0 1rem;
}

.profile-panel p {
  color: #c5ced8;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* —— Practice areas —— */
.practice-list {
  display: grid;
  gap: 2rem;
}

.practice-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.practice-block:last-child {
  border-bottom: 1px solid var(--line);
}

.practice-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.practice-block > p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.practice-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.5rem;
  padding-left: 1.1rem;
}

.practice-block li {
  list-style: disc;
  color: var(--muted);
  font-size: 0.95rem;
}

.practice-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.practice-preview article {
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

.practice-preview h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.practice-preview p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Team —— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-card {
  padding: 1.75rem 0;
  border-top: 2px solid var(--gold);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}

.team-card .role {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.4rem 0 0.85rem;
}

.team-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Approach —— */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.step {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.15rem;
}

.step b {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.5rem 0;
}

.step p {
  font-size: 0.9rem;
  color: #b8c4d0;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-list {
  margin-top: 1.5rem;
}

.contact-list div {
  margin-bottom: 1.15rem;
}

.contact-list b {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.contact-list a {
  color: var(--muted);
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.form-panel {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--line);
}

.form-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfd5dc;
  margin-bottom: 1rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #1f7a45;
}

.form-status.error {
  color: #a12828;
}

.map-wrap {
  margin-top: 3rem;
}

.map-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  filter: grayscale(0.2);
}

/* —— Insights —— */
.insights-panel {
  max-width: 36rem;
  padding: 2rem 0;
  border-top: 2px solid var(--gold);
}

.insights-panel p {
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
}

/* —— Footer —— */
.site-footer {
  background: #07131f;
  color: #aeb9c5;
  padding: 3.5rem 0 1.5rem;
}

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

.site-footer h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer a {
  font-size: 0.9rem;
  color: #aeb9c5;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer .fine {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-top: 0.65rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  font-size: 0.78rem;
  color: #7a8896;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 4%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), padding 0.35s;
  }

  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    padding: 1rem 4% 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links .btn-nav {
    margin-top: 0.75rem;
    width: auto;
  }

  .hero-grid,
  .home-about .split,
  .split-2,
  .contact-grid,
  .footer-grid,
  .practice-preview,
  .team-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .practice-block ul {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    min-height: auto;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-years {
    margin-left: 0;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.75rem 0;
  }

  .years-figure {
    font-size: 4rem;
  }
}
