.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-400);
  background-color: var(--clr-background);
  color: var(--clr-text);
  font-weight: 400;
}

h1,
h2,
h3,
p {
  line-height: 1.4;
}

section {
  margin-bottom: var(--spacing-lg);
}
@media (width > 50em) {
  section {
    margin-bottom: var(--spacing-xxl);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
}

input,
button,
textarea {
  font: inherit;
}

img,
picture {
  max-width: 100%;
  display: block;
}

:root {
  --ff-primary: "Montserrat", sans-serif;
  --breakpoint-sm: 30em;
  --breakpoint-md: 50em;
  --breakpoint-lg: 75em;
  --breakpoint-xl: 90em;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-xxl: 2.25rem;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;
  --clr-text: #4e4e4e;
  --clr-background: #ffffff;
  --clr-secondary-bg: rgba(223, 233, 244, 0.6);
  --clr-primary: #054C73;
  --clr-secondary: #CDA06B;
  --clr-accent: #00f3f3;
  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

.section-title {
  font-size: var(--fs-xxl);
  font-weight: var(--fw-regular);
  font-style: italic;
  color: var(--clr-primary);
  text-align: center;
  margin: var(--spacing-xs) 0 !important;
}

.section-sub {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  max-width: 50rem;
  color: var(--clr-text);
  text-align: center;
  margin-bottom: var(--spacing-md) !important;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.button {
  padding: 0.5em 1.25em;
  color: white;
  text-decoration: none;
  background-color: var(--clr-primary);
  border: 1px solid var(--clr-secondary);
  border-radius: 2em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}
.button:hover {
  background-color: var(--clr-secondary);
}
@media (width > 50em) {
  .button {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    padding: 0.75em 1.5em;
  }
}

#masthead {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 4rem;
  padding: 0 var(--spacing-xs);
  background-color: var(--clr-background);
}
@media (width > 50em) {
  #masthead {
    height: 5rem;
    padding: 0 var(--spacing-sm);
  }
}
@media (width > 75em) {
  #masthead {
    height: 6.25rem;
    padding: 0 var(--spacing-md);
  }
}
#masthead {
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#masthead .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  height: 100%;
  gap: var(--spacing-sm);
}
#masthead .site-branding img {
  height: 3rem;
  width: 3rem;
}
@media (width > 50em) {
  #masthead .site-branding img {
    height: 4rem;
    width: 4rem;
  }
}
@media (width > 75em) {
  #masthead .site-branding img {
    height: 5rem;
    width: 5rem;
  }
}
#masthead .header-search {
  flex: 1;
  max-width: 25rem;
  min-width: 12.5rem;
  height: 2.5rem;
}
@media (width > 50em) {
  #masthead .header-search {
    height: 3rem;
  }
}
@media (width > 75em) {
  #masthead .header-search {
    height: 3.5rem;
  }
}
#masthead .header-search form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0.09375rem solid gray;
  border-radius: 2rem;
  padding: 0 0.75rem;
  justify-content: space-between;
}
#masthead .header-search form label {
  min-width: 8.5rem;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}
#masthead .header-search form label input[type=search] {
  width: 100%;
  border: none;
  outline: none;
  font-size: var(--fs-sm);
}
#masthead .header-search form label input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
#masthead .header-search form button[type=submit] {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
#masthead .header-search form button[type=submit] svg {
  width: 1.75rem;
  height: 1.75rem;
}
#masthead .header-search form button[type=submit]::after {
  content: "";
  position: absolute;
  width: 2.25rem;
  height: 2.25rem;
}
#masthead .menu-toggle {
  display: block;
  border: 0;
  background: none;
  min-height: 2.25rem;
  width: 2.25rem;
  padding-bottom: 0.5rem;
}
#masthead .menu-toggle span {
  font-size: var(--fs-xl);
  color: black;
}
#masthead .menu-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 4rem;
}
@media (width > 50em) {
  #masthead .menu-toggle {
    display: none;
  }
}
#masthead .main-navigation {
  display: none;
}
#masthead .main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
#masthead .main-navigation ul li {
  margin: 0 auto;
  padding: 0.375rem 0.75rem;
}
#masthead .main-navigation ul li a {
  font-size: var(--fs-md);
  color: black;
  text-decoration: none;
}
#masthead .main-navigation ul li a:hover {
  color: var(--clr-primary);
}
@media (width > 50em) {
  #masthead .main-navigation {
    display: block;
  }
  #masthead .main-navigation ul {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
  }
}
@media (width > 75em) {
  #masthead .main-navigation ul li {
    border-radius: 1.75rem;
  }
  #masthead .main-navigation ul li:hover {
    background: var(--clr-primary);
    cursor: pointer;
  }
  #masthead .main-navigation ul li:hover a {
    color: white;
  }
}
#masthead .main-navigation.toggled {
  display: block;
  position: absolute;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-background);
}
#masthead .main-navigation.toggled ul {
  gap: 0;
}
#masthead .main-navigation.toggled ul li {
  width: 100%;
  padding: 1.5rem 0;
  border-bottom: 0.0625rem solid var(--clr-secondary);
}
#masthead .main-navigation.toggled ul li a {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.footer-inner {
  background-color: #03344F;
  padding: var(--spacing-xs);
  color: white;
}
@media (width > 50em) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: var(--spacing-sm);
  }
}
@media (width > 75em) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: var(--spacing-md);
  }
}

.footer-col {
  padding: var(--spacing-sm);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: var(--spacing-xs);
}
.footer-col a {
  color: white;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--clr-secondary);
}

.footer-time {
  display: flex;
  gap: var(--spacing-xs);
}
.footer-time p {
  margin: 0;
}

.footer-map {
  margin-top: 1.25rem;
}

.posts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-md);
  margin: var(--spacing-md) 0;
}
.posts-grid .post-card {
  position: relative;
  overflow: hidden;
}
.posts-grid .post-card .post-logo {
  height: 1.875rem;
  width: 1.875rem;
  position: absolute;
  top: var(--spacing-xs);
  left: var(--spacing-xs);
}
.posts-grid .post-card .post-logo img {
  height: auto;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}
.posts-grid .post-card img {
  height: auto;
  width: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}
.posts-grid .post-card {
  flex: 1 1 100%;
  max-width: 100%;
}
@media (width > 50em) {
  .posts-grid .post-card {
    flex: 1 1 calc(33.333% - var(--spacing-md));
    max-width: calc(33.333% - var(--spacing-md));
  }
}

.post-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin: var(--spacing-xs) 0;
}

.post-excerpt p {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  margin: 0;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.intro-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
}
@media (width > 50em) {
  .intro-section {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.intro-section .intro-col {
  flex: 1;
}
.intro-section .intro-col img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}
.intro-section .intro-col h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin: 0;
}
@media (width > 50em) {
  .intro-section .intro-col h3 {
    font-size: var(--fs-xl);
  }
}
.intro-section .intro-col p {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.intro-col:nth-child(2), .intro-col:nth-child(3) {
  margin: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: 0.5rem;
  background: linear-gradient(188.59deg, var(--clr-secondary), #fcf6e6 100%);
  box-shadow: 0 4px 10px rgba(58, 56, 49, 0.08), 0 -1px 4px rgba(58, 56, 49, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.intro-col .button-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}
.intro-col .button-group img {
  width: 3.75rem;
  height: 3.75rem;
}
@media (width > 50em) {
  .intro-col .button-group img {
    width: 5rem;
    height: 5rem;
  }
}

.home-projects {
  margin: 16px 0;
}

.work-process .process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cta-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
@media (width > 50em) {
  .cta-box {
    flex-direction: row;
  }
}

.cta-text {
  flex: 1;
  padding: var(--spacing-md);
}
@media (width > 50em) {
  .cta-text {
    flex: 2;
    margin-right: var(--spacing-xxl);
  }
}
.cta-text h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin: 0;
}
@media (width > 50em) {
  .cta-text h3 {
    font-size: var(--fs-xl);
  }
}
.cta-text p {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.cta-media {
  flex: 1;
  height: 100%;
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  clip: auto !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  height: auto !important;
  margin: auto !important;
  overflow: visible !important;
  width: auto !important;
  white-space: normal !important;
}

.container {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
}

.main-title {
  font-size: var(--fs-900);
  margin-block: 0;
}

.text-highlight {
  color: var(--clr-accent);
}

.secondary-bg {
  background-color: var(--clr-secondary-bg);
}

.text-limit {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
