/* -------------------------------------------------- */
  /* "Home" page layout*/
/* -------------------------------------------------- */


/* HERO section */
.hero-section {
  background-image: url('../images/Hero.JPG');
  background-size: cover;        
  background-position: center;   
  background-repeat: no-repeat;
  height: 100vh;                  
  display: flex;
  justify-content: flex-start;  
  align-items: center;          
  text-align: left;             
  color: white;
  position: relative;
  padding-left: 8%;             
  padding-right: 1%;
}



.hero-content {
  position: absolute;
  z-index: 2; 
  max-width: 700px;
 
}

.hero-content h1 {
  font-family: var(--font-primary);
  color: var(--accentColor);
  font-size: 10rem;
  margin-bottom: 0%;
}
.hero-content h2 {
  font-family: var(--font-primary);
  color: var(--accentColor);
  font-size: 5rem;
  margin-top: 0%;
}


.hero-content p {
  font-family: var(--font-primary);
  color: var(--accentColor);
  font-size: 1.5rem;
}



/* Button */
.hero-section .button {
    display: inline-block;
    background-color: var(--accentColor);
    color: var(--primaryColor);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    z-index: 1;
    transition: background-color 0.3s;  
    transition: all 0.3s ease; 
    
}

/* botton hover turn into pink */
.hero-section .button:hover {
    background-color: var(--secondaryColor);
    transform: scale(1.2);
    border: 2px solid var(--primaryColor);
   
}

/* Featured gaeally section in Homepage-----------------------------------------*/

#home-gallery {
  background-color: var(--secondaryColor);
}
.featured-section-word h4 {
  font-family: var(--font-primary);
  color: var(--primaryColor);
  font-size: 2rem;
  
}

.featured-section-word h1 {
  font-family: var(--font-primary);
  color: var(--primaryColor);
  font-size: 5rem;
 
} 

/* 2 2 grid */
.featured-gallery-home {
  display: grid;
  grid-template-columns: 1fr 1fr;  
  grid-template-rows: auto;  
  gap: 4rem;                       
  max-width: 1100px;
  /* margin: 0 auto; */
  align-items: start;
}


.featured-gallery-home p {
  font-size: 1rem;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
  line-height: 1.7;
  color: var(--primaryColor);
  margin: 0 auto;

}

.featured-gallery-home img {
  width: 20vw;
  height: 40vh;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--primaryColor);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-gallery-home img:hover {
  transform: scale(1.03);
  box-shadow: var(--primaryColor);
 
}

.featured-section-word .button {
    display: inline-block;
    background-color: var(--primaryColor);
    color: var(--accentColor);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    z-index: 1;
    transition: background-color 0.3s;  
    transition: all 0.3s ease; 
    
}

/* hover turn into pink */
.featured-section-word .button:hover {
    background-color: var(--accentColor);
    color: var(--primaryColor);
    transform: scale(1.2);
    border: 2px solid var(--primaryColor);

}


/* ---------------------------------- */
/* "HOME" page. Tablet/Mobile version adjustment */
/* ---------------------------------- */

/* --- iMac / Large Desktop Screens (≥1440px) --- */
@media screen and (min-width: 1440px) {

  /* HERO section */
  .hero-section {
    padding-left: 10%;
    padding-right: 5%;
  }

  .hero-content {
    max-width: 1000px;
  }

  .hero-content h1 {
    font-size: 12rem; 
  }

  .hero-content h2 {
    font-size: 7rem;
  }

  .hero-content p {
    font-size: 2rem;
  }

  .hero-section .button {
    padding: 16px 40px;
    font-size: 1.4rem;
  }

  /* FEATURED GALLERY section */
  .featured-section-word h4 {
    font-size: 2.5rem;
  }

  .featured-section-word h1 {
    font-size: 6.5rem;
  }

  .featured-gallery-home {
    gap: 5rem;
    max-width: 1400px;
  }

  .featured-gallery-home p {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .featured-gallery-home img {
    width: 25vw;
    height: 45vh;
  }

  .featured-section-word .button {
    padding: 16px 40px;
    font-size: 1.3rem;
  }
}



/* ---------- TABLET (max 1024px) ---------- */
@media (max-width: 1024px) {

    .hero-section {
    background-position: center top;
    height: 80vh;     
    padding-bottom: 0%;
  }

  .hero-content h1 {
    font-size: 6rem;
  }

  #home-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    /* padding: 4rem 5%; */
  }

  /* Move text block above gallery */
  .featured-section-word {
    order: -1;
  }

  .featured-gallery-home {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
   
  }

  .featured-gallery-home img {
    width: 60vw;
    height: 50vh;
  }

  .featured-section-word h1 {
    font-size: 3.5rem;
  }

  .featured-section-word h4 {
    font-size: 1.5rem;
  }

  .featured-section-word .button {
    margin-top: 1rem;
  }
  .featured-gallery-home p {
   text-align: center;
    text-align-last: center;
    text-justify: auto;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}
}
/* ---------- MOBILE (max 480px) ---------- */
@media (max-width: 768px) {

  .hero-section {
    
    background-position: center top;
    height: 80vh;              
  }


  .hero-content h1 {
    padding-top: 50%;
    font-size: 4rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }


  #home-gallery {
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .featured-section-word h1 {
    font-size: 2.5rem;
  }

  .featured-section-word h4 {
    font-size: 1.2rem;
  }

  .featured-gallery-home img {
    width: 60vw;
    height: 30vh;
  }

  .featured-gallery-home p {
    font-size: 0.80rem;
    line-height: 1.6;
    text-align: center;
    text-align-last: center;
    text-justify: auto;
    margin: 0 auto;
    max-width: 400px;
  }

  .featured-section-word .button {
    font-size: 0.9rem;
    padding: 10px 25px;
  }
}







/* -------------------------------------------------- */
  /* "Work" page layout*/
/* -------------------------------------------------- */










/* --- WORK INTRO SECTION --- */
.work-head {
  background-color: var(--accentColor);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 10%;
  position: relative;
}

.work-intro {
  text-align: left;
}

.work-intro h1 {
  font-size: 7rem;
  font-family: var(--font-primary);
  color: var(--primaryColor);
  font-weight: 700;
  margin-bottom: 1rem;
}

.work-intro p {
  font-size: 1rem;
  text-align: justify;
  text-justify: inter-word;
  font-family: var(--font-secondary);
  line-height: 1.7;
  color: var(--primaryColor);
  max-width: 300px;
}



/* --- 3 images on right --- */


.work-images {
  display: grid;
  /* three in one row */
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
  justify-items: center;
  /* padding to mach with "the work" bottom line? */
  padding-bottom: 13%; 
  
}

.work-images img {
  width: 230px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--primaryColor);
  object-fit: cover;
  background: none; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;  
}

.work-images img:hover {
  transform: scale(1.1);
  background-color: var(--secondaryColor);
  box-shadow: var(--primaryColor);
}

/* --- it's personality--- */
.work-head h2 {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 4rem;
  color: var(--primaryColor);
  margin-top: 1rem;
}




/* ------------------------ */
/* --- garally section  --- */
section {
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 4rem 8rem;
  gap: 7rem;             
  grid-template-columns: 1fr 1fr;
}

/* solar squeeze & mattea bg green*/
section:nth-of-type(even) {
  background-color: var(--primaryColor);
  color: white;
}







/* --- TEXT block--- */
.text-block {
  max-width: 500px;
}

/* project title!! */
.text-block h4 {
  font-family: var(--font-primary);
  font-size: 7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-block p {
  font-family: var(--font-secondary);
  /* line-height: 1.6rem; */
  font-size: 1.3rem;
  text-align: justify;
  text-justify: inter-word;
}

#text-block-mattea {
  color: var(--primaryColor);
}






/* --- image grid placement --- */
.image-group {
  display: grid;
  grid-template-areas:
    "a a"
    "b c";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  overflow: visible;
  
}



.image-group img {
  
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-group img:hover {
 background: transparent;
 transform: scale(1.1);
 box-shadow: var(--primaryColor);
}




/* top image */
.image-group img:nth-of-type(1) {
  grid-area: a;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* bottom left images */
.image-group img:nth-of-type(2) {
  grid-area: b;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* bottom right images */
.image-group img:nth-of-type(3) {
  grid-area: c;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* this adjustment to make money pngs on the bottom to be full (no crop) */
#Currency img:nth-of-type(2),
#Currency img:nth-of-type(3) {
  object-fit: contain;
  padding: 10px;
  width: 100%;
  height: auto;
}


/* ---------- TABLET (max 1024px) ---------- */
@media (max-width: 1024px) {

    .section {
      padding: 0rem 0rem;
    }
    }


/* TABLET & MOBILE */
@media (max-width: 1024px) {
  .work-head {
    /* changing layout */
    grid-template-columns: 1fr; 
    gap: 3rem; 
    padding: 4rem 8%;
    text-align: center; 
  }

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

  .work-intro h1 {
    font-size: 6rem; 
  }
  .work-head h2 {
  font-size: 3rem; 
  text-align: center; 
  padding-top: 0%s;

  }
  .work-intro p {
    max-width: 100%;
    text-align: center;
  }

  .work-images {
    grid-template-columns: 1fr 1fr 1fr; 
    justify-items: center;
  }

  section {
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 4rem;
    padding: 4rem 6rem;
  }

  .text-block {
    max-width: 100%;
    margin: 0 auto;
  }

  .text-block h4 {
    font-size: 5rem;
  }

  .text-block p {
    font-size: 1.2rem;
    text-align: center;
  }

  /* Keep 3 images in grid */
  .image-group {
    grid-template-areas:
      "a a"
      "b c";
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    justify-content: center;
  }

  .image-group img {
    width: 100%;
    height: auto;
  }
}


/* MOBILE SMALLER SCREEN */
@media (max-width: 600px) {
  .work-images {
    grid-template-columns: 1fr; 
  }

  .work-intro h1 {
    font-size: 3rem;
  }

  .work-head {
    padding: 3rem 6%;
  }

  section {
    padding: 3rem 2rem;
    gap: 3rem;
  }

  .text-block h4 {
    font-size: 3.2rem;
  }

  .text-block p {
    font-size: 1rem;
  }

  /* still keep the 3-image layout tight */
  .image-group {
    grid-template-areas:
      "a a"
      "b c";
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .image-group img {
    border-radius: 6px;
    width: 100%;
    height: auto;
  }
}



