/* ======================================================
   COMPANY PAGE
   ====================================================== */

/* Page introduction */
/* Company hero */

.company-introduction {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: clamp(75px, 10vw, 120px) 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  isolation: isolate;
}

.company-hero-background {
  position: absolute;
  inset: -15%;
  z-index: -2;
  background:
    url("../images/leader.jpeg")
    center / cover no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.company-introduction::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      rgba(7, 22, 68, 0.76),
      rgba(7, 22, 68, 0.66)
    );
  content: "";
}

.company-introduction-content {
  position: relative;
  z-index: 1;
  max-width: 950px;
}

.company-introduction .eyebrow {
  color: var(--gold);
}

.company-introduction h1 {
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--white);
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.05;
  text-shadow: 0 3px 9px rgba(0, 0, 0, 0.7);
}

.company-introduction p:not(.eyebrow) {
  max-width: 65ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
}
/* Founder section */

.company-founder {
  padding: clamp(70px, 9vw, 115px) 0;
  background: var(--white);
}

.founder-layout {
  display: grid;
  grid-template-columns:
    minmax(280px, 430px)
    minmax(0, 1fr);
  align-items: center;
  gap: clamp(45px, 8vw, 95px);
}

.founder-figure {
  position: relative;
  margin: 0;
  text-align: center;
}

.founder-image-wrapper {
  position: relative;
  padding: 12px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.founder-image-wrapper::before {
  position: absolute;
  top: 22px;
  right: -20px;
  bottom: -20px;
  left: 22px;
  z-index: -1;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  content: "";
}

.founder-profile-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 4px);
  background: #d9dee8;
  object-fit: cover;
  object-position: center;
}

.founder-figure figcaption {
  display: inline-block;
  margin-top: 28px;
  padding: 9px 19px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-biography .eyebrow {
  margin-bottom: 8px;
  color: var(--gold);
}

.founder-biography h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
  text-align: left;
}

.founder-biography > p:not(.eyebrow) {
  margin-bottom: 19px;
  line-height: 1.85;
}

.founder-quote {
  position: relative;
  margin: 32px 0 0;
  padding: 24px 26px 24px 31px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--light-blue);
  color: var(--navy);
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.65;
}

/* Company background section */

.company-background {
  padding: clamp(70px, 9vw, 115px) 0;
  background: var(--surface);
}

.company-background-figure {
  width: min(100%, 980px);
  margin: 0 auto clamp(50px, 8vw, 80px);
  text-align: center;
}

.company-background-image-wrapper {
  position: relative;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.company-background-image-wrapper::after {
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(212, 175, 55, 0.75);
  border-radius: calc(var(--radius) - 3px);
  content: "";
  pointer-events: none;
}

.company-background-image {
  display: block;
  width: 100%;
  max-height: 560px;
  aspect-ratio: 16 / 8;
  border-radius: calc(var(--radius) - 4px);
  background: #d9dee8;
  object-fit: cover;
  object-position: center top;
}

.company-background-figure figcaption {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.company-background-content {
  width: min(100%, 860px);
  margin-inline: auto;
  text-align: center;
}

.company-background-content .eyebrow {
  margin-bottom: 8px;
  color: var(--gold);
}

.company-background-content h2 {
  margin: 0 auto 28px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}

.company-background-content > p:not(.eyebrow) {
  margin-bottom: 21px;
  line-height: 1.85;
  text-align: left;
}

/* Professional principles */

.company-principles {
  position: relative;
  padding: clamp(65px, 9vw, 105px) 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.company-principles::before {
  position: absolute;
  top: -170px;
  left: 50%;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(212, 175, 55, 0.13);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.company-principles .content-container {
  position: relative;
  z-index: 1;
}

.company-principles .eyebrow {
  color: var(--gold);
}

.company-principles h2 {
  margin: 0 0 45px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.company-principles-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.company-principle {
  position: relative;
  min-height: 245px;
  padding: 37px 29px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.company-principle:hover {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  transform: translateY(-7px);
}

.principle-number {
  position: absolute;
  top: 8px;
  right: 16px;
  color: rgba(255, 255, 255, 0.08);
  font-family: "Times New Roman", Times, serif;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}

.company-principle h3 {
  position: relative;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 1.4rem;
}

.company-principle p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

/* Responsive layout */

@media (max-width: 850px) {
  .founder-layout {
    grid-template-columns: 1fr;
  }

  .founder-figure {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .founder-biography {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .founder-biography .eyebrow,
  .founder-biography h2 {
    text-align: center;
  }

  .company-principles-grid {
    grid-template-columns: 1fr;
  }

  .company-principle {
    width: min(100%, 650px);
    min-height: 0;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .company-introduction {
    min-height: 460px;
    padding: 65px 0;
  }

  .company-hero-background {
    inset: -10%;
    background-position: center;
  }
}

@media (max-width: 520px) {
  .company-introduction {
    min-height: 410px;
    padding: 65px 0;
  }

  .company-founder,
  .company-background,
  .company-principles {
    padding: 65px 0;
  }

  .founder-image-wrapper::before {
    right: -8px;
    bottom: -10px;
  }

  .founder-quote {
    padding: 20px;
  }

  .company-background-image {
    min-height: 270px;
    aspect-ratio: auto;
  }

  .company-principle {
    padding: 32px 23px 27px;
  }
}

/* Reduced-motion support */

@media (prefers-reduced-motion: reduce) {
  .company-principle {
    transition: none;
  }

  .company-principle:hover {
    transform: none;
  }
}