/* ================================================
   MARLOWE & HAYES LLP - MAIN STYLESHEET
   ================================================
   Mobile-first responsive design
   Breakpoint: 768px for desktop
   ================================================ */

/* ================================
   1. CSS CUSTOM PROPERTIES
   ================================ */

:root {
  /* Brand Colors */
  --color-navy: #222831;
  --color-slate: #697b97;
  --color-taupe: #b5a68f;
  --color-cream: #fdfaf7;
  --color-white: #fffffe;
  --color-charcoal: #1f1f1f;

  /* Semantic Colors */
  --color-bg: var(--color-cream);
  --color-surface: var(--color-white);
  --color-text: var(--color-charcoal);
  --color-heading: var(--color-navy);
  --color-muted: var(--color-taupe);
  --color-border: var(--color-taupe);
  --color-primary: var(--color-navy);
  --color-secondary: var(--color-slate);

  /* Typography */
  --font-heading: "Inria Serif", serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Font Sizes - Mobile First */
  --text-h0: 3.8rem; /* 72px - Hero large text */
  --text-h1: 2.5rem; /* 40px - Hero regular text */
  --text-h2: 1.5rem; /* 24px - Section titles */
  --text-h3: 1.25rem; /* 20px - Subheadings */
  --text-body: 1rem; /* 16px - Base text */
  --text-large: 1.125rem; /* 18px - Large body text */
  --text-small: 0.875rem; /* 14px - Small text */

  /* Spacing Scale */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2rem; /* 32px */
  --space-xl: 3rem; /* 48px */
  --space-2xl: 4rem; /* 64px */
  --space-3xl: 8rem; /* 128px */
  --space-4xl: 10rem; /* 160px */
  --space-5xl: 12rem; /* 192px */

  /* Transitions */
  --transition-base: 200ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  /* Easing Curves
     --ease-out-smooth: standard deceleration — used on spatial movement (lifts, slides)
     --ease-overshoot:  slight bounce past target — borrowed from Blayden's _animbezier.
                        Adds warmth to scroll reveals and icon entrances.
                        The 1.09 Y value is what creates the subtle overshoot. */
  --ease-out-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-overshoot: cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* ================================
   2. BASE STYLES
   ================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

/* Media Elements */
img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}

/* Form Elements */
button,
input,
textarea,
select {
  font: inherit;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

/* Focus States (Accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ================================
   3. LAYOUT UTILITIES
   ================================ */

.wrapper {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm);
  z-index: 999;
}

.skip-link:focus {
  top: 0;
}

/* Scroll offset for fixed header */
/* section,
footer {
  scroll-margin-top: 100px;
} */

/* ================================
   4. NAVIGATION
   ================================ */

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm);
}

.nav-wrapper {
  max-width: 339px;
  height: 98px;
  margin: 0 auto;
  background: rgba(253, 250, 247, 0.9);
  border-radius: 16px;
  border: 3px solid var(--color-taupe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  transition:
    height 300ms var(--ease-out-smooth),
    box-shadow 300ms ease,
    background-color 300ms ease;
}

/* Nav shrinks subtly after scrolling down */
.nav-wrapper.nav-scrolled {
  height: 98px;
  background: rgba(253, 250, 247, 0.97);
  box-shadow: 0 4px 16px rgba(34, 40, 49, 0.1);
}

.logo img {
  height: 82px;
  width: 157.46px;
  margin-left: -20px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 2px #cbcbcb);
}

/* Desktop nav - hidden on mobile */
.main-nav {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: -10px;
  padding: 0;
}

.mobile-menu-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(34, 40, 49, 0.8);
  z-index: 2000;
  transition: right 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(253, 250, 247, 1) 0%,
    rgba(253, 250, 247, 1) 23%,
    rgba(181, 166, 143, 1) 100%
  );
  margin-left: auto;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mobile-logo {
  width: 130px;
  height: auto;
  margin-bottom: var(--space-sm);
  object-fit: contain;
  margin: 0 auto var(--space-sm);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
}

.mobile-consultation-btn {
  display: block;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    90deg,
    rgba(34, 40, 49, 1) 0%,
    rgba(105, 123, 151, 1) 100%
  );
  color: var(--color-cream);
  padding: 10px;
  border-radius: 16px;
  max-width: 390px;
  height: 55px;
  border: 3px solid var(--color-taupe);
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  margin-top: 5rem;
  margin-bottom: var(--space-sm);
  transition: var(--transition-base);
  letter-spacing: 0.1em;
}

.mobile-consultation-btn:hover {
  background: var(--color-slate);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm) 0;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mobile-nav-links li a {
  display: block;
  font-size: var(--text-h2);
  font-family: var(--font-body);
  color: var(--color-navy);
  padding: var(--space-sm) 0;
  font-weight: 500;
}

.mobile-nav-links li a:hover {
  color: var(--color-slate);
}

.mobile-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  padding-bottom: var(--space-xl);
}

.mobile-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  color: var(--color-navy);
}

.mobile-phone img {
  width: 28px;
  height: 28px;
}

.mobile-address {
  background: var(--color-cream);
  border: 3px solid var(--color-taupe);
  border-radius: 16px;
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
}

.mobile-address p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-navy);
  line-height: 1.2;
}

/* ================================================
   Ink Blot Parallax Elements (Mobile)
   ================================================ */

body {
  overflow-x: hidden;
}

.page-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ink {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

/* Mobile needs real height because these are background-image divs */
.ink01 {
  background-image: url("../assets/parallax/ink01.webp");
  width: 700vw;
  height: 800vw;
  top: 1rem;
  left: -380vw;
  transform: rotate(0deg);
  opacity: 0.1;
}

.ink02 {
  background-image: url("../assets/parallax/ink02.webp");
  width: 600vw;
  height: 600vw;
  top: 230rem;
  left: -60vw;
  transform: rotate(38deg);
  opacity: 0.1;
}

.ink03 {
  background-image: url("../assets/parallax/ink03.webp");
  width: 400vw;
  height: 400vw;
  top: 412rem;
  left: 140vw;
  transform: rotate(28deg);
  opacity: 0.1;
}

.ink04 {
  background-image: url("../assets/parallax/ink04.webp");
  width: 400vw;
  height: 400vw;
  top: 584rem;
  left: 18vw;
  transform: rotate(28deg);
  opacity: 0.1;
}

/* Keeps page content above the ink */
header,
main,
section,
.nav-wrapper {
  position: relative;
  z-index: 1;
}

/* ================================
   5. HERO SECTION
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../assets/images/hero-01.webp");
  background-size: cover;
  background-position:
    center,
    left -260px center;
  background-repeat: no-repeat;
  animation: heroZoom 16s var(--ease-out-smooth) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-white);
}

.hero h1 {
  color: var(--color-cream);
  font-size: var(--text-h1);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.sub-title h2 {
  z-index: 999;
}

.hero-emphasis {
  font-size: var(--text-h0);
  text-shadow: 2px 2px 4px #373737;
}

.sub-title {
  color: var(--color-charcoal);
  font-size: var(--text-h2);
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-2xl);
  max-width: 1100px;
  z-index: 999;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  animation: bounce 2s infinite;
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.2));
}

.scroll-indicator svg {
  width: 48px;
  height: 48px;
}

/* ================================
   6. SECTION HEADERS (Reusable)
   ================================ */

/* Practice Areas Header */
.section-header01 {
  text-align: center;
  margin-top: var(--space-2xl);
  margin-bottom: 8rem;
  margin-inline: auto;
  max-width: 306px;
  height: 55px;
  background: rgba(253, 250, 247, 0.5);
  border-radius: 16px;
  border: 3px solid var(--color-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
}

.section-header01 h2 {
  margin: 0;
}

/* Attorneys Header */
.section-header02 {
  text-align: center;
  margin-top: var(--space-5xl);
  margin-bottom: var(--space-2xl);
  margin-inline: auto;
  max-width: 289px;
  height: 55px;
  background: rgba(253, 250, 247, 0.5);
  border-radius: 16px;
  border: 3px solid var(--color-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
}

.section-header02 h2 {
  margin: 0;
}

/* Our Firm Header */
.section-header03 {
  text-align: center;
  margin-top: var(--space-5xl);
  margin-bottom: var(--space-2xl);
  margin-inline: auto;
  max-width: 172px;
  height: 55px;
  background: rgba(253, 250, 247, 0.5);
  border-radius: 16px;
  border: 3px solid var(--color-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
}

.section-header03 h2 {
  margin: 0;
}

/* Insights Header */
.section-header04 {
  text-align: center;
  margin-top: var(--space-5xl);
  margin-bottom: 8rem;
  margin-inline: auto;
  max-width: 128px;
  height: 55px;
  background: rgba(253, 250, 247, 0.5);
  border-radius: 16px;
  border: 3px solid var(--color-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
}

.section-header04 h2 {
  margin: 0;
}

/* ================================
   7. PRACTICE AREAS SECTION
   ================================ */

.practice-areas {
  position: relative;
  overflow: hidden;
}

.practice-area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  margin-inline: auto;
  max-width: 306px;
  height: 500px;
  border-radius: 16px;
  border: 5px solid var(--color-taupe);
  overflow: hidden;
  padding: 0;
}

.card-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition:
    opacity 480ms var(--ease-out-smooth),
    transform 600ms var(--ease-out-smooth),
    filter 480ms ease;
}

.card-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Panel height is enough for title + description */
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  background: linear-gradient(
    360deg,
    rgba(105, 123, 151, 0.75) 0%,
    rgba(181, 166, 143, 0.75) 100%
  );
  /* Mobile: always open — no translateY */
  transform: translateY(0);
  transition: transform 420ms var(--ease-overshoot);
}

.card-panel h2 {
  font-size: var(--text-h2);
  color: var(--color-cream);
  margin-bottom: 1rem;
  margin-top: -0.2rem;
  text-shadow: 1px 2px 6px rgba(34, 40, 49, 0.35);
}

.card-panel p {
  font-size: var(--text-large);
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.55;
  text-shadow: 1px 1px 4px rgba(34, 40, 49, 0.3);
}

.ornament-practice {
  width: auto;
  height: 40px;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .card-panel {
    transform: translateY(calc(100% - 72px));
  }

  /* On hover: panel slides up to fully reveal description */
  .practice-area-card:hover .card-panel {
    transform: translateY(0);
  }

  /* Image brightens and zooms as panel slides up */
  .practice-area-card:hover .card-image-wrapper img {
    opacity: 1;
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.04);
  }

  /* Card border sharpens on hover */
  .practice-area-card:hover {
    border-color: var(--color-slate);
    box-shadow: 0 16px 32px rgba(34, 40, 49, 0.18);
  }
}

/* ================================
   8. ATTORNEYS SECTION
   ================================ */

.attorney-card {
  display: flex;
  margin-inline: auto;
  max-width: 320px;
  height: 550px;
  overflow: hidden;
  padding: 0;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-direction: column;
  align-items: center;
}

.attorney-card-sub {
  text-align: center;
  margin-inline: auto;
  width: 320px;
  height: 250px;
  background: linear-gradient(to bottom, rgba(253, 250, 247, 0.5) 0%);
  border-radius: 16px;
  border: 5px solid var(--color-taupe);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.attorney-card-sub h2 {
  margin-bottom: 0.5rem;
}

.attorney-card-sub h4 {
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attorney-card-sub p {
  font-size: var(--text-body);
  margin-top: 0.2rem;
}

.attorney-card-sub a {
  width: 48px;
  height: 48px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.attorney-card a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.attorney-image-wrapper img {
  width: 277px;
  height: 305px;
  object-fit: cover;
}

/* Mobile / default */
.attorney-image-wrapper img {
  border-radius: 16px 16px 0 0;
  border-left: 5px solid var(--color-taupe);
  border-right: 5px solid var(--color-taupe);
  border-top: 5px solid var(--color-taupe);
}

/* Desktop override */
@media (min-width: 768px) {
  .attorney-image-wrapper img {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
}

.ornament {
  margin: -20px 0 0 0;
  padding: 0.4rem;
  height: auto;
  width: 194px;
}

/* ================================
   9. FIRM SECTION
   ================================ */

.firm-card {
  display: flex;
  margin-inline: auto;
  max-width: 333px;
  height: 337px;
  overflow: hidden;
  padding: 0;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.firm-image {
  width: 333px;
  height: 337px;
  border-radius: 16px;
  border: 5px solid var(--color-taupe);
  object-fit: cover;
  margin-bottom: var(--space-sm);
}

.firm-copy h1 {
  font-size: calc(var(--text-h1) * 0.9);
  text-align: left;
  margin-inline: auto;
  max-width: 300px;
  color: var(--color-charcoal);
}

.firm-copy p {
  font-size: var(--text-body);
  text-align: left;
  margin-inline: auto;
  max-width: 300px;
  color: var(--color-charcoal);
}

.firm-copy h3 {
  margin-top: var(--space-sm);
}

/* Firm Features */
.firm-features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 300px;
  margin-inline: auto;
  text-align: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.feature-item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0;
  font-size: var(--text-h3);
  font-family: var(--font-body);
  color: var(--color-charcoal);
}

.feature-item p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-charcoal);
  text-align: left;
  margin-inline: auto;
}

/* Firm Stats */
.firm-stats {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) auto 0;
  max-width: 300px;
}

.feature-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.stat-number {
  color: var(--color-slate);
  font-size: var(--text-h3);
  font-weight: 900;
  font-family: var(--font-heading);
  filter: drop-shadow(2px 2px 1px #a3a3a3);
  -webkit-text-stroke: 1px #fdfaf7;
  paint-order: stroke fill;
  max-width: 300px;
  display: flex;
  align-items: center;
}

.stat-text {
  color: var(--color-charcoal);
  font-size: var(--text-body);
  font-family: var(--font-body);
  font-weight: 500;
}

/* ================================
   10. INSIGHTS SECTION
   ================================ */

.insight-card-sub {
  display: flex;
  text-align: center;
  margin-inline: auto;
  width: 333px;
  height: 460px;
  background: linear-gradient(to bottom, rgba(253, 250, 247, 0.5) 0%);
  border-radius: 16px;
  border: 5px solid var(--color-taupe);
  overflow: hidden;
  padding: 0;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.insight-card-sub h2 {
  margin-bottom: 0.5rem;
}

.insight-card-sub h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.insight-card-sub h5 {
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.insight-card-sub p {
  font-size: var(--text-body);
  margin-top: 0.3rem;
}

.insight-card-sub a {
  width: auto;
  height: 64px;
  margin-top: 0.1rem;
  margin-bottom: 2.5rem;
}

.insight-icon {
  margin-top: 1rem;
}

/* Read Insight CTA — always visible on mobile (no hover available).
   Desktop hides it at rest and reveals on hover — see (hover: hover) block. */
.insight-read-link {
  width: auto;
  height: auto;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-slate);
  text-decoration: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

/* ================================
   11. FOOTER SECTION
   ================================ */

/* Mobile Footer */
.footer-card-sub {
  display: flex;
  text-align: center;
  margin-inline: auto;
  margin-top: var(--space-2xl);
  width: 333px;
  height: 650px;
  background: linear-gradient(to bottom, rgba(253, 250, 247, 0.5) 0%);
  border-radius: 16px;
  border: 5px solid var(--color-taupe);
  overflow: hidden;
  padding: 0;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-sm);
  z-index: 1;
}

.footer-subscribe {
  display: flex;
  transform: translate(0, 5.8rem);
  text-align: center;
  justify-content: center;
  align-items: center;
  position: relative;
}

.footer-subscribe input[type="email"] {
  padding: 11px;
  text-align: center;
  border-radius: 16px 0 0 16px;
  border: 5px solid var(--color-taupe);
  gap: var(--space-sm);
  height: 48px;
  width: 190px;
}

.footer-subscribe button[type="submit"] {
  background: var(--color-taupe);
  color: var(--color-charcoal);
  border: 2px solid var(--color-taupe);
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-base);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  height: 48px;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: -1rem;
  margin-top: var(--space-xl);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-h2);
  color: var(--color-charcoal);
}

.footer-utility {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  color: var(--color-charcoal);
  margin-top: var(--space-lg);
}

.icons {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: space;
  gap: 1rem;
}

.monogram {
  width: 198px;
  height: 98px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(2px 2px 2px #cbcbcb);
}

.copyright {
  font-size: calc(var(--text-body) * 0.8);
  text-align: center;
  margin-bottom: -0.5rem;
}

.icon-active {
  opacity: 0;
}

/* ================================
   12. BUTTONS & UTILITIES
   ================================ */

.button-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-base);
}

.button-primary:hover {
  background: linear-gradient(
    90deg,
    rgba(181, 166, 143, 1) 0%,
    rgba(253, 250, 247, 1) 100%
  );
  color: var(--color-charcoal);
  /* opacity: 0.9; */
  font-weight: 600;
}

/* ================================
   13. ANIMATIONS
   ================================ */

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================================================
   14. My Mark
   ================================================ */

.my-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.my-mark a {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #141414;
  gap: 0.5rem;
}

/* ================================================
   15. MEDIA QUERIES - DESKTOP (768px+)
   ================================================ */

@media (min-width: 768px) {
  /* Update Font Size */
  :root {
    --base-font-size: 1.125rem;
  }

  /* ================================
   MICRO ANIMATIONS — handled by AOS
   (Animate On Scroll library)
   data-aos attributes on HTML elements
   control all scroll reveal animations.
   AOS CSS loaded via CDN in index.html.
   ================================ */

  /* ================================
   TRANSITIONS — always on (no hover needed)
   ================================ */

  /* Section headers */
  .section-header01,
  .section-header02,
  .section-header03,
  .section-header04 {
    transition:
      transform 220ms ease,
      box-shadow 220ms ease,
      background-color 220ms ease;
  }

  /* Attorney card base transitions */
  .attorney-card {
    transition:
      transform 260ms var(--ease-out-smooth),
      filter 260ms ease;
  }

  .attorney-card-sub {
    transition:
      border-color 260ms ease,
      background-color 320ms ease;
  }

  /* Attorney image */
  .attorney-image-wrapper img {
    transition:
      transform 520ms var(--ease-out-smooth),
      filter 320ms ease;
  }

  /* Attorney LinkedIn icon — hidden by default, revealed on hover */
  .attorney-card .attorney-card-sub a img {
    opacity: 0;
    transform: translateY(4px);
    transition:
      opacity 240ms ease,
      transform 240ms ease;
  }

  /* Insight card base transitions */
  .insight-card-sub {
    transition:
      transform 260ms var(--ease-out-smooth),
      box-shadow 260ms ease,
      border-color 260ms ease,
      background 360ms ease,
      color 360ms ease;
  }

  /* Insight icon */
  .insight-card-sub a img {
    transition:
      transform 280ms ease,
      filter 280ms ease;
    filter: invert(0);
  }

  /* Insight text elements — pre-wire for color flip */
  .insight-card-sub h2,
  .insight-card-sub h3,
  .insight-card-sub h5,
  .insight-card-sub p {
    transition:
      color 320ms ease,
      transform 260ms var(--ease-out-smooth);
  }

  /* Footer subscribe */
  .footer-subscribe input[type="email"] {
    transition:
      transform 260ms var(--ease-out-smooth),
      border-color 200ms ease,
      box-shadow 200ms ease,
      background-color 200ms ease;
  }

  .footer-subscribe input[type="email"]:focus {
    border-color: var(--color-slate);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(105, 123, 151, 0.18);
    outline: none;
  }

  .footer-subscribe button[type="submit"] {
    transition:
      transform 160ms ease,
      background 200ms ease,
      color 200ms ease,
      box-shadow 200ms ease;
  }

  .footer-subscribe button[type="submit"]:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 2px 2px 4px rgba(34, 40, 49, 0.25);
  }

  /* ================================
   HOVER STATES — mouse only
   (hover: hover) guards against touch devices
   at any screen size, including large tablets
   ================================ */

  @media (hover: hover) and (pointer: fine) {
    /* Section headers */
    .section-header01:hover,
    .section-header02:hover,
    .section-header03:hover,
    .section-header04:hover {
      transform: translateY(-2px);
      background-color: rgba(253, 250, 247, 0.82);
      box-shadow: 3px 4px 10px rgba(34, 40, 49, 0.1);
    }

    /* Attorney card */
    .attorney-card:hover .attorney-card-sub {
      background: linear-gradient(
        to bottom,
        rgba(253, 250, 247, 0.9) 0%,
        rgba(230, 225, 217, 0.85) 100%
      );
    }

    .attorney-card:hover .attorney-image-wrapper img {
      transform: scale(1.05);
      filter: saturate(1.08) contrast(1.04) brightness(1.04);
    }

    /* LinkedIn icon reveal on attorney card hover */
    .attorney-card:hover .attorney-card-sub a img {
      opacity: 1;
      transform: translateY(0);
    }

    /* Insight card — full dark flip per Figma spec */
    .insight-card-sub:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(34, 40, 49, 0.22);
      border-color: var(--color-taupe);
      background: linear-gradient(
        360deg,
        rgba(181, 166, 143, 0.25) 0%,
        rgba(181, 166, 143, 1) 50%,
        rgba(105, 123, 151, 0.95) 100%
      );
    }

    .insight-card-sub:hover h2,
    .insight-card-sub:hover h3 {
      color: var(--color-cream);
    }

    .insight-card-sub:hover h5 {
      color: var(--color-charcoal);
    }

    /* Read Insight link — hidden at rest on desktop only.
       Mobile keeps it always visible (set in base styles above). */
    .insight-read-link {
      opacity: 0;
      transform: translateY(8px);
    }

    /* Insight icon — invert to light on dark hover */
    .insight-card-sub:hover a img {
      transform: scale(1.12);
      filter: invert(1) brightness(2.92);
    }

    /* Read Insight link — fades up into view on hover,
       arrives slightly after the icon for a sequenced feel */
    .insight-card-sub:hover .insight-read-link {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 120ms;
      color: var(--color-slate);
      font-weight: 900;
      margin-top: -0.2rem;
    }

    .insight-card-sub .insight-read-link:hover {
      text-decoration: underline;
      color: var(--color-charcoal);
    }

    /* Footer subscribe button */
    .footer-subscribe button[type="submit"]:hover {
      background: var(--color-slate);
      color: var(--color-cream);
      box-shadow: 3px 4px 8px rgba(34, 40, 49, 0.16);
    }

    /* Nav links */
    .nav-links a:hover,
    .nav-links a:focus-visible {
      color: var(--color-slate);
      transform: scale(1.035);
    }

    /* Button primary */
    .button-primary:hover {
      background: linear-gradient(
        90deg,
        rgba(181, 166, 143, 0.5) 0%,
        rgba(253, 250, 247, 0.5) 100%
      );
      color: var(--charcoal);
      box-shadow: 0 4px 12px rgba(34, 40, 49, 0.22);
    }
  }

  /* ================================
     DESKTOP NAVIGATION
     ================================ */

  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    justify-items: space-between;
    align-items: center;
    max-width: 1400px;
    height: 98px;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    margin-left: -21px;
    height: 80px;
    width: 100%;
  }

  /* Hide mobile menu elements */
  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu-overlay {
    display: none;
  }

  /* Show desktop nav */
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0;
    padding: 0;
  }

  ul {
    display: flex;
  }

  .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: var(--text-h3);
    gap: 0rem;
    font-weight: 600;
    margin: 0;
    padding-right: 1rem;
  }

  .nav-links li {
    position: relative;
    padding: 1rem;
  }

  .nav-links li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: var(--color-taupe);
    font-size: 2rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--color-slate);
    transform: scale(1.035);
    text-shadow: 1px 1px 0 rgba(181, 166, 143, 0.35);
  }

  .nav-links a.active,
  .nav-links a[aria-current="page"],
  .nav-links a[aria-current="true"] {
    color: var(--color-charcoal);
    text-shadow:
      1px 1px 0 rgba(253, 250, 247, 0.9),
      2px 2px 0 rgba(181, 166, 143, 0.65);
  }

  .nav-links a.active::before,
  .nav-links a[aria-current="page"]::before,
  .nav-links a[aria-current="true"]::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    top: 50%;
    height: 0.8em;
    background: rgba(181, 166, 143, 0.35);
    border-radius: 2px;
    transform: translateY(-42%);
    z-index: -1;
  }

  .button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      90deg,
      rgba(34, 40, 49, 1) 0%,
      rgba(105, 123, 151, 1) 100%
    );
    color: var(--color-cream);
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    border-radius: 16px;
    height: 50px;
    border: 3px solid var(--color-taupe);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-links a {
    position: relative;
    display: block;
    padding: 1rem 1.35rem;
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-decoration: none;
    text-shadow:
      1px 1px 0 rgba(253, 250, 247, 0.9),
      2px 2px 0 rgba(34, 40, 49, 0.55);
    transition:
      color 200ms ease,
      transform 200ms ease,
      text-shadow 200ms ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--color-slate);
    transform: scale(1.035);
  }

  .nav-links a.active {
    color: var(--color-charcoal);
  }

  .nav-links a.active::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    top: 58%;
    height: 0.55em;
    background: rgba(181, 166, 143, 0.45);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: -1;
  }

  /* ================================
     DESKTOP HERO
     ================================ */

  .hero h2 {
    z-index: -1;
  }

  .hero-wrapper h1 {
    padding-top: 6rem;
  }

  .sub-title {
    display: grid;
    flex-direction: column;
    padding-top: 2rem;
    z-index: 999;
  }

  .mobile-break {
    display: none; /* Hide mobile line break on desktop */
    z-index: 999;
  }

  .guidance-text::after {
    content: "\A"; /* Add line break after "Guidance" on desktop */
    white-space: pre; /* Make the line break work */
    z-index: 999;
  }

  .sub-title br {
    display: none; /* Remove line breaks on desktop */
    z-index: 999;
  }

  .sub-title::after {
    content: " for businesses, professionals, and individuals who need steady guidance through important matters.";
    z-index: 999;
  }

  /* ================================
    Practice Areas Section
   ================================ */

  .practice-areas {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px; /* adjust this value */
  }

  .practice-area-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-xl);
    width: 100%;
    padding-left: 4rem;
    padding-right: 4rem;
  }

  /* Ensure card dimensions hold on desktop */
  .practice-area-card {
    display: grid;
    flex-direction: column;
    align-items: center;
    width: 306px;
    max-width: 306px;
    height: 500px;
    flex-shrink: 0;
    margin: 0;
    text-align: center;
  }

  .practice-area-card h2 {
    color: var(--color-cream);
    padding-bottom: 0.5rem;
  }

  .practice-area-card p {
    color: var(--color-cream);
    padding-bottom: 0.5rem;
  }

  /* ================================
    ATTORNEYS SECTION
   ================================ */

  .attorneys {
    scroll-margin-top: 160px; /* adjust this value */
  }

  .attorney-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 12rem;
    padding-right: 12rem;
  }

  .attorney-card-sub {
    text-align: center;
    margin-inline: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Add relative positioning for absolute children */
    padding: 0;
  }

  .attorney-image-wrapper {
    width: 290px;
    height: 310px;
    overflow: hidden; /* This keeps the image clipped to the frame */
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    border: 5px solid var(--color-taupe);
    border-bottom: 0;
    background: linear-gradient(to bottom, rgba(253, 250, 247, 0.5) 0%);
  }

  .attorney-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the frame without stretching */
    transition: transform 0.5s ease; /* Smoothly animates the zoom */
  }

  .attorney-image-wrapper:hover img {
    transform: scale(1.2); /* Zooms the image in by 20% on hover */
  }

  /* ================================
    FIRM SECTION
   ================================ */

  .firm {
    scroll-margin-top: -50px; /* adjust this value */
  }

  .firm {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    max-width: 1280px;
    margin: auto auto;
    width: 100%;
  }

  .section-header03 {
    grid-column: 1 / -1; /* spans both columns */
  }

  .firm-copy,
  .firm-features,
  .firm-stats {
    grid-column: 1; /* left column */
  }

  .firm-lobby {
    display: grid;
    grid-column: 2; /* right column */
    grid-row: 2 / 5; /* spans multiple rows */
    align-items: center;
    justify-content: center;
  }

  /* Left column text styling */
  .firm-copy {
    max-width: 100%;
  }

  .firm-copy h1 {
    padding-top: var(--space-lg);
    font-size: calc(var(--text-h2) * 1.5);
    text-align: left;
    max-width: 100%;
    color: var(--color-charcoal);
    letter-spacing: 2px;
  }

  .firm-copy p {
    font-size: var(--text-body);
    text-align: left;
    max-width: 100%;
    color: var(--color-charcoal);
    letter-spacing: 2px;
  }

  /* Features - horizontal layout */
  .firm-features {
    display: grid;
    grid-row: 3; /* position below the copy */
    grid-auto-flow: column;
    gap: var(--space-2xl);
    margin-top: -5rem;
    max-width: 100%;
  }

  .feature-item {
    display: grid;
    grid-row: 3; /* position below the copy */
    grid-auto-flow: column;
    gap: var(--space-sm);
    margin-top: -8rem;
  }

  .feature-item img {
    width: 32px;
    height: 32px;
  }

  .feature-item {
    font-size: var(--text-h2);
    max-width: 800px;
    letter-spacing: 2px;
    color: var(--color-charcoal);
  }

  /* Stats - horizontal layout */
  .firm-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0;
    color: var(--color-charcoal);
    transform: translate(0rem, -2em);
  }

  .feature-stat {
    flex-direction: row;
    align-items: flex-start;
  }

  .stat-number {
    font-size: calc(var(--text-h2) * 1.1);
    letter-spacing: 2px;
  }

  .stat-text {
    font-size: var(--text-h2);
    font-family: var(--font-heading);
    max-width: 800px;
    padding-left: 10px;
    letter-spacing: 2px;
    color: var(--color-charcoal);
  }

  /* Add "Years of" to third stat on desktop */
  .feature-stat:nth-child(3) .stat-text::before {
    content: "Years of ";
  }

  /* Right column image */

  .firm-card {
    background-image: url("..assets/images/office-lobby.webp");
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 618px;
    height: 600px;
    transform: translate(2rem, -3em);
    padding-left: 24px;
    padding-right: 0;
  }

  .firm-image {
    width: 618px;
    height: 600px;
    padding-right: 0;
    border-radius: 16px;
    border: 5px solid var(--color-taupe);
    /* object-fit: cover; */
  }

  /* ================================
   INSIGHTS SECTION
   ================================ */

  .insights {
    scroll-margin-top: 160px; /* adjust this value */
  }

  .insight-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-xl);
    flex-wrap: wrap;
    height: 460px;
    width: 100%;
    padding-left: 14rem;
    padding-right: 14rem;
  }

  .insight-card-sub {
    text-align: center;
    width: 333px;
    height: 460px;
    background: linear-gradient(to bottom, rgba(253, 250, 247, 0.5) 0%);
    border-radius: 16px;
    border: 5px solid var(--color-taupe);
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .insight-card-sub a {
    width: auto;
    height: 64px;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .insight-icon {
    margin-top: 1rem;
  }

  /* ================================
     DESKTOP FOOTER
     ================================ */

  .footer-card-sub {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto;
    width: 1400px;
    max-width: 1400px;
    height: 250px;
    background: linear-gradient(to bottom, rgba(253, 250, 247, 0.5) 0%);
    border-radius: 16px;
    border: 3px solid var(--color-taupe);
    transform: translate(-6.25rem, 0em);
  }

  .footer-subscribe {
    transform: translate(0, 5.8rem);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-inline: auto;
    z-index: 999;
  }

  .footer-subscribe input[type="email"] {
    border: 3px solid var(--color-taupe);
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    font-size: var(--text-body);
    color: var(--color-charcoal);
    font-weight: 700;
    margin-top: -1rem;
    justify-self: center;
    transform: translate(5rem, 5rem);
  }

  .footer-contact a:hover {
    color: var(--color-slate);
    font-weight: 700;
  }

  .footer-contact a {
    position: relative;
    padding-right: var(--space-md);
  }

  .footer-contact a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: var(--color-charcoal);
  }

  .footer-utility {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-self: center;
    gap: var(--space-md);
    font-size: var(--text-small);
    margin-top: -1rem;
    transform: translate(5rem, 5rem);
  }

  .footer-utility li {
    position: relative;
    padding-right: var(--space-md);
  }

  .footer-utility li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: var(--color-charcoal);
  }

  .icons {
    grid-column: 1;
    grid-row: 4;
    display: flex;
    margin-top: -1rem;
    margin-right: 3rem;
    justify-self: center;
    align-self: center;
    gap: var(--space-md);
    transform: translate(5rem, 2rem);
  }

  .icons li img {
    width: 48px;
    height: 48px;
    transition: filter 240ms ease;
  }

  .icon-item {
    position: relative;
    width: 48px;
    height: 48px;
  }

  .icon-item img {
    position: absolute;
    inset: 0;
    width: 48px;
    height: 48px;
    transition: opacity 220ms ease;
  }

  .icon-active {
    opacity: 0;
  }

  @media (hover: hover) and (pointer: fine) {
    .icon-item:hover .icon-default {
      opacity: 0;
    }

    .icon-item:hover .icon-active {
      opacity: 1;
    }
  }

  .monogram {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    align-self: center;
    width: 120px;
    height: auto;
    transform: translate(-1.5rem, 1rem);
  }

  .copyright {
    text-align: center;
    margin-top: var(--space-md);
    margin-bottom: -3rem;
  }

  .my-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 2rem;
  }

  .my-mark a {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #141414;
    gap: 0.5rem;
  }

  /* ================================================
   Ink Blot Parallax Elements (Desktop Only)
   ================================================ */

  @media (min-width: 768px) {
    body {
      overflow-x: hidden;
    }

    .page-art {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      min-height: 100%;
      pointer-events: none;
      overflow: hidden;
      z-index: 1;
    }

    .ink {
      position: absolute;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      pointer-events: none;
      will-change: transform;
      z-index: 1;
    }

    .ink01 {
      background-image: url("../assets/parallax/ink01.webp");
      width: 3600px;
      height: 2600px;
      top: 0%;
      left: -70%;
      opacity: 0.05;
    }

    .ink02 {
      background-image: url("../assets/parallax/ink02.webp");
      width: 4000px;
      height: 1000px;
      top: 50%;
      left: -80%;
      opacity: 0.05;
    }

    .ink03 {
      background-image: url("../assets/parallax/ink03.webp");
      width: 3000px;
      height: 2000px;
      top: 80%;
      left: -10%;
      opacity: 0.05;
    }

    .ink04 {
      background-image: url("../assets/parallax/ink04.webp");
      width: 3000px;
      height: 1000px;
      top: 145%;
      left: -90%;
      opacity: 0.05;
    }

    header,
    main,
    section,
    .nav-wrapper {
      position: relative;
      z-index: 1;
    }
  }
}

/* ================================================
   END OF STYLESHEET
   ================================================ */
