/* ============================================================
   J.A. Oloyede & Co. — Stylesheet
   Palette: warm ink / paper / brass hairline accent
   Type: Fraunces (display) + Inter (body/utility)
   ============================================================ */

:root {
  --ink: #17160f;
  --ink-soft: #322f26;
  --paper: #f7f4ec;
  --paper-dim: #eeeadd;
  --paper-line: #e4dfd0;
  --grey: #726b5c;
  --grey-light: #a49c8a;
  --line: rgba(23, 22, 15, 0.14);
  --line-soft: rgba(23, 22, 15, 0.08);
  --brass: #9c7c48;
  --brass-dim: rgba(156, 124, 72, 0.35);
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: var(--pad); top: 12px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-on-dark {
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn-on-dark:hover { background: transparent; color: var(--paper); }

.btn-ghost-on-dark {
  border: 1px solid rgba(247,244,236,0.4);
  background: transparent;
  color: var(--paper);
}
.btn-ghost-on-dark:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.link-arrow:hover { gap: 13px; opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--brass); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .main-nav ul { display: none; }
  .hamburger { display: flex; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--paper);
  z-index: 99;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 40px var(--pad);
  display: flex;
  flex-direction: column;
}
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 26px;
}
.mobile-menu .btn { margin: 32px var(--pad) 0; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 100px);
  position: relative;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow-row .hairline { flex: 1; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
}
.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-locale {
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-locale .dot { width: 4px; height: 4px; background: var(--brass); border-radius: 50%; }

/* signature draw-in rule */
.draw-line {
  transform-origin: left center;
  animation: drawline 1.4s cubic-bezier(.65,0,.2,1) 0.15s both;
}
@keyframes drawline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fade-up { animation: fadeup 0.9s cubic-bezier(.2,.7,.2,1) both; }
.fade-up.d1 { animation-delay: 0.15s; }
.fade-up.d2 { animation-delay: 0.3s; }
.fade-up.d3 { animation-delay: 0.45s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform: translateY(0);} }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
@media (min-width: 800px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); max-width: 16ch; }
.section-head .lede { color: var(--grey); max-width: 42ch; font-size: 16px; }

.border-top { border-top: 1px solid var(--line); }
.on-dim { background: var(--paper-dim); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink h2, .on-ink h3, .on-ink h4 { color: var(--paper); }
.on-ink .eyebrow { color: var(--brass); }

/* ---------- Intro / statement ---------- */
.statement {
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .statement { grid-template-columns: 0.9fr 1.1fr; }
}
.statement h2 { font-size: clamp(30px, 4.2vw, 46px); }
.statement-body { font-size: 17px; color: var(--ink-soft); max-width: 56ch; }
.statement-body p + p { margin-top: 18px; }

/* ---------- Practice grid ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .practice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .practice-grid { grid-template-columns: 1fr 1fr 1fr; } }

.practice-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 30px;
  position: relative;
  transition: background 0.3s ease;
}
.practice-cell:hover { background: var(--paper-dim); }
.practice-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
  margin-bottom: 18px;
  display: block;
}
.practice-cell h3 { font-size: 19px; font-weight: 500; margin-bottom: 10px; }
.practice-cell p { font-size: 14.5px; color: var(--grey); line-height: 1.55; }

/* ---------- Why / values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-cell {
  background: var(--paper);
  padding: 40px 28px;
}
.value-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 15px;
  margin-bottom: 22px;
  display: block;
}
.value-cell h3 { font-size: 20px; margin-bottom: 12px; }
.value-cell p { font-size: 14.5px; color: var(--grey); }

/* ---------- Firm story ---------- */
.story {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) { .story { grid-template-columns: 0.8fr 1.2fr; } }
.story-copy p { color: var(--ink-soft); font-size: 16.5px; }
.story-copy p + p { margin-top: 20px; }
.pull-quote {
  border-left: 2px solid var(--brass);
  padding-left: 28px;
  margin-top: 8px;
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .wrap {
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .cta-band .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); }
.cta-band .eyebrow { margin-bottom: 18px; display: block; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 800px) { .cta-actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,244,236,0.14);
}
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand-name { font-size: 21px; color: var(--paper); }
.footer-brand .brand-tag { color: rgba(247,244,236,0.55); }
.footer-addr { margin-top: 18px; font-size: 14px; color: rgba(247,244,236,0.65); line-height: 1.7; max-width: 34ch; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 18px; font-family: var(--sans); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(247,244,236,0.8); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(247,244,236,0.45);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: clamp(56px, 10vw, 110px) 0 clamp(40px, 6vw, 64px);
}
.page-hero h1 { font-size: clamp(34px, 5.6vw, 62px); max-width: 20ch; }
.page-hero .lede { margin-top: 22px; max-width: 52ch; font-size: 17px; color: var(--ink-soft); }

/* ---------- About page ---------- */
.two-col {
  display: grid;
  gap: 44px;
}
@media (min-width: 860px) { .two-col { grid-template-columns: 0.7fr 1.3fr; } }
.two-col h2 { font-size: clamp(24px, 3vw, 32px); }
.two-col .body p { color: var(--ink-soft); font-size: 16.5px; }
.two-col .body p + p { margin-top: 16px; }

.stack-section + .stack-section { border-top: 1px solid var(--line); }

/* ---------- Practice areas page ---------- */
.practice-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px) { .practice-detail-grid { grid-template-columns: 1fr 1fr; } }
.practice-detail-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px;
}
.practice-detail-cell h3 { font-size: 21px; margin-bottom: 12px; }
.practice-detail-cell p { color: var(--grey); font-size: 15px; margin-bottom: 20px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-top: 30px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 8px 0 0;
  font-size: 16.5px;
  color: var(--ink);
}
.contact-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.map-frame {
  border: 1px solid var(--line);
  margin-top: 40px;
  filter: grayscale(0.35) contrast(1.02);
  aspect-ratio: 16/10;
  width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field.full { grid-column: 1 / -1; }

.privacy-note {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--grey);
  max-width: 62ch;
  line-height: 1.65;
}

.form-status {
  display: none;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--brass-dim);
  background: var(--paper-dim);
}
.form-status.show { display: block; }
.form-status h4 { font-size: 17px; margin-bottom: 8px; }
.form-status p { font-size: 14.5px; color: var(--grey); }

/* ---------- Utility ---------- */
.mt-lg { margin-top: 40px; }
.center { text-align: center; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Hero photo */
.hero-photo {
  width: 100%;
  max-width: 390px;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 36px;
  display: block;
}
/* Footer logo */
.footer-logo {
  width: 90px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}
/* Premium mobile footer */
@media (max-width: 700px) {
  .site-footer {
    margin-top: 60px;
    padding: 48px 0 24px;
  }

  .site-footer .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .footer-brand {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .footer-logo {
    width: 78px;
    height: auto;
    margin-bottom: 16px;
  }

  .footer-brand .brand-name {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
  }

  .footer-brand .brand-tag {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .footer-add {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
    max-width: 300px;
  }

  .footer-col {
    width: 100%;
  }

  .footer-col h4 {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

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

  .footer-col li {
    margin-bottom: 11px;
  }

  .footer-col a {
    font-size: 14px;
  }

  .footer-bottom {
    margin-top: 38px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
  }
}

