/* Umukoro Legal & Notary Services — brand: navy #1E2F45, gold #C6A75C */

/* ========== 1. Design tokens ========== */
:root {
  --navy: #1e2f45;
  --navy-dark: #152436;
  --gold: #c6a75c;
  --gold-light: #d4bc7a;
  --cream: #f8f6f2;
  --text: #1a1a1a;
  --text-muted: #4a5568;
  --white: #ffffff;
  --border: rgba(30, 47, 69, 0.12);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(30, 47, 69, 0.08);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, serif;

  /* Header mug + logo cap; 48px for ≤900 via @media below */
  --header-mark: 72px;
  --touch-target: 44px;
}

/* ========== 2. Global reset & base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* ========== 3. Accessibility ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 4. Site header (nav + lockup) ========== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding-top: env(safe-area-inset-top, 0px);
  overflow-x: clip;
  overflow-y: visible;
}

.site-header:has(.nav-toggle:checked) {
  z-index: 1100;
  overflow: visible;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.75rem
    max(1.25rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.header-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.header-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.header-logo img {
  width: auto;
  height: auto;
  max-height: var(--header-mark);
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.header-mugshot {
  display: block;
  flex-shrink: 0;
  width: var(--header-mark);
  height: var(--header-mark);
  max-width: var(--header-mark);
  max-height: var(--header-mark);
  min-width: var(--header-mark);
  min-height: var(--header-mark);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.header-logo:hover img {
  opacity: 0.9;
}

.header-right {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-text-link {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.94);
}

.brand-text-link:hover,
.brand-text-link:hover .brand-name,
.brand-text-link:hover .brand-tagline {
  color: var(--gold-light);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  padding: 0.5rem;
  margin: -0.25rem -0.25rem -0.25rem 0;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-label:hover,
.nav-toggle-label:focus-visible {
  color: var(--gold-light);
  outline: 2px solid rgba(198, 167, 92, 0.55);
  outline-offset: 2px;
}

.site-nav {
  width: 100%;
  min-width: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: none;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy-dark) !important;
}

/* Header responsive: --header-mark = mug + logo cap; 72 default, 48 for all ≤900 */
@media (max-width: 800px) {
  :root {
    --header-mark: 48px;
  }

  .header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .header-lockup {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    padding-right: 0.65rem;
    padding-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
  }

  .header-right {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    gap: 0.25rem;
  }

  .header-brand-row {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: clamp(0.88rem, 2.2vw, 0.98rem);
    line-height: 1.15;
  }

  .brand-tagline {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
  }

  .header-brand-row .nav-toggle-label {
    display: flex;
    flex-shrink: 0;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0.35rem;
    font-size: 1.35rem;
    margin-block: -0.1rem;
    margin-inline-end: -0.15rem;
  }

  .header-lockup .nav-toggle-label {
    display: none;
  }

  /* Floating panel: out of flow so it doesn’t push layout; opens under brand row */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.22rem);
    z-index: 1200;
    width: auto;
    flex-basis: auto;
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition:
      max-height 0.32s ease,
      opacity 0.2s ease,
      visibility 0.2s ease,
      padding 0.2s ease;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: min(75vh, 560px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.45rem 0.65rem;
    background: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.12),
      0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .header-right {
    overflow: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.15rem 0 0.35rem;
    gap: 0.1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.55rem 0.35rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 800px) and (min-width: 601px) {
  .header-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 0.38rem 0.7rem;
  }

  .header-lockup {
    gap: 0.32rem;
    padding-right: 0.5rem;
  }

  .header-right {
    gap: 0.12rem;
  }

  .header-brand-row {
    gap: 0.38rem;
  }

  .brand-name {
    font-size: clamp(0.76rem, 1.85vw, 0.86rem);
    line-height: 1.1;
  }

  .brand-tagline {
    font-size: 0.6rem;
    line-height: 1.12;
  }

  .header-brand-row .nav-toggle-label {
    padding: 0.28rem;
    font-size: 1.22rem;
    margin-block: -0.14rem;
    margin-inline-end: -0.12rem;
  }

  .site-nav {
    top: calc(100% + 0.14rem);
  }
}

@media (max-width: 600px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.55rem;
    column-gap: 0;
    align-content: start;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .header-lockup {
    grid-column: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-bottom: 0.55rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .header-mugshot {
    grid-column: 1;
    justify-self: start;
    margin-inline-start: 0.35rem;
  }

  .header-logo {
    grid-column: 2;
    justify-self: center;
  }

  .header-right {
    grid-column: 1;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.35rem;
    align-items: center;
  }

  .header-brand-row {
    gap: 0.5rem;
    justify-content: center;
  }

  .header-brand-row .nav-toggle-label {
    display: none;
  }

  .header-lockup .nav-toggle-label {
    display: flex;
    grid-column: 3;
    justify-self: end;
    margin-inline-start: 0;
    margin-inline-end: 0.35rem;
    margin-block: -0.12rem;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0.35rem;
    font-size: 1.4rem;
  }

  .brand-text-link {
    justify-content: center;
  }

  .brand-text {
    align-items: center;
    text-align: center;
  }

  .brand-name {
    font-size: 0.88rem;
    line-height: 1.22;
    word-break: break-word;
  }

  .brand-tagline {
    font-size: 0.67rem;
    line-height: 1.3;
  }

  .nav-toggle-label {
    min-width: 46px;
    min-height: 46px;
    padding: 0.4rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .header-inner {
    row-gap: 0.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  .header-lockup {
    padding-bottom: 0.5rem;
    column-gap: 0.38rem;
  }

  .header-mugshot {
    margin-inline-start: 0.25rem;
  }

  .header-lockup .nav-toggle-label {
    margin-inline-end: 0.25rem;
  }

  .nav-toggle-label {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0.32rem;
    font-size: 1.32rem;
  }
}

/* ========== 5. Main layout, hero, buttons ========== */
main {
  min-height: 50vh;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 3rem 0 4rem;
}

.hero .container {
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  margin: 0 0.5rem 0.75rem 0;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:last-child {
  margin-bottom: 0;
}

.hero-actions .btn {
  margin: 0;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

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

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

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

/* ========== 6. Sections, cards, content widgets ========== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--white);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0 0 1rem;
}

.section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.stat {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--gold);
  font-family: var(--font-heading);
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.25rem;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

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

.about-intro-copy > p:first-of-type {
  margin-top: 0;
}

.about-headshot {
  margin: 0 auto 1.75rem;
  max-width: 300px;
}

.about-headshot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-photo {
    max-width: 280px;
  }

  .about-intro-copy {
    width: 100%;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h3 {
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.price-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table .price {
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
}

.note-box {
  background: rgba(198, 167, 92, 0.15);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
  color: var(--gold);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "− ";
}

.faq-item p {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== 7. Footer ========== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  opacity: 0.85;
}

/* ========== 8. Interior pages & utilities ========== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.page-header p {
  margin: 0;
  opacity: 0.92;
  max-width: 640px;
}

.legal-prose {
  max-width: 720px;
  margin: 0 auto;
}

.legal-prose h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-muted {
  color: var(--text-muted);
}
