/* ==========================================================================
   1. BASE & HEADER SETUP
   ========================================================================== */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #fdfdfd; /* Off-white for a premium look */
}

.legal-header {
  background-color: #01307e; /* Dark blue to seamlessly match the logo background */
  border-bottom: 1px solid #01307e;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between; /* Separates logo and menu */
  align-items: center;
}

/* 2. Editorial Typography Logo */
.logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.firm-name {
  font-family: 'Playfair Display', 'Cinzel', 'Georgia', serif;
  color: #ffffff; /* Reversed to white for dark header background */
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.firm-tagline {
  color: #cbd5e1; /* Soft light slate for readability */
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 2px;
}

/* 3. Navigation Links */
.legal-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #e2e8f0; /* Reversed to light grey for dark background */
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #f8ce83; /* Text link highlight matches logo gold */
}

.consult-btn {
  text-decoration: none;
  background-color: #ffffff; /* Inverted to white to stand out against the dark header */
  color: #172554;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.consult-btn:hover {
  background-color: #f1f5f9;
}

/* Hamburger Icon Element Base State */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  transition: all 0.3s ease;
}


/* ==========================================================================
   2. HERO SECTION (Desktop Defaults)
   ========================================================================== */
.legal-hero {
  background-color: #ffffff;
  padding-top: 90px;    
  padding-bottom: 40px; 
  border-bottom: 1px solid #e2e8f0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text-block {
  flex: 1.2;
  max-width: 570px;
}

.hero-badge {
  display: inline-block;
  font-size: 1.0rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #01307e; 
  background-color: #ffffff; 
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-text-block h1 {
  font-family: 'Playfair Display', 'Cinzel', 'Georgia', serif;
  font-size: 2.8rem;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 24px 0;
  font-weight: 700;
}

.hero-text-block p {
  margin-bottom: 48px !important;
}

.hero-lead {
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-subtext {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.cta-dark {
  text-decoration: none;
  background-color: #01307e;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.cta-dark:hover {
  background-color: #172554;
}

.cta-link {
  text-decoration: none;
  color: #01307e;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.cta-link:hover {
  color: #f8ce83;
}

.hero-image-block {
  flex: 0.8;
  display: flex;
  justify-content: flex-end;
}

.image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  
}

.image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #01307e;
}

.attorney-img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: cover;
}


/* ==========================================================================
   3. PRACTICE AREAS GRID STYLING
   ========================================================================== */

.expertise-section {
  background-color: #172554;
  padding-top: 60px;    
  padding-bottom: 80px; 
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.2rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
  gap: 30px;
}

.grid-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-card:hover {
  transform: translateY(-5px);
  background-color: #e0e0e0;
  border-color: #01307e;
  box-shadow: 0 20px 30px rgba(1, 48, 126, 0.3);
}

.grid-card h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin: 0 0 12px 0;
  transition: color 0.25s ease;
}

.grid-card:hover h3 {
  color: #0f172a;
}

.grid-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  transition: color 0.25s ease;
}

.grid-card:hover p {
  color: #475569;
}

.card-link {
  text-decoration: none;
  color: #01307e;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.card-link:hover {
  color: #f8ce83;
}

/* ============================================
	EXPERTISE PAGE 
============================================== */
	
/* Sticky Tab Navigation Bar */
.expertise-tabs-nav {
  position: -webkit-sticky; /* Added for Safari compatibility */
  position: sticky;
  top: 140px; /* Pins the tab bar right BELOW your sticky blue header */
  z-index: 900; /* Stays under the main header (z-index: 1000) but above page content */
  background-color: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tabs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto; /* Allows smooth horizontal scrolling on mobile screens */
  white-space: nowrap;
  scrollbar-width: thin; /* Clean scrollbars for modern browsers */
}

/* Individual Tab Links */
.tab-link {
  display: inline-block;
  padding: 14px 18px;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
}

.tab-link:hover {
  color: #0c2340; /* Navy brand color */
  border-bottom-color: #c5a059; /* Gold accent color */
}

.tab-link.active {
  color: #0c2340;
  border-bottom-color: #0c2340;
  background-color: #f8fafc;
}

/* Smooth Scrolling & Sticky Header Offset for Content Sections */
html {
  scroll-behavior: smooth;
}

/* Target IDs to offset the sticky header height so section headers aren't cut off */
.expertise-tabs-nav ~ main section[id], article[id] {
  scroll-margin-top: 140px; /* Primary Header Height + Tab Bar Height + Breathing room */
}

/* Container & Section Padding */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

/* Sub-page Hero Header */

.hero-subpage {
  background-color: #0c2340; /* Navy Blue brand color */
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
}

.hero-subpage h1 {
  font-size: 2.75rem;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #d1d5db;
  max-width: 750px;
  margin: 0 auto;
}

/* Detailed Practice Area Blocks */

.expertise-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  scroll-margin-top: 140px; 
}

.expertise-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid #c5a059; /* Gold accent color */
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.expertise-header h2 {
  font-size: 1.8rem;
  color: #0c2340;
  margin: 0;
}

.expertise-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}

.expertise-content .btn {
  margin-top: 10px;
}

.expertise-banner {
  width: 100%;
  overflow: hidden;
}

.expertise-photo {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* ============================================
   ATTORNEYS PAGE - TWO COLUMN LAYOUT
============================================== */

.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates two equal-width columns */
  gap: 36px;
  align-items: start;
}

.attorney-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.attorney-header {
  border-bottom: 2px solid #c5a059; /* Gold accent line */
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.attorney-header h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #01307e;
  font-size: 2rem;
  margin: 0 0 4px 0;
}

.partner-title {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #475569;
}

.attorney-photo {
  width: 100%;
  height: auto; /* Scales proportionally without cropping */
  object-fit: contain;
  border-radius: 8px 8px 0 0;
  display: block;
  margin-bottom: 2.5rem;
}

/* Section Sub-blocks inside Cards */
.bio-block {
  margin-bottom: 28px;
}

.bio-block:last-child {
  margin-bottom: 0;
}

.bio-block h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #01307e;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}

.bio-block p, 
.bio-block li {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

.bio-block ul {
  padding-left: 20px;
  margin: 8px 0;
}

.bio-block li {
  margin-bottom: 6px;
}

.exp-item {
  margin-bottom: 18px;
}

.exp-item h4 {
  font-size: 1rem;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.exp-role {
  font-size: 0.85rem !important;
  color: #64748b !important;
  font-weight: 600;
  margin-bottom: 6px !important;
}

/* Mobile & Tablet Fallback */
@media (max-width: 968px) {
  .attorneys-grid {
    grid-template-columns: 1fr; /* Stack vertically on phones and tablets */
    gap: 30px;
  }
}

/* ===========
CONTACT PAGE
============== */
.sent { color: #aa0000; font-weight: bold; }

/* Contact Page Two-Column Layout */
.contact-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-info-card,
.contact-form-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact-info-card h2,
.contact-form-card h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #01307e;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 2px solid #c5a059;
  padding-bottom: 10px;
}

.info-item {
  margin-bottom: 20px;
}

.info-item strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-item p {
  margin: 0;
  color: #475569;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
}

.form-group select.form-select {
  width: 100%;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #ffffff;
  box-sizing: border-box;
  appearance: auto; /* Uses standard dropdown arrow styling */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select.form-select:focus {
  outline: none;
  border-color: #01307e;
  box-shadow: 0 0 0 3px rgba(1, 48, 126, 0.1);
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Mobile Fallback */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}


/* ==========================================================================
   4. FOOTER STYLING
   ========================================================================== */
.legal-footer {
  background-color: #01307e;
  color: #cbd5e1;
  padding: 70px 0 0 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 50px 24px;
  display: flex;
  justify-content: space-between; /* Spreads out columns evenly */
  align-items: flex-start;
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr; /* Switch to a single column on phones */
    gap: 40px;
  }
}
.footer-column {
  flex: 1 1 0px; /* Forces all columns to take up equal width */
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 16px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 24px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f8ce83;
}

.towns-split-list {
  display: flex;
  gap: 32px;
}

.towns-split-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.towns-split-list li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #f1f5f9;
}

.footer-bar {
  border-top: 1px solid #ffffff;
  background-color: #01307e;
  padding: 30px 0;
}

.footer-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-bar p {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
}

.footer-bar .disclaimer {
  font-size: 0.75rem;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}
/* Styles the h4 headers to be white and synchronizes top spacing with the logo */
.footer-column h4,
.footer-logo {
  color: #ffffff; /* Forces headers and logo to be pure white */
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0;      /* Keeps the tops pixel-perfectly aligned */
  margin-bottom: 24px; /* Creates an even gap down to the lists/paragraphs */
}

/* ==========================================================================
   5. STRICT MOBILE OVERRIDES (Placing safely at the bottom)
   ========================================================================== */

@media (max-width: 768px) {
  .expertise-tabs-nav {
    display: none;
  }
}

/* Tablet & Mobile Screens Viewports */
@media (max-width: 968px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text-block {
    max-width: 100%;
  }

  .hero-text-block h1 {
    font-size: 2.2rem;
  }
  
  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }

  .cta-dark {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
  }
  
  .hero-image-block {
    justify-content: center;
    width: 100%;
  }
  
  .attorney-img {
    max-width: 100%;
  }

  /* Safely hides the EST. 1970 badge element on mobile layout viewports */
  .hero-badge {
    display: none !important;
  }

  /* Compresses padding to eliminate massive top white space gaps */
  .legal-hero {
    padding-top: 35px !important;
  }
}

/* Precise Mobile Navigation Interventions */
@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .legal-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #01307e;
    padding: 24px 0;
    gap: 20px;
    box-sizing: border-box;
    border-bottom: 2px solid #0b2554;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .legal-nav.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 8px 0;
  }

  .consult-btn {
    margin-top: 10px;
    width: auto;
    display: inline-block;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .towns-split-list {
    gap: 60px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}