:root {
  --primary: #233567;
  --secondary: #f8f9fa;
  --accent: #fff;
  --muted: #e6eaf3;
  --gray: #b9c6de;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  scroll-snap-type: y mandatory;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: var(--primary);
  color: var(--accent);
  padding: 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 32px 0 24px 0;
}

.logo {
  height: 48px;
  z-index: 1;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

header .main-nav {
  margin-left: auto;
  margin-right: auto;
}

.main-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-bottom 0.2s;
}

.main-nav a:hover,
.main-nav a:focus {
  border-bottom: 2px solid #fff;
  opacity: 1;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 32px 0 24px 0;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* Ensures nav is always centered in header */
}

.header-cta {
  background: var(--accent);
  color: var(--primary);
  border-radius: 20px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 0.98em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  margin-left: 24px;
  box-shadow: none;
  letter-spacing: 0.02em;
}

.header-cta:hover {
  background: var(--muted);
  color: var(--primary);
  z-index: 1;
}

/* For homepage only */
.hero.hero-home {
  height: calc(100vh - 80px);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

/* For all other pages */
.hero {
  background: var(--primary);
  color: var(--accent);
  padding: 64px 0 56px 0;
  display: block;
  overflow: visible;
  height: auto;
  min-height: unset;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15em;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-gavel lottie-player {
  width: 480px;
  height: 480px;
  filter: brightness(0) invert(1);
}

/* WHAT SETS US APART SECTION */
.apart-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 1px;
  color: var(--primary);
  text-align: center;
}

.apart-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.apart-list li {
  background: #f2f4fa;
  border-radius: 14px;
  margin-bottom: 22px;
  padding: 24px 28px;
  font-size: 1.13em;
  color: #233567;
  box-shadow: 0 2px 8px rgba(35,53,103,0.04);
  line-height: 1.7;
}

.apart-list li strong {
  display: block;
  font-size: 1.08em;
  margin-bottom: 8px;
  color: #233567;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.values-label {
  text-align: left;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 2px;
  margin-bottom: 22px;
  margin-left: 12px;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.values-list li {
  display: flex;
  align-items: center;
  background: #f2f4fa;
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 1.13em;
  color: #233567;
  box-shadow: 0 2px 8px rgba(35,53,103,0.04);
  line-height: 1.7;
  font-weight: 500;
  transition: box-shadow 0.18s, transform 0.18s;
}

.values-list li:hover {
  box-shadow: 0 6px 24px rgba(35,53,103,0.11);
  transform: translateY(-3px) scale(1.02);
}

.values-icon {
  color: #b9c6de;
  font-size: 1.6em;
  margin-right: 18px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .values-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* PRACTICE AREAS GRID */
.practice-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  justify-items: center;
  margin-top: 36px;
  grid-auto-rows: 1fr; /* Ensures all rows are equal height */
}

.practice-area {
  background: #2e4379;
  border-radius: 16px;
  color: #fff;
  width: 100%;
  min-width: 0;
  min-height: 180px;
  height: 180px; /* Fixed height for all boxes */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center icon and label vertically */
  box-shadow: 0 2px 8px rgba(35,53,103,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
  cursor: pointer;
  padding: 0 10px;
}

.practice-area:hover {
  box-shadow: 0 6px 24px rgba(35,53,103,0.12);
  transform: translateY(-4px) scale(1.03);
}

.practice-icon {
  display: block;
  font-size: 2.6em;
  margin-bottom: 14px;
  color: #fff;
  opacity: 0.85;
}

.practice-label {
  font-size: 1.13em;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.2;
  margin-top: 2px;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,53,103,0.55);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: #233567;
  border-radius: 16px;
  padding: 36px 32px 28px 32px;
  max-width: 420px;
  width: 90%;
  margin: 120px auto 0 auto;
  box-shadow: 0 8px 48px rgba(35,53,103,0.18);
  position: relative;
  animation: modal-fadein 0.25s;
}

@keyframes modal-fadein {
  from { opacity: 0; transform: translateY(-40px);}
  to { opacity: 1; transform: translateY(0);}
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 2em;
  color: #6c7ba0;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #233567;
}

.section-white {
  background: var(--accent);
  color: var(--primary);
  padding: 96px 0;
  text-align: center;
}

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

.section-label {
  color: var(--gray);
  font-size: 1em;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.section-description {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.7;
}

.service-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 48px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-col {
  width: 48%;
  text-align: left;
}

.service-col h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
}

.service-col p {
  margin-bottom: 12px;
}

.service-col ul {
  margin: 0 0 18px 18px;
  padding: 0;
}

.service-col li {
  margin-bottom: 8px;
  font-size: 1em;
}

.service-img {
  width: 48%;
  min-height: 120px;
  background: #e6eaf3;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  border-radius: 24px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-light {
  background: var(--accent);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--muted);
}

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

.btn-dark:hover {
  background: #2e4379;
}

.hero .hero-title {
  font-size: 3em !important;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero .hero-subtitle {
  font-size: 1.5em !important;
  font-weight: 400;
  margin-bottom: 48px;
  color: #e6eaf3;
  max-width: 650px;
  line-height: 1.4;
}

.btn-hero {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 16px 44px;
  font-size: 1.25em;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  text-decoration: none;
  display: inline-block;
  margin-top: 32px;
  box-shadow: none;
  letter-spacing: 0.01em;
}

.btn-hero:hover,
.btn-hero:focus {
  background: #fff;
  color: var(--primary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-left: 12px;
}

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

.cta-bar {
  background: #e6eaf3;
  color: var(--primary);
  padding: 36px 0;
}

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer {
  background: #1a2542;
  color: var(--accent);
  padding: 0;
  margin-top: 0;
  border-radius: 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 48px 0 48px 0;
  border-radius: 0;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-left .logo {
  height: 36px;
  margin-bottom: 12px;
}

.footer-center {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  min-width: 120px;
  padding-top: 16px;
}

.footer-social {
  color: #fff;
  font-size: 1.5em;
  margin: 0 8px;
  transition: color 0.2s;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none !important;
}

.footer-social:visited,
.footer-social:active,
.footer-social:focus,
.footer-social:hover {
  text-decoration: none !important;
}

.footer-right {
  align-items: flex-end;
  gap: 8px;
  flex-direction: column;
  padding-top: 8px;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2px;
  font-size: 1em;
  transition: opacity 0.2s;
}

.footer-right a:hover {
  opacity: 0.7;
}

.footer-copyright {
  margin-top: 14px;
  font-size: 0.85em;
  color: #c6d0e1;
  line-height: 1.4;
  letter-spacing: 0.2px;
  max-width: 260px;
  word-break: break-word;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

@media (max-width: 1100px) {
  .practice-areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .service-row, .cta-flex, .footer-grid {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .service-col, .service-img {
    width: 100%;
  }
  .footer-center, .footer-right {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    gap: 18px;
  }
  .footer-center {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .container {
    width: 96%;
  }
  .hero-flex {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px 0 32px 0;
  }
  .footer-left, .footer-center, .footer-right {
    align-items: center;
    flex-direction: column;
  }
  .footer-right {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }
  footer {
    border-radius: 0;
  }
  .practice-areas-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .practice-area {
    height: 140px; /* Smaller height for mobile */
    width: 100%;
  }
  .footer-center {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}

.hero-simple {
  background: var(--primary);
  color: var(--accent);
  padding: 72px 0 64px 0;
  text-align: center;
}

.hero-simple-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-simple h1 {
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero-simple p {
  font-size: 1.18em;
  font-weight: 400;
  margin-bottom: 0;
  color: #e6eaf3;
  max-width: 600px;
}

.about-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  width: 100%;
}

.about-photo-50,
.about-academic-50 {
  flex: 1 1 0;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.about-photo-50 {
  background: #f4f6fa;
  justify-content: flex-end;
  padding: 48px 0;
}

.about-photo-50 img {
  width: 320px;
  max-width: 90%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(35,53,103,0.10);
  display: block;
}

.about-academic-50 {
  padding: 48px 48px 48px 48px;
  justify-content: flex-start;
  flex-direction: column;
}

@media (max-width: 900px) {
  .about-row {
    flex-direction: column;
  }
  .about-photo-50,
  .about-academic-50 {
    width: 100%;
    max-width: 100%;
    padding: 32px 0;
    justify-content: center;
    text-align: center;
  }
  .about-academic-50 {
    padding: 24px 0;
  }
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0;
}

.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(35,53,103,0.10);
  background: #f4f6fa;
  display: block;
}

.about-academic {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
  text-align: left;
}

@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .about-academic {
    max-width: 100%;
    text-align: center;
  }
}

.practice-icon {
  display: block;
  font-size: 2.6em;
  margin-bottom: 14px;
  color: #fff;
  opacity: 0.85;
}

.apart-carousel-section {
  padding: 96px 0;
  background: var(--accent);
}

.apart-carousel-outer {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.apart-carousel-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: apart-scroll 36s linear infinite;
  will-change: transform;
}

.apart-card {
  background: #f2f4fa;
  border-radius: 20px;
  min-width: 360px;
  max-width: 380px;
  padding: 38px 32px 34px 32px;
  box-shadow: 0 2px 12px rgba(35,53,103,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 8px;
  transition: box-shadow 0.18s, transform 0.18s;
}

.apart-card-icon {
  font-size: 2.4em;
  color: #b9c6de;
  margin-bottom: 18px;
}

.apart-card-title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #233567;
}

.apart-card-desc {
  font-size: 1.05em;
  color: #233567;
  line-height: 1.7;
}

@keyframes apart-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.apart-carousel-outer:hover .apart-carousel-track,
.apart-carousel-outer:focus-within .apart-carousel-track {
  animation-play-state: paused;
}

@media (max-width: 900px) {
  .apart-card {
    min-width: 85vw;
    max-width: 90vw;
    padding: 28px 16px 24px 16px;
  }
  .apart-carousel-track {
    gap: 18px;
  }
}

#story-mission .section-label,
#story-mission .section-description {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.5,.2,.1,1), transform 0.8s cubic-bezier(.5,.2,.1,1);
}

#story-mission.inview .section-label,
#story-mission.inview .section-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.contact-section {
  padding: 96px 0;
  background: var(--accent);
}

.contact-flex {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 320px;
  max-width: 400px;
  padding: 36px 0 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 36px;
  color: #233567;
  letter-spacing: 0.5px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  font-size: 1.15em;
  color: #233567;
}

.contact-icon {
  font-size: 1.5em;
  color: #233567;
  margin-right: 18px;
  flex-shrink: 0;
}

.contact-info-label {
  font-weight: 600;
  margin-right: 8px;
}

.contact-info-link {
  color: #233567;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-info-link:hover {
  color: #4e5d8c;
  text-decoration: underline;
}

/* Contact Form Card */
.contact-form-card {
  flex: 1 1 340px;
  max-width: 440px;
  background: #f2f4fa;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(35,53,103,0.07);
  padding: 38px 32px 34px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-weight: 600;
  color: #233567;
  font-size: 1.07em;
  margin-bottom: 2px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #b9c6de;
  font-size: 1em;
  font-family: inherit;
  background: #fff;
  color: #233567;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #233567;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  align-self: flex-end;
  min-width: 120px;
  font-size: 1.08em;
  padding: 12px 36px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }
  .contact-info,
  .contact-form-card {
    max-width: 100%;
    padding: 0;
  }
  .contact-form-card {
    padding: 28px 14px 24px 14px;
  }
}
