/* 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);

}


/* HERO CONTAINER */
.hero {
  min-height: var(--av);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}


/* IMAGE LAYER */
.hero-visual {
  inset: 0;
  z-index: 1;
  
  
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* CONTENT LAYER */
.hero-content {
  position: relative;
  z-index: 2;
  /* horizontal layout system */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 90%;
  margin-inline: auto;
  /* vertical system */
  flex: 1;
  padding: var(--space-l);
  min-height: var(--av);
}

.hero-lottie{
    display: none;
}


@media(min-width: 729px){
  .hero-lottie {
        display: block;
        width: 600px;
        height: 600px;
        }

    .hero-lottie dotlottie-player {
        width: 100%;
        height: 100%;
        display: block;
        }

    .hero-visual{
        position: absolute;
        height: 100%;
        width: 100%;
        top: -10%;
        left: 50%;
        overflow: hidden;
            }
}



@media(min-width: 1024px){
    .hero-lottie {
        display: block;
        width: 800px;
        height: 800px;
        }

    .hero-lottie dotlottie-player {
        width: 100%;
        height: 100%;
        display: block;
        }

    .hero-visual{
        position: absolute;
        height: 100%;
        width: 100%;
        top: -15%;
        left: 60%;
        overflow: hidden;
            }
}

@media(min-width: 1124px){
    .hero-lottie {
        display: block;
        
        }

        .hero-visual{
            position: absolute;
            height: 100%;
            width: 100%;
            top: -15%;
            left: 55%;
            overflow: hidden;
            }
    
}

@media(min-width: 1224px){
    .hero-lottie {
        display: block;
        width: 800px;
        height: 800px;
        }
    
}

@media(min-width: 1424px){
    .hero-visual{
            position: absolute;
            height: 100%;
            width: 100%;
            top: -15%;
            left: 50%;
            overflow: hidden;
            }
    
    
    
}

/* HEADING */
.hero-content > h1 {
  grid-column: 1 / 13;

  /* vertical placement */
  margin-top: auto;

  /* reset default spacing issues */
  margin-bottom: 0;
}


/* CTA GROUP */
.cta-group {
  grid-column: 1 / 13;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;

  /* THIS is the key */
  margin-top: var(--space-m);
  margin-bottom: auto;
  max-width: 650px;
}


/* Mission */

.about-container h2{
    margin-bottom: 0;
    align-self: flex-start;
}

@media(min-width: 729px){
  .about-container h2{
    align-self: flex-start;
  }
}

.about-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--space-m);
}

.about-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-m);
}

.about-split{
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.about-image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 350px;
        position: relative;
        overflow: hidden;
        }

@media(min-width: 729px){
    .about-split{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: var(--space-l);
        align-items: center;
        min-height: calc(var(--av)*0.8);
    
    }

    .about-content{
        justify-self: flex-end;
        align-items: flex-start;
        text-align: left;
        max-width: 600px;
    }

    .about-image-container {
        height: 600px; /* or whatever your layout uses */
        position: relative;
        overflow: hidden; /* prevents overflow if aspect ratio differs */
        }

        .about-lottie {
        width: 100%;
        height: 100%;
        display: block;
        }
    }



.photo-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    gap: var(--space-m);
}

.photo-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 25%;
    width: 100%;
    gap: var(--space-m);
}

.image-container{
    height: 100%;
    width: 100%;
    display: block;
}

.image-container > img{
    object-fit: cover;
    object-position: center;
    max-height: 300px;
    width: 100%;
}

.card-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.card-header{
    display: flex;
    justify-content: space-between;
    width: 100%;
}


.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24,
}

.arrow{
  height: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
}


@media (min-width: 729px){
    .photo-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        width: 100%;
        min-height: 100%;
        gap: var(--space-m);
    }

    #g1{
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    #g2{
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    #g3{
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    #g4{
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .image-container > img{
        max-height: 350px;
    }
}

/* Philosophy Simple Text */


.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);
}

.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);
    }
}



.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;
}
