:root {
  --color-dark: #1a1a1a;
  --color-light: #f5f5f5;
  --color-gold: #b8860b;
  --color-blue: #0d47a1;
  --color-gold-hover: #9a7209;
  --color-blue-hover: #0a3b8c;
  --color-gray: #333333;
  --font-primary: 'Georgia', serif;
  --font-fallback: 'Roboto', sans-serif;
  --transition-base: 0.3s ease-out;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  font-family: var(--font-fallback);
}

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

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-blue);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: var(--color-blue-hover);
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
  transform: translateY(-2px);
}

.link-cta {
  color: var(--color-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.link-cta:hover {
  color: var(--color-blue);
}

.link-cta svg {
  transition: transform var(--transition-base);
}

.link-cta:hover svg {
  transform: translateX(4px);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: block;
}

.logo img {
  height: 32px;
  width: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-light);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-close svg {
  width: 24px;
  height: 24px;
  fill: var(--color-light);
}

.nav-links {
  text-align: center;
}

.nav-links a {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light);
  padding: 15px 30px;
  transition: background-color var(--transition-base);
}

.nav-links a:hover,
.nav-links a:focus {
  background-color: var(--color-gray);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80%;
  max-width: 300px;
  margin-top: 30px;
}

.nav-actions .btn {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-size: 1.2rem;
}

.nav-actions .btn-call {
  background-color: var(--color-gold);
  color: var(--color-dark);
}

.nav-actions .btn-email {
  background-color: var(--color-blue);
  color: var(--color-light);
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  color: var(--color-light);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.desktop-nav a:hover::after {
  width: 70%;
}

.header-cta {
  display: none;
}

.header-phone {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

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

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-light);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--color-light);
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-phone {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 30px;
  display: block;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.hero .btn {
  font-size: 1rem;
  padding: 15px 35px;
}

/* Section Styles */
section {
  padding: 60px 0;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.section-light {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 15px auto 0;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #666;
}

/* About Section (Home) */
.about-section {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.service-card {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 30px;
  border-radius: 8px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.service-card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.service-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #ccc;
}

/* Why Choose Us Section */
.bio-section {
  display: grid;
  gap: 40px;
  align-items: start;
}

.bio-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bio-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.bio-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.bio-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-gold);
  border-left: 3px solid var(--color-gold);
  padding-left: 20px;
  margin: 25px 0;
}

.bio-content p {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-blue);
  color: var(--color-light);
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background-color: var(--color-gold);
  color: var(--color-dark);
}

.cta-section .btn:hover {
  background-color: var(--color-gold-hover);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.5);
}

/* Page Banner */
.page-banner {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 120px 20px 60px;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1.1rem;
  color: #ccc;
}

/* About Page Styles */
.about-story {
  padding: 60px 0;
}

.about-story h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.about-story p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px;
  background-color: var(--color-light);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.value-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--color-gold);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--color-dark);
}

.value-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Services Page Styles */
.practice-areas {
  display: grid;
  gap: 30px;
}

.practice-area {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 40px;
  border-radius: 8px;
}

.practice-area h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.practice-area p {
  font-size: 1rem;
  line-height: 1.7;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.service-item p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

/* Case Studies Page Styles */
.case-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--color-gold);
  background-color: transparent;
  color: var(--color-dark);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-fallback);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-gold);
  color: var(--color-dark);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.case-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.case-card-image {
  height: 200px;
  background-color: var(--color-gray);
  overflow: hidden;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-content {
  padding: 25px;
}

.case-card-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.case-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-dark);
}

.case-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.case-card-outcome {
  font-weight: 600;
  color: var(--color-blue);
  font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  gap: 50px;
}

.contact-form-wrapper {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.contact-form-wrapper h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.contact-form-wrapper > p {
  color: #666;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
  font-family: var(--font-fallback);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-fallback);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.contact-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--color-dark);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--color-gold);
  margin-bottom: 5px;
  font-family: var(--font-fallback);
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--color-dark);
}

.contact-item a:hover {
  color: var(--color-blue);
}

.hours-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
  border-bottom: none;
}

/* Footer Styles */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand .logo img {
  height: 30px;
}

.footer-tagline {
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
}

.footer h4 {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-fallback);
  font-weight: 700;
}

.footer-links a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-light);
}

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

.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #ccc;
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: #ccc;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #999;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: #999;
}

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

/* Privacy & Terms Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--color-dark);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--color-dark);
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #444;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(184, 134, 11, 0);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-overlay {
    display: none !important;
  }

  .desktop-nav {
    display: flex;
    gap: 10px;
  }

  .header-phone {
    display: block;
  }

  .header-phone a {
    color: var(--color-light);
    font-size: 0.95rem;
    font-family: var(--font-fallback);
  }

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

  .header-cta {
    display: block;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .about-section {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-section {
    grid-template-columns: 300px 1fr;
    gap: 50px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-areas {
    grid-template-columns: 1fr 1fr;
  }

  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .section-title {
    font-size: 2.5rem;
  }

  section {
    padding: 80px 0;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 4rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 8px;
  z-index: 1001;
  transition: top 0.3s;
}

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