
*{
  margin: 0;
  padding: 0;
}
/* The hero photo the shared header lies over. --header-h comes from
   css/site.css; .onHero is out of the flow, so without that padding the hero
   would start underneath the header. */
.heroSection{
  background-image: url(./images/heroSection.jpeg);
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-h);
  position: relative;
}
body{
  background-color:#F2EDE6;
}
/* the shared footer shouldn't add its inner-page top margin on the homepage */
footer .siteFooter{
  margin-top: 0;
}
.hero{
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 500px;
  row-gap: 20px;
}

/* The hero wordmark is the logo image now, so the h1 is only a box around it. */
h1{
  line-height: 0;
}

/* The supplied mark is charcoal on transparency — drawn for a white page, and
   close to invisible on this photograph. brightness(0) invert(1) flattens it
   to the same ivory the rest of the hero uses; the shadow keeps it readable
   where the picture goes pale behind it.
   Trade-off: this discards the tonal grey in the original artwork. A version
   drawn for dark grounds would render with its shading intact. */
.heroLogo{
  display: block;
  width: 240px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.hero hr {
  height: 2px;
  background-color: #FAF8F5;
  padding: 0px 60px;
  border: none;
}

.hero h2{
  color: #FAF8F5;
  font-size: 2rem;
  font-weight: 100;
}
.hero p{
  color: #FAF8F5;
  width: 200px;
  text-align: center;
  text-wrap: balance; /* two even lines, never one word left alone */
}
.hero button{
  background-color: transparent;
  padding: 10px 20px;
  border: 1px solid #FAF8F5;
  color: #FAF8F5;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
}

/* Lifts hero content above the .hero::before scrim (z-index 1). Nothing here
   may reach 41: that is .siteHeader.onHero, and an opened mobile menu has to
   paint over the hero — the old hand-written nav lost exactly that fight. */
.hero > * {
    position: relative;
    z-index: 2;
}
/*hero button animation*/
.exploreCollectionBtn {
  color: #FFF;
  transition: all 0.5s;
  position: relative;
  cursor: pointer;
}
.exploreCollectionBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.exploreCollectionBtn:hover::before {
  opacity: 0 ;
  transform: scale(0.5,0.5);
}
.exploreCollectionBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.5);
  transform: scale(1.2,1.2);
}
.exploreCollectionBtn:hover::after {
  opacity: 1;
  transform: scale(1,1);
}

.valueProps{
  padding: 0px 50px;
  margin: 40px;
  display: flex;
  justify-content: space-around;
  column-gap: 24px;
}
.valueProps .features{
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 10px;
  /* equal thirds — the Persian page hides two cards' text, and without this
     those cards would shrink to their photo's width */
  flex: 1 1 0;
  min-width: 0;
}
.valueProps .features > img{
  object-fit: cover; /* keep photos undistorted when width is clamped on small screens */
  min-width: 0;
  width: 100%;
}
.valueProps .features h3 {
  letter-spacing:1px;
}
.cardsCollection{
  display: grid;
  grid-template-columns: repeat(5 , 1fr);
  grid-template-rows: 1fr;
  
  column-gap: 15px;
  background-color: #E8DCD1;
  padding: 40px;
}
.first{
  height: 400px;
  background-image: url(./images/above_footer/first_Nero_AI_Image_Upscaler_Photo_Face.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
}
.second{
  height: 400px;
  background-image: url(./images/above_footer/second_Nero_AI_Image_Upscaler_Photo_Face.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
}
.third{
  height: 400px;
  background-image: url(./images/above_footer/third_Nero_AI_Image_Upscaler_Photo_Face.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
}
.fourth{
  height: 400px;
  background-image: url(./images/above_footer/fourth_Nero_AI_Image_Upscaler_Photo_Face.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
}
/* Stock photo (StockSnap AWMCBCI13Z, CC0 — no attribution required) until the
   atelier has its own. Anchored high so the crop keeps the hat and face. */
.fifth{
  height: 400px;
  background-image: url(./images/above_footer/men.jpg);
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}
.collectionCardPic{
  height: 100%;
  width: 100%;
  margin-bottom:40px;
  color: #F2EDE6;
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column;
}

.collectionCardPic h5 hr{
  margin-bottom: 5px;
}
.collectionCardPic hr{
  background-color: #F2EDE6;
  height: 1px;
  padding:0px 40px;
  margin-bottom: 40px;
  border: none;
  border-radius: 30px;
}
#h4Holder{
  background-color: #E8DCD1;
  text-align: center;
  padding-top: 20px;
  font-weight: 100;
}
/*================= collection card animation================ */
.CollCard{
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.5s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.CollCard {
  color: #F2EDE6;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

.CollCard::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(242, 237, 230, 0.4)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.CollCard:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(44, 34, 24, 0.6);
}

.CollCard:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

.footerSection{
  color: #F2EDE6;
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  column-gap: 20px;
  background-color: #C4A583;
  row-gap: 50px;
}
/* =========== Media query ===============*/
/* ===== Tablet ===== */
@media (max-width: 1124px) {
  .heroLogo {
    width: 200px;
  }
  /* Five cards: three across, then the last two share the second row. */
  .cardsCollection {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 15px;
  }
  .cardsCollection .CollCard {
    grid-column: span 2;
  }
  .cardsCollection .fourth,
  .cardsCollection .fifth {
    grid-column: span 3;
  }
}

/* ===== Mobile (large) ===== */
@media (max-width: 800px) {
  .heroLogo {
    width: 175px;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    width: 85%;
    max-width: 280px;
  }
  .valueProps {
    flex-direction: column;
    row-gap: 30px;
    padding: 0 20px;
  }
  .valueProps .features {
    flex: none;
  }
  .valueProps .features > img {
    width: auto;
  }
  .first, .second, .third, .fourth, .fifth {
    height: 250px;
  }
  .footerSection {
    flex-direction: column;
    row-gap: 30px;
  }
}

/* ===== Mobile (small) ===== */
@media (max-width: 480px) {
  .heroLogo {
    width: 150px;
  }
  .cardsCollection {
    grid-template-columns: 1fr;
  }
  .cardsCollection .CollCard,
  .cardsCollection .fourth,
  .cardsCollection .fifth {
    grid-column: auto;
  }
}
/* ---------------- Farsi mode (homepage) ---------------- */

/* No font swap needed — the system stack in css/site.css already carries
   Arabic script. Only the tracking has to go: joined letters tear apart. */
html[lang="fa"] .hero h2,
html[lang="fa"] .hero p,
html[lang="fa"] .features h3,
html[lang="fa"] .features p,
html[lang="fa"] #h4Holder h4,
html[lang="fa"] .collectionCardPic h5,
html[lang="fa"] .exploreCollectionBtn,
html[lang="fa"] .footerSection p {
  letter-spacing: normal !important;
}
