:root {
  --navy: #0b1d3a;
  --gold: #d4af37;
  --gold-hover: #b5952f;
  --charcoal: #2b2b2b;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e0e0e0;
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography & Utilities */
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.text-charcoal { color: var(--charcoal); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--white);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.bg-navy { background-color: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--gold); }
.bg-light { background-color: var(--light-gray); }

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Header & Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.logo span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.5rem;
}

/* Footer */
.footer {
  border-top: 4px solid var(--gold);
}

.footer-col ul {
  padding-top: 1rem;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--medium-gray);
}

.footer-col a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  background-color: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-links a:hover {
  background-color: var(--gold);
}

.contact-info-footer li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--medium-gray);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.compliance-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.compliance-links a {
  color: var(--medium-gray);
}

.compliance-links a:hover {
  color: var(--gold);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?q=80&w=2112&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(11,29,58,0.95) 0%, rgba(11,29,58,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-contact {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Common Section Styles */
.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.divider {
  height: 3px;
  width: 80px;
  background-color: var(--gold);
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card i {
  font-size: 2.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
}

/* Stats Section */
.stat-item {
  padding: 2rem;
}

.stat-item h3 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Practice Cards */
.practice-card {
  border: 1px solid var(--medium-gray);
  padding: 2.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.practice-card:hover {
  border-color: var(--gold);
  background-color: var(--navy);
  color: var(--white);
}

.practice-card:hover h3, .practice-card:hover .learn-more {
  color: var(--gold);
}

.practice-card:hover .practice-icon {
  color: var(--white);
}

.practice-icon {
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.practice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.learn-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Images */
.placeholder-img {
  background-color: var(--light-gray);
  height: 400px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  background-image: url('office.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.attorney-img {
  background-color: var(--light-gray);
  background-image: url('clevenger.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 500px;
}

/* FAQ Accordion */
details.faq-item {
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

details.faq-item[open] {
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

details.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '\f078';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold);
  transition: transform 0.3s ease;
}

details.faq-item[open] summary::after {
  transform: rotate(180deg);
}

details.faq-item .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--charcoal);
  line-height: 1.8;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.chat-toggle {
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.05);
}

.chat-box {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid var(--medium-gray);
}

.chat-header {
  background-color: var(--navy);
  color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 1rem;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-body {
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.chat-message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-message.system {
  background-color: var(--light-gray);
  color: var(--navy);
  border-left: 3px solid var(--gold);
}

.chat-input {
  display: flex;
  border-top: 1px solid var(--medium-gray);
  padding: 0.5rem;
  background: white;
}

.chat-input input {
  flex-grow: 1;
  border: none;
  padding: 0.5rem;
  outline: none;
}

.chat-input button {
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Result Cards */
.result-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: 4px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.result-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.result-card p {
  font-weight: 500;
  color: var(--navy);
}

/* Page Headers */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: var(--font-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .top-bar-content {
    justify-content: center;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .grid-cols-3, .grid-cols-4, .grid-cols-2 { grid-template-columns: 1fr !important; }
  .about-firm-grid, .attorney-preview-grid { grid-template-columns: 1fr !important; }
  .hero-buttons { flex-direction: column; }
}
