/* ===========================================
   LAWCIAL — Section Layouts
   =========================================== */

/* ---- Hero (used by service pages) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.hero__content { max-width: 650px; }

.hero__subtitle {
  color: var(--grey-mid);
  font-size: var(--fs-body);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(72px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; }
  .hero__subtitle { max-width: 100%; }
  .hero__actions { justify-content: center; }
}

/* ---- Services Section ---- */
.services-section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.services-section__header p {
  margin: var(--space-sm) auto 0;
  color: var(--grey-mid);
}

/* ---- Why Us Section (Kümmerlein circles) ---- */
.why-us {
  position: relative;
  overflow: visible;
  padding: 0;
}

.why-us__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.why-us__text {
  width: 42%;
  position: sticky;
  top: 160px;
  z-index: 10;
}

.why-us__text h2 {
  margin-bottom: var(--space-md);
}

.why-us__text p {
  color: var(--grey-mid);
  font-size: 1.125rem;
  line-height: 1.6;
}

.why-us__circles {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 20vh;
}

/* Desktop: overlap circles — enough gap for scroll detection */
@media (min-width: 1024px) {
  .why-us__circles {
    margin-top: -24px;
  }
  .why-us__circles > .why-us__circle + .why-us__circle {
    margin-top: -24px;
  }
}

.why-us__circle {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 1.375rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.why-us__circle--active {
  background-color: var(--blue);
  color: var(--white);
  box-shadow: 0 20px 40px rgba(6, 147, 227, 0.3);
  transform: scale(1.05);
  z-index: 40;
}

.why-us__circle--inactive {
  background-color: rgba(24, 22, 22, 0.04);
  color: var(--grey-mid);
}

/* z-index stacking for overlapping circles */
.why-us__circle[data-index="0"] { z-index: 40; }
.why-us__circle[data-index="1"] { z-index: 30; }
.why-us__circle[data-index="2"] { z-index: 20; }
.why-us__circle[data-index="3"] { z-index: 10; }

@media (min-width: 1024px) {
  .why-us__circle {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 1023px) {
  .why-us__inner {
    flex-direction: column;
    align-items: center;
  }

  .why-us__text {
    width: 100%;
    position: relative;
    top: auto;
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .why-us__circles {
    width: 100%;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: var(--space-xl);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .why-us__circles > .why-us__circle + .why-us__circle {
    margin-top: 0;
  }

  .why-us__circle {
    width: 140px;
    height: 140px;
    font-size: 0.875rem;
    padding: 1rem;
  }

  /* Mobile: each circle gets its own colour */
  .why-us__circle--active,
  .why-us__circle--inactive {
    transform: none;
    border: none;
  }

  .why-us__circle[data-index="0"] {
    background: #0693E3;
    color: #fff;
    box-shadow: 0 6px 20px rgba(6, 147, 227, 0.35);
  }
  .why-us__circle[data-index="1"] {
    background: #10B981;
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  }
  .why-us__circle[data-index="2"] {
    background: #B45309;
    color: #fff;
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
  }
  .why-us__circle[data-index="3"] {
    background: #8B5CF6;
    color: #fff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  }
}

/* ---- Process Section ---- */
.process-section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.process-section__header p {
  margin: var(--space-sm) auto 0;
  color: var(--grey-mid);
}

/* process-grid layout handled in homepage.css */

/* ---- Testimonials Section ---- */
.testimonials-section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonials-section__header p {
  margin: var(--space-sm) auto 0;
  color: var(--grey-mid);
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto var(--space-lg);
}

.cta-section .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.cta-section .form-input {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.cta-section .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-section .form-input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .cta-section .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Blog Preview ---- */
.blog-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid rgba(24, 22, 22, 0.06);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  color: var(--grey-mid);
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__tag {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-heading);
}

.blog-card__excerpt {
  color: var(--grey-mid);
  font-size: var(--fs-small);
}

/* ---- Footer ---- */
.footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p {
  color: var(--grey-mid);
  font-size: var(--fs-small);
  margin-top: var(--space-sm);
  max-width: 320px;
}

.footer__heading {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: #F5F5F5;
}

.footer__link {
  display: block;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0;
  transition: color var(--duration-fast) var(--ease-expo);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-small);
  color: var(--grey-mid);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  color: var(--grey-mid);
  transition: color var(--duration-fast) var(--ease-expo);
}

.footer__social-link:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
