

* {
  box-sizing: border-box;
}
body {
  font-size: 14px;
  padding: 0;
  margin: 0;
  font-family: "DM Sans", sans-serif;
}

h2 {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

p {
  font-size: 16px;
}

.italic {
  font-family: "Instrument Serif", serif;
  font-style: italic;
}

.intro-text-right {
  background-color: rgba(236,255,0,1);
  position: absolute;
  width: 300px;
  bottom: 30px;
  right: 20px;
  padding: 20px;
  border-radius: 8px;
}

.intro-text-right h2 {
 line-height: 1.1;
 margin: 0;
}

.intro-text-right h3 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
}

.intro-text-left p {
  margin-bottom: 0;
}

.intro {
  height: 90vh;
  position: relative;
  background-color: black;
}

.intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.intro-text-left {
  position: absolute;
  width: 400px;
  bottom: 30px;
  left: 20px;
  color: #fff;
  font-size: 24px;
}

.intro-text-left h2 {
  line-height: 1.1;
}

header {
  padding-left: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

header a {
  color: inherit;
  border-bottom: 1px solid #00000042;
  text-decoration: none;
}

header a:hover {
  color: inherit;
  border-bottom: 1px solid #000000;
  text-decoration: none;
}

a {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.grid {
  padding: 20px;
}

.flex {
  display: flex;
  justify-content: space-between;
  vertical-align: middle;
  align-items: center;
}

.grid-flex {
  display: flex;
  column-gap: 10px;
  justify-content: space-between;
}

.grid-services {
  background-color: rgba(236,255,0,1);
}

.third {
  width: 32.5%;
}

.quarter {
  width: 24.5%;
}

.grid-col img {
  width: 100%;
}

.footer {
  background-color: rgba(236,255,0,1);
  padding-left: 20px;
  padding-bottom: 30px;
}

.full-logo {
  width: 100%;
}

.full-logo svg {
  width: 100%;
  height: auto;
}

.quote-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.quote-inner h4 {
  font-family: "Instrument Serif", serif;
  font-size: 50px;
}

.quote-inner h5 {
  font-size: 16px;
  font-weight: 400;
}

.grid-expertise .grid-col img {
  aspect-ratio: 4/2.55;
  object-fit: cover;
}

.grid-services .grid-col img {
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: right;
}

@media (max-width: 768px) {

  .intro {
    height: auto;
  }

  /* Resets the absolutely positioned intro text blocks 
    to be static, so they stack in a normal document flow.
  */
  .intro-text-left,
  .intro-text-right {
    position: static; /* Removes absolute positioning */
    width: auto;      /* Resets fixed width */
    max-width: 100%;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 20px;     /* Adds spacing now that they are in-flow */
  }

  /* Adjust intro text sizes for mobile */
  .intro-text-left {
    font-size: 20px;
  }
  
  .intro-text-left h2 {
    font-size: 28px;
  }

  .intro-text-right {
    margin: 0;
    border-radius: 0;
  }

  /* Targets the main flex container and changes its direction
    from horizontal (row) to vertical (column).
  */
  .grid-flex {
    flex-direction: column; /* Stacks flex items vertically */
    row-gap: 20px;          /* Adds space between the stacked items */
    column-gap: 0;
  }

  /* Makes all grid columns (thirds and quarters)
    take up the full width instead of a percentage.
  */
  .third,
  .quarter {
    width: 100%; /* Each column is full-width */
  }

  /* Reduces the large quote font size for readability */
  .quote-inner h4 {
    font-size: 32px; /* Was 50px */
  }

  /* Reduces padding on the quote section */
  .quote-inner {
    max-width: 90%;
    padding-top: 50px;
    padding-bottom: 50px;
  }
}