@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #0D47A1;
  --secondary-blue: #A6CCDF;
  --dark-grey: #333333;
  --white: #FFFFFF;
  --light-grey: #EOFEF;
  --light-bg: #F5F5F5;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-grey);
  line-height: 1.6;
  background-color: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: #0a3675;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

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

.btn-secondary:hover {
  background-color: #8bbdd4;
  box-shadow: 0 4px 15px rgba(166, 204, 223, 0.4);
}

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

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

section {
  padding: 80px 0;
}

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

.section-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  height: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--dark-grey);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary-blue);
}

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

.phone-number {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 15px;
}

.phone-number:hover {
  color: #0a3675;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--dark-grey);
  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(--white);
  z-index: 999;
  padding: 100px 30px 30px;
  overflow-y: auto;
}

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

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 500;
  color: var(--dark-grey);
}

.mobile-nav .contact-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.mobile-nav .phone-number {
  display: block;
  font-size: 20px;
  margin-bottom: 15px;
}

.mobile-nav .email {
  display: block;
  font-size: 16px;
  color: #666;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 80px;
}

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

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

.hero-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

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

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

.hero-small {
  height: 40vh;
  min-height: 300px;
}

/* Page Hero (simpler banner) */
.page-hero {
  background-color: var(--light-bg);
  padding: 150px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  color: var(--primary-blue);
}

/* Services Section */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.service-card p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.7;
}

.service-card .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: var(--light-bg);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 25px;
  background: var(--white);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  color: var(--primary-blue);
}

.feature-item h4 {
  font-size: 18px;
  color: var(--dark-grey);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

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

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

.testimonial-item.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.testimonial-quote::before {
  content: '"';
  font-size: 80px;
  font-family: var(--font-heading);
  color: var(--secondary-blue);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.testimonial-dot.active {
  background-color: var(--primary-blue);
  transform: scale(1.2);
}

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

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.cta-section .btn:hover {
  background-color: var(--secondary-blue);
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer-contact p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--secondary-blue);
}

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

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

.social-links a:hover {
  background-color: var(--primary-blue);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

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

.footer-bottom a {
  margin-left: 20px;
}

/* About Page */
.about-story {
  background-color: var(--white);
}

.about-story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.about-story-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Team Section */
.team-section {
  background-color: var(--light-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.team-member {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.team-member-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
  transform: scale(1.05);
}

.team-member-content {
  padding: 30px;
}

.team-member h3 {
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.team-member .title {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-member p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Values Section */
.values-section {
  background-color: var(--white);
}

.values-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.value-item:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
}

.value-item .icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  color: var(--primary-blue);
}

.value-item h4 {
  font-size: 18px;
  color: var(--dark-grey);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: #666;
}

/* Criminal Defense Page */
.intro-section {
  background-color: var(--white);
}

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

.intro-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

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

.charges-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.charge-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.charge-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.charge-item .icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  color: var(--primary-blue);
}

.charge-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-grey);
}

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

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

.process-step {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.step-content h4 {
  font-size: 20px;
  color: var(--dark-grey);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Family Law Page */
.family-intro {
  background-color: var(--white);
}

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

.matters-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.matter-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.matter-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.matter-item .icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  color: var(--secondary-blue);
}

.matter-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-grey);
}

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

.approach-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background-color: var(--light-bg);
  border-radius: 8px;
}

.approach-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.approach-content .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
  color: var(--primary-blue);
}

/* Contact Page */
.contact-section {
  background-color: var(--white);
}

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

.contact-info h3 {
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 25px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--secondary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.contact-info-item .text h4 {
  font-size: 16px;
  color: var(--dark-grey);
  margin-bottom: 5px;
}

.contact-info-item .text p {
  font-size: 15px;
  color: #666;
}

.contact-info-item .text a {
  color: var(--primary-blue);
}

.contact-form {
  background: var(--light-bg);
  padding: 40px;
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-grey);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s ease;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Map Section */
.map-section {
  padding: 0;
}

.map-embed {
  width: 100%;
  height: 400px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  nav {
    display: none;
  }

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

  .header-actions .phone-number {
    display: none;
  }

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

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

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

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

  .about-story-content {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 768px) {
  header {
    height: 60px;
  }

  .hero {
    height: 60vh;
    margin-top: 60px;
  }

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

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

  .page-hero {
    padding: 100px 0 60px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  section {
    padding: 60px 0;
  }

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

  .features-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about .logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

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

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

  .charges-list,
  .matters-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section h2 {
    font-size: 28px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
