/* Content Styling for AJ&Co SITE25 */

/* Lawyer Bio Styling */
.bio-header {
  margin-bottom: 40px;
}

/* Large Headshot for Bio Page */
.lawyer-headshot-container {
  position: relative;
  max-width: 300px;
  margin: 0 0 0 auto; /* Changed from margin: 0 auto to align right */
}

.lawyer-headshot-large {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Creates a perfect square */
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--base-shade);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lawyer-headshot-large img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lawyer-headshot-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.lawyer-headshot-large:hover img {
  transform: scale(1.05);
}

/* Social links overlay */
.lawyer-social-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.lawyer-headshot-large:hover .lawyer-social-overlay {
  opacity: 1;
}

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

.lawyer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.lawyer-headshot-large:hover .lawyer-social-link {
  transform: translateY(0);
  opacity: 1;
}

.lawyer-headshot-large:hover .lawyer-social-link:nth-child(1) {
  transition-delay: 0.05s;
}

.lawyer-headshot-large:hover .lawyer-social-link:nth-child(2) {
  transition-delay: 0.1s;
}

.lawyer-headshot-large:hover .lawyer-social-link:nth-child(3) {
  transition-delay: 0.15s;
}

.lawyer-headshot-large:hover .lawyer-social-link:nth-child(4) {
  transition-delay: 0.2s;
}

.lawyer-headshot-large:hover .lawyer-social-link:nth-child(5) {
  transition-delay: 0.25s;
}

.lawyer-social-link:hover {
  background: white;
  color: var(--base);
  transform: translateY(-5px);
}

/* Download link specific styles for lawyer bio */
.lawyer-social-link.download-link {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lawyer-social-link.download-link:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--base);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Lawyer details */
.lawyer-title {
  font-size: 3rem;
  color: var(--t-medium);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

.lawyer-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.lawyer-specialty-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--t-medium);
  transition: all 0.3s ease;
}

.lawyer-specialty-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--t-bright);
}

/* List Styling */
.content__block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.content__block ol {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.content__block ul li, 
.content__block ol li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--t-medium);
}

/* Nested Lists */
.content__block ul ul,
.content__block ol ol,
.content__block ul ol,
.content__block ol ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

.content__block ul ul li {
  list-style: circle;
}

.content__block ul ul ul li {
  list-style: square;
}

/* Fix for any other areas that might have list-style: none */
.content__block .rich-text ul,
.content__block .redactor-content ul,
.content__block .cke_editable ul,
.content__block .editor-content ul {
  list-style: disc;
  padding-left: 20px;
}

/* Contact Form Styling */
.contact-form-wrapper {
  margin-bottom: 40px;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--t-medium);
  font-weight: var(--font-weight-medium);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--t-bright);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--base);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

.contact-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--base);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-form .btn:hover {
  background: var(--base-shade);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-form .btn i {
  font-size: 1.1rem;
}

/* Form validation and messages */
.form-message {
  margin-bottom: 25px;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #22c55e;
  color: #22c55e;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: #ef4444;
}

.form-message__content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-message__content i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.field-error {
  margin-top: 5px;
  color: #ef4444;
  font-size: 0.85rem;
}

.ph-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Contact Information Styling */
.contact-info {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h4 {
  color: var(--t-bright);
  margin-bottom: 25px;
  font-weight: var(--font-weight-medium);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--base);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--t-bright);
  margin-bottom: 4px;
  font-weight: var(--font-weight-medium);
}

.contact-item p {
  margin: 0;
  color: var(--t-medium);
}

.contact-item a {
  color: var(--t-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Locations Styling */
.locations-title {
  color: var(--t-bright);
  margin-bottom: 30px;
  font-weight: var(--font-weight-medium);
  font-size: 1.5rem;
}

.location-card {
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.location-card h5 {
  color: var(--t-bright);
  margin-bottom: 20px;
  font-weight: var(--font-weight-medium);
  font-size: 1.2rem;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.location-detail:last-of-type {
  margin-bottom: 20px;
}

.location-detail i {
  font-size: 1rem;
  color: var(--base);
  margin-top: 2px;
  flex-shrink: 0;
}

.location-detail strong {
  display: block;
  color: var(--t-bright);
  margin-bottom: 2px;
  font-weight: var(--font-weight-medium);
  font-size: 0.85rem;
}

.location-detail p {
  margin: 0;
  color: var(--t-medium);
  font-size: 0.9rem;
  line-height: 1.4;
}

.location-detail a {
  color: var(--t-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

.location-detail a:hover {
  color: var(--base);
}

.location-actions {
  margin-top: 20px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--base);
  border: 1px solid var(--base);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--base);
  color: white;
  transform: translateY(-1px);
}

.btn-outline i {
  font-size: 1rem;
}

/* Maps Button - White Capsule Style */
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 20px; /* Capsule shape */
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-maps:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-maps i {
  font-size: 0.9rem;
}

/* Modern Locations Section - Stack Style */
.locations-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.locations-header {
  text-align: center;
  margin-bottom: 60px;
}

.locations-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--base);
  margin-bottom: 16px;
  line-height: 1.2;
}

.locations-subtitle {
  font-size: 1.1rem;
  color: var(--base-shade);
  margin: 0;
  opacity: 0.8;
}

.locations-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 40px;
}

.location-stack-item {
  display: flex;
  width: 100%;
  height: 400px;
  padding-bottom: 2rem;
}

.location-stack__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: var(--base);
  border: 1px solid var(--stroke-elements);
  border-radius: var(--_radius);
}

.location-stack__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location-stack__title {
  padding: 2.6rem 3rem 0 3rem;
  margin-bottom: 2.3rem;
}

.location-stack__title h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: white;
  margin: 0;
  line-height: 1.2;
}

.location-stack__details {
  padding: 0 3rem 2.6rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.location-addresses {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.address-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.address-icon i {
  font-size: 1rem;
}

.address-content {
  flex: 1;
}

.address-text {
  font-size: 1.5rem;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.location-contact {
  display: flex;
  font-size: 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-icon i {
  font-size: 0.9rem;
}

.contact-content {
  flex: 1;
}

.contact-link {
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.location-actions {
  margin-top: 1rem;
}

.location-stack__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.location-bg-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Responsive adjustments for location stack */
@media only screen and (min-width: 768px) {
  .location-stack-item {
    height: 450px;
    padding-bottom: 3rem;
  }
  
  .location-stack__title {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 60%;
    z-index: 3;
  }
  
  .location-stack__details {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 60%;
    z-index: 3;
    padding: 0 3rem 3rem 3rem;
  }
  
  .location-bg-img {
    right: -10%;
  }
}

@media only screen and (min-width: 992px) {
  .location-bg-img {
    right: 0;
  }
}

@media only screen and (min-width: 1600px) {
  .location-stack-item {
    height: 500px;
    padding-bottom: 5rem;
  }
  
  .location-stack__details {
    padding: 0 5rem 4.6rem 5rem;
  }
  
  .location-stack__title {
    padding: 2.6rem 5rem 0 5rem;
  }
}

/* Enhanced Maps Button */
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-maps:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-maps i {
  font-size: 0.9rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Center lawyer headshot on mobile */
  .lawyer-headshot-container {
    margin: 0 auto;
    max-width: 250px; /* Slightly smaller on mobile */
  }
  
  .lawyer-title {
    font-size: 2.5rem;
  }
  
  /* Contact form mobile adjustments */
  .contact-info {
    margin-top: 30px;
    padding: 20px;
  }
  
  .location-card {
    padding: 20px;
  }
  
  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Modern locations mobile styles */
  .locations-section {
    padding: 0 16px;
  }
  
  .locations-header {
    margin-bottom: 40px;
  }
  
  .locations-title {
    font-size: 2rem;
  }
  
  .locations-subtitle {
    font-size: 1rem;
  }
  
  .locations-stack {
    gap: 1.5rem;
    margin-bottom: 32px;
  }
  
  .location-stack-item {
    height: 350px;
    padding-bottom: 1.5rem;
  }
  
  .location-stack__title {
    padding: 2rem 2rem 0 2rem;
    margin-bottom: 1.5rem;
  }
  
  .location-stack__title h2 {
    font-size: 1.8rem;
  }
  
  .location-stack__details {
    padding: 0 2rem 2rem 2rem;
    gap: 1.25rem;
  }
  
  .location-addresses {
    gap: 0.75rem;
  }
  
  .location-contact {
    gap: 0.5rem;
  }
  
  .address-text {
    font-size: 0.95rem;
  }
  
  .contact-link {
    font-size: 0.95rem;
  }
}