* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--reyllit-background);
  min-width: 320px; 
}

main {
  padding: 80px 20px 0px 20px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  color: white;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
}

/* CARDS - DESKTOP DEFAULTS */

.service-cards {
  margin: 50px 0px 30px 0px;
  padding: 20px 20px 50px 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: auto;
}

.service-container {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-direction: row;
  gap: 60px;
  margin-bottom: 40px;
}

.service-card {
  flex: 0 0 560px; 
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.336);
}

.card-extra {
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  font-style: italic;
  color: var(--reyllit-grey);
}

.service-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.service-card-top p {
  background-color: var(--reyllit-red);
  color: white;
  width: fit-content;
  padding: 4px 8px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.service-card-middle {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  padding: 0px 10px;
}

.service-card-middle img {
  width: 18%;
  height: auto;
  margin-left: 10px;
  margin-right: 10px;
}

.card-info {
  margin-left: 20px;
}

.card-info h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  color: var(--reyllit-red);
}

.card-info p {
  margin-top: 6px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--reyllit-grey);
  margin-right: 8px;
  line-height: 1.6;
}

.service-card-bottom {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.service-card-bottom a {
  text-decoration: none !important;
  background-color: var(--reyllit-red);
  color: white;
  width: 96%;
  text-align: center;
  padding: 6px 0;
  border-radius: 5px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.service-card-bottom a:hover {
  background-color: var(--reyllit-dark-red);
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-grid-2 {
  width: 100%;
  aspect-ratio: 7 / 3; 
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.336);
  background-image: url('/images/Reyllit_hero_1a.webp');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 100px;
  background-color: #2c3127;
}

/* BREAKPOINT: 1000px */
@media screen and (max-width: 1000px) {
  .service-container {
    gap: 30px;
  }
  .service-card {
    flex: 0 0 480px; 
    gap: 12px;
  }
}

/* BREAKPOINT: 900px (Tablet & Mobile) */
@media screen and (max-width: 900px) {
  .service-cards {
    margin: 0 auto;
    width: 100%;
    padding: 20px 5px 50px 5px; 
  }

  .service-container {
    flex-direction: column; 
    align-items: center;
    gap: 30px;
    margin-bottom: 0;
  }

  .service-card {
    flex: none;
    width: 100%; 
    max-width: 600px;
    gap: 14px; 
  }

  .service-card-middle img {
    width: 15%; 
    margin-left: 5px;
    margin-right: 5px;
  }

  .card-info {
    margin-left: 10px; 
  }

  .card-info h2 {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }

  .card-extra {
    display: none;
  }

  .card-info p {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    margin-right: 0px;
  }
  
}

/* BREAKPOINT: 768px */
@media screen and (max-width: 768px) {
  main {
    padding: 75px 5px 0px 5px; 
  }
  
  .hero-grid, .hero-grid-2 {
    grid-template-columns: 1fr; 
    height: clamp(220px, 44vw, 350px);
    aspect-ratio: auto;
    border-radius: 10px;
    background-size: 160%; 
    background-position: 40% center; 
    background-repeat: no-repeat; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
  }

  .hero-overlay {
    width: 50%;
    padding-left: 0px;
    align-items: center; 
    justify-content: center;
  }

  .hero-text {
    gap: 10px;
    padding-left: 10px;
  }

  .hero-text h1 {
    font-size: clamp(1.1rem, 3.7vw, 1.6rem);
  }

  .about-reyllit {
    margin-top: 50px;
    padding: 10px;
  }

  .about-reyllit h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 40px;
  }

  .about-reyllit p {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
  }

  .final-about {
    margin-top: 30px;
    margin-bottom: 80px;
  }
}

@media screen and (max-width: 330px) {
  .hero-grid {
    background-size: 170%; 
  }
}



/* ABOUT REYLLIT SECTION */
.about-reyllit {
  margin: 0 auto;
  margin-top: 50px;
  padding: 20px 80px;
  max-width: 1200px;
}

.about-reyllit h3 {
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  color: var(--reyllit-red);
  margin-bottom: 60px;
}

.about-reyllit p {
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  color: var(--reyllit-grey);
  line-height: 1.6;
}

.about-reyllit h4 {
  margin-top: 60px;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: var(--reyllit-red);
}

.final-about {
  margin-top: 60px;
  margin-bottom: 100px;
}

@media screen and (max-width: 1200px) {
  .about-reyllit h6 {
    margin-bottom: 40px;
    font-size: clamp(1.1rem, 2.4vw, 1.1rem);
  }

  .about-reyllit p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
}

@media screen and (max-width: 900px) {
  .about-reyllit {
    padding: 20px 40px;
  }

  .about-reyllit p {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    text-align: left;
  }

  .about-reyllit h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
}

@media screen and (max-width: 768px) {

  .about-reyllit {
    margin-top: 20px;
    padding: 10px;
  }

  .about-reyllit h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: var(--reyllit-red);
    margin-bottom: 40px;
  }

  .about-reyllit p {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    color: var(--reyllit-grey);
    line-height: 1.6;
  }

  .about-reyllit h4 {
    margin-top: 40px;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    color: var(--reyllit-red);
  }

  .final-about {
    margin-top: 30px;
    margin-bottom: 80px;
  }

}