/* =========================================================================
   The Fletcher Firm: site styles
   Tokens and measurements mirror the original Webflow build.
   ========================================================================= */
:root {
  --peru: #b68c5a;
  --peru-dark: #9b6627;
  --peru-soft: rgba(182, 140, 90, .14);
  --black: #181818;
  --grey: #565656;
  --smoke: #f9f7f3;
  --menu-bg: #f8f3e8;
  --btn-gray: #f6f6f6;
  --line: rgba(24, 24, 24, .06);
  --white: #fff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius: 8px;
  --gutter: 25px;
  --container: 1170px;
  --shadow-card: 0 1px 30px rgba(24, 24, 24, .05);
  --shadow-hover: 0 24px 60px -18px rgba(155, 102, 39, .35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.875;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--black); font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 10px; }
ul, ol { margin: 0; }
::selection { background: var(--peru); color: #fff; }
:focus-visible { outline: 2px solid var(--peru); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10001; background: var(--black); color: #fff; padding: 10px 18px; border-radius: 6px; text-decoration: none; transition: top .3s; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; }
.text-peru { color: var(--peru); }
.text-white { color: #fff; }

/* ---------- shared atoms ---------- */
.section-tag {
  display: inline-block;
  background: var(--peru);
  color: #fff;
  border-radius: 5px;
  padding: 7px 18px;
  line-height: 1;
  text-transform: capitalize;
}
.section-title {
  margin-top: 35px;
  font-size: clamp(28px, 2.2vw + 12px, 41px);
  line-height: 1.3;
  text-transform: capitalize;
}
.section-head { text-align: center; }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 20px 30px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  transition: color .35s, background-color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::before {               /* light sweep on hover */
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
}
.btn:hover::before { left: 120%; }
.btn:active { transform: scale(.97); }
.btn-medium { padding: 20px 40px; }
.btn-peru { background: var(--peru); color: #fff; }
.btn-peru:hover { background: var(--peru-dark); box-shadow: 0 14px 30px -12px rgba(155, 102, 39, .6); }
.btn-gray { background: var(--btn-gray); color: var(--black); }
.btn-gray:hover { background: var(--peru); color: #fff; box-shadow: 0 14px 30px -12px rgba(155, 102, 39, .55); }
.btn-small {
  background: var(--btn-gray);
  border: 1px solid #eaeaea;
  color: var(--black);
  padding: 17.5px 26px;
}
.btn-small:hover { background: var(--peru); border-color: var(--peru); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 20px 0 auto;
  z-index: 9999;
  animation: header-drop .9s var(--ease) backwards;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 30px;
  transition: padding .45s var(--ease), box-shadow .45s;
}
.header-logo { flex: none; width: 200px; transition: width .45s var(--ease); }
.nav-list { display: flex; gap: clamp(26px, 2.6vw, 50px); list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: block;
  color: var(--black);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color .3s;
}
.nav-link::after {           /* the original's gold "smile" underline */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 35px;
  height: 7px;
  background: url("/images/nav-link-hover.svg") center / contain no-repeat;
  transform: translateX(-50%) scaleX(0);
  transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-link.is-current { color: var(--peru); }
.nav-link:hover::after, .nav-link.is-current::after { transform: translateX(-50%) scaleX(1); }
.header-call { font-weight: 600; font-size: 17px; padding: 20px 30px; }
.nav-call { display: none; }
.menu-toggle { display: none; }
.nav-overlay { display: none; }

/* sticky state, toggled by JS after scrolling past the top */
.site-header.is-stuck { position: fixed; top: 10px; animation: header-slide .6s var(--ease) backwards; }
.site-header.is-stuck .header-bar { padding-block: 12px; box-shadow: 0 18px 50px -20px rgba(24, 24, 24, .22); }
.site-header.is-stuck .header-logo { width: 170px; }
.site-header.is-stuck .header-call { padding-block: 16px; }

@keyframes header-drop { from { opacity: 0; transform: translateY(-24px); } }
@keyframes header-slide { from { transform: translateY(-120%); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--smoke);
}
.hero-dots { position: absolute; z-index: -1; pointer-events: none; animation: fade-in 2s ease both .3s; }
.hero-dots-1 { left: 0; bottom: 0; width: min(866px, 46vw); }
.hero-dots-2 { right: 0; top: 0; width: min(870px, 46vw); }
.hero-inner {
  position: relative;
  min-height: clamp(760px, 56vw, 1000px);
  padding: clamp(230px, 15vw, 300px) 0 clamp(120px, 9vw, 200px);
}
.hero-content { position: relative; z-index: 2; max-width: 569px; }
.hero-title {
  margin: 35px 0 25px;
  font-size: clamp(45px, 3.6vw + 22px, 75px);
  line-height: 1.12;
}
.hero-text {
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 2.18;
  text-transform: capitalize;
}
.hero-media {
  position: absolute;
  z-index: 1;
  right: clamp(-170px, -9vw, -40px);
  bottom: 0;
  width: clamp(460px, 42vw, 760px);
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 3%;
  z-index: -1;
  animation: shape-in 1.4s var(--ease) both .35s;
}
.hero-shape img { width: 100%; animation: float 9s ease-in-out infinite 1.8s; transform-origin: 50% 80%; }
.hero-photo img { width: 100%; animation: hero-rise 1.5s var(--ease) both .2s; }

@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 70px, 0) scale(.98); } }
@keyframes shape-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- promos ---------- */
.promos { padding: 70px 0 60px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4.5vw, 82px); }
.promo { display: flex; gap: 30px; }
.promo-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--smoke);
  transition: background-color .4s, transform .6s var(--ease);
}
.promo-icon img { width: 36px; transition: filter .4s; }
.promo:hover .promo-icon { background: var(--peru); transform: rotate(-12deg) scale(1.06); }
.promo:hover .promo-icon img { filter: brightness(0) invert(1); }
.promo-content { flex: 1; text-align: center; }
.promo-title { margin-bottom: 20px; font-size: 23px; line-height: 1.05; text-transform: capitalize; }
.promo-content p { color: var(--black); margin: 0; }

/* ---------- attorney ---------- */
.attorney { padding: 60px 0 120px; }
.attorney-grid { display: grid; grid-template-columns: 1fr minmax(0, 669px); gap: 42px; align-items: center; }
.attorney-content .section-title { margin: 35px 0 40px; }
.attorney-content p { margin-bottom: 15px; }
.attorney-content .btn { margin-top: 30px; }
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 30px 70px -30px rgba(24, 24, 24, .35);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-facade:hover img { transform: scale(1.04); }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 124px;
  height: 80px;
  border-radius: 14px;
  background: rgba(182, 140, 90, .92);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease), background-color .3s;
}
.video-play svg { width: 34px; height: 34px; }
.video-play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, .85);
  animation: pulse 2.4s var(--ease) infinite;
}
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--peru); }
.attorney-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 24px; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.5); } }

/* ---------- practice areas ---------- */
.practice-section { z-index: 1; padding: 70px 0 30px; }
.practice-band {
  position: absolute;
  inset: 0 0 auto;
  height: 590px;
  z-index: -1;
  overflow: hidden;
  background: var(--smoke);
}
.practice-band-shape { position: absolute; right: 0; top: 0; width: min(745px, 45vw); opacity: .9; }
.practice-dots { position: absolute; left: clamp(20px, 9vw, 170px); top: 100px; z-index: -1; width: 300px; }
.practice-section .section-head { margin-bottom: 10px; }
.practice-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 20px 48px;
  box-shadow: var(--shadow-card);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.practice-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.practice-media { position: relative; display: block; margin-bottom: 65px; }
.practice-img { display: block; height: 190px; border-radius: var(--radius); overflow: hidden; }
.practice-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.practice-card:hover .practice-img img { transform: scale(1.08); }
.practice-icon {
  position: absolute;
  left: 50%;
  bottom: -45px;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--peru);
  transform: translateX(-50%);
  transition: transform .7s var(--ease), background-color .4s;
}
.practice-icon img { width: 46px; }
.practice-card:hover .practice-icon { transform: translateX(-50%) rotate(360deg); background: var(--peru-dark); }
.practice-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.practice-title { margin-bottom: 20px; font-size: 28px; line-height: 1.3; }
.practice-title a { text-decoration: none; transition: color .3s; }
.practice-title a:hover { color: var(--peru); }
.practice-body p { margin-bottom: 25px; }
.practice-body .btn { margin-top: auto; }

/* ---------- slider ---------- */
.slider { position: relative; }
.slider-viewport { overflow: hidden; margin: 0 -15px; padding: 30px 0 40px; touch-action: pan-y; }
.slider-track { display: flex; transition: transform .9s var(--ease); will-change: transform; }
.slider-track.is-dragging { transition: none; }
.slide { flex: 0 0 33.3333%; padding: 0 15px; }
.slider[data-slider="testimonials"] .slide { flex-basis: 50%; }
.slider-arrows { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.slider-arrow {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  transition: background-color .3s, color .3s, transform .4s var(--ease), border-color .3s;
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover { background: var(--peru); border-color: var(--peru); color: #fff; transform: scale(1.06); }
.slider-dots { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #b1b1b1;
  transition: width .5s var(--ease), background-color .4s;
}
.slider-dot[aria-selected="true"] { width: 34px; background: var(--peru); }

/* ---------- about ---------- */
.about { padding: 60px 0 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(60px, 7vw, 100px); align-items: start; }
.about-media { position: relative; z-index: 1; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; transition: transform 1.4s var(--ease); }
.about-media:hover .about-img img { transform: scale(1.04); }
.about-frame {
  position: absolute;
  z-index: -1;
  left: 30px;
  bottom: -30px;
  width: 100%;
  height: 470px;
  border: 2px solid var(--peru);
  border-radius: var(--radius);
  transition: transform .8s var(--ease);
}
.about-media:hover .about-frame { transform: translate(8px, 8px); }
.about-content .section-title { margin-top: 35px; }
.about-text { margin-top: 28px; }
.check-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 65px;
  margin: 25px 0 30px;
  padding: 0;
  list-style: none;
}
.check-list li { display: flex; align-items: center; gap: 11px; color: var(--black); font-weight: 500; line-height: 2.81; }
.check-list img { width: 20px; flex: none; }

/* ---------- testimonials ---------- */
.testimonials { padding: 60px 0 110px; overflow: hidden; }
.testimonials-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 572px;
  height: 590px;
  z-index: -1;
  background: url("/images/testimonial-bg-shape.svg") 0 0 / contain no-repeat;
}
.testimonials .slider { margin-top: 30px; }
.testimonials .slider-viewport { padding: 20px 0; }
.testimonial {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 50px clamp(30px, 4.5vw, 68px);
  box-shadow: 0 0 20px rgba(0, 0, 0, .05);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(24, 24, 24, .2); }
.testimonial-quote { width: 56px; margin-bottom: 30px; }
.testimonial blockquote { margin: 0 0 30px; }
.testimonial blockquote p { margin: 0 0 1.7em; font-family: var(--serif); font-size: 22px; line-height: 1.7; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption { margin-top: auto; display: flex; flex-direction: column; }
.testimonial-name { color: var(--black); font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.14; margin-bottom: 10px; }
.testimonial-role { color: var(--peru); }

/* ---------- CTA band ---------- */
.cta { position: relative; z-index: 1; overflow: hidden; background: var(--peru); padding: 75px 0 80px; }
.cta-inner { text-align: center; max-width: 620px; }
.cta .section-title { margin: 0 0 20px; }
.cta-text { color: #fff; font-weight: 500; margin: 0; }
.cta-text a { color: #fff; text-decoration: none; background: linear-gradient(#fff, #fff) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.cta-text a:hover { background-size: 100% 1px; }
.cta-dots { position: absolute; z-index: -1; width: 300px; }
.cta-dots-1 { left: 140px; top: 15px; }
.cta-dots-2 { right: 140px; bottom: 5px; }

/* ---------- footer ---------- */
.footer-top { position: relative; z-index: 1; overflow: hidden; background: var(--smoke); padding: 80px 0 70px; }
.footer-bg { position: absolute; top: 0; height: 100%; width: auto; max-width: none; z-index: -1; }
.footer-bg-1 { left: 0; }
.footer-bg-2 { right: 0; }
.footer-grid { display: grid; grid-template-columns: 321px 1fr 1fr; gap: clamp(40px, 6vw, 93px); }
.footer-logo { display: block; width: 280px; margin-bottom: 25px; }
.footer-title { margin-bottom: 20px; font-size: 26px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 17px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; transition: color .3s; }
.footer-links svg { width: 14px; height: 14px; color: var(--black); transition: transform .4s var(--ease), color .3s; }
.footer-links a:hover { color: var(--peru); }
.footer-links a:hover svg { transform: translateX(5px); color: var(--peru); }
.footer-info-label { line-height: 2.62; }
.footer-info-value { display: block; margin-bottom: 6px; color: var(--black); font-size: 18px; font-weight: 500; text-decoration: none; transition: color .3s; }
a.footer-info-value:hover { color: var(--peru); }
.footer-bottom { background: var(--peru); color: #fff; padding: 20px 0; text-align: center; font-size: 16px; }
.footer-bottom p { margin: 0 0 10px; }
.footer-bottom p:last-child { margin: 0; }
.footer-bottom a { color: #fff; transition: opacity .3s; }
.footer-bottom a:hover { opacity: .75; }

/* ---------- floating UI ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--peru);
  box-shadow: 0 10px 30px -10px rgba(24, 24, 24, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .4s, transform .5s var(--ease), visibility .4s, background-color .3s, color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--peru); color: #fff; }
.to-top > svg:last-child { width: 20px; height: 20px; position: relative; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--peru); stroke-width: 2.5; stroke-dasharray: 138.2; stroke-dashoffset: var(--progress, 138.2); }
.mobile-call { display: none; }

/* ---------- inner page hero (breadcrumb) ---------- */
.page-hero { position: relative; z-index: 1; overflow: hidden; background: var(--smoke); padding: 175px 0 60px; }
.page-hero-bg { position: absolute; top: 0; height: 100%; width: auto; max-width: none; z-index: -1; }
.page-hero-bg-1 { left: 0; }
.page-hero-bg-2 { right: 0; }
.page-hero-el { position: absolute; z-index: -1; }
.page-hero-el-1 { left: clamp(20px, 6.5vw, 122px); bottom: 26px; width: 111px; animation: drift 10s ease-in-out infinite; }
.page-hero-el-2 { right: clamp(20px, 10.5vw, 204px); top: 112px; width: 113px; animation: spin-slow 18s linear infinite; }
.page-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero-title { margin-bottom: 20px; font-size: clamp(36px, 3vw + 20px, 60px); line-height: 1.1; text-transform: capitalize; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.crumbs a { color: var(--grey); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--peru); }
.crumbs [aria-current] { color: var(--peru); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(10px, -10px) rotate(6deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- grids (practice index + blog) ---------- */
.practice-index, .blog-index { padding: 80px 0 100px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 21px 21px 45px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, .05);
  transition: box-shadow .5s, transform .6s var(--ease);
}
.blog-card:hover { box-shadow: 0 0 30px rgba(182, 140, 90, .4); transform: translateY(-6px); }
.blog-card-media { position: relative; width: 100%; }
.blog-card-img { display: block; height: 190px; border-radius: var(--radius); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.08); }
.date-badge {
  position: absolute;
  left: 50%;
  bottom: -15px;
  background: var(--peru);
  color: #fff;
  border-radius: 6px;
  padding: 2px 14px;
  white-space: nowrap;
  transform: translateX(-50%);
}
.blog-card-title { margin: 38px 0 30px; font-size: clamp(20px, 1vw + 12px, 25px); line-height: 1.56; }
.blog-card-title a { text-decoration: none; transition: color .3s; }
.blog-card-title a:hover { color: var(--peru); }
.blog-card .btn { margin-top: auto; padding: 14px 26px; font-size: 15px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 50px; }
.page-num, .page-btn, .page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.page-num { border: 1px solid #eaeaea; color: var(--black); transition: background-color .3s, color .3s, border-color .3s; }
.page-num:hover { border-color: var(--peru); color: var(--peru); }
.page-num.is-current { background: var(--black); border-color: var(--black); color: #fff; }
.page-btn { background: var(--peru); color: #fff; padding: 0 22px; transition: background-color .3s; }
.page-btn:hover { background: var(--peru-dark); }
.page-btn svg { width: 16px; height: 16px; }

/* ---------- rich text ---------- */
.rich { color: var(--grey); }
.rich > :first-child { margin-top: 0; }
.rich h2 { margin: 40px 0 16px; font-size: clamp(24px, 1.2vw + 16px, 32px); line-height: 1.3; }
.rich h3 { margin: 30px 0 12px; font-size: clamp(20px, .6vw + 15px, 24px); line-height: 1.35; }
.rich h4 { margin: 24px 0 10px; font-size: 20px; }
.rich p { margin: 0 0 18px; }
.rich p > strong:only-child { color: var(--black); }
.rich ul, .rich ol { margin: 0 0 22px; padding-left: 22px; }
.rich li { margin-bottom: 8px; padding-left: 4px; }
.rich li::marker { color: var(--peru); }
.rich strong { color: var(--black); font-weight: 600; }
.rich a { color: var(--peru-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s; }
.rich a:hover { color: var(--black); }
.rich img { border-radius: var(--radius); margin: 20px 0; }
.rich blockquote { margin: 26px 0; padding: 20px 26px; border-left: 3px solid var(--peru); background: var(--smoke); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 19px; }

/* ---------- practice detail ---------- */
.detail { padding: 80px 0 100px; }
.detail-image { height: 500px; margin-bottom: 50px; border-radius: var(--radius); overflow: hidden; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.detail-title { margin-bottom: 24px; font-size: clamp(30px, 1.6vw + 20px, 42px); }
.detail-aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 30px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; }
.aside-call { background: var(--smoke); }
.aside-call .btn { width: 100%; margin-top: 10px; }
.aside-links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aside-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--grey);
  text-decoration: none;
  transition: color .3s, background-color .3s, border-color .3s, padding .4s var(--ease);
}
.aside-links svg { width: 16px; height: 16px; flex: none; }
.aside-links a:hover { border-color: var(--peru); background: var(--smoke); color: var(--black); padding-left: 26px; }

/* ---------- blog post ---------- */
.post { padding: 80px 0 100px; }
.post-layout { display: grid; grid-template-columns: 375px 1fr; gap: 70px; align-items: start; }
.post-aside { display: flex; flex-direction: column; gap: 50px; }
.sidebar-title { margin-bottom: 20px; font-size: 25px; text-transform: capitalize; }
.author-card { text-align: left; }
.author-img { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.author-img img { width: 100%; height: 100%; object-fit: cover; }
.author-name { margin-bottom: 12px; font-size: 24px; }
.search { position: relative; }
.search input {
  width: 100%;
  height: 62px;
  padding: 0 60px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font: inherit;
  font-size: 15px;
  transition: border-color .3s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--peru); box-shadow: 0 0 0 4px var(--peru-soft); }
.search-icon { position: absolute; right: 22px; top: 21px; width: 20px; height: 20px; color: var(--black); pointer-events: none; }
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -15px rgba(24, 24, 24, .25);
}
.search-results a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; color: var(--black); text-decoration: none; font-size: 14px; line-height: 1.4; }
.search-results a:hover, .search-results a:focus-visible { background: var(--smoke); }
.search-results img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.search-results .empty { padding: 10px; font-size: 14px; }
.categories { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--grey);
  text-decoration: none;
  transition: color .3s, background-color .3s, border-color .3s;
}
.category svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.category:hover { border-color: var(--peru); background: var(--smoke); color: var(--black); }
.category:hover svg { transform: translateX(4px); }
.recent-posts { display: flex; flex-direction: column; gap: 30px; margin: 0; padding: 0; list-style: none; }
.recent-post { display: flex; gap: 20px; align-items: center; }
.recent-post-img { flex: none; width: 90px; height: 90px; border-radius: 50%; overflow: hidden; }
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.recent-post:hover .recent-post-img img { transform: scale(1.1); }
.recent-post-link { display: block; color: var(--black); font-family: var(--serif); font-weight: 700; line-height: 1.5; text-decoration: none; transition: color .2s; }
.recent-post-link:hover { color: var(--peru); }
.recent-post-date { color: var(--peru); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 15px; }
.tag { padding: 5px 25px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius); color: var(--grey); font-size: 15px; text-decoration: none; transition: color .3s, border-color .3s, background-color .3s; }
.tag:hover { border-color: var(--peru); background: var(--peru); color: #fff; }
.post-image { height: 370px; border-radius: 10px; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-date { display: inline-block; margin-top: 40px; padding: 0 12px; border-radius: 6px; background: var(--peru); color: #fff; font-size: 15px; font-weight: 500; }
.post-title { margin: 20px 0 24px; font-size: 30px; line-height: 1.4; }
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 30px;
  margin-top: 40px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--smoke);
}
.share-title { color: var(--black); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.share-links { display: flex; gap: 12px; }
.share-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.share-links a:hover { background: var(--peru); color: #fff; transform: translateY(-3px); }
.share-links svg { width: 18px; height: 18px; }

/* ---------- contact ---------- */
.contact { padding: 80px 0 60px; }
.contact .section-title { margin-top: 30px; }
.contact-lead { margin: 20px auto 60px; font-size: 20px; max-width: 900px; }
.contact-lead a { color: inherit; text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 26px;
  border-radius: var(--radius);
  transition: background-color .5s, box-shadow .5s, transform .6s var(--ease);
}
.contact-card:hover { background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--smoke);
  color: var(--peru);
  transition: background-color .4s, color .4s;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card:hover .contact-icon { background: var(--peru); color: #fff; }
.contact-card .promo-title { margin-bottom: 14px; }
.contact-card p { max-width: 320px; margin-bottom: 14px; }
.contact-card strong { color: var(--grey); font-weight: 700; }
.text-link {
  color: var(--peru-dark);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease), color .3s;
}
.text-link:hover { color: var(--black); background-size: 0 1.5px; background-position: 100% 100%; }
.map { line-height: 0; }
.map iframe { width: 100%; height: 360px; border: 0; filter: grayscale(.15); }

/* ---------- legal / 404 ---------- */
.legal { padding: 80px 0 100px; }
.legal-inner { max-width: 860px; }
.not-found { padding: 220px 0 140px; }
.nf-code { margin: 0; color: var(--peru); font-family: var(--serif); font-size: clamp(90px, 12vw, 160px); font-weight: 700; line-height: 1; }
.not-found .page-hero-inner p:not(.nf-code) { margin-bottom: 30px; }

/* =========================================================================
   Motion system: content stays visible without JS (html.no-js)
   ========================================================================= */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
html.js [data-reveal="left"] { transform: translate3d(-56px, 0, 0); }
html.js [data-reveal="right"] { transform: translate3d(56px, 0, 0); }
html.js [data-reveal="zoom"] { transform: scale(.93); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1.3s var(--ease-in-out) var(--d, 0s);
}
html.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease) var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
html.js [data-reveal="clip"].is-in img { transform: none; }

/* word-by-word headline reveal (spans injected by main.js) */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split-i {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i) * 60ms + var(--d, 0s));
}
.is-in .split-i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal], html.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
  .split-i { transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1279px) {
  .hero-media { right: -60px; }
}

@media (max-width: 1100px) {
  .nav-list { gap: 26px; }
  .header-call { padding: 18px 22px; }
  .header-logo { width: 180px; }
}

@media (max-width: 991px) {
  :root { --container: 720px; }
  /* mobile navigation drawer */
  .header-call { display: none; }
  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius);
    background: var(--smoke);
    color: var(--peru);
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10000;
    width: min(340px, 86vw);
    display: flex;
    flex-direction: column;
    padding: 100px 34px 34px;
    background: var(--menu-bg);
    box-shadow: 0 0 40px rgba(0, 0, 0, .12);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .7s var(--ease);
  }
  .nav-open .nav { transform: none; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { padding: 12px 0; font-size: 22px; opacity: 0; transform: translateX(-20px); transition: color .3s, opacity .5s, transform .6s var(--ease); }
  .nav-link::after { left: 0; bottom: 4px; transform: scaleX(0); transform-origin: left; }
  .nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
  .nav-open .nav-link { opacity: 1; transform: none; }
  .nav-open .nav-list li:nth-child(1) .nav-link { transition-delay: .15s; }
  .nav-open .nav-list li:nth-child(2) .nav-link { transition-delay: .2s; }
  .nav-open .nav-list li:nth-child(3) .nav-link { transition-delay: .25s; }
  .nav-open .nav-list li:nth-child(4) .nav-link { transition-delay: .3s; }
  .nav-open .nav-list li:nth-child(5) .nav-link { transition-delay: .35s; }
  .nav-call { display: inline-flex; margin-top: 40px; }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(24, 24, 24, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, visibility .5s;
  }
  .nav-open .nav-overlay { opacity: 1; visibility: visible; }
  .menu-toggle { position: relative; z-index: 10001; }
  .nav-open { overflow: hidden; }

  /* hero stacks: copy centered, portrait below */
  .hero-inner { min-height: 0; padding: 190px 0 0; display: flex; flex-direction: column; align-items: center; }
  .hero-content { max-width: 640px; text-align: center; }
  .hero-title { font-size: clamp(45px, 7vw, 65px); }
  .hero-media { position: relative; right: auto; width: min(460px, 92%); margin-top: 30px; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .attorney { padding: 40px 0 80px; }
  .attorney-grid { grid-template-columns: 1fr; }
  .attorney-content { text-align: center; }
  .practice-dots { display: none; }
  .slide { flex-basis: 50%; }
  .about { padding: 40px 0 80px; }
  .about-grid { gap: 60px; }
  .about-frame { height: 100%; }
  .check-list { grid-template-columns: 1fr; }
  .testimonials { padding-bottom: 80px; }
  .testimonial blockquote p { font-size: 20px; }
  .testimonial-name { font-size: 26px; }
  .cta-dots { width: 200px; }
  .cta-dots-1 { left: 20px; }
  .cta-dots-2 { right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .page-hero { padding: 175px 0 70px; }
  .page-hero-el { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .detail-image { height: 400px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .post-layout { grid-template-columns: 1fr; gap: 60px; }
  .post-aside { order: 2; }
  .post-image { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .site-header { top: 12px; }
  .header-bar { padding: 12px 14px 12px 18px; }
  .header-logo, .site-header.is-stuck .header-logo { width: 160px; }
  .site-header.is-stuck { top: 8px; }
  .promos { padding: 50px 0; }
  .promo-grid { grid-template-columns: 1fr; gap: 34px; }
  .promo { gap: 20px; }
  .promo-content { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; width: calc(100% - 30px); }
  .about-content { text-align: center; }
  .check-list { justify-items: start; width: max-content; max-width: 100%; margin-inline: auto; }
  .slide, .slider[data-slider="testimonials"] .slide { flex-basis: 100%; }
  .slider-arrow { width: 48px; height: 48px; }
  .testimonial { padding: 36px 26px; }
  .testimonial blockquote p { font-size: 18px; }
  .testimonial-name { font-size: 24px; }
  .testimonials-bg { width: 320px; height: 330px; }
  .cta { padding: 60px 0; }
  .cta-dots { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 92px; font-size: 14px; line-height: 1.6; }
  .card-grid { grid-template-columns: 1fr; }
  .practice-index, .blog-index, .detail, .post, .legal { padding: 60px 0 80px; }
  .detail-image { height: 280px; margin-bottom: 36px; }
  .post-image { height: 240px; }
  .post-title { font-size: 26px; }
  .contact { padding: 60px 0 40px; }
  .contact-lead { font-size: 18px; margin-bottom: 30px; }
  .map iframe { height: 300px; }
  .page-num { min-width: 42px; height: 42px; }
  .page-btn span { display: none; }
  .page-btn { padding: 0 14px; height: 42px; }
  .mobile-call {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    background: var(--peru);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 16px 40px -12px rgba(24, 24, 24, .45);
    transform: translateY(160%);
    transition: transform .6s var(--ease), background-color .3s;
  }
  .mobile-call.is-visible { transform: none; }
  .mobile-call:active { background: var(--peru-dark); }
  .mobile-call svg { width: 20px; height: 20px; animation: ring 2.6s ease-in-out infinite; }
  .to-top { bottom: 84px; right: 16px; width: 46px; height: 46px; }
}

@media (max-width: 479px) {
  .hero-inner { padding-top: 160px; }
  .section-tag { font-size: 15px; }
  .btn-medium { padding: 18px 30px; }
  .header-logo, .site-header.is-stuck .header-logo { width: 140px; }
  .practice-title { font-size: 25px; }
}

@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
