/*
  Rimando Law Office - Main Stylesheet
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Lato:wght@300;400;700&display=swap');

:root {
  --bg: #0b0f14;
  --bg-soft: #101722;
  --bg-card: #151b24;
  --bg-glass: rgba(13, 17, 23, 0.78);
  --gold: #c9a84c;
  --gold-soft: #ad8f3f;
  --gold-light: #ebcd7a;
  --ivory: #f4eee2;
  --ivory-soft: rgba(244, 238, 226, 0.74);
  --line: rgba(201, 168, 76, 0.2);
  --line-soft: rgba(201, 168, 76, 0.09);
  --heading: 'Cormorant Garamond', Georgia, serif;
  --body: 'Lato', sans-serif;
  --ease: 0.35s ease;
  --top-bar-h: 0px;
  --nav-h: 84px;
  --nav-h-scrolled: 68px;
  --header-stack-h: var(--nav-h);
  --header-h: var(--header-stack-h);
  --scroll-glow-x: 0px;
  --scroll-glow-y: 0px;
  --scroll-glow-opacity: 0.11;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-stack-h) + 28px);
}

body {
  background:
    radial-gradient(1200px 720px at 82% 10%, rgba(201, 168, 76, 0.12), transparent 64%),
    radial-gradient(900px 560px at 16% 30%, rgba(201, 168, 76, 0.07), transparent 70%),
    linear-gradient(180deg, #0a0d12 0%, #101722 42%, #0b1118 100%);
  color: var(--ivory);
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
}

body::after {
  content: '';
  position: fixed;
  left: 50%;
  top: 18%;
  width: min(1100px, 92vw);
  height: min(760px, 72vh);
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.1) 34%, transparent 74%);
  filter: blur(80px);
  opacity: var(--scroll-glow-opacity);
  transform: translate3d(calc(-50% + var(--scroll-glow-x)), var(--scroll-glow-y), 0);
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
}

header {
  position: relative;
  z-index: 1200;
}

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

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}

main {
  display: block;
}

.page-enter {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.page-enter.loaded {
  opacity: 1;
  transform: translateY(0);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--heading);
  line-height: 1.2;
  font-weight: 600;
}

section {
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
  color: var(--ivory);
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ivory-soft);
  font-size: 0.95rem;
}

.gold-divider {
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-light));
  margin: 1rem auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.95rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: #101010;
}

.btn-gold:hover {
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.28);
  background: linear-gradient(90deg, #b7923f 0%, #d5b65e 100%);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(201, 168, 76, 0.14);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
}

.top-bar {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.navbar {
  position: relative;
  height: var(--nav-h);
  width: 100%;
  margin: 0;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 13, 19, 0.72);
  border-bottom: 1px solid transparent;
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1), background var(--ease), border-color var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.navbar::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(94%, 1240px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.36), transparent);
  pointer-events: none;
}

body.header-scrolled .navbar {
  height: var(--nav-h-scrolled);
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(201, 168, 76, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nav-logo-text .firm-name {
  display: block;
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  white-space: nowrap;
  line-height: 1.1;
  margin: 0;
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.16);
  transition: font-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
  cursor: pointer;
}

.nav-logo-text .firm-name:hover {
  color: var(--ivory);
}

.nav-logo-text .firm-tagline {
  display: block;
  font-weight: 500;
  margin-top: 2px;
  transition: opacity 0.35s ease;
}

.nav-logo-text .firm-tagline.firm-contact-line,
.nav-logo-text .contact-line {
  margin-top: 2px;
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}

.contact-line,
.firm-contact-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: none;
  line-height: 1.1;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 238, 226, 0.84);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.firm-contact-link {
  color: inherit;
  transition: color 220ms ease;
  white-space: nowrap;
  font-weight: inherit;
}

.firm-contact-link:hover {
  color: var(--gold-light);
}

.contact-line .divider,
.firm-contact-sep {
  color: rgba(201, 168, 76, 0.66);
  margin: 0 0.15rem;
}

.firm-inline-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 168, 76, 0.84);
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform 220ms ease, filter 220ms ease;
  flex: 0 0 auto;
}

.firm-inline-icon svg {
  width: 0.56rem;
  height: 0.56rem;
  fill: currentColor;
}

.firm-inline-icon img {
  width: 1.08rem;
  height: 1.08rem;
  object-fit: contain;
  display: block;
}

.firm-inline-icon:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.08) saturate(1.08);
}

body.header-scrolled .nav-logo-text .firm-name {
  font-size: 1.05rem;
}

body.header-scrolled .nav-logo-text .firm-tagline {
  opacity: 0.65;
}

.nav-menu,
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.84);
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-light));
  transition: right 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0.6;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
  opacity: 1;
}

.hamburger {
  display: none;
  border: 0;
  background: transparent;
  width: 36px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 5px;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--ease), opacity var(--ease), top var(--ease);
}

.hamburger span:nth-child(1) { top: 7px; }
.hamburger span:nth-child(2) { top: 14px; }
.hamburger span:nth-child(3) { top: 21px; }

.hamburger.open span:nth-child(1) {
  top: 14px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 14px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-stack-h);
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 5%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(13, 18, 26, 0.94);
  border-bottom: 1px solid transparent;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.35s ease, border-color 0.3s ease;
}

body.header-scrolled .mobile-menu {
  top: var(--nav-h-scrolled);
}

.mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  padding: 1.25rem 5% 1.75rem;
  border-bottom-color: var(--line);
}

.mobile-menu a {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.86);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold-light);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-stack-h) + 2rem);
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at 84% 20%, rgba(201, 168, 76, 0.13), transparent 42%),
    radial-gradient(circle at 20% 82%, rgba(201, 168, 76, 0.09), transparent 46%),
    linear-gradient(135deg, #080b10 0%, #101722 55%, #090d12 100%);
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  width: 130%;
  height: 240px;
  left: -15%;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-wave-one {
  top: 22%;
  animation: waveFloat 12s ease-in-out infinite;
}

.hero-wave-two {
  top: 58%;
  animation: waveFloat 14s ease-in-out infinite reverse;
}

.hero-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  right: -180px;
  top: 8%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.14), transparent 62%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 52%;
  width: clamp(520px, 58vw, 980px);
  z-index: 1;
  opacity: 0.055;
  pointer-events: none;
  filter: sepia(1) saturate(1.15) hue-rotate(-6deg) brightness(1.05) contrast(0.95) blur(0.5px);
  transform: translate(-50%, -50%);
}

.hero-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-watermark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 42% 44%, rgba(4, 6, 9, 0) 45%, rgba(4, 6, 9, 0.68) 100%);
}

.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.7);
  opacity: 0;
  animation: floatUp linear infinite;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1250px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-separator {
  margin: 0 0.5rem;
  color: var(--gold);
  font-size: 0.7em;
  opacity: 0.8;
  vertical-align: baseline;
}

.hero-headline {
  font-size: clamp(2.7rem, 7vw, 5.25rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--ivory);
}

.hero-sub {
  font-size: clamp(0.94rem, 1.8vw, 1.12rem);
  color: rgba(244, 238, 226, 0.84);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
}

.hero-practice {
  position: relative;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(14, 20, 29, 0.8) 0%, rgba(13, 19, 28, 0.62) 48%, rgba(16, 23, 33, 0.78) 100%);
  padding: 2.15rem 1.7rem 1.55rem;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  box-shadow: 0 24px 44px rgba(2, 4, 7, 0.48), inset 0 1px 0 rgba(201, 168, 76, 0.1), inset 0 0 28px rgba(201, 168, 76, 0.05);
  overflow: hidden;
}

.hero-practice::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.6) 0%, rgba(201, 168, 76, 0.08) 85%);
  pointer-events: none;
}

.hero-practice::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 34%;
  background: radial-gradient(circle at top right, rgba(201, 168, 76, 0.14), transparent 72%);
  pointer-events: none;
}

.hero-practice-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin: 0 0 0.45rem 0.95rem;
}

.hero-practice-title {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  color: var(--gold-light);
  margin: 0 0 0.95rem 0.95rem;
  font-weight: 600;
}

.hero-practice-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-practice-list li {
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  transition: border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-practice-list li:hover {
  border-bottom-color: rgba(201, 168, 76, 0.42);
}

.hero-practice-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.74rem 0.1rem 0.74rem 0.95rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(244, 238, 226, 0.9);
  transition: color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-practice-list a::after {
  content: '+';
  flex-shrink: 0;
  font-size: 0.9rem;
  color: rgba(201, 168, 76, 0.72);
  transition: color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-practice-list a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.hero-practice-list a:hover::after {
  color: var(--gold-light);
  transform: translateX(2px);
}

/* Homepage sections */
.intro-section {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 25, 36, 0.38) 0%, rgba(13, 19, 28, 0.26) 100%);
  border-top: none;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  box-shadow: inset 0 1px 0 rgba(201, 168, 76, 0.08), inset 0 -1px 0 rgba(244, 238, 226, 0.025);
}

.intro-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.02rem;
  color: var(--ivory-soft);
}

.services {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 28, 40, 0.4) 0%, rgba(14, 21, 31, 0.28) 100%);
  border-top: none;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  box-shadow: inset 0 1px 0 rgba(201, 168, 76, 0.09), inset 0 -1px 0 rgba(244, 238, 226, 0.022);
}

.intro-section::before,
.services::before,
.approach-section::before,
.updates-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1240px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.36), transparent);
  pointer-events: none;
}

.cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  transition:
    transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 22px rgba(201, 168, 76, 0.08);
}

.card-icon-wrap {
  width: 62px;
  height: 62px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-glyph {
  color: var(--gold-light);
  font-family: var(--heading);
  font-size: 1.4rem;
  line-height: 1;
}

.card-title {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.card-text {
  color: var(--ivory-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.card-link:hover {
  color: var(--gold);
}

.approach-section {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 26, 38, 0.37) 0%, rgba(14, 21, 31, 0.25) 100%);
  border-top: none;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: inset 0 1px 0 rgba(201, 168, 76, 0.08), inset 0 -1px 0 rgba(244, 238, 226, 0.02);
}

.approach-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.approach-card {
  border: 1px solid var(--line);
  background: rgba(22, 30, 42, 0.62);
  padding: 1.8rem 1.3rem;
}

.approach-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--gold-light);
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--ivory-soft);
}

.updates-preview {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 28, 40, 0.39) 0%, rgba(14, 21, 31, 0.27) 100%);
  border-top: none;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  box-shadow: inset 0 1px 0 rgba(201, 168, 76, 0.08), inset 0 -1px 0 rgba(244, 238, 226, 0.022);
}

.posts-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.post-card {
  background: linear-gradient(160deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  border: 1px solid var(--line);
  transition: border-color var(--ease), transform var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.45);
}

.post-header {
  padding: 1.35rem 1.35rem 0.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-category {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.45);
  padding: 0.18rem 0.55rem;
}

.post-date {
  font-size: 0.72rem;
  color: rgba(244, 238, 226, 0.6);
}

.post-body {
  padding: 0.5rem 1.35rem 1.45rem;
}

.post-title {
  font-size: 1.38rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 0.88rem;
  color: var(--ivory-soft);
  margin-bottom: 0.9rem;
}

.post-link {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.post-link:hover {
  color: var(--gold);
}

.cta-band {
  background: linear-gradient(130deg, #0f1217 0%, #11151b 54%, #0c1015 100%);
  border-top: 1px solid var(--line-soft);
  text-align: center;
  padding: 4.8rem 5% 4.1rem;
}

.cta-band-title {
  max-width: 940px;
  margin: 0 auto 1.6rem;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 500;
}

.cta-band-sub {
  color: var(--ivory-soft);
  margin-bottom: 1.3rem;
}

.cta-band-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0a1017 0%, #080d13 100%);
  border-top: 1px solid var(--line);
  padding: 4.5rem 5% 2.2rem;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 76px;
  width: auto;
  border-radius: 2px;
  background: transparent;
  padding: 0;
}

.footer-firm-name {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-light);
}

.footer-firm-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.44);
}

.footer-desc {
  color: rgba(244, 238, 226, 0.7);
  font-size: 0.9rem;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  font-size: 0.86rem;
  color: rgba(244, 238, 226, 0.66);
}

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

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-contact-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-contact-text {
  font-size: 0.84rem;
  color: rgba(244, 238, 226, 0.68);
}

.footer-hours-title {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.footer-hours p {
  font-size: 0.8rem;
  color: rgba(244, 238, 226, 0.66);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.76rem;
  color: rgba(244, 238, 226, 0.52);
}

.footer-disclaimer {
  max-width: 760px;
  text-align: right;
  font-size: 0.72rem;
  color: rgba(244, 238, 226, 0.56);
}

/* Existing inner pages */
.page-banner {
  padding: calc(var(--header-stack-h) + 3rem) 5% 4rem;
  background: linear-gradient(160deg, #0b1017 0%, #111a26 60%, #0c121b 100%);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.page-banner-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.page-banner-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 500;
}

.page-banner-title span {
  color: var(--gold-light);
}

.breadcrumb {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.65);
}

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

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

.about-intro,
.values-section,
.practice-areas-section,
.team-section,
.updates-section,
.contact-section {
  border-top: 1px solid var(--line-soft);
}

.about-intro,
.practice-areas-section,
.team-section,
.updates-section,
.contact-section {
  background: linear-gradient(180deg, rgba(17, 24, 35, 0.36) 0%, rgba(12, 18, 27, 0.24) 100%);
}

.values-section {
  background: linear-gradient(180deg, rgba(20, 30, 44, 0.42) 0%, rgba(15, 22, 33, 0.3) 100%);
}

.about-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-body p {
  color: var(--ivory-soft);
  margin-bottom: 1rem;
}

.about-quote {
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  border: 1px solid var(--line);
  padding: 2rem;
}

.about-quote blockquote {
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.5;
}

.about-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.values-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.value-card {
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  border: 1px solid var(--line);
  padding: 1.6rem;
}

.value-number {
  font-size: 3rem;
  color: rgba(201, 168, 76, 0.2);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.value-title {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.value-text {
  font-size: 0.88rem;
  color: var(--ivory-soft);
}

.practice-grid,
.attorneys-grid,
.posts-grid {
  max-width: 1140px;
  margin: 0 auto;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.practice-card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  padding: 1.8rem;
}

.practice-card[id] {
  scroll-margin-top: calc(var(--header-stack-h) + 32px);
}

.practice-icon {
  width: 42px;
  height: 42px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 0.8rem;
}

.practice-title {
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
}

.practice-text {
  color: var(--ivory-soft);
  font-size: 0.9rem;
}

.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.attorney-card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.attorney-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 20px rgba(201, 168, 76, 0.08);
}

.attorney-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #151b24, #0b0f14);
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
ATTORNEY PHOTO STANDARD GUIDE
Recommended upload:
- Portrait orientation
- Minimum size: 1200px wide x 1500px tall
- Preferred aspect ratio: 4:5
- Subject facing front
- Eyes near upper third of image
- Chest/shoulders visible
- Background may vary because CSS enforces consistent crop
- If face appears too low/high, adjust --portrait-y per image
- If body appears too close/far, adjust --portrait-scale per image
Example:
<img src="..." style="--portrait-y: 16%; --portrait-scale: 1.06;">
*/
.attorney-photo img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-x, center) var(--portrait-y, 18%);
  display: block;
  transform: scale(var(--portrait-scale, 1.02));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.attorney-card:hover .attorney-photo img {
  transform: scale(calc(var(--portrait-scale, 1.02) + 0.035));
  filter: brightness(1.04) contrast(1.02);
}

.attorney-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: rgba(201, 168, 76, 0.5);
}

.attorney-info {
  padding: 1.3rem;
  text-align: center;
}

.attorney-name {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.attorney-role {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.attorney-bar,
.attorney-bio {
  color: var(--ivory-soft);
  font-size: 0.84rem;
}

.attorney-bio {
  margin-top: 0.55rem;
  margin-bottom: 0.8rem;
}

.attorney-specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.specialty-tag {
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.18rem 0.5rem;
}

.updates-section .posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.contact-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.2rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.contact-detail {
  display: flex;
  gap: 0.8rem;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-detail-value {
  color: rgba(244, 238, 226, 0.84);
  font-size: 0.88rem;
}

.contact-hours {
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

.hours-title {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(244, 238, 226, 0.82);
  font-size: 0.84rem;
}

.contact-form-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(20, 27, 37, 0.95) 0%, rgba(18, 24, 34, 0.94) 100%);
  padding: 2rem;
}

/* Attorney modal */
.attorney-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), visibility 700ms cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.attorney-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 11, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.attorney-modal.active .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: 90vh;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px;
  border-radius: 18px;
  background:
    radial-gradient(900px 520px at 84% 8%, rgba(201, 168, 76, 0.1), transparent 58%),
    linear-gradient(165deg, rgba(16, 23, 34, 0.86) 0%, rgba(10, 16, 27, 0.9) 55%, rgba(8, 13, 22, 0.93) 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 38px 90px rgba(1, 4, 10, 0.7), 0 0 42px rgba(201, 168, 76, 0.09);
  --modal-rotate-x: 0deg;
  --modal-rotate-y: 0deg;
  transform: perspective(1200px) translateY(24px) rotateX(5deg) rotateY(0deg) scale(0.96);
  opacity: 0;
  filter: blur(10px);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(244, 238, 226, 0.12), inset 0 0 0 1px rgba(201, 168, 76, 0.08);
  box-sizing: border-box;
}

.modal-content::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: 2%;
  top: -56px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0) 72%);
  filter: blur(8px);
}

.attorney-modal.active .modal-content {
  transform: perspective(1200px) translateY(0) rotateX(var(--modal-rotate-x, 0deg)) rotateY(var(--modal-rotate-y, 0deg)) scale(1);
  opacity: 1;
  filter: blur(0);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(13, 19, 30, 0.7);
  border-radius: 999px;
}

.modal-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.8), rgba(173, 143, 63, 0.7));
  border: 1px solid rgba(10, 16, 24, 0.7);
}

.modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.75) rgba(13, 19, 30, 0.7);
}

.modal-close {
  position: sticky;
  top: 10px;
  align-self: flex-end;
  margin-bottom: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  background: linear-gradient(165deg, rgba(18, 27, 39, 0.66), rgba(13, 19, 29, 0.72));
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: #c9a84c;
  cursor: pointer;
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease, color 260ms ease;
  z-index: 3;
  box-sizing: border-box;
}

.modal-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-close:hover {
  color: #ebcd7a;
  transform: rotate(90deg);
  background: rgba(201, 168, 76, 0.13);
  border-color: rgba(201, 168, 76, 0.52);
}

.modal-close:focus-visible {
  outline: 2px solid rgba(235, 205, 122, 0.8);
  outline-offset: 2px;
}

.modal-body h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 0.4rem;
  color: var(--ivory);
}

.modal-profile {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 1.55rem;
  align-items: start;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-profile-photo {
  position: relative;
  margin: 0;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1f27 0%, #12161d 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 24px rgba(201, 168, 76, 0.08);
  transform: translateZ(0);
  transition: transform 280ms ease, box-shadow 280ms ease;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-profile-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 26%, transparent 50%);
  mix-blend-mode: screen;
}

.modal-profile-photo:hover {
  transform: scale(1.015);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5), 0 0 28px rgba(201, 168, 76, 0.1);
}

.modal-profile-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: center center;
  box-sizing: border-box;
}

.modal-profile-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-name-band {
  position: relative;
  background: linear-gradient(105deg, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.07) 45%, rgba(21, 29, 40, 0.58) 100%);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 10px;
  padding: 1.15rem 1.2rem 0.95rem;
  margin-bottom: 1.05rem;
  overflow: hidden;
}

.modal-name-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(235, 205, 122, 0.95), rgba(201, 168, 76, 0.35));
}

.modal-name-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0.34;
}

.modal-name-band h2 {
  margin-bottom: 0.35rem;
}

.modal-title {
  color: #c9a84c;
  margin-bottom: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.modal-bio {
  margin: 0 0 1.25rem;
  color: #e8e4dd;
  line-height: 1.72;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-section-title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: none;
  font-size: 1.15rem;
  position: relative;
}

.modal-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.56), rgba(201, 168, 76, 0.2) 55%, rgba(201, 168, 76, 0.08));
}

.modal-practice {
  columns: 2;
  gap: 20px;
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-practice + .modal-section-title {
  margin-top: 2rem;
}

.modal-practice li {
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
  padding-left: 0.95rem;
  margin-bottom: 0.6rem;
  color: rgba(244, 238, 226, 0.9);
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-practice li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ebcd7a, #c9a84c);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.32);
}

.modal-summary {
  margin: 0.55rem 0 0;
}

.modal-summary-paragraph {
  margin: 0;
  color: rgba(232, 228, 221, 0.92);
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-summary-paragraph + .modal-summary-paragraph {
  margin-top: 1rem;
}

.modal-cta {
  margin-top: 1.45rem;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.attorney-card:focus-visible {
  outline: 2px solid rgba(235, 205, 122, 0.8);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .attorney-modal,
  .modal-overlay,
  .modal-content,
  .modal-close,
  .modal-profile-photo {
    transition: none !important;
    animation: none !important;
  }

  .modal-content,
  .attorney-modal.active .modal-content {
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 860px) {
  .modal-content {
    width: calc(100vw - 24px);
    max-height: 88vh;
    padding: 20px 16px 18px;
  }

  .modal-profile {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-profile-photo {
    max-width: 340px;
    margin: 0 auto;
  }

  .modal-practice {
    columns: 1;
    gap: 0;
  }
}

.contact-form-title {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.86);
}

.form-control {
  width: 100%;
  background: rgba(244, 238, 226, 0.06);
  color: rgba(244, 238, 226, 0.96);
  border: 1px solid rgba(201, 168, 76, 0.24);
  padding: 0.75rem 0.85rem;
  font-family: var(--body);
  font-size: 0.9rem;
  outline: none;
}

.form-control:focus {
  border-color: rgba(201, 168, 76, 0.76);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  background-color: #151b24;
  color: rgba(244, 238, 226, 0.97);
  color-scheme: dark;
}

select.form-control option {
  background: #121821;
  color: #f2ebde;
}

select.form-control option:checked {
  background: #3f4756;
  color: #ffffff;
}

select.form-control option:disabled {
  color: #b6aa8b;
}

.form-disclaimer {
  color: rgba(244, 238, 226, 0.56);
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

/* Reveal */
.reveal {
  --reveal-delay: 0ms;
  --reveal-duration: 680ms;
  --reveal-distance: 14px;
  --reveal-blur: 6px;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0;
  filter: blur(var(--reveal-blur));
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    filter var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: opacity, transform, filter;
}

.reveal-up {
  transform: translate3d(0, var(--reveal-distance), 0);
}

.reveal-left {
  transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

.reveal-right {
  transform: translate3d(var(--reveal-distance), 0, 0);
}

.reveal-fade {
  transform: none;
  --reveal-blur: 4px;
}

.reveal-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* Footer stays static: no scroll reveal motion */
footer .reveal,
footer .reveal-up,
footer .reveal-left,
footer .reveal-right,
footer .reveal-fade {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }

  .page-enter,
  .page-enter.loaded {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-fade {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .top-bar,
  .navbar,
  .contact-item,
  .contact-icon,
  [data-tooltip]::after {
    transition: none !important;
  }
}

/* Animations */
@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-105vh);
    opacity: 0;
  }
}

@keyframes waveFloat {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3%);
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-practice {
    max-width: 700px;
    width: 100%;
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-logo-text .firm-name {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .nav-logo-text .firm-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }

  .firm-contact-line {
    font-size: 0.68rem;
    gap: 0.28rem;
    letter-spacing: 0.02em;
  }

  .firm-inline-icon {
    width: auto;
    height: auto;
  }

  .hero-watermark {
    width: clamp(430px, 72vw, 640px);
    top: 45%;
    left: 50%;
    opacity: 0.045;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --top-bar-h: 0px;
    --nav-h: 78px;
    --nav-h-scrolled: 64px;
  }

  section {
    padding: 4.5rem 5%;
  }

  .hero {
    padding-top: calc(var(--header-stack-h) + 1.5rem);
  }

  .hero-watermark {
    display: none;
  }

  .hero-practice {
    padding: 1.75rem 1.2rem 1.25rem;
    border-radius: 14px;
  }

  .hero-practice::before {
    left: 10px;
    top: 10px;
    bottom: 10px;
  }

  .hero-practice-eyebrow,
  .hero-practice-title {
    margin-left: 0.6rem;
  }

  .hero-practice-list a {
    padding-left: 0.6rem;
  }

  .hero-practice-list a {
    font-size: 0.88rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }

  .nav-logo {
    max-width: calc(100vw - 92px);
  }

  .nav-logo-text .firm-tagline {
    font-size: 0.43rem;
    letter-spacing: 0.04em;
  }

  .firm-contact-line {
    gap: 0.24rem;
  }

  .firm-inline-icon {
    width: auto;
    height: auto;
  }

  .attorney-modal {
    padding: 14px;
  }

  .modal-content {
    width: calc(100vw - 24px);
    max-height: 88vh;
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .modal-profile {
    grid-template-columns: 1fr;
  }

  .modal-profile-photo {
    max-width: 330px;
    margin: 0 auto 0.4rem;
  }

  .modal-practice {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .nav-container,
  .navbar-container {
    padding: 0 12px;
  }

  .navbar {
    width: 100%;
    padding: 0 12px;
  }

  .navbar::after {
    width: calc(100% - 24px);
  }

  .nav-logo {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --top-bar-h: 0px;
    --nav-h: 74px;
    --nav-h-scrolled: 62px;
  }

  .nav-logo-text .firm-name {
    font-size: 0.82rem;
    letter-spacing: 0.035em;
  }

  .nav-logo-text .firm-tagline {
    font-size: 0.44rem;
    letter-spacing: 0.13em;
  }

  .firm-contact-line {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.42rem;
    max-width: calc(100vw - 92px);
    white-space: normal;
    line-height: 1.25;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .firm-contact-link {
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .firm-contact-sep {
    display: inline-block;
    margin: 0 0.08rem;
  }

  .firm-inline-icon {
    display: inline-flex !important;
    width: auto;
    height: auto;
    flex: 0 0 auto;
  }

  .firm-inline-icon svg {
    width: 0.58rem;
    height: 0.58rem;
  }

  .firm-inline-icon img {
    width: 0.98rem;
    height: 0.98rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  :root {
    --top-bar-h: 0px;
    --nav-h: 70px;
    --nav-h-scrolled: 58px;
  }

  .nav-logo {
    max-width: calc(100vw - 84px);
  }

  .nav-logo-text .firm-name {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }

  .nav-logo-text .firm-tagline {
    font-size: 0.4rem;
    letter-spacing: 0.1em;
  }

  .firm-contact-link {
    font-size: 0.58rem;
  }

  .firm-contact-line {
    font-size: 0.56rem;
    gap: 0.18rem 0.32rem;
  }

  .firm-inline-icon {
    width: auto;
    height: auto;
  }

  .hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .hero-headline {
    font-size: 2.35rem;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .contact-form-wrap {
    padding: 1.35rem;
  }

  .hours-row {
    font-size: 0.8rem;
  }
}

/* Header Premium Refine Override */
:root {
  --top-bar-h: 0px;
  --header-stack-h: var(--nav-h);
  --header-h: var(--header-stack-h);
}

.top-bar {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
}

.navbar {
  height: var(--nav-h);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 13, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.nav-logo {
  flex: 0 1 auto;
  min-width: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.nav-logo-text .firm-name {
  font-family: var(--heading);
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--gold-light);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.firm-contact-line {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  line-height: 1.15;
  color: rgba(244, 238, 226, 0.72);
  white-space: nowrap;
}

.firm-contact-link {
  color: rgba(244, 238, 226, 0.74);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.firm-contact-link:hover {
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.24);
}

.firm-contact-sep {
  color: rgba(201, 168, 76, 0.65);
  margin: 0 0.1rem;
}

.firm-social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-left: 0.35rem;
}

.firm-social-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: none;
  overflow: visible;
  flex: 0 0 auto;
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
  cursor: pointer;
}

.firm-social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  transform: scale(1);
  opacity: 0.88;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.firm-social-icon:hover img {
  transform: scale(1.15);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: 2rem;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.82);
}

body.header-scrolled .navbar {
  height: var(--nav-h-scrolled);
  background: rgba(9, 13, 19, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

body.header-scrolled .nav-logo-text .firm-name {
  font-size: clamp(0.95rem, 1.1vw, 1.18rem);
}

body.header-scrolled .firm-contact-line {
  opacity: 0.82;
}

@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: block;
    flex: 0 0 auto;
    z-index: 2;
  }

  .navbar {
    padding: 0 1rem;
  }

  .nav-logo {
    max-width: calc(100vw - 72px);
  }

  .firm-contact-line {
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.18rem 0.35rem;
    line-height: 1.2;
  }

  .firm-contact-link {
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .firm-social-icons {
    gap: 0.45rem;
    margin-left: 0.2rem;
  }

  .firm-social-icon img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 430px) {
  .nav-logo-text .firm-name {
    font-size: 0.88rem;
    letter-spacing: 0.055em;
  }

  .firm-contact-line {
    max-width: calc(100vw - 78px);
  }

  .firm-contact-link {
    font-size: 0.58rem;
  }

  .firm-contact-sep {
    margin: 0 0.02rem;
  }

  .firm-social-icon img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  .firm-contact-link {
    font-size: 0.54rem;
  }

  .firm-social-icon img {
    width: 18px;
    height: 18px;
  }
}
