/* HEADER COMPONENT DNA */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--h-height); /* Uses our dynamic 64px/80px math */
  background-color: var(--color-secondary);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-secondary);
}

.header-inner{
  width: var(--inner-width);
  max-width: var(--inner-max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



/* HAMBURGER COMPONENT */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--space-l);  /* 32px wide */
  height: var(--space-m); /* 24px tall */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 3px; /* Thickness - change to 2px for a "sleek" look */
  background-color: var(--color-bg);
  border-radius: 2px;
}

/* DESKTOP HIDE: Only show on mobile */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* Logo */

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  grid-column: 4 / 10;
}

.logo-link {
  height: 80%; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-height: 100%;
  /* ---------------------------- */
  /* Must define the aspect ratio */
  /* ---------------------------- */
  aspect-ratio: 1810 / 434;
  max-width: 100%;
  width: auto;  
  display: block;
  object-fit: contain;
}


/* Navigation Buttons */

/* DESKTOP NAV CONTAINER */
.nav-desktop {
  display: none;
  height: 100%;
}

@media (min-width: 769px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* THE ANCHOR BUTTONS */
.nav-link {
  text-decoration: none;
  color: var(--color-bg);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-s);
  position: relative;
  white-space: nowrap;
}

/* Focus state for accessibility (Lighthouse requirement) */
.nav-link:focus-visible {
  outline: 2px solid var(--color-tertiary);
  outline-offset: 4px;
  border-radius: 4px;
}



.mobile-drawer{
    height: calc(100dvh - var(--h-height));
    background-color: var(--color-secondary);
    width: 100%;
    padding-left: var(--space-l);
    padding-top: var(--space-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    will-change: transform;
    
}

.mobile-drawer.active{
    transform: translateX(0);
}

.drawer-nav{
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    color: var(--color-bg);
    height: 80%;
    gap: var(--space-xl);
    font-size: var(--text-h5);

}

.case-studies-container{
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  min-height: var(--av);
  justify-content: space-around;
}

.case-studies-container > h1{
  max-width: 800px;
}

.case-studies-container > p{
  max-width: 1000px;
}

@media(min-width: 729px){
  .case-studies-container{
    justify-content: center;
  }

}

.simple-text-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.simple-text-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 100%;
}

.simple-text-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: var(--space-xs);
    gap: var(--space-s);
}

.grid-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.grid-header > *{
    margin-bottom: var(--space-xs);
}

.grid-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;

}

@media(min-width: 729px){
    .simple-text-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        align-items: start;
        gap: var(--space-l);
    }

    .simple-text-header{
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        max-width: 600px;
    }

    .simple-text-content{
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        max-width: 600px;
        justify-self: end;
    }

    .text-grid{
        margin-bottom: var(--space-xl);
    }

    .image.hero{
      display: none;
    }
}


.image{
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}


.client-review-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
}

.client-review-header{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    margin-bottom: var(--space-m);
}

.client-review-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
    gap: var(--space-m);
}

.client-review-text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.client-review-img{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-height: 23rem;
    overflow: hidden;
    background-color: black;
}



.client-review-image{
    width: 100%;
    align-self: center;
    object-position: center;
    object-fit: contain;
    max-height: 450px;
    overflow: hidden;
}

@media(min-width: 729px){
    .client-review-content{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        align-content: start;
        justify-content: center;
        gap: var(--space-l);
        min-height: 100%;
    }

    .client-review-text{
        max-width: 600px;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100%;
    }

    .client-review-image{
      max-width: 600px;
      justify-self: end;
      object-position: right;
    }

    .client-review-image{
      align-self: flex-end;
    }

    .client-review-img{
      background-color: transparent;
    }

    

    

}










/* Final CTA */

.final-cta-container{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.final-cta-container .btn{
  color: var(--color-primary);
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  color: var(--color-text-light);
  padding-top: var(--space-2xl);
}



/* GRID LAYOUT */
.footer-inner {
  display: grid;
  gap: var(--space-xl);
}

/* MOBILE (default) */
.footer-inner > * {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--space-m);
}

.footer-inner > *:last-child {
  border-bottom: none;
}

/* TYPOGRAPHY */
.footer h4,
.footer h5 {
  margin-bottom: var(--space-xs);
}

.footer p {
  opacity: 0.8;
  max-width: 800px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer a {
  opacity: 0.85;
  transition: var(--btn-transition);
}

.footer a:hover {
  opacity: 1;
}

/* DESKTOP (729px breakpoint) */
/* DESKTOP (729px breakpoint) */
@media (min-width: 729px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    justify-items: center;
  }

  .footer-inner > * {
    border: none;
    padding-bottom: 0;
  }

  /* Make brand span full width */
  .footer-brand {
    grid-column: 1 / -1;
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-self: center;
    text-align: center;
  }

  .footer-nav{
    justify-self: left;
    text-align: center;
  }

  .footer-contact{
    justify-self: right;
    text-align: center;
  }

  .footer-services{
    text-align: center;
  }
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding: var(--space-m) 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Desktop layout */
@media (min-width: 729px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: var(--text-xs);
  opacity: 0.7;
  margin: 0;
}