/* Sackrule Law — facelift
   Palette sampled directly from the firm's real logo:
   navy #001830, gold #c9a445 (base) → #d9c26a (light) / #a9852f (dark)
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Almarai:wght@400;700&display=swap');

:root {
  --navy: #001830;
  --navy-2: #052240;
  --navy-3: #0b3357;
  --gold: #c9a445;
  --gold-light: #e2cd8e;
  --gold-dark: #9c7c2f;
  --cream: #f7f3ea;
  --paper: #fcfaf5;
  --ink: #1a1d22;
  --line: rgba(0, 24, 48, 0.12);

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Almarai', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dark);
}

/* ---------- Header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 54px; width: auto; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.05;
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 2px;
}
nav.links {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
nav.links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
nav.links a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 12px 24px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--navy-3); transform: translateY(-1px); }
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn.gold:hover { background: var(--gold-light); }
.btn.outline {
  background: transparent;
  color: var(--navy);
}
.btn.outline:hover { background: var(--navy); color: var(--paper); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(201,164,69,0.18), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #061c33 100%);
}
.hero-eyebrow {
  color: var(--gold-light);
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: 14px 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero p.lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(247,243,234,0.86);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero: short copy, slanted photo fade ---------- */
/* Always horizontal (text | photo), fluid at every width — no stacking
   fallback. Per explicit request: testing whether this holds up down
   to phone widths instead of switching to a stacked mobile layout. */
.hero-slant {
  padding: 0;
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
}
.hero-slant-photo {
  position: absolute;
  inset: 0;
  left: auto;
  width: 58%;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, black 46%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, black 46%);
}
.hero-slant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.92) contrast(1.03);
}
.hero-slant-inner {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: min(560px, 68%);
  padding: clamp(110px, 18vw, 170px) 0 clamp(40px, 8vw, 100px) clamp(16px, 3vw, 32px);
}
.hero-slant-inner .hero-ctas {
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .hero-slant-inner .hero-ctas { flex-direction: row; align-items: center; }
}

/* Desktop only — shift the text column further right. Scoped to this
   media query specifically so mobile is completely untouched. */
@media (min-width: 900px) {
  .hero-slant-inner { margin-left: 18%; }
}

/* Large screens only: bigger headline/eyebrow presence */
@media (min-width: 1400px) {
  .hero-slant .hero-eyebrow { font-size: 0.85rem; }
  .hero-slant h1 { font-size: 4.4rem; margin: 20px 0 28px; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }

/* ---------- About / Who We Are ---------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-media { position: sticky; top: 100px; }
.about-media .frame {
  border: 10px solid var(--cream);
  outline: 1px solid var(--line);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.92) contrast(1.03);
}
.about-media .caption {
  font-family: var(--serif);
  font-style: italic;
  color: #6b5d3a;
  font-size: 0.92rem;
  margin-top: 14px;
  text-align: center;
}
.about-copy p {
  font-size: 1.03rem;
  line-height: 1.75;
  color: #313640;
  margin: 0 0 20px;
}
.about-copy p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  padding: 6px 10px 0 0;
  color: var(--gold-dark);
}
.pull-quote {
  border-left: 3px solid var(--gold);
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--navy);
}

/* ---------- Homepage "Who We Are" teaser (no photo, text-led) ---------- */
.home-about { background: var(--paper); }
.home-about-inner {
  max-width: 640px;
  margin: 0 auto;
}
.home-about-inner h2 {
  margin: 14px 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.home-about-inner > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #313640;
  margin: 0;
}
.home-about-link { margin-top: 14px; }

/* ---------- Credentials (Bar Admissions / Education / Associations) ---------- */
.credentials { background: var(--navy); color: var(--paper); }
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.credentials-col h3 {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.05rem;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(247,243,234,0.16);
}
.credentials-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.credentials-col li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(247,243,234,0.82);
  padding-left: 16px;
  position: relative;
  margin-bottom: 12px;
}
.credentials-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* ---------- Practice areas ---------- */
.practice { background: var(--navy); color: var(--paper); }
.practice-label {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold-light);
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(247,243,234,0.16);
}
.practice-label span {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: rgba(247,243,234,0.45);
}
.practice-item.extra { display: none; }
.practice-list.expanded .practice-item.extra { display: block; }

.practice-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 1px;
  padding: 16px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  cursor: pointer;
  background: rgba(247,243,234,0.03);
  border: 1px solid rgba(247,243,234,0.14);
  border-top: none;
}
.practice-toggle:hover { background: rgba(247,243,234,0.07); color: var(--gold); }
.practice-toggle .chevron { transition: transform .2s ease; font-size: 0.8rem; }
.practice-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.practice-close {
  max-width: 780px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(247,243,234,0.14);
}
.practice-close h2 { color: var(--paper); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.practice-close p {
  color: rgba(247,243,234,0.72);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-top: 14px;
}
.practice-close a { color: var(--gold); font-weight: 700; }

.practice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(247,243,234,0.14);
  border: 1px solid rgba(247,243,234,0.14);
}
.practice-item {
  background: var(--navy);
  padding: 22px 24px;
  cursor: default;
  transition: background .2s ease;
}
.practice-item:hover { background: var(--navy-3); }
.practice-item h3 {
  color: var(--paper);
  font-size: 1.02rem;
  font-family: var(--serif);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.practice-item h3 .num {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}
.practice-item p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: rgba(247,243,234,0.62);
  line-height: 1.5;
}

/* ---------- Media coverage ---------- */
.media-strip { background: var(--cream); padding: 52px 0; }
.media-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.media-strip .label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
  font-size: 1rem;
  white-space: nowrap;
  padding-right: 36px;
  border-right: 1px solid var(--line);
}
.media-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.media-logos .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  width: 132px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}
.media-logos img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ---------- Counties ---------- */
.counties { background: var(--paper); padding-top: 0; }
.map-banner {
  height: 440px;
  border-bottom: 1px solid var(--line);
}
.map-banner iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }
.counties-caption {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  padding-top: 56px;
  align-items: start;
}
.counties-copy h2 { margin-bottom: 18px; }
.counties-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #313640;
  margin-bottom: 18px;
}
.county-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}
.county-tags span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 8px 16px;
  background: var(--paper);
}
.county-tags span.home {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}
.county-tags span.city {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ---------- Reviews (Kenect widget) ---------- */
#kenect-review-carousel {
  background: var(--cream);
  padding: 88px 0;
  --card-bg-color: var(--paper);
  --text-color: var(--navy);
  --card-border: var(--line);
  --arrow-bg-color: var(--navy);
  --arrow-color: var(--gold-light);
}
#kenect-review-carousel [class*="_app_"] {
  max-width: 1180px;
  padding: 0 32px;
}
#kenect-review-carousel [class*="_header_"] {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--navy);
}
#kenect-review-carousel [class*="_subText_"] {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dark);
  padding-top: 10px;
  padding-bottom: 40px;
}
#kenect-review-carousel .kenect-cardWrapper {
  border-radius: 0;
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 26px rgba(0,24,48,0.07);
}
#kenect-review-carousel .kenect-hr {
  background-color: var(--line);
}
#kenect-review-carousel .kenect-reviewInfo a {
  color: var(--gold-dark);
  font-weight: 700;
}
#kenect-review-carousel .kenect-reviewInfo span {
  color: #6b5d3a;
}
#kenect-review-carousel [class*="_arrow_"] {
  border-radius: 0;
}

/* ---------- CTA / consultation ---------- */
.consult {
  background: linear-gradient(160deg, var(--navy) 0%, #061c33 100%);
  color: var(--paper);
}
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.consult-note { padding-top: 12px; }
.consult-note p {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.6;
  color: rgba(247,243,234,0.92);
  margin: 0 0 22px;
  max-width: 40ch;
}
.consult-direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.consult-direct a {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(201,164,69,0.35);
  padding-bottom: 10px;
  width: fit-content;
}

form.consult-form {
  background: var(--paper);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 4px solid var(--gold);
}
form.consult-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.consult-form label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}
form.consult-form input,
form.consult-form select,
form.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--ink);
}
form.consult-form textarea { resize: vertical; min-height: 90px; }
form.consult-form .fine {
  font-size: 0.74rem;
  color: #6b7280;
  line-height: 1.5;
}
form.consult-form button { margin-top: 4px; }
.form-success {
  display: none;
  background: #eef6ef;
  border: 1px solid #b8dcbd;
  color: #235c2c;
  padding: 14px 16px;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer.site {
  background: #000e1c;
  color: rgba(247,243,234,0.68);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,243,234,0.12);
}
.footer-grid img { height: 46px; margin-bottom: 14px; }
.footer-grid p { font-size: 0.88rem; line-height: 1.6; max-width: 34ch; }
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(247,243,234,0.68);
  border: 1px solid rgba(247,243,234,0.24);
  transition: color .2s ease, border-color .2s ease;
}
.footer-social a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-col h4 {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col div { font-size: 0.88rem; line-height: 1.9; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.76rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .disclaimer { max-width: 60ch; color: rgba(247,243,234,0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .consult-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 420px; margin: 0 auto 20px; }
  .credentials-grid { grid-template-columns: 1fr; gap: 32px; }
  .practice-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  form.consult-form .row { grid-template-columns: 1fr; }
  .counties-caption { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .map-banner { height: 320px; }
  #kenect-review-carousel { padding: 60px 0; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  nav.links { position: fixed; inset: 64px 0 0 0; background: var(--paper); flex-direction: column; padding: 32px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; }
  nav.links.open { transform: translateX(0); }
  .menu-toggle { display: block; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }
  .practice-list { grid-template-columns: 1fr; }
  .media-strip .wrap { justify-content: center; text-align: center; }
  .media-strip .label { padding-right: 0; border-right: none; }
  .media-logos { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .map-banner { height: 260px; }
  .counties-caption { padding-top: 56px; }
  #kenect-review-carousel [class*="_app_"] { padding: 0 20px; }
}
