/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- COLORS ---------- */
:root {
  --red: #C8272C;
  --red-dark: #A81E23;
  --blue: #1D3767;         /* classic navy */
  --blue-dark: #142849;
  --blue-deep: #0D1D38;
  --green: #5A9B3E;
  --green-dark: #467A2F;
  --white: #FFFFFF;
  --off-white: #FFFFFF;
  --sand: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --line: rgba(29, 55, 103, 0.14);

  --font-display: 'Calibri', 'Carlito', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--blue);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
  padding: 0.15em 0;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
}

/* Section-head eyebrows — larger, with hyphens on both sides */
.section-head .eyebrow {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  gap: 1rem;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  width: 48px;
  height: 2px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  padding: 0.75rem 0;
  box-shadow: 0 2px 24px rgba(29, 55, 103, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand-mark {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; align-items: stretch; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.brand-name .drop {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 0.85;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.205em;
  color: var(--blue);
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue);
  position: relative;
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--red); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 2px solid var(--red);
  background: var(--red); color: var(--white);
  transition: all 0.25s;
  border-radius: 2px;
  white-space: nowrap;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200, 39, 44, 0.3); }

.btn-green {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 6px 20px rgba(90, 155, 62, 0.3);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-light:hover { background: var(--white); color: var(--blue); border-color: var(--white); }

.btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }

/* Stacked CTA pair in the header */
.nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  flex-shrink: 0;
}
.btn-sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  justify-content: center;
  transition: all 0.3s;
}
.btn-sm svg { width: 14px; height: 14px; transition: width 0.3s, height 0.3s; }
.btn-green:hover svg { transform: none; }

/* Grow CTA buttons more when the user scrolls */
.nav.scrolled .btn-sm {
  padding: 0.9rem 1.55rem;
  font-size: 1rem;
  letter-spacing: 0.13em;
}
.nav.scrolled .btn-sm svg { width: 16px; height: 16px; }

/* ---------- HERO — clean single-shade blue gradient ---------- */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  line-height: 1.02;
  margin: 1.75rem 0 2rem;
  color: var(--white);
  font-weight: 500;
  max-width: 22ch;
}
.hero h1 .accent-red {
  color: var(--red);
  font-weight: 700;
}
.hero h1 .accent-green {
  color: var(--green);
  font-weight: 700;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero .eyebrow { color: var(--red); }
.hero .eyebrow::before,
.hero .eyebrow::after { background: var(--red); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stat-num .plus { color: var(--red); }
.stat-label {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ---------- BADGES ---------- */
.badges-strip {
  background: var(--white);
  padding: 4rem 0;
  border-bottom: 200px solid var(--blue);
}
.badges-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: nowrap;
}
.badge-img {
  height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.badge-img:hover { transform: scale(1.05); }

/* ---------- SECTIONS ---------- */
.section { padding: 7rem 0; }

.section-head {
  max-width: 880px;
  margin: 0 auto 4.5rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.section-head h2 .accent-red { color: var(--red); font-weight: 700; }
.section-head h2 .accent-green { color: var(--green); font-weight: 700; }
.section-head p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 38rem;
  margin: 0 auto;
}
.section-head .eyebrow { display: inline-flex; }

.two-line-intro {
  max-width: none !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
@media (max-width: 1100px) {
  .two-line-intro {
    white-space: normal;
    font-size: 1.05rem !important;
  }
}

/* ---------- PRACTICE AREAS — SOLID COLOR CARDS ---------- */
.practices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.practice {
  position: relative;
  padding: 3rem 2.25rem 2.5rem;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 400px;
  color: var(--white);
  overflow: hidden;
}
.practice:nth-child(1) { background: var(--red); }
.practice:nth-child(2) { background: var(--blue); }
.practice:nth-child(3) { background: var(--green); }

.practice::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}

.practice:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(29, 55, 103, 0.25);
}
.practice:nth-child(1):hover { background: var(--red-dark); }
.practice:nth-child(2):hover { background: var(--blue-dark); }
.practice:nth-child(3):hover { background: var(--green-dark); }

.practice-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
  transition: transform 0.3s;
}
.practice:hover .practice-icon { transform: scale(1.08) rotate(-5deg); }
.practice-icon svg { width: 26px; height: 26px; }

.practice h3 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--white);
}
.practice p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  flex-grow: 1;
}
.practice-link {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 0.6rem;
  position: relative;
  padding-top: 1.5rem;
}
.practice-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.practice-link::after { content: "→"; transition: transform 0.3s; }
.practice:hover .practice-link::after { transform: translateX(5px); }

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  background: var(--blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.philosophy .container { position: relative; z-index: 2; }

.philosophy h2 { color: var(--white); }
.philosophy .section-head p { color: rgba(255, 255, 255, 0.82); }
.philosophy .eyebrow { color: var(--white); }
.philosophy .eyebrow::before,
.philosophy .eyebrow::after { background: var(--white); }
.philosophy .section-head h2 .accent-green { color: var(--green); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.pillar-card {
  padding: 2.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  text-align: center;
}
.pillar-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}
.pillar-card .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
  color: var(--red);
}
.pillar-card:nth-child(2) .num { color: var(--white); }
.pillar-card:nth-child(3) .num { color: var(--green); }
.pillar-card:nth-child(4) .num { color: var(--white); }
.pillar-card h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}
.pillar-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

/* ---------- ATTORNEYS — Dan in middle ---------- */
.attorneys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.attorney-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.35s;
  display: flex; flex-direction: column;
}
.attorney-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(29, 55, 103, 0.22);
}
.attorney-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--sand);
  position: relative;
  border-bottom: 6px solid var(--white);
}
.attorney-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  transition: transform 0.6s;
}
.attorney-card:hover .attorney-photo img { transform: scale(1.05); }

.attorney-body {
  padding: 1.75rem 1.75rem 2rem;
  color: var(--white);
  text-align: center;
}
/* Richard (1st) = red · Dan (2nd, center) = blue · Ripal (3rd) = green */
.attorney-card:nth-child(1) .attorney-body { background: var(--red); }
.attorney-card:nth-child(2) .attorney-body { background: var(--blue); }
.attorney-card:nth-child(3) .attorney-body { background: var(--green); }

.attorney-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.attorney-role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.attorney-bio {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.attorney-more {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: gap 0.3s;
  position: relative;
  padding-top: 1.5rem;
}
.attorney-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.attorney-card:hover .attorney-more { gap: 0.9rem; }

/* ---------- REVIEWS ---------- */
.reviews-section { background: var(--blue); color: var(--white); }
.reviews-section .section-head h2 { color: var(--white); }
.reviews-section .section-head p { color: rgba(255, 255, 255, 0.82); }
.reviews-section .section-head .eyebrow { color: var(--white); }
.reviews-section .section-head .eyebrow::before,
.reviews-section .section-head .eyebrow::after { background: var(--white); }

.reviews-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
.reviews-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.reviews-stars { display: flex; align-items: center; gap: 1rem; }
.stars { color: #FBBC05; letter-spacing: 0.08em; font-size: 1.3rem; }
.reviews-score {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--blue);
}
.reviews-count {
  font-size: 0.9rem; color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
}
.google-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.google-badge strong { color: var(--blue); font-weight: 600; }

.reviews-placeholder {
  padding: 2.5rem;
  border: 2px dashed var(--green);
  background: rgba(90, 155, 62, 0.05);
  border-radius: 4px;
  text-align: center;
}
.reviews-placeholder p {
  font-size: 0.95rem; color: var(--text-muted);
  max-width: 48rem; margin: 0 auto; line-height: 1.6;
}
.reviews-placeholder strong { color: var(--green-dark); font-weight: 700; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand {
  display: flex; gap: 0.7rem; align-items: center;
  margin-bottom: 1.5rem;
}
.footer-brand .brand-mark { height: 50px; filter: brightness(0) invert(1); }
.footer-brand .brand-name { color: var(--white); font-size: 1.05rem; letter-spacing: 0.02em; }
.footer-brand .brand-sub { color: var(--white); font-size: 0.5rem; letter-spacing: 0.205em; margin-top: 6px; }

.footer-about {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 26rem;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.76rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red);
  font-weight: 700; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
  font-style: normal; font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.footer-col address strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 0.25rem; }

.address-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
  position: relative;
  padding-right: 1.5rem;
}
.address-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.15rem;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}
.address-link:hover { color: var(--white); }
.address-link:hover::after {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.hero .eyebrow, .hero h1, .hero-sub, .hero-cta, .hero-stats {
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero .eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.35s; }
.hero-cta { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.65s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .brand-sub { display: none; }
  .nav-links { gap: 1.25rem; }
}
@media (max-width: 900px) {
  .practices, .attorneys { grid-template-columns: 1fr !important; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .stat-num { font-size: 3rem; }
  .stat-label { font-size: 0.78rem; letter-spacing: 0.15em; word-break: normal; }
  .nav-links { display: none; }
  .section { padding: 5rem 0; }
  .hero { padding: 8rem 0 4rem; }
  .brand-mark { height: 52px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.18em; }
  .badges-row { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
  .badge-img { height: 95px; }
  .container { padding: 0 1.25rem; }
  .hero .container { overflow-wrap: break-word; }
}
/* Hide mobile-only float by default — media query below shows it on phones */
.mobile-call-float { display: none; }

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .reviews-wrap { padding: 1.75rem; }
  .pillars { grid-template-columns: 1fr; }
  .brand-name { font-size: 0.95rem; }
  .brand-mark { height: 44px; }
  .stat-num { font-size: 2.5rem; }
  .stat-label { font-size: 0.7rem; letter-spacing: 0.12em; }
  .hero-stats { gap: 1.5rem 1rem; }

  /* Shrink header CTAs to compact icon buttons on phones */
  .nav-cta { gap: 0.35rem; }
  .nav-cta .btn-sm {
    padding: 0.6rem 0.7rem;
    font-size: 0;              /* hide label text */
    letter-spacing: 0;
    min-width: 0;
  }
  .nav-cta .btn-sm svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  /* Floating Call Now button — phones only */
  .mobile-call-float {
    display: flex;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 99;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(90, 155, 62, 0.45);
    transition: all 0.25s;
    text-decoration: none;
  }
  .mobile-call-float:hover,
  .mobile-call-float:active {
    background: var(--green-dark);
    transform: scale(1.05);
  }
  .mobile-call-float svg { width: 26px; height: 26px; }
}
/* ============================================================================
   INNER PAGES
   ============================================================================ */

/* Inner-page hero: navy but slightly shorter than homepage hero */
.inner-hero { padding: 10rem 0 5rem; }
.inner-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  max-width: 22ch !important;
}
.inner-hero .hero-sub {
  max-width: 42rem !important;
  margin: 0 auto !important;
}

/* Long-form content block for practice/about pages */
.detail-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-block:last-child { border-bottom: none; }
.detail-block h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.detail-block h2 em { font-style: normal; color: var(--red); font-weight: 700; }
.detail-block p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.detail-block p:last-child { margin-bottom: 0; }
.detail-block ul {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}
.detail-block li {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.detail-block strong { color: var(--blue); font-weight: 600; }
.detail-block a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.detail-block a:hover { color: var(--red-dark); }

/* Related practices cards use same colors as main practice cards */
.related-red { background: var(--red) !important; }
.related-blue { background: var(--blue) !important; }
.related-green { background: var(--green) !important; }
.related-red:hover { background: var(--red-dark) !important; }
.related-blue:hover { background: var(--blue-dark) !important; }
.related-green:hover { background: var(--green-dark) !important; }

/* Two-column body layout (profile pages) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.two-col .side-photo {
  position: sticky; top: 6rem;
}
.two-col .side-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}
.two-col .side-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.two-col .side-meta strong {
  display: block;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 1.25rem 0 0.35rem;
}
.two-col .side-meta .first-meta { margin-top: 0; }

/* Contact page form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(29, 55, 103, 0.08);
}
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-form .form-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.form-field {
  margin-bottom: 1.1rem;
}
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 55, 103, 0.08);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s;
  width: 100%;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 55, 103, 0.25);
}

.contact-info {
  padding: 1rem 0;
}
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: none; }
.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-icon svg { width: 20px; height: 20px; }
.contact-method-body { flex-grow: 1; }
.contact-method-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-method a {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-method a:hover { color: var(--red); }
.contact-method address {
  font-style: normal;
  color: var(--text);
  line-height: 1.6;
}

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(29, 55, 103, 0.12);
  border-color: var(--red);
}
.blog-card-image {
  aspect-ratio: 32/10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.blog-card-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.blog-card-image-label {
  position: relative;
  font-size: 0.87rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  z-index: 2;
  white-space: nowrap;
}
/* Blog card pill colors cycle across each row: red, white, green */
.blog-card:nth-child(3n+1) .blog-card-image-label {
  background: var(--red);
  color: var(--white);
}
.blog-card:nth-child(3n+2) .blog-card-image-label {
  background: var(--white);
  color: var(--blue);
}
.blog-card:nth-child(3n+3) .blog-card-image-label {
  background: var(--green);
  color: var(--white);
}
.blog-card-body { padding: 1.75rem; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}
.blog-card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

/* Legal pages (terms, privacy, disclaimers) */
.legal-content h2 {
  font-size: 1.15rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col .side-photo { position: static; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .inner-hero { padding: 8rem 0 3.5rem; }
}

/* ============================================================================
   BLOG POST PAGES
   ============================================================================ */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.post-back:hover { color: var(--red-dark); }

.post-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}
.post-content p {
  margin-bottom: 1.25rem;
}
.post-content p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;
  color: var(--red);
  line-height: 1;
  padding-right: 0.08em;
  /* Sit on the baseline so the bottom of the big letter aligns with the bottom of the line */
  vertical-align: baseline;
}
.post-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.post-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
  color: var(--blue);
}
.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.post-content strong { color: var(--blue); font-weight: 700; }
.post-content em { font-style: italic; }
.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--red-dark); }

.post-cta {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
}
.post-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--blue);
}
.post-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.post-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.post-cta-btn {
  flex: 0 1 220px;
  min-width: 220px;
  justify-content: center;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.post-nav-item {
  padding: 1.5rem;
  border: 1px solid var(--line);
  transition: all 0.25s;
  display: block;
  text-align: center;
}
.post-nav-item:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 55, 103, 0.15);
}
.post-nav-item:hover .post-nav-label,
.post-nav-item:hover .post-nav-title {
  color: var(--white);
}
.post-nav-placeholder { visibility: hidden; border: none; }
.post-nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.post-nav-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.3;
  transition: color 0.2s;
}

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-content p:first-child::first-letter { font-size: 3.5rem; }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
/* Skip-to-content link (visible only when focused via keyboard) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Visible focus rings for keyboard users on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
  /* Reset colors for clean black-on-white printing */
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Hide all interactive / decorative elements */
  .nav,
  .nav-cta,
  .mobile-call-float,
  .skip-link,
  .badges-strip,
  .hero,
  .inner-hero,
  .hero-stats,
  .hero-cta,
  footer,
  .post-back,
  .post-cta,
  .post-nav,
  .reviews-section,
  .practice-link,
  .attorney-more,
  .practice-icon,
  .pillars,
  .practices,
  .related-red,
  .related-blue,
  .related-green {
    display: none !important;
  }

  /* Strip away all the dark and colored sections */
  .section,
  .philosophy,
  .reviews-section {
    background: white !important;
    color: black !important;
    padding: 0.5in 0 !important;
  }

  /* Page title block — replace the suppressed hero with a simple printable header */
  main::before {
    content: "Daniel B. Faizakoff P.C.";
    display: block;
    font-family: Georgia, serif;
    font-size: 18pt;
    font-weight: 700;
    color: black;
    margin-bottom: 4pt;
    border-bottom: 2pt solid black;
    padding-bottom: 6pt;
  }
  main::after {
    content: "ATTORNEYS & COUNSELORS AT LAW · 420 Lexington Avenue, Suite 2400, New York, NY 10170 · (212) 619-3100 · legalesq.com";
    display: block;
    font-size: 8pt;
    text-align: center;
    border-top: 1pt solid #999;
    padding-top: 8pt;
    margin-top: 24pt;
    color: #555;
  }

  /* Strip backgrounds from any colored cards/sections that survive */
  .practice,
  .pillar-card,
  .attorney-card,
  .attorney-body,
  .blog-card-image {
    background: white !important;
    color: black !important;
    border: 1pt solid #999 !important;
    box-shadow: none !important;
  }

  /* Clean typography for printed body */
  h1, h2, h3, h4 {
    color: black !important;
    page-break-after: avoid;
    margin-top: 12pt;
  }
  h1 { font-size: 20pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; font-weight: 700; }

  /* Underline links and print URLs after them */
  a {
    color: black !important;
    text-decoration: underline;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
    word-break: break-all;
  }
  /* Don't print URLs for in-page anchors, mailto, tel */
  a[href^="#"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: "";
  }

  /* Avoid splitting paragraphs and sections across pages */
  p, ul, ol, blockquote {
    orphans: 3;
    widows: 3;
  }
  .detail-block,
  .post-content,
  article {
    page-break-inside: avoid;
  }

  /* Containers full-width when printing */
  .container,
  .two-col {
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  /* Hide the colored icon backgrounds on practice cards */
  .practice-icon { display: none !important; }

  /* Page setup */
  @page {
    margin: 0.75in;
  }
}

/* ============================================================================
   FOOTER NEWSLETTER (Mailchimp)
   ============================================================================ */
.footer-newsletter {
  margin: 0 auto 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.newsletter-pitch {
  color: var(--white);
}
.newsletter-pitch h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.newsletter-pitch h3 em {
  font-style: italic;
  color: var(--red);
  font-weight: 700;
}
.newsletter-pitch p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  max-width: 28rem;
  margin: 0;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.08);
}
.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  padding: 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 39, 44, 0.35);
}
.newsletter-fineprint {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .newsletter-pitch h3 { font-size: 1.3rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button {
    padding: 0.85rem 1.5rem;
  }
}

/* ============================================================================
   MOBILE HAMBURGER MENU
   ============================================================================ */
.hamburger-btn { display: none; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--blue);
  padding: 5rem 2rem 2rem;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
}
.mobile-menu.is-open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.is-open {
  display: block;
  opacity: 1;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu a {
  display: block;
  padding: 1.25rem 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a:active,
.mobile-menu a:focus {
  color: var(--red);
  padding-left: 0.5rem;
}
.mobile-menu-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid;
  text-decoration: none;
  transition: all 0.2s;
  /* Override the menu-link hover rule above */
  padding-left: 1.5rem !important;
}
.mobile-menu-cta-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.mobile-menu-cta-red:hover { color: var(--white); }
.mobile-menu-cta-green {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.mobile-menu-cta-green:hover { color: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--white);
  padding: 0;
}
.mobile-menu-close svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--blue);
    padding: 0;
    margin-left: auto;
  }
  .hamburger-btn svg { width: 28px; height: 28px; }
  .nav-cta { display: none; }
  body.menu-open { overflow: hidden; }
}
