:root {
  --color-primary-dark: #1E2838;
  --color-primary-dark-alt: #273142;
  --color-primary-green: #005D3F;
  --color-primary-green-light: #006747;
  --color-accent-green: #00A86B;
  --color-background-white: #FFFFFF;
  --color-background-light: #F5F5F5;
  --color-text-dark: #000000;
  --color-text-gray: #333333;
  --color-text-light: #666666;
  --color-border-divider: #E5E5E5;
  --color-form-background: #FFFFFF;
  --color-star-rating: #FFD700;

  --font-display: "Helvetica", 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(--color-text-dark);
  background-color: var(--color-background-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text-gray);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

.container-relative {
  background: white;
}

.container-img {
    width: 100%;
    height: auto;
    z-index: 2;
}

.hero-header {
  position: relative;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  margin-top: -100px;
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 300px;
  height: auto;
  margin-top: 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
  margin-top: 0;
  margin-right: 50px;
}

.phone-link:hover {
  opacity: 0.8;
}

.phone-icon {
  width: 50px;
  height: 50px;
}

.phone-number {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 5rem 1rem;
}

.hero-section {
  position: relative;
  padding-top: calc(5rem + 5rem);
}

.hero-wrap {
  background-image: url('../images/family.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  transform: none;
  -webkit-transform: none;
  backface-visibility: visible;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
  pointer-events: none;
  z-index: 5;
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 15; 
}


.hero-container {
  position: relative;
  z-index: 20;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.hero-text {
  text-align: center;
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: 160px;
}

.hero-label {
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  color: white;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: #e5e5e5;
  font-size: 1.4rem;
  margin-top: 1rem;
}

.hero-tagline {
  color: white;
  font-size: 1.225rem;
  font-weight: 500;
  margin-top: 1.5rem;
}

.hero-form-wrapper {
  width: 100%;
}

.consultation-form {
  background-color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 28rem;
  margin: 0 auto;
}

.form-title {
  text-align: center;
  color: #1e293b;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border: 2px solid var(--color-primary-green);
  background-color: white;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

.form-submit {
  background-color: #10b981;
  color: white;
  padding: 0.875rem;
  width: 100%;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.form-submit:hover {
  background-color: #059669;
  transform: scale(1.02);
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-primary-green);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #004830;
  transform: scale(1.05);
}

.about-section {
  background-color: white;
  padding: 5rem 0;
}

.section-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-pretitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #475569;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-green);
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.about-content {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.5rem;
}

.attorney-section {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.attorney-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.attorney-image-wrapper {
  display: flex;
  justify-content: center;
}

.attorney-image-container {
  position: relative;
  width: 100%;
  max-width: 335px;
  padding-top: 90%;
}

.attorney-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 15%;
  border-radius: 1rem;
  background: linear-gradient(135deg, gold, goldenrod);
}

.attorney-photo {
  position: absolute;
  bottom: 0;
  width: 90%;
  left: 5%;
  height: auto;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.attorney-name-overlay {
  position: absolute;
  bottom: -2rem;
  left: -1rem;
  z-index: 10;
}

.attorney-name-first {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  color: white;
  margin-left: 120px;
}

.attorney-name-last {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  color: #0B5F44;
  margin-left: 170px;
}

.attorney-content {
  text-align: center;
}

.attorney-content-mobile {
  display: none;
}

.attorney-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
}

.attorney-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #0B5F44;
  margin: 1rem 0 1.5rem 0;
}

.attorney-bio {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475569;
}

.testimonials-section {
  position: relative;
  background-color: #1e293b;
  color: white;
  overflow: hidden;
  padding: 5rem 0;
}

.testimonials-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.testimonials-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
}

.testimonials-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-card .stars {
  width: 109px;
  height: 20px;
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e5e5e5;
  margin: 1.5rem 0;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.testimonials-cta {
  text-align: center;
}

.practice-areas-section {
  background-color: white;
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475569;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.practice-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.practice-pill {
  background-color: #1e293b;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.practice-pill:hover {
  background-color: #334155;
  transform: scale(1.05);
}

.offices-section {
  background-color: white;
  padding: 5rem 2rem;
}

.offices-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: #0B5F44;
  margin-bottom: 3rem;
}

.offices-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.office-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.office-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.office-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1rem 0;
}

.office-address {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
}

.footer {
  background-color: #1e293b;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-branding {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem;
}

.footer-email {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.footer-email:hover {
  opacity: 0.85;
}

.footer-logo {
  width: 300px;
  height: auto;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  transition: opacity 0.3s ease;
}

.footer-phone:hover {
  opacity: 0.8;
}

.phone-icon-footer {
  width: 24px;
  height: 24px;
}

.email-icon-footer {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.footer-email span {
  vertical-align: middle;
}

.footer-contact svg path,
.phone-icon-footer,
.email-icon-footer {
  stroke: var(--color-accent-green);
}


.footer-bottom {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-attribution {
  color: #94a3b8;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-attribution:hover {
  color: #e5e5e5;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-content-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-text {
    width: 50%;
    text-align: left;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-form-wrapper {
    width: 40%;
  }

  .about-title {
    font-size: 3rem;
  }

  .attorney-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .attorney-image-container {
    max-width: 445px;
  }

  .attorney-name-overlay {
    bottom: -2.5rem;
    left: -2.5rem;
  }

  .attorney-name-first,
  .attorney-name-last {
    font-size: 5rem;
  }

  .attorney-content {
    text-align: center;
  }

  .attorney-heading {
    font-size: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offices-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .container-img {
    width: 100%;
    height: 380px;
    margin: 0;
    
  }

  body,
  .hero-section {
    background-attachment: scroll;
  }
  
  .hero-wrap {
    background-attachment: scroll;
  }

  .logo {
    width: 250px;
    margin-top: -70px;
  }

  .hero-header {
    margin-top: -10px;
    position: static;
    flex-direction: column;
  }

  .hero-section {
    padding-top: 1rem; 
  }

  .hero-content-wrapper {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 130px !important;
  }

  .attorney-content {
    padding-right: 1rem;
    text-align: center;
  }

  .attorney-content-mobile {
    display: block;
    margin-top: 2rem;
  }

  .attorney-image-wrapper {
    margin-top: -80px;
  }

  .attorney-desktop {
    display: none;
  }
  
  .phone-icon {
    width: 30px;
    height: 30px;
  }

  .phone-link {
    margin-top: -50px;
    margin-left: 50px;
    background: #000000;
    padding: 10px;
    border-radius: 5px;
  }

  .phone-number {
    font-size: 1.4rem;
    margin-right: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .about-section,
  .attorney-section,
  .testimonials-section,
  .practice-areas-section,
  .offices-section {
    padding: 3rem 0;
  }

  .section-title,
  .testimonials-title,
  .offices-title {
    font-size: 2rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .section-description,
  .about-text {
    font-size: 1rem;
  }

  .consultation-form {
    padding: 1.5rem;
  }

  .practice-pill {
    font-size: 0.9375rem;
  }

  .footer-logo {
    width: 200px;
  }

  .footer-branding {
    flex-direction: column;
  }

  .footer-content {
    text-align: center;
    align-items: center;
  }

  .footer-contact {
    align-items: center;
    margin-top: -40px;
  }

  .footer-email {
    font-size: 1.125rem;
  }

  .footer-lg {
    margin-top: -30px;
  }

  .footer-attribution {
    display: none;
  }
}
