/* Homepage hero */
.it-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fafaf7;
}

.it-site .it-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.it-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.97) 30%,
    rgba(255, 255, 255, 0.85) 46%,
    rgba(255, 255, 255, 0.15) 68%,
    rgba(255, 255, 255, 0) 100%
  );
}

.it-hero-inner {
  display: flex;
  align-items: center;
  min-height: 510px;
  padding-block: 70px;
}

.it-hero-content {
  width: 60%;
  max-width: 680px;
}

.it-hero .it-eyebrow {
  max-width: 560px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1.5px;
}

.it-site .it-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 3.6vw, 50px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.it-hero-description {
  max-width: 490px;
  font-size: 18px;
  line-height: 1.7;
}

.it-hero .it-actions {
  margin-top: 28px;
}

.it-hero .it-button--outline {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1024px) {
  .it-hero-content {
    width: 68%;
  }

  .it-hero-inner {
    min-height: 470px;
    padding-block: 56px;
  }
}

@media (max-width: 767px) {
  .it-hero {
    display: flex;
    flex-direction: column;
  }

  .it-hero::before {
    display: none;
  }

  .it-hero-inner {
    order: 0;
    min-height: auto;
    padding-block: 42px 32px;
  }

  .it-hero-content {
    width: 100%;
    max-width: none;
  }

  .it-site .it-hero h1 {
    font-size: clamp(32px, 7.5vw, 42px);
    letter-spacing: -0.6px;
  }

  .it-hero .it-eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .it-hero-description {
    max-width: none;
    font-size: 16px;
  }

  .it-site .it-hero-image {
    position: relative;
    inset: auto;
    order: 1;
    z-index: auto;
    width: 100%;
    height: 250px;
    object-position: right center;
  }

  .it-hero .it-actions {
    gap: 12px;
  }

  .it-hero .it-button {
    padding-inline: 18px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .it-hero .it-actions {
    flex-direction: column;
  }

  .it-hero .it-button {
    width: 100%;
  }
}

/* Information strip below hero */
.it-firm-strip {
  background: var(--it-light);
  border-block: 1px solid var(--it-border);
}

.it-firm-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 28px;
}

.it-firm-fact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: 28px;
}

.it-firm-fact:first-child {
  padding-left: 0;
}

.it-firm-fact:last-child {
  padding-right: 0;
}

.it-firm-fact + .it-firm-fact {
  border-left: 1px solid #cbdce9;
}

.it-firm-number {
  flex-shrink: 0;
  color: var(--it-green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.it-site .it-firm-fact h2 {
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.3;
}

.it-site .it-firm-fact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 921px) {
  .it-firm-fact {
    gap: 12px;
    padding-inline: 16px;
  }

  .it-site .it-firm-fact h2 {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .it-firm-strip-grid {
    grid-template-columns: 1fr;
    padding-block: 8px;
  }

  .it-firm-fact,
  .it-firm-fact:first-child,
  .it-firm-fact:last-child {
    padding: 20px 0;
  }

  .it-firm-fact + .it-firm-fact {
    border-left: 0;
    border-top: 1px solid #cbdce9;
  }

  .it-firm-number {
    width: 36px;
  }
}

/* Homepage services */
.it-services {
  background: var(--it-white);
}

.it-services-heading {
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
}

.it-services-heading .it-eyebrow {
  justify-content: center;
}

.it-site .it-services-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.it-site .it-services-heading > p:last-child {
  margin-bottom: 0;
  font-size: 17px;
}

.it-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.it-service-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  background: var(--it-white);
  box-shadow: 0 4px 16px rgba(16, 54, 91, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.it-service-card:hover {
  border-color: #a7cec3;
  box-shadow: 0 8px 24px rgba(16, 54, 91, 0.08);
}

.it-service-card > div {
  min-width: 0;
}

.it-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e7f3fc;
  color: var(--it-navy);
}

.it-service-card:nth-child(3n + 2) .it-service-icon {
  background: #fff0e4;
}

.it-service-card:nth-child(3n) .it-service-icon {
  background: #e6f5eb;
}

.it-service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.it-site .it-service-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

.it-site .it-service-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .it-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .it-services-heading {
    margin-bottom: 26px;
  }

  .it-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .it-service-card {
    padding: 24px 20px;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .it-service-card {
    transition: none;
  }
}

/* About the firm */
.it-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.it-founder-photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  background: var(--it-white);
  box-shadow: 0 8px 28px rgba(16, 54, 91, 0.06);
}

.it-site .it-founder-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.it-founder-photo figcaption {
  padding: 18px 20px;
  text-align: center;
}

.it-founder-photo figcaption strong {
  display: block;
  color: var(--it-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.4;
}

.it-founder-photo figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--it-text);
  font-size: 13px;
}

.it-about-content {
  min-width: 0;
}

.it-site .it-about-content h2 {
  margin-bottom: 24px;
}

.it-about-content > p:not(.it-eyebrow) {
  font-size: 16px;
  line-height: 1.8;
}

.it-about-note {
  margin-top: 26px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--it-orange);
}

.it-about-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--it-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.3;
}

.it-site .it-about-note p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 921px) {
  .it-about-grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 767px) {
  .it-about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .it-founder-photo {
    max-width: 340px;
    margin-inline: auto;
  }

  .it-about-content > p:not(.it-eyebrow) {
    font-size: 15px;
  }
}

/* Our professional approach */
.it-values {
  padding-block: 38px;
  background: var(--it-white);
}

.it-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.it-value {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-inline: 26px;
}

.it-value:first-child {
  padding-left: 0;
}

.it-value:last-child {
  padding-right: 0;
}

.it-value + .it-value {
  border-left: 1px solid var(--it-border);
}

.it-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: #e7f3fc;
  color: var(--it-navy);
}

.it-value:nth-child(2) .it-value-icon {
  background: #fff0e4;
}

.it-value:nth-child(3) .it-value-icon {
  background: #e6f5eb;
}

.it-value-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.it-site .it-value h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.it-site .it-value p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .it-value {
    flex-direction: column;
    padding-inline: 20px;
  }
}

@media (max-width: 767px) {
  .it-values {
    padding-block: 12px;
  }

  .it-values-grid {
    grid-template-columns: 1fr;
  }

  .it-value,
  .it-value:first-child,
  .it-value:last-child {
    flex-direction: row;
    padding: 24px 0;
  }

  .it-value + .it-value {
    border-left: 0;
    border-top: 1px solid var(--it-border);
  }
}

/* Homepage contact */
.it-home-contact {
  padding-block: 48px;
  background: var(--it-navy);
  color: var(--it-white);
}

.it-home-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.it-home-contact-inner > div:first-child {
  max-width: 720px;
}

.it-home-contact .it-eyebrow {
  color: #dce9f5;
}

.it-site .it-home-contact h2 {
  margin-bottom: 14px;
  color: var(--it-white);
  font-size: clamp(28px, 3vw, 38px);
}

.it-site .it-home-contact p:not(.it-eyebrow) {
  margin: 0;
  color: #dce9f5;
}

.it-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.it-site .it-button--white {
  background: var(--it-white);
  border-color: var(--it-white);
  color: var(--it-navy);
}

.it-site .it-button--white:hover {
  background: #e7f3fc;
  border-color: #e7f3fc;
  color: var(--it-navy);
}

.it-site .it-contact-secondary {
  color: #dce9f5;
  font-size: 14px;
  text-align: center;
}

.it-site .it-contact-secondary:hover {
  color: var(--it-white);
}

.it-home-contact :focus-visible {
  outline-color: var(--it-white);
}

@media (max-width: 921px) {
  .it-home-contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .it-contact-actions {
    align-items: flex-start;
  }
}