/* Apple Garamon Font */
@font-face {
  font-family: "Apple Garamond";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/AppleGaramond.woff") format("woff2");
}

/* Manrope Font */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Manrope.woff2") format("woff2");
}

html {
  scroll-behavior: smooth;
}

* {
  outline: none;
  border: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --dark: 27, 40, 49;
  --light: 234, 229, 218;
  --light-variant: 229, 223, 209;
  --accent: 195, 161, 85;
}

body {
  background: rgb(var(--light));
  font-family: "Manrope";
  font-size: 1rem;
  color: rgb(var(--dark));
  line-height: 1.4;
}

/* TEXT */
h1,
h2,
h3,
h4 {
  font-family: "Apple Garamond";
  font-weight: normal;
  line-height: 0.9;
}

h1 {
  font-size: 5.5rem;
}

h2 {
  font-size: 4.5rem;
}

h3 {
  font-size: 4rem;
}

h4 {
  font-size: 2rem;
}

h5,
input {
  font-size: 1.25rem;
  line-height: 1.4rem;
}

a,
input[type="submit"] {
  color: rgb(var(--dark));
  display: inline-block;
  width: fit-content;
  transition:
    color 0.2s ease-out,
    background 0.2s ease-out;
}

a.btn,
a.btn.primary:hover,
input[type="submit"]:hover {
  text-decoration: none;
  padding: 1rem 1.5rem;
  color: rgb(var(--dark));
  background: transparent;
  border: 1px rgb(var(--dark)) solid;
}

a.btn.primary,
a.btn:hover,
input[type="submit"] {
  padding: 1rem 1.5rem;
  color: rgb(var(--accent));
  background: rgb(var(--dark));
  border: 1px rgb(var(--dark)) solid;
}

/* WRAPPER */

.wrapper {
  width: 100%;
  max-width: 1280px;
  padding-inline: 2rem;
  margin: 0 auto;
}

/* IMG */

img {
  width: 100%;
  height: auto;
  display: block;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  margin: 0 auto;
  width: 100%;
  z-index: 100;
  padding-block: 2rem;
}

header img {
  width: 12rem;
}

/* SECTION */

section {
  width: 100%;
}

.wrapper.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* HERO */

#hero {
  padding-top: 17rem;
}

#hero .wrapper {
  grid-template-rows: auto auto auto;
}

#hero .wrapper h1 {
  grid-column: 1/8;
}

#hero .wrapper .hero-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 6/13;
  grid-row: 2;
}

#hero .wrapper .hero-image {
  margin-top: 1rem;
  grid-column: 1/13;
  grid-row: 3;
}

/* APPROACH */

#approach,
#trustedRelationships,
#inquiries {
  padding-block: 7rem;
}

#trustedRelationships {
  padding-top: 0;
}

#approach .wrapper,
#trustedRelationships .wrapper,
#inquiries .wrapper {
  text-align: center;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* WHAT WE DO */

#whatWeDo,
#reach,
footer {
  padding-block: 3.5rem;
  background: rgb(var(--light-variant));
}

#whatWeDo .wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#whatWeDo .do-list {
  display: flex;
  gap: 2rem;
}

#whatWeDo .do-item {
  padding: 1.5rem;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px rgb(var(--dark)) solid;
}

#whatWeDo .do-item img {
  width: 3rem;
  height: 3rem;
}

/* GALLERY */

#gallery {
  margin-block: 7rem;
}

#gallery .wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

#gallery .gallery-image {
  width: calc(100% / 3 - 1.334rem);
  aspect-ratio: 3/4;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#gallery .gallery-image img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* REACH */

#reach .wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.reach-stats {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  padding: 1rem 2rem;
  border-right: 1px solid rgb(var(--accent));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.stat-item:last-of-type {
  border: none;
}

.stat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-title img {
  width: 1.125rem;
}

/* PRINCIPLES */

#principles {
  padding: 7rem 0;
}

#principles .section-header {
  max-width: 950px;
  margin: 0 auto 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  font-family: "Manrope";
}

#principles .section-header h3 {
  line-height: 0.9;
}

#principles .section-header p {
  opacity: 0.5;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

.principles-timeline {
  position: relative;
  max-width: 780px;
  width: fit-content;
  margin: 0 auto;
  padding-left: 56px;
}

.timeline-track {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(var(--dark), 0.1);
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: rgb(var(--accent));
  transition: height 0.08s linear;
  z-index: 2;
}

.principle-item {
  position: relative;
  display: flex;
  gap: 0;
  margin-bottom: 80px;
}

.principle-item:last-child {
  margin-bottom: 0;
}

.dot {
  width: 13px;
  height: 13px;
  min-width: 13px;
  border-radius: 50%;
  background: rgb(var(--light));
  border: 1.5px solid rgba(var(--accent), 0.35);
  position: absolute;
  left: -56px;
  top: 6px;
  z-index: 3;
  transition:
    background 0.5s ease,
    border-color 0.5s ease,
    transform 0.4s ease;
}

.dot.active {
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  transform: scale(1.2);
}

.content h4 {
  font-size: 2rem;
  margin-bottom: 0.875rem;
  color: rgb(var(--dark), 0.22);
  transition: color 0.6s ease;
  line-height: 1;
}

.principle-item.active .content h4 {
  color: rgb(var(--dark));
}

.content p {
  max-width: 500px;
  color: rgba(var(--dark), 0);
  line-height: 1.85;
  font-size: 0.9375rem;
  transition:
    color 0.7s ease 0.1s,
    transform 0.6s ease 0.05s;
  transform: translateY(5px);
}

.principle-item.active .content p {
  color: rgba(var(--dark), 1);
  transform: translateY(0);
}

.connector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--accent), 0);
  transition: color 0.5s ease 0.2s;
}

.connector::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.principle-item.active .connector {
  color: rgba(var(--accent), 1);
}

/* LEGAL */

#legalMentions,
#privacyPolicy {
  margin-block: 7rem;
}

#legalMentions .wrapper,
#privacyPolicy .wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#legalMentions .legal,
#privacyPolicy .legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media screen and (max-width: 768px) {
  #principles {
    padding: 80px 0;
  }

  #principles .section-header {
    margin-bottom: 60px;
  }

  .principles-timeline {
    padding-left: 40px;
  }

  .dot {
    left: -40px;
  }

  .principle-item {
    margin-bottom: 56px;
  }

  .content h4 {
    font-size: 1.5rem;
  }
}

/* INQUIRIES */

.inquiries-input {
  display: flex;
  align-items: center;
}

.inquiries-input label {
  display: none;
}

.inquiries-input input[type="email"] {
  width: 100%;
  padding-inline: 0 1.5rem;
  padding-block: 1rem;
  background: transparent;
  border-bottom: 1px solid rgb(var(--dark));
}

.form-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-message.visible {
  opacity: 1;
}

.form-message.success {
  color: rgb(var(--accent));
}

.form-message.error {
  color: #c0392b;
}

/* FOOTER */

footer {
  border-top: 1px solid rgb(var(--accent));
  padding-bottom: 1rem;
}

footer img {
  width: 18rem;
}

footer .wrapper {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

footer .parts {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

footer .left-part {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer .right-part {
  display: flex;
  gap: 4rem;
}

footer .right-part .item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

footer .right-part .list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer h5 {
  font-weight: 700;
}

footer a:hover {
  text-decoration: none;
}

@media screen AND (max-width: 1024px) {
  /* HERO */
  #hero .wrapper h1 {
    grid-column: 1/12;
  }

  #hero .wrapper .hero-description {
    grid-column: 4/13;
  }

  /* GALLERY */
  #gallery .wrapper {
    grid-template-rows: repeat(7, 3.5rem);
  }
}

@media screen AND (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2.5rem;
  }

  h4 {
    font-size: 2rem;
  }

  h5,
  input {
    font-size: 1rem;
  }

  .wrapper {
    padding-inline: 1rem;
  }

  #whatWeDo,
  #reach,
  footer {
    padding-block: 1.75rem;
  }

  #gallery {
    margin-block: 3.5rem 0;
  }

  #approach,
  #trustedRelationships,
  #inquiries {
    padding-block: 3.5rem;
  }

  #hero {
    padding-top: 0;
    height: 100vh;
    display: flex;
    align-items: end;
    padding-bottom: 1rem;
  }

  #hero .wrapper.grid {
    display: flex;
    flex-direction: column;
  }

  #hero .wrapper .hero-image {
    margin: 0;
  }

  #whatWeDo .do-list {
    flex-direction: column;
  }

  #gallery .wrapper {
    gap: 1rem;
  }

  #gallery .gallery-image {
    width: calc(50% - 0.5rem);
  }

  .reach-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgb(var(--accent));
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  footer img {
    width: 14rem;
  }

  footer .parts,
  footer .right-part {
    flex-direction: column;
    gap: 3.5rem;
  }
}
