
:root {
  /* Colors */
  --color-accent: #EB0C0C;
  --color-accent-darkened: #B61111;
  --color-optima-black: #000000;
  --color-optima-black-rgb: 11 11 12;
  --color-gray-mid: #727272;
  --color-gray-dark: #141416;
  --color-gray-mid-dark: #424242;
  --color-gray-light: #d1d1d1;
  --color-white: #F0F0F2;
  --color-optima-white-rgb: 240 240 242;
  --color-pure-white: #FFFFFF;
  --color-pure-white-rgb: 255 255 255;

  /* Fonts */

  --font-headings: neue-haas-grotesk-display, sans-serif;
  --font-ui: source-sans-3, sans-serif;
  --font-text: source-sans-3, sans-serif;
  
  
  /*
  --font-headings: 'Neue Haas Grotesk Display', sans-serif;
  --font-ui: 'Neue Haas Grotesk Display', sans-serif;
  --font-text: 'Source Sans 3', sans-serif; 
  */


  /* Sizes */
  --size-max-width: 1424px;
  --size-max-image-width: 1584px;

  --cubic-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}



/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-optima-black);
  background-color: var(--color-white);
  line-height: 150%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

ul, ol {
  list-style: none; /* Remove default list bullets */
}

a {
  text-decoration: none; /* Remove underlines from links */
  color: inherit;
}

.simple-link {
  color: var(--color-accent);
}

.simple-link:hover {
  text-decoration: underline;
}

.white-link {
  color: var(--color-optima-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.black-link {
  color: var(--color-optima-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.white-link:hover , .black-link:hover {
  color: var(--color-accent);
}

p {
  line-height: 150%;
  display: block;
}

button {
  background: none; /* Remove background from buttons */
  border: none; /* Remove border from buttons */
  cursor: pointer; /* Pointer cursor for buttons */
}

input,
textarea {
  border: none; /* Remove border from input fields */
  outline: none; /* Remove outline on focus */
  font: inherit; /* Inherit font styles */
}

table {
  border-collapse: collapse; /* Collapse table borders */
}

caption {
  text-align: left; /* Align table captions to the left */
}

html {
  font-size: 100%; /* Set base font size */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  margin-top:114px; /* make sure content isn't under the fixed menu*/
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 600;
}

h5, h6 {
  font-family: var(--font-ui);
  font-weight: 500;
}


h1 {
  line-height: 120%;
  color: var(--color-optima-black);
  font-size: 56px;
}

h2 {font-size: 42px;}

h3 {font-size: 32px;}

h4 {font-size: 22px;}

h5 {font-size: 18px;}

.btm-100 {padding-bottom: 100px;}

.btm-80 {padding-bottom: 80px;}

.btm-64 {padding-bottom: 64px;}

.btm-56 {padding-bottom: 56px;}

.btm-48 {padding-bottom: 48px;}

.btm-40 {padding-bottom: 40px;}

.btm-32 {padding-bottom: 32px;}

.btm-24 {padding-bottom: 24px;}

.btm-16 {padding-bottom: 16px;}

.btm-8 {padding-bottom: 8px;}

.btm-0 {padding-bottom: 0px !important;}

p.calm {
  color: var(--color-gray-mid);
}

.center-text {
  text-align: center;
}

.border-btm {
  border-bottom: var(--color-gray-mid) solid 1px;
}

.detail-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
}

.detail-content {
  max-width: var(--size-max-width);
  width:100%;
  margin-left: 24px;
  margin-right: 24px;
  padding: 100px 0px;
  display: flex;
  flex-direction: column;
}

.portfolio-grid {
  padding: 0px;
}

.subtext-description {
  font-size: 40px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--color-gray-mid);
  line-height: 125%;
  margin-top: -4px;
}

.copyright-and-legal {
  display: flex;
  justify-content: space-between;
  padding-top: 0px;
  padding-bottom: 24px;
  width: 100%;
}

.company-details {
  text-align: right;
  color: var(--color-gray-mid);
  grid-column: span 8;
}

.copyright {
  text-align: left;
  grid-column: span 4;
  color: var(--color-gray-mid);
}

.image-content {
  max-width: var(--size-max-image-width);
  width:100%;
}

.image-content img {
  width: 100%;
  height: auto;
  display: block;
}

.image-content-narrow {
  max-width: var(--size-max-width);
  width:100%;
  margin-left: 24px;
  margin-right: 24px;
}

.image-content-narrow img {
  width: 100%;
  height: auto;
  display: block;
}

.page-title , .page-title-portfolio {
  display: flex;
  flex-direction: column;
  padding: 40px 60px 40px 0px;
}

.page-title-portfolio {
  padding-top:56px;
}

.page-title p, .page-title-portfolio p {
  font-family: var(--font-headings);
  font-weight: 500;
}

.page-title-portfolio {
  padding-bottom: 0px;
}

/* Header */

.header-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-optima-white-rgb);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s var(--cubic-smooth);
    background-color: rgb(var(--color-optima-white-rgb) / 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

.header-content {
    max-width: var(--size-max-width);
    width:100%;
    max-height:128px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 24px;
    margin-right: 24px;
    padding: 32px 0px;
    overflow: hidden;
    transition: max-height 0.3s var(--cubic-smooth), padding 0.3s var(--cubic-smooth);
  }

  .optimacad-logo-darkmode, .optimacad-logo-header {
    height: auto;
    width: auto;
  }

  .logo {
    position: relative;
    height: 36px;
    width: auto;
    transform: scale(1);
    transition: transform 0.3s var(--cubic-smooth);
    transform-origin: left center;
  }
  
  .optimacad-logo-header,
  .optimacad-logo-symbol {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto; /* keeps left-aligned */
    transition: opacity 0.3s var(--cubic-smooth), transform 0.3s var(--cubic-smooth);
  }
  
  .shrink .optimacad-logo-header {
    opacity: 0;
  }





  /* Loader Logo */

  #animationCard {
    width: 128px;
    height: 128px;
  }

  .fade-out {
    opacity: 0;
  }

  .loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 128vh;
    transition: opacity 0.3s ease-out;
  }

  .loader-body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

    /* End Loader Logo */

.back-link {
  color: var(--color-gray-mid-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.back-link .back-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.header-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.header-nav ul li {
  font-family: var(--font-ui);
  color: var(--color-gray-mid-dark);
  font-weight: 600;
  font-size: 15px;
  margin-left: 36px; 
  height: 48px;
  padding-top: 3px;
  transition: font-size 0.3s var(--cubic-smooth); 
}

.header-nav ul li.active {
  border-bottom: var(--color-accent) 3px solid;
}

.header-nav ul li a {
  text-decoration: none;
  padding: 10px 0px;
  display: block;
}

/* Footer */

.footer-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
}

.footer-content {
  max-width: var(--size-max-width);
  width:100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 24px;
  margin-right: 24px;
  padding: 48px 0px; /* Larger padding when expanded */
  overflow: hidden; /* Prevents content overflow when transitioning */
}

.footer-logo, .footer-logo img {
  height: 36px;
  width: auto;
 }

.footer-nav ul {
  list-style-type: none;      /* Removes bullets */
  padding: 0;                 /* Removes default padding */
  margin: 0;                  /* Removes default margin */
  display: flex;              /* Makes the list items display in a row */
}

.footer-nav ul li {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  margin-left: 36px; 
  padding-top: 3px;
  transition: font-size 0.3s ease; 
}

.footer-nav ul li a {
  text-decoration: none;      /* Removes underline */
  padding: 10px 0px;         /* Padding around the links */
  display: block;             /* Makes the link block-level to fill the li */
  color: var(--color-gray-mid-dark);
}

.parameter-table {
  padding-bottom: 4px;
}

.parameter-table li {
  border-top: 1px solid var(--color-gray-mid);
  padding-top: 12px;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.parameter-table .value {
  color: var(--color-gray-mid);
  text-align: right;
}

.testimonial cite span {
  display: block;
  color: var(--color-gray-mid);
}



/* Cookie toast */
#cookie-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  color: var(--color-white);
  z-index: 9999;
  max-width: 550px;
  font-size: 15px;
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.4); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#cookie-toast h5 {
  margin-bottom: 16px;
  font-family: var(--font-headings);
  font-weight: 600;
}

#cookie-toast .buttons {
  margin-top: 24px;
  display: flex;
  justify-content:flex-end;
  gap: 16px;
}

#cookie-toast button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px 12px 32px;
  background:transparent;
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--color-white);
  border-radius: 9999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#accept-cookies {
  background-color: var(--color-accent);
}

#accept-cookies:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

#decline-cookies {
  background-color: var(--color-gray-mid-dark);
}

#decline-cookies:hover {
  background-color: var(--color-gray-dark)
}



#cookie-toast .cookie-content {
  display: flex;
  flex-direction: column; /* default: stacked on mobile */
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  #cookie-toast .cookie-content {
    flex-direction: row; /* horizontal layout on desktop */
    align-items: center;
  }

  #cookie-toast p {
    flex: 1; /* allow text to take available space */
    margin: 0;
  }

  #cookie-toast .buttons {
    margin-top: 0;
  }
}






/* End Cookie toast */



/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.stat-block {
  text-align: left;
  /*padding-bottom: 48px;*/
}

.stat-value {
  font-family: var(--font-headings);
  font-size: 60px;
  line-height: 100%;
  font-weight: 600;
}

.stat-label {
  font-family: var(--font-headings);
  margin-top: 8px;
  font-weight: 600;
}

.stat-subtext {
  font-family: var(--font-headings);
  color: var(--color-gray-mid);
  line-height: 120%;
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* intermediary breakpoint */
@media (min-width: 600px) and (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Vertical List */

.vertical-list-block {
  border-top: 1px solid var(--color-gray-mid);
  padding: 40px 0px 24px 0px;
}

.vertical-list-block h4 {
  padding-bottom: 24px;
}

.vertical-list-block li {
  color: var(--color-gray-mid);
}

.vertical-list-copy {
  padding-left: 8px;
  padding-right: 8px;
}

/* Quick action block */

.quick-action-block {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--color-gray-mid);
  padding: 24px 0;
  transition: background-color 0.3s ease;
}

.quick-action-block:hover {
  background-color: var(--color-pure-white);
}

.quick-action-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-action-block h4 {
  font-family: var(--font-text);
  margin: 0;
}

.quick-action-block span {
  color: var(--color-gray-mid);
  font-size: 16px;
}

.quick-action-copy {
  padding-left: 8px;
}

.quick-action-icon {
  margin: 8px;
}

.quick-action-icon img {
  display: block;
}

.icon-arrow-forward {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}



/* Portfolio item block */

.portfolio-item-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

.portfolio-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-item-block h4 {
  font-size: 18px;
  margin: 0;
  line-height: 110%;
}

.portfolio-item-block span {
  color: var(--color-gray-mid);
  font-size: 18px;
}

.portfolio-image-container {
  border-radius: 4px;
  overflow: hidden; 
}

.portfolio-image-container img {
  display: block; 
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.portfolio-item-block:hover .portfolio-image-container img {
  transform: scale(1.05);
}

.portfolio-item-copy {
  padding:16px 0px;
}




/* Contact Banner */

.contact-banner-wrapper {
  background-color: var(--color-pure-white);
  /*background-image: url(../images/bg-img-dots.webp);*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /*margin: 48px 0;*/
}

.contact-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 32px 72px;
  border-radius: 24px;
  border:1px solid #f1f1f1;
  background-color: var(--color-white);
}

.contact-banner .copy {
  font-size: 26px;
  font-family: var(--font-headings);
  font-weight: 500;
  line-height: 150%;
}

@media (max-width: 768px) {
  .contact-banner {
    grid-template-columns: 1fr;
    padding: 32px 32px;
  }

  .contact-banner .copy {
    margin-bottom: 16px;
    padding: 0px 8px;
  }
}

/* Button - Generic */

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 27px 16px 32px;
  color: var(--color-optima-black);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-arrow-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Primary Button */

.primary-button {
  background-color: var(--color-accent);
}

.primary-button:hover {
  background-color: var(--color-accent-darkened);
  transform: scale(1.02);
}

.primary-button:active {
  background-color: #145b03;
}




/* Primary Button Outline */

.primary-button-outline {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 27px 16px 32px;
  background:transparent;
  color: var(--color-optima-black);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-optima-black);
  border-radius: 9999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.primary-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.primary-button-outline:active {
  background-color: rgba(255, 255, 255, 0.1);
}


/* Menu scroll styles */
.shrink .header-content {
  padding: 16px 0px; /* Smaller padding */
  max-height: 80px; /* Smaller max-height when scrolled */
}

.shrink .burger {
  width: 24px;
  height: 24px;
}


.header-wrapper.hide {
  transform: translateY(-100%);
}

/* End menu scroll styles */


.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  transition: width 0.3s ease, height 0.3s ease;
}

.burger img {
  width: 100%;
  height: 100%;
  display: block;
}

.top-item {
  position: relative;
}




/* Only on desktop */
@media (min-width: 1025px) {
  .portfolio-image-container {
    cursor: none;
    position: relative;
  }

  .cursor-disc {
    position: fixed;
    width: 64px;
    height: 64px;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow:
      inset 0 0 6px rgba(255, 255, 255, 0.15),  /* inner glow */
      0 2px 16px rgba(0, 0, 0, 0.1);             /* soft outer shadow */
    border: 1px solid rgba(255, 255, 255, 0.15);  /* subtle edge */
  }

  .cursor-disc img {
    width: 28px;
    height: 28px;
    opacity: 1;
  }

  .portfolio-image-container:hover ~ .cursor-disc {
    display: flex;
  }
}



/* Close project button */

.close-project {
  position: fixed;
  top: 150px;
  right: 50%;
  transform: translateX(calc(50% + 60px));
  max-width: var(--size-max-width);
  width: 40px;
  height: 40px;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.25s var(--cubic-smooth), transform 0.3s var(--cubic-smooth), opacity 0.2s var(--cubic-smooth);
  z-index: 1000;
  pointer-events: auto;
}

/* When scrolled down 80px, shift it up */
.close-project.scrolled-up {
  transform: translateX(calc(50% + 60px)) translateY(-50px);
}

/* Hide near bottom of mobile/tablet */
.close-project.hide-close {
  opacity: 0;
  pointer-events: none;
}

.close-project img {
  width: 100%;
  height: 100%;
}

.close-project:hover {
  background-color: rgba(0, 0, 0, 0.4); 
}

/* Fullscreen overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-optima-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align menu items to the left */
  justify-content: center; /* Keep the menu vertically centered */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* Initially hide the menu items */
.mobile-menu li {
  margin: 48px 0;
  width: 100%;
  opacity: 0; /* Hide items initially */
  transition: opacity 0.4s ease; /* Smooth fade-in transition */
}

/* When menu is active */
.mobile-menu-overlay.active .mobile-menu li {
  opacity: 1; /* Fade in menu items when menu is active */
}

/* When menu is active */
.mobile-menu-overlay.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.close-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.close-menu img {
  width: 100%;
  height: 100%;
}

/* Vertical menu styling */
.mobile-menu {
  list-style: none;
  padding: 10px 40px;
  margin: 0;
  width: 100%; /* Ensure the menu takes full width */
}

.mobile-menu li {
  margin: 48px 0;
  width: 100%; /* Ensure each item takes the full width of the container */
}

/* Active state for menu item */
.mobile-menu li.active {
  border-left: var(--color-accent) 3px solid;
}

/* Styling links */
.mobile-menu a {
  padding-left: 16px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 18px;
  display: block; /* Ensure each link is a block-level element */
}



/* Default grid (Desktop) */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12 equal-width columns */
  gap: 16px; /* Adjust the gap between columns */
}

/* Grid addon - no gap */
.grid-no-gap {
  gap: 0px !important;
}

/* Define how many columns each content block should occupy */
.full-width-col {
  grid-column: span 12;
}

.col1of3 {
  grid-column: span 4;
}

.col1of2 {
  grid-column: span 6;
}

.left-col {
  grid-column: span 4;
  background-color: var(--color-white);
  color: var(--color-optima-black);
}
.right-col {
  grid-column: span 8; 
  background-color: var(--color-white);
  color: var(--color-optima-black);
}

.work-item-small {
  grid-column: span 3;
}

.contact-copy {
  padding-top: 48px;
}


/* TABLET (max-width: 1024px) */


@media (max-width: 1024px) {

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }
    

  .grid {
    grid-template-columns: repeat(12, 1fr); /* 6 columns for tablet */
  }

  .full-width-col {
    grid-column: span 12;
  }
  
  .col1of3 {
    grid-column: span 4;
  }

  .col1of2 {
    grid-column: span 6;
  }

  .left-col {
    grid-column: span 4; /* Example: spans 3 columns on tablet */
  }

  .right-col {
    grid-column: span 8; /* Example: spans 3 columns on tablet */
  }

  .work-item-small {
    grid-column: span 4;
  }

  .contact-copy {
    padding-top: 48px;
  }

}


/* Medium-Screens (max-width: 1400px) */

@media (max-width: 1424px) {
  .close-project {
    left: auto;
    right: 20px;
    margin-right: 0;
    transform: translateX(calc(50% + 8px));
  }

  .close-project.scrolled-up {
    transform: translateX(calc(50% + 8px)) translateY(-50px);
  }
}


/* TABLET (max-width: 900px) */

@media (max-width: 900px) {
.page-title {padding-right: 0px;}

.close-project.scrolled-up {
  transform: translateX(calc(50% + 12px)) translateY(-50px);
}
}

/* MOBILE (max-width: 768px) */

@media (max-width: 768px) {

  main {
    margin-top:96px;
  }

  .desktop-only {
    display: none;
  }

  .logo {
    height: 32px;
    width: auto;
    }

  .logo img {
      height: 32px;
      width: auto;
      }

  .detail-content {
    padding: 80px 0px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .header-content  , .image-content-narrow {
    margin-left: 16px;
    margin-right: 16px;
  }

  .page-title {
    padding: 32px 0px 32px 0px;
  }

  .page-title-portfolio {
    padding-bottom: 0px;
  }

  .portfolio-grid {
    padding: 0px;
  }

  h1 {font-size: 40px;}
  
  h2 {font-size: 28px;}
  
  h3 {font-size: 24px;}
  
  h4 {font-size: 18px;}
  
  h5 {font-size: 16px;
  font-weight: 500;}

  .button {
    width: 100%;
    justify-content: space-between;
    font-weight: 600;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for mobile */
  }

  body {
    font-size: 16px;
  }

  .full-width-col {
    grid-column: span 4;
  }
  
  .col1of3 {
    grid-column: span 4;
  }

  .col1of2 {
    grid-column: span 4;
  }

  .work-item-small {
    grid-column: span 2;
  }

  .burger {
    display: block;
  }

  .header-nav {
    display: none;
  }

  .left-col, .right-col {
    grid-column: span 4;
  }

  .left-col {padding-bottom: 24px;}

  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-logo, .footer-logo img {
    height: 32px;
   }

  .footer-nav ul {
    margin-top: 32px;
  }

  .footer-nav ul li {
    margin: 0px 16px 0px 16px;
  }

  .copyright-and-legal {
    flex-direction: column; 
    text-align: center; 
    padding-top: 0px;
    padding-bottom: 32px;
  }

  .copyright,
  .company-details {
    grid-column: span 4; /* Make both items take 100% width */
    text-align: center; /* Center-align text */
  }

  .empty-col {display: none;}

  .subtext-description {
    padding-top: 8px;
    font-size: 24px;
    line-height: 130%;
  }

  .back-link {
    margin-top:-42px;
  }

  .contact-banner {
    gap: 24px;
  }

  .contact-copy {
    padding-top: 32px;
  }


/* cookie toast for mobile */

#cookie-toast {
  left: 24px;
  right: 24px;
  bottom: 20px;
  max-width: none;
  padding: 24px;
  border-radius: 16px;
}

#cookie-toast .cookie-toast-inner {
  flex-direction: column;
  gap: 24px;
}

#cookie-toast .buttons {
  width: 100%;
  margin-top: 0px;
}

#cookie-toast button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.close-project {
  top: 120px;
}



}