/* ================================================
   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;
}

/* ================================
   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: 130px;
}

/* ================================
   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);
}

.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;
  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;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  
  background-image:
    linear-gradient(
      to bottom,
      rgba(253, 250, 247, 0) 0%,
      rgba(253, 250, 247, 0) 50%,
      rgba(253, 250, 247, 1) 100%
    ),
    url("../assets/images/Hero-01.webp");
  background-size: cover;
  background-position:
    center,
    left -260px center;
  background-repeat: no-repeat;
}

.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);
}

.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;
}

/* 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: var(--space-2xl);
  margin-inline: auto;
  max-width: 306px;
  height: 55px;
  background: rgba(253, 250, 247, 0.9);
  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.9);
  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.9);
  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: var(--space-2xl);
  margin-inline: auto;
  max-width: 128px;
  height: 55px;
  background: rgba(253, 250, 247, 0.9);
  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-area-card {
  text-align: center;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  margin-inline: auto;
  max-width: 306px;
  height: 500px;
  background: linear-gradient(
    to bottom,
    rgba(253, 250, 247, 0.5) 0%,
    rgba(181, 166, 143, 0.5) 100%
  );
  border-radius: 16px;
  border: 5px solid var(--color-taupe);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.practice-area-card h2 {
  font-size: var(--text-h2);
  margin-top: 10px;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.card-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(253, 250, 247, 0.8) 0%,
    rgba(253, 250, 247, 0) 25%,
    rgba(253, 250, 247, 0) 75%,
    rgba(253, 250, 247, 0.8) 100%
  );
  pointer-events: none;
}

.practice-area-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.practice-area-card p {
  font-size: var(--text-large);
  margin: 0;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

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

.attorney-card {
  margin-inline: auto;
  max-width: 320px;
  height: 550px;
  overflow: hidden;
  padding: 0;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  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;
  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);
  object-fit: cover;
}

.ornament {
  margin: -20px 0 0 0;
  padding: 0;
}

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

.firm-card {
  margin-inline: auto;
  max-width: 333px;
  height: 337px;
  overflow: hidden;
  padding: 0;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  display: flex;
  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 {
  text-align: center;
  margin-inline: auto;
  width: 333px;
  height: 408px;
  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;
  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: 64px;
  height: 64px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

/* Mobile Footer */
.footer-card-sub {
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-sm);
  z-index: 1;
}

.footer-subscribe {
  transform: translate(0, 5.8rem);
  text-align: center;
  display: flex;
  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: center;
  gap: 1rem;
}

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

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

/* ================================
   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: var(--color-navy);
  opacity: 0.9;
}

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

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

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

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

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

  .nav-wrapper {
    max-width: 1400px;
    height: 98px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    margin-left: 0;
  }

  /* 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;
  }

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

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

  .nav-links li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: var(--color-taupe);
  }

  .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: 15px 30px;
    border-radius: 16px;
    height: 50px;
    border: 3px solid var(--color-taupe);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
  }

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

  .hero {
    background-position: center center;
    background-size: cover;
  }

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

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

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

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

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

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

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

  /* ================================
    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;
  }

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

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

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

  .firm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1500px;
    margin: auto 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 {
    grid-column: 2; /* right column */
    grid-row: 2 / 5; /* spans multiple rows */
    display: flex;
    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 {
    grid-row: 3; /* position below the copy */
    display: flex;
    flex-direction: row;
    gap: 5rem;
    max-width: 100%;
  }

  .feature-item {
    grid-row: 3; /* position below the copy */
    display: flex;
    flex-direction: row;
    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 {
    max-width: 718px;
    height: 100%;
    transform: translate(2rem, -3em);
    padding-left: 24px;
    padding-right: 0;
  }

  .firm-image {
    width: 718px;
    height: 625px;
    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;
    width: 100%;
    padding-left: 14rem;
    padding-right: 14rem;
  }

  .insight-card-sub {
    text-align: center;
    width: 333px;
    height: 408px;
    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;
  }

  /* ================================
     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);
    font-weight: 400;
    margin-top: -1rem;
    justify-self: center;
    transform: translate(5rem, 5rem);
  }

  .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;
    justify-self: center;
    align-self: center;
    gap: var(--space-md);
    transform: translate(5rem, 2rem);
  }

  .icons li img {
    width: 48px;
    height: 48px;
  }

  .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);
  }
}

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