@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --primary-blue: #0A2463;
  --accent-blue: #3E92CC;
  --off-white: #F0F3F4;
  --light-gray: #B0BEC5;
  --pure-white: #FFFFFF;
  --text-dark: #0A2463;
  --text-light: #F0F3F4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease-in-out;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--pure-white);
}

.btn-primary:hover {
  background-color: #3582b8;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  color: var(--pure-white);
}

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

.btn-white:hover {
  background-color: var(--off-white);
  transform: scale(1.05);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-pulse {
  animation: pulse 0.8s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-fade-in-up {
    opacity: 1;
    transform: none;
  }
  .btn-pulse {
    animation: none;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  padding: 20px 0;
}

.header.scrolled {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

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

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--pure-white);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: all 0.2s ease-out;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-number {
  color: var(--pure-white);
  font-weight: 500;
}

.phone-number:hover {
  color: var(--accent-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--pure-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-blue);
  z-index: 999;
  padding: 80px 20px 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  color: var(--pure-white);
  font-size: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .mobile-cta {
  margin-top: 30px;
  text-align: center;
}

.close-mobile-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 30px;
  cursor: pointer;
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero-dallas-skyline.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 36, 99, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--pure-white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-content .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--pure-white);
}

.section-title {
  font-size: 36px;
  color: var(--primary-blue);
  margin-bottom: 40px;
  text-align: center;
}

.intro-section {
  background-color: var(--off-white);
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.intro-content p {
  font-size: 18px;
  color: var(--text-dark);
}

.services-section {
  background-color: var(--pure-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.15s ease-out;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.service-card h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.why-choose-section {
  background-color: var(--off-white);
  background-image: url('../images/professional-legal-setting.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(240, 243, 244, 0.95);
}

.why-choose-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.why-choose-content h2 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.why-choose-content p {
  font-size: 18px;
  color: var(--text-dark);
}

.testimonials-section {
  background-color: var(--pure-white);
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 40px;
}

.testimonial-slide.active {
  display: block;
  animation: fadeInUp 0.5s ease-in-out;
}

.testimonial-quote {
  font-size: 20px;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
}

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--accent-blue);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-block {
  background-color: var(--off-white);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-blue);
}

.testimonial-block blockquote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.testimonial-block footer {
  font-weight: 700;
  color: var(--primary-blue);
}

.cta-section {
  background-color: var(--primary-blue);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 36px;
  color: var(--pure-white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  color: var(--off-white);
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-section .btn {
  animation: pulse 0.8s ease-in-out;
}

.about-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/abstract-justice-concept.png');
  background-size: cover;
  background-position: center;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 36, 99, 0.7);
}

.about-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  color: var(--pure-white);
}

.story-section {
  background-color: var(--pure-white);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content h2 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.story-content p {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.team-section {
  background-color: var(--off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-member-card {
  background-color: var(--pure-white);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.team-member-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-member-card:hover img {
  filter: grayscale(0%);
}

.team-member-card h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin: 20px 0 10px;
  padding: 0 20px;
}

.team-member-card p {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px;
}

.values-section {
  background-color: var(--pure-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px;
}

.value-card h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.value-card p {
  font-size: 16px;
  color: var(--text-dark);
}

.services-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/professional-legal-setting.png');
  background-size: cover;
  background-position: center;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 36, 99, 0.7);
}

.services-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  color: var(--pure-white);
}

.practice-areas-section {
  background-color: var(--pure-white);
}

.process-section {
  background-color: var(--off-white);
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--light-gray);
}

.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.timeline-icon span {
  color: var(--pure-white);
  font-size: 32px;
  font-weight: 700;
}

.timeline-item h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 16px;
  color: var(--text-dark);
}

.faq-section {
  background-color: var(--pure-white);
}

.accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.accordion-item {
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px;
  background-color: var(--off-white);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  font-size: 18px;
  color: var(--primary-blue);
  font-family: 'Merriweather', serif;
}

.accordion-icon {
  font-size: 24px;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-content p {
  padding: 20px;
  font-size: 16px;
  color: var(--text-dark);
}

.service-detail-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/professional-legal-setting.png');
  background-size: cover;
  background-position: center;
}

.service-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 36, 99, 0.7);
}

.service-detail-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  color: var(--pure-white);
}

.service-intro-section {
  background-color: var(--pure-white);
}

.service-intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-intro-content h2 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.service-intro-content p {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.service-intro-content h3 {
  font-size: 24px;
  color: var(--primary-blue);
  margin: 30px 0 15px;
}

.benefits-section {
  background-color: var(--off-white);
}

.benefits-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon span {
  color: var(--pure-white);
  font-size: 20px;
}

.benefit-item h4 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.benefit-item p {
  font-size: 16px;
  color: var(--text-dark);
}

.testimonials-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/abstract-justice-concept.png');
  background-size: cover;
  background-position: center;
}

.testimonials-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 36, 99, 0.7);
}

.testimonials-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  color: var(--pure-white);
}

.awards-section {
  background-color: var(--off-white);
}

.awards-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.award-item {
  text-align: center;
  padding: 20px;
}

.award-item img {
  width: 100px;
  height: 100px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  margin-bottom: 10px;
}

.award-item:hover img {
  filter: grayscale(0%);
}

.award-item p {
  font-size: 14px;
  color: var(--text-dark);
}

.contact-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero-dallas-skyline.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 36, 99, 0.7);
}

.contact-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  color: var(--pure-white);
}

.contact-form-section {
  background-color: var(--pure-white);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form h2 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 30px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

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

.contact-form .btn {
  width: 100%;
}

.contact-details-section {
  background-color: var(--off-white);
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.contact-detail-item h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.contact-detail-item p {
  font-size: 16px;
  color: var(--text-dark);
}

.contact-map {
  margin-top: 40px;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

.footer {
  background-color: var(--primary-blue);
  color: var(--pure-white);
  padding: 60px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  color: var(--pure-white);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--off-white);
}

.footer-section a:hover {
  color: var(--accent-blue);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.footer-logo span {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  transition: all 0.3s ease;
}

.social-links a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  font-size: 14px;
  color: var(--light-gray);
}

.legal-links a:hover {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .header-inner .nav-links {
    display: none;
  }

  .header-cta {
    display: none;
  }

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

  .hero-section {
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .intro-content h2 {
    font-size: 26px;
  }

  .intro-content p {
    font-size: 16px;
  }

  .process-timeline {
    flex-direction: column;
  }

  .process-timeline::before {
    display: none;
  }

  .timeline-item {
    padding: 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-hero h1,
  .services-hero h1,
  .testimonials-hero h1,
  .contact-hero h1,
  .service-detail-hero h1 {
    font-size: 36px;
  }

  .contact-map iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

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

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

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

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