/* Base Typography and Global Styles */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text-light);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

h1, h2, h3, h4 {
  margin-bottom: var(--space-3);
}

h5, h6 {
  margin-bottom: var(--space-2);
}

h1 {
  font-size: var(--font-size-6xl);
  font-weight: 400;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: 400;
  line-height: var(--line-height-heading);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 400;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 400;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 500;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

p {
  font-family: var(--font-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

/* Base text link style for inside content */
p a, li a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
p a:hover, li a:hover {
  text-decoration-color: var(--color-accent);
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: block;
}

.section-heading {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-3);
}

.section-subheading {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: var(--space-5);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-5) 0;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-3);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin: var(--space-4) 0;
}

/* Custom Cursor styles (only desktop) */
@media (pointer: fine) {
  body.has-custom-cursor {
    cursor: none !important;
  }
  body.has-custom-cursor a, 
  body.has-custom-cursor button, 
  body.has-custom-cursor [role="button"], 
  body.has-custom-cursor input[type="submit"], 
  body.has-custom-cursor input[type="button"], 
  body.has-custom-cursor .navbar__dropdown a, 
  body.has-custom-cursor .navbar__link, 
  body.has-custom-cursor .floating-btn, 
  body.has-custom-cursor .testimonial-arrow {
    cursor: none !important;
  }
  
  .custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 0 2px rgba(0,0,0,0.5); /* Prevents disappearing on light/same-color backgrounds */
    left: -100px; /* start off-screen */
    top: -100px;
  }
  
  .custom-cursor-circle {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999998;
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out;
    box-shadow: 0 0 4px rgba(0,0,0,0.3); /* Outline for visibility */
    left: -100px; /* start off-screen */
    top: -100px;
  }
  
  .custom-cursor-hovered .custom-cursor-circle {
    width: 38px;
    height: 38px;
    background-color: rgba(201, 168, 76, 0.15); /* Light golden transparency */
  }
}

/* Global Hero/Header Subtle Grid Pattern Background */
.about-hero,
.contact-header,
.exp-hero,
.insights-header,
.legacy-hero,
.people-hero,
.tl-hero,
.practice-areas-header {
  background-color: var(--color-primary) !important;
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px) !important;
  background-size: 50px 100% !important;
}

