/* =====================================================
   Makena Kinoti & Co. Advocates — Site Stylesheet
   ===================================================== */

:root {
  /* Brand */
  --navy: #0E2C52;      /* primary dark background / headings on light */
  --navy-2: #10315A;    /* secondary dark panel (approach cards) */
  --navy-3: #0B2242;    /* footer / darkest */
  --blue: #2C6FBE;      /* links, icon accent */
  --blue-light: #7FB0E4;/* accents on dark backgrounds */
  --red: #F02028;       /* CTA / accent */

  /* Ink (text) ramp, light backgrounds */
  --ink: #0B1B33;
  --ink-2: #24364F;
  --ink-3: #3E5169;
  --ink-4: #46596F;
  --ink-5: #4B5E75;
  --ink-6: #566980;
  --ink-7: #6A7C94;

  /* Text on dark backgrounds */
  --on-dark-1: #D3E1F2;
  --on-dark-2: #C9DCF1;
  --on-dark-3: #C4D8EE;
  --on-dark-4: #B9D0E9;
  --on-dark-5: #9FC0E4;
  --on-dark-6: #E4EEF8;

  /* Surfaces & borders */
  --bg-tint: #F4F7FC;
  --paper: #FFFFFF;
  --border: #DCE6F2;
  --border-2: #C9D8EA;
  --border-3: #E0E9F4;
  --border-4: #DDE7F3;
  --border-5: #EDF2F8;
  --icon-chip: #EAF1FA;

  --radius: 2px;
  --shadow: 0 10px 28px rgba(14, 44, 82, 0.1);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: 84px;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

p, ul {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: clamp(60px, 8vw, 112px) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow-light {
  color: var(--blue-light);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-head.on-dark h2 {
  color: #fff;
}

.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-4);
}

.section-head.on-dark p {
  color: var(--on-dark-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--red);
  color: #fff;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: #fff;
  color: var(--navy);
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

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

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}

.brand img {
  height: 54px;
  width: auto;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.brand-text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.005em;
}

.brand-text span {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.header-phone span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-7);
}

.header-phone strong {
  font-size: 15.5px;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.8px;
  background: var(--navy);
}

.nav-toggle span:last-child {
  background: var(--red);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 10px 20px 22px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  padding: 15px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border-5);
}

.mobile-nav-links a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  display: flex;
  width: 100%;
  margin-top: 18px;
  padding: 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 82% 15%, rgba(64, 128, 200, 0.55) 0%, rgba(14, 44, 82, 0) 62%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(44px, 7.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue-light);
}

.hero .lede {
  margin-top: 22px;
  font-size: clamp(16.5px, 1.5vw, 19.5px);
  line-height: 1.62;
  color: var(--on-dark-1);
  max-width: 30em;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-figure-inner {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-figure-inner::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  right: 26px;
  bottom: 26px;
  border: 1px solid rgba(127, 176, 228, 0.5);
  border-radius: 3px;
}

.hero-figure-inner img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 3px;
}

.hero-badge {
  position: absolute;
  left: 0;
  bottom: -1px;
  background: #fff;
  color: var(--navy);
  padding: 16px 20px;
  border-left: 3px solid var(--red);
  max-width: 82%;
}

.hero-badge strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
}

.hero-badge span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-6);
}

/* ---------- Practice areas ---------- */

.practice-section {
  background: var(--bg-tint);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 1px;
  background: var(--border-4);
  border: 1px solid var(--border-4);
}

.practice-card {
  background: #fff;
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.practice-card:hover {
  background: #F8FAFD;
  border-top-color: var(--red);
  box-shadow: var(--shadow);
}

.practice-card .icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--icon-chip);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.practice-card h3 {
  font-family: var(--sans);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.005em;
}

.practice-card p {
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-5);
}

.tag-list {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-6);
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: var(--radius);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about-media {
  min-width: 0;
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 3px;
}

.about-quote {
  margin-top: 18px;
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 18px;
}

.about-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  color: var(--navy);
}

.about-copy {
  min-width: 0;
}

.about-copy h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.about-copy .subtitle {
  margin-top: 8px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--blue);
  font-weight: 500;
}

.about-copy p.body {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.about-copy p.body + p.body {
  margin-top: 16px;
}

.about-stats {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.about-stat {
  flex: 1 1 150px;
  min-width: 0;
  padding-top: 16px;
  border-top: 2px solid var(--border-3);
}

.about-stat .num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--navy);
}

.about-stat .label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-6);
}

/* ---------- Approach ---------- */

.approach {
  background: var(--navy);
  color: #fff;
}

.approach-intro {
  max-width: 680px;
}

.values-grid {
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.value-item {
  padding-top: 20px;
  border-top: 1px solid rgba(127, 176, 228, 0.35);
}

.value-item .num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
}

.value-item h3 {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.value-item p {
  margin-top: 10px;
  font-size: 14.8px;
  line-height: 1.65;
  color: var(--on-dark-4);
}

.vm-grid {
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(127, 176, 228, 0.3);
  border: 1px solid rgba(127, 176, 228, 0.3);
}

.vm-card {
  background: var(--navy-2);
  padding: clamp(26px, 3vw, 38px);
}

.vm-card h3 {
  font-size: 27px;
  color: #fff;
}

.vm-card p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--on-dark-3);
}

/* ---------- Contact ---------- */

.contact-section {
  background: var(--bg-tint);
  padding-bottom: clamp(92px, 8vw, 112px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
}

.contact-card {
  background: var(--navy);
  color: #fff;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: #fff;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(127, 176, 228, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

.contact-item .label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-5);
}

.contact-item .value {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 600;
}

.contact-item .value.muted {
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--on-dark-6);
}

.contact-item .value.email {
  font-size: 16px;
  word-break: break-word;
}

.contact-social {
  padding-top: 24px;
  border-top: 1px solid rgba(127, 176, 228, 0.35);
}

.contact-social .label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-5);
  margin-bottom: 14px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(127, 176, 228, 0.45);
  color: #fff;
  border-radius: var(--radius);
}

.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.map-embed {
  margin-top: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.contact-form-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 38px);
}

.contact-form-card h3 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
}

.contact-form-card > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-6);
}

form.contact-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form label > span {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-6);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 14px;
  min-height: 48px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: #fff;
}

.contact-form select {
  padding: 13px 14px;
}

.contact-form textarea {
  min-height: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 111, 190, 0.14);
}

.form-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-7);
}

.form-success {
  display: none;
  margin-top: 20px;
  background: var(--icon-chip);
  border-left: 3px solid var(--blue);
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.form-success.visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-3);
  color: var(--on-dark-4);
  padding: clamp(48px, 6vw, 76px) 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand-mark {
  display: inline-block;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.footer-brand-mark img {
  height: 66px;
  width: auto;
}

.footer-grid .footer-brand p.name {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  color: #fff;
}

.footer-grid .footer-brand p.tag {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.footer-grid .footer-brand p.desc {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 32em;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--on-dark-4);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col li {
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-col li a.strong {
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(127, 176, 228, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom span {
  font-size: 13px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(127, 176, 228, 0.35);
  color: var(--on-dark-4);
  border-radius: var(--radius);
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Mobile bottom bar ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}

.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.mobile-bar .call {
  border: 1px solid var(--navy);
  color: var(--navy);
}

.mobile-bar .book {
  background: var(--red);
  color: #fff;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1119px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 559px) {
  .brand-text {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1239px) {
  .brand-text {
    display: none;
  }
}

@media (max-width: 899px) {
  .main-nav,
  .header-cta .btn-navy,
  .hero-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 68px;
  }
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}
