/*
Theme Name: Furman Legal
Theme URI: https://furmanandfurmanattorneys.com/
Author: Graffiti Web Design
Description: A lightweight, accessible theme created for Furman & Furman Attorneys, LLP.
Version: 0.1.5
Requires at least: 7.1
Requires PHP: 8.2
Text Domain: furman-legal
*/

:root {
  --ink: #0b1728;
  --navy: #102a43;
  --navy-light: #163a5d;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --gold: #b68a3a;
  --gold-light: #ddbd78;
  --blue: #397f9f;
  --muted: #607080;
  --line: #dce2e6;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(11, 23, 40, 0.12);
  --radius: 0.35rem;
  --content: 74rem;
  --reading: 48rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a {
  color: var(--navy-light);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover { color: #081d31; }

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

button, input, textarea, select { font: inherit; }

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

.screen-reader-text,
.skip-link:not(:focus) {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  background: var(--white);
  color: var(--ink);
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: 1rem;
  z-index: 10000;
}

.site-shell { margin-inline: auto; max-width: var(--content); padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
.reading-width { margin-inline: auto; max-width: var(--reading); }

.eyebrow {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 720;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }

.button,
.wp-element-button,
.wp-block-button__link {
  align-items: center;
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 0.2rem;
  color: #101820;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #101820;
  transform: translateY(-1px);
}

.button--outline { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.button--outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.site-header {
  background: rgba(11, 23, 40, 0.97);
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(13rem, 1fr) auto auto;
  min-height: 5.6rem;
}

.brand { color: var(--white); display: inline-flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.brand__name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: -0.025em; }
.brand__descriptor { color: var(--gold-light); font-size: 0.62rem; font-weight: 750; letter-spacing: 0.18em; margin-top: 0.4rem; text-transform: uppercase; }

.primary-nav ul { align-items: center; display: flex; gap: clamp(.8rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: #e9edf1; font-size: 0.82rem; font-weight: 750; letter-spacing: 0.055em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold-light); }

.header-call { color: var(--white); font-size: 0.86rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-call span { color: var(--gold-light); display: block; font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; }

.menu-toggle { background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--white); display: none; padding: .65rem .75rem; }

.site-main { min-height: 60vh; }

.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(57,127,159,.4), transparent 26rem),
    linear-gradient(125deg, #071421 0%, #102a43 68%, #173d56 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.hero::after {
  border: 1px solid rgba(221,189,120,.3);
  content: "";
  height: 30rem;
  position: absolute;
  right: -7rem;
  top: -9rem;
  transform: rotate(28deg);
  width: 18rem;
}

.hero__grid { align-items: end; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.5fr) minmax(17rem, .7fr); position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3rem, 6.3vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: .98;
  margin: 0;
  max-width: 13ch;
}
.hero__lede { color: #dbe5ed; font-size: clamp(1.1rem, 2vw, 1.32rem); max-width: 45rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__aside { border-left: 1px solid rgba(255,255,255,.25); color: #dbe5ed; padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.hero__aside strong { color: var(--white); display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; margin-bottom: .65rem; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #e5edf3; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-heading { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 49rem; }
.section-heading h2 { margin: 0 0 1rem; }
.section-heading p { color: var(--muted); font-size: 1.15rem; }
.section--navy .section-heading p { color: #cbd8e2; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 25px rgba(11,23,40,.055);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 15.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { box-shadow: var(--shadow); color: var(--ink); transform: translateY(-4px); }
.card h3 { margin: 0 0 .9rem; }
.card p { color: var(--muted); margin-top: 0; }
.card__link { color: var(--navy-light); font-size: .78rem; font-weight: 850; letter-spacing: .1em; margin-top: auto; text-transform: uppercase; }

.split { align-items: center; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-panel { background: var(--navy); box-shadow: var(--shadow); color: var(--white); padding: clamp(2rem, 5vw, 4rem); position: relative; }
.stat-panel::before { background: var(--gold); content: ""; height: .35rem; left: 0; position: absolute; right: 35%; top: 0; }
.stat-panel h3 { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 0; }
.check-list { list-style: none; padding: 0; }
.check-list li { border-top: 1px solid rgba(255,255,255,.16); padding: .9rem 0 .9rem 1.6rem; position: relative; }
.check-list li::before { color: var(--gold-light); content: "—"; left: 0; position: absolute; }

.page-hero { background: var(--navy); color: var(--white); padding: clamp(4rem, 8vw, 7rem) 0; }
.page-hero h1 {
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.65rem, 5.2vw, 4.5rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  max-width: 16ch;
}
.page-hero p { color: #d8e3eb; font-size: 1.18rem; max-width: 46rem; }
.breadcrumb {
  align-items: center;
  color: #d8e3eb;
  display: flex;
  flex-wrap: wrap;
  font-size: .74rem;
  font-weight: 800;
  gap: .55rem;
  letter-spacing: .12em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--gold-light); text-decoration-thickness: .08em; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__separator { color: rgba(255,255,255,.5); }
.page-content { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.page-content > * { margin-inline: auto; max-width: var(--reading); }
.page-content > .alignwide { max-width: var(--content); }
.page-content > .alignfull { max-width: none; }
.page-content h2 { margin-top: 2.2em; }
.page-content h3 { margin-top: 1.8em; }
.page-content li { margin-block: .45rem; }
.page-content .wp-block-buttons { margin-top: 2rem; }

.contact-band { background: var(--gold); color: #101820; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.contact-band__inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.contact-band h2 { color: #101820; font-size: clamp(1.7rem, 3.5vw, 2.8rem); margin: 0; }
.contact-band p { margin-bottom: 0; }
.contact-band .button { background: var(--ink); border-color: var(--ink); color: var(--white); flex: 0 0 auto; }

.site-footer { background: #07111e; color: #b9c6d1; padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h2 { font-size: 1.75rem; margin-top: 0; }
.site-footer h3 { font-family: inherit; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer a { color: #e9edf1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; margin-top: 3rem; padding-top: 1.5rem; }

.notice { background: #fff5d9; border-left: 4px solid var(--gold); color: #382d17; padding: 1rem 1.25rem; }

@media (max-width: 940px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-call { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { background: var(--ink); display: none; inset: 5.6rem 0 auto; max-height: calc(100vh - 5.6rem); overflow: auto; padding: 1.25rem; position: fixed; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { border-bottom: 1px solid rgba(255,255,255,.12); display: block; padding: 1rem; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .admin-bar .site-header { top: 46px; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
  .hero__aside { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding-left: 0; padding-top: 1.5rem; }
  .contact-band__inner { align-items: stretch; flex-direction: column; }
  .contact-band .button { width: 100%; }
}

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