:root {
  /* Colours */
  --main-color: black;
  --dark-color: #707689;
  --light-color: #eeeeee;

  /* Fonts */
  --main-font: "futura-pt", sans-serif;
  --main-line-height: 1.5em;

  --menu-text-size: 1em;
  --menu-letter-spacing: 0.04em;
  --menu-text-weight: 500;

  --h-text-size: 1.25em;
  --h-letter-spacing: 0.03em;
  --h-text-weight: 500;

  --body-text-size: 1.125em;
  --body-letter-spacing: 0.03em;
  --body-text-weight: 300;

  /* Fonts large*/
  --h-text-size-l: 1.4em;
  --h-letter-spacing-l: 0.03em;
  --h-text-weight-l: 500;

  --body-text-size-l: 1.5em;
  --body-letter-spacing-l: 0.04em;
  --body-text-weight-l: 300;
}

html,
body {
  margin: 0;
  padding: 0;
}

#main-page {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, auto);
  column-gap: 30px;
}

h1 {
  font-family: var(--main-font), "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--dark-color);
  text-transform: uppercase;
}

/* Main navigation - start */
.main-nav {
  margin: 0;
  grid-column: 1 / span 12;
  grid-row: 1;
  position: sticky;
  align-items: center;
  top: 0px;
  height: auto;
  z-index: 2;
  background: rgba(255, 255, 255, 1);
  min-height: 5vh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 30px;
}

.main-nav-name {
  grid-column: 2 / span 4;
  align-content: center;
}

.main-nav-name a {
  text-decoration: none;
}

.main-nav-name h1 {
  font-family: garamond-atf-micro, "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem); /* ~18–22px fluid */
  font-weight: 400; /* a touch bolder than body, not heavy */
  letter-spacing: 0.01em; /* subtle, no wide tracking */
  line-height: 1.3;
  text-transform: none; /* keep natural case for elegance */
  color: var(--main-color);
}

.nav-links {
  grid-column: 6 / span 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--dark-color);
}

.nav-links a {
  text-decoration: none;
  font-family: var(--main-font), "Inter", "Helvetica Neue", Arial, sans-serif; /* sans */
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem); /* ~15–17px fluid */
  font-weight: 400;
  letter-spacing: 0.06em; /* restrained tracking works well for short labels */
  line-height: 1.2; /* tighter than body */
  color: var(
    --dark-color
  ); /* keep your palette; optionally use #404453 for more contrast */
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .main-nav-name {
    grid-column: 2 / span 10;
    text-align: center;
  }

  .nav-links {
    grid-column: 2 / span 10;
    grid-row: 2;
    padding-bottom: 5px;
  }
}
/* Main navigation - end */

/* About text   - start */
#about {
  grid-column: 2 / span 11;
  grid-row: 2;
}

.about-text {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  column-gap: 30px;
  height: auto;
  min-height: 70vh;
}

.about-main-text {
  grid-column: 1 / span 4;
  align-self: center;
}

.about-main-text h2 {
  margin: 0;
  text-align: left;
  padding: 30px 0 30px 0;
  font-family: garamond-atf-micro, "EB Garamond", Georgia, serif;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-main-text h3 {
  margin: 0;
  text-align: left;
  font-family: var(--main-font);
  font-size: clamp(1.125rem, 1.05rem + 0.6vw, 1.375rem);
  font-weight: var(--body-text-weight);
  color: var(--dark-color);
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
}

.about-history {
  grid-column: 5 / span 7;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 30px;
  align-items: center;
  background-color: var(--light-color);
  min-width: 160px;
}

.about-history-paragraph {
  grid-column: 2 / span 5;
}

.about-history p {
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  text-align: left;
  line-height: var(--main-line-height);
}

@media (max-width: 850px) {
  .about-main-text {
    grid-column: 1 / span 10;
  }

  .about-history {
    display: none;
  }
}
/* About text   - end */

/* Services   - start */
.services {
  grid-column: 2 / span 10;
  grid-row: 3;
  padding-top: 5vh;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
}

.services-card {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.services-card h3 {
  font-family: garamond-atf-micro, "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
  margin: 0;
}

.services-card ul {
  width: 100%;
  list-style: none;
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0;
  line-height: var(--main-line-height);
  color: var(--main-color);
  padding: 0.01em;
}

.services-card li {
  line-height: var(--main-line-height);
  padding: 3px 0;
}

@media (max-width: 1100px) {
  .services {
    flex-wrap: wrap;
    gap: 4vh;
  }
}

/* About - end */

/* Portfolio - start */
#portfolio {
  grid-column: 2 / span 10;
  grid-row: 4;
}

#portfolio h1 {
  margin: 0;
  padding: 10vh 0 0 0;
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 5vh 0 0 0;
  gap: 30px;
}

.figure-1 {
  display: flex;
  flex-wrap: wrap;
  width: 20%;
  max-width: 350px;
  min-width: 250px;
  justify-content: center;
}

.figure-1 img {
  max-width: 100%;
  max-height: 300px;
  align-self: center;
}

.figure-1 p {
  text-align: center;
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
  margin: 5px 0 0 0;
}

.figure-1:hover img {
  transform: scale(1.03); /* Increase the size of the image on hover */
  transition: 1s ease;
}

.figure-1 a {
  text-decoration: none;
  color: black;
}

.figure-1 a:visited {
  text-decoration: none;
  color: #707689;
}

.figure-2 {
  display: flex;
  flex-direction: column;
  width: 20%;
  max-width: 350px;
  min-width: 250px;
}

.figure-2 img {
  max-width: 60%;
  align-self: center;
  max-height: 300px;
}

.figure-2 p {
  text-align: center;
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
  align-self: center;
  margin: 5px 0 0 0;
}

.figure-2:hover img {
  transform: scale(1.03); /* Increase the size of the image on hover */
  transition: 1s ease;
}

.figure-2 a {
  text-decoration: none;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.figure-2 a:visited {
  text-decoration: none;
  color: #707689;
}

@media (max-width: 700px) {
  #portfolio {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    column-gap: 30px;
    height: auto;
  }

  #portfolio h1 {
    grid-column: 1 / span 10;
    grid-row: 1;
  }

  .img-container {
    grid-column: 2 / span 8;
    grid-row: 2;
  }

  .figure-1 {
    width: 100%;
    max-width: none;
    padding-top: 30px;
  }

  .figure-1 img {
    max-width: 100%;
    max-height: none;
  }

  .figure-2 {
    width: 100%;
    max-width: none;
    padding-top: 30px;
  }

  .figure-2 img {
    max-width: 100%;
    max-height: none;
  }
}
/* Portofio - end */

/* People - start */
#people {
  grid-column: 2 / span 10;
  grid-row: 5;
}

#people h1 {
  margin: 0;
  padding-top: 10vh;
}

.people {
  padding-top: 5vh;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 30px;
  row-gap: 5vh;
}

#people h2 {
  font-family: garamond-atf-micro, "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
  text-align: left;
  margin: 0;
}

.people p {
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  text-align: left;
  line-height: var(--main-line-height);
}

.grey {
  color: var(--dark-color);
  font-family: var(--main-font), "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.text {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: right;
}

text p {
  text-align: right;
}

.photo {
  grid-column: 5 / span 3;
}

.photo img {
  width: 100%;
}

@media (max-width: 850px) {
  .text {
    grid-column: 1 / span 10;
  }

  .photo {
    grid-column: 2 / span 8;
    padding-bottom: 5vh;
  }

  .photo:last-of-type {
    padding-bottom: 0;
  }
}

/* People -end */

/* Contact - start */
#contact {
  grid-column: 2 / span 11;
  grid-row: 6;
}

#contact h1 {
  margin: 0;
  padding: 10vh 0 0 0;
}

.contact {
  padding-top: 5vh;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 30px;
  row-gap: 5vh;
}

.contact h2 {
  font-family: garamond-atf-micro, "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
  text-align: left;
  margin: 0;
}

.contact p {
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  text-align: left;
  line-height: var(--main-line-height);
}

.contact a {
  text-decoration: none;
  color: black;
}

.map {
  grid-column: 5 / span 7;
  grid-row: 1 / span 2;
}
.map iframe {
  filter: grayscale(100%);
}

/* Email */
.email {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  padding-top: 5vh;
}

.email a {
  text-decoration: none;
  color: var(--main-color);
}

@media (max-width: 850px) {
  .map {
    grid-column: 1 / span 10;
    grid-row: 3;
  }
}

/* Contact - end */

/* Logos - start */
#logos {
  grid-column: 6/12;
  grid-row: 7;
  width: 100%;
  padding-top: 15vh;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

#logos img {
  height: 45px;
}

.riba {
  height: 60px !important;
}

@media (max-width: 850px) {
  #logos {
    grid-column: 2 / 12;
  }

  #logos img {
    height: 30px;
  }

  .riba {
    height: 45px !important;
  }
}
/* Logos - end */

footer {
  grid-column: 2 / span 10;
  grid-row: 8;
  font-family: var(--main-font);
  font-weight: var(--body-text-weight);
  font-size: clamp(0.88rem, 0.8rem + 0.2vw, 0.95rem);
  letter-spacing: 0;
  line-height: var (var(--main-line-height));
  padding: 15vh 0 5vh 0;
}

/* Project Page - start */
.project-container {
  grid-column: 1 / span 12;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 30px;
}

.project-description {
  grid-column: 2 / span 4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  position: sticky;
  top: max(5vh, 50px);
}

.project-description h3 {
  margin: 0;
  font-family: garamond-atf-micro, "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--main-line-height);
  text-align: left;
  line-height: var(--main-line-height);
}

.project-description p {
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  text-align: left;
  line-height: var(--main-line-height);
  padding: 30px 0 0 0;
}

.project-description a {
  text-decoration: none;
  color: black;
  padding-top: 10vh;
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: var(--body-text-weight);
  letter-spacing: 0.01em;
  text-align: left;
  line-height: var(--main-line-height);
}

.project-description a:visited {
  text-decoration: none;
  color: black;
}

.project-images {
  grid-column: 6 / span 6;
}

.project-images-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 30px;
  padding-bottom: 30px;
}

.project-images-column-break {
  display: flex;
}

.project-images-column img {
  filter: grayscale(1);
}

.project-images-column-1 {
  display: flex;
  flex-direction: column;
  padding-right: 15px;
  width: 100%;
  gap: 30px;
}

.project-images-column-1 img {
  width: 100%;
  filter: grayscale(1);
}

.project-images-column-2 {
  display: flex;
  flex-direction: column;
  padding-left: 15px;
  gap: 30px;
  width: 100%;
}

.project-images-column-2 img {
  width: 100%;
  filter: grayscale(1);
}

.vertical-image {
  width: 50%;
  filter: grayscale(1);
}

.horizontal-image {
  width: 100%;
  filter: grayscale(1);
}

@media (max-width: 850px) {
  .project-container {
    padding-top: 30px;
  }

  .project-description {
    display: none;
  }

  .project-images {
    grid-column: 3 / 11;
  }
  .project-images-column-break {
    display: flex;
    flex-direction: column;
    padding-right: 0;
    width: 100%;
    gap: 27pt;
  }

  .project-images-column-2 {
    padding-left: 0;
  }

  .vertical-image {
    width: 100%;
  }
}
