:root {
  --primary-color: #316e27;
  --pimrary-color-light: #4a9d3b;
  --secondary-color: #d3d3d3;
  --text-color: #ffffff;

  --welcome-text-color: #f6f2e3;
  --hero-overlay-color: rgb(29, 29, 29);
  --hero-overlay-color-lighter: #5a5a5a;

  --background-color: #fcfbe3;

  --font-family: "Quicksand", sans-serif;

  --nav-background-color: #000000;
  --nav-menu-item-hover-color: #272626c2;
  --nav-text-color: #f6f2e3;
  --navbar-font-size: 18px;
  --navbar-logo-font-size: 26px;

  --accent-color: #adff2f; /*rgb(173, 255, 47)*/

  --primary-cta-text-color: #39304a;
  --primary-cta-background-color: #f6f2e3;
  --primary-cta-background-hover-color: #442e67ea;
  --primary-cta-border-color: #f6f2e3;

  --secondary-cta-text-color: #f6f2e3;
  --secondary-cta-background-color: #39304a;
  --secondary-cta-background-hover-color: #f6f2e3;
  --secondary-cta-border-color: #f6f2e3;

  --button-text: "Quicksand", sans-serif;

  --regular-text: "Supreme", sans-serif;
  --title-text: "Recia", serif;

  --company-logo-text-shadow: rgb(173, 255, 47) 1px 0px 0px,
    rgb(173, 255, 47) 0.540302px 0.841471px 0px,
    rgb(173, 255, 47) -0.416147px 0.909297px 0px,
    rgb(173, 255, 47) -0.989992px 0.14112px 0px,
    rgb(173, 255, 47) -0.653644px -0.756802px 0px,
    rgb(173, 255, 47) 0.283662px -0.958924px 0px,
    rgb(173, 255, 47) 0.96017px -0.279415px 0px;
}

/* Globális reset – csak a dobozmodellt és a margin/paddinget állítjuk minden elemre */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipográfia csak a hero szekción belül,
   hogy ne írja felül más aloldalak (pl. catalogue) betűméretét/színét */
.hero,
.hero * {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

h4 {
  font-size: 36px;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* A hero nem tölti ki teljesen a képernyőt: alul kikandikál az
     Aktualitások szekció címsora, jelezve, hogy érdemes lejjebb görgetni. */
  --hero-peek: 10rem;
  /* --announcement-height: a felső értesítősáv magassága (top-navbar.js állítja) */
  height: calc(100vh - var(--announcement-height, 0px) - var(--hero-peek));
  height: calc(100svh - var(--announcement-height, 0px) - var(--hero-peek));
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 78dvw;
  height: 100%;
  background-color: rgba(23, 23, 23, 0.6);
  clip-path: polygon(0 0, 80% 0, 64% 100.5%, 0 100.5%);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
  backdrop-filter: blur(0px);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 80%;

  margin-left: -25%;
}

.hero-content h1 {
  text-align: center;
  font-family: var(--regular-text);
  font-weight: 600;
  font-style: normal;

  color: var(--welcome-text-color);
  padding-bottom: 0.2rem;
}

.hero p {
  /*font-size: 1.5rem;*/
  font-family: var(--regular-text);
  font-weight: 400;
  color: var(--welcome-text-color);
  margin-bottom: 5px;
  padding-bottom: 2rem;
}

.hero-content div {
  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
}

.hero-content a {
  color: white;
}

.spotlight-card-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: absolute;
  bottom: 2%;
  left: 1%;
  width: 45%;
  height: 25vh;
  z-index: 999;
}

.cryer-card {
  display: flex;
  width: 30%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);

  border-radius: 15px;
  transition: all 0.12s ease-in;
}

.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 15px;

  overflow: hidden;
}
.image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.5s ease-in;
  opacity: 1;
}

.cryer-card:hover {
  transform: scale(1.25);
  background-color: rgba(147, 147, 147, 0.7);
  transition: all 0.5s ease-in;
  z-index: 999;
}

/* Hero section media queries */
/*Media Queries*/
/* 1400 and bigger screens */

@media screen and (min-width: 1440px) {
  .hero-content h1 {
    font-size: 2.5rem; /* 40px - fixed size for large screens */
  }

  .hero p {
    font-size: 1.35rem;
  }
}

@media screen and (max-width: 1440px) {
  .hero-content h1 {
    font-size: clamp(1.9rem, calc(1.9rem + ((1vw - 10.24px) * 1.923)), 2.5rem);
    /* Scale details:
        - Min: 1.9rem (30.4px) - matches next breakpoint's max
        - Max: 2.5rem (40px) - matches larger screen's fixed size
        - Viewport range: 1024px to 1440px */
  }

  .hero p {
    font-size: clamp(1rem, calc(1rem + ((1vw - 10.24px) * 1.154)), 1.35rem);
    /* Scale details:
        - Min: 1rem (16px)
        - Max: 1.35rem (21.6px) - matches larger screen
        - Viewport range: 1024px to 1440px */
  }
}

/* regular 1024 screen */
@media screen and (max-width: 1024px) {
  .hero-content h1 {
    font-size: clamp(1.5rem, calc(1.5rem + ((1vw - 7.68px) * 2.734)), 1.9rem);
    /* Scale details:
        - Min: 1.5rem (24px) 
        - Max: 1.9rem (30.4px) - matches previous breakpoint's min
        - Viewport range: 768px to 1024px */
  }

  .hero p {
    font-size: clamp(0.875rem, calc(0.875rem + ((1vw - 7.68px) * 0.868)), 1rem);
    /* Scale details:
        - Min: 0.875rem (14px)
        - Max: 1rem (16px) - matches previous min
        - Viewport range: 768px to 1024px */
  }
}

/* tablet */
@media screen and (max-width: 768px) {
  .hero {
    /* A kép felső részének preferálása mobilon */
    background-position: center 28%;
  }

  .hero-content h1 {
    font-size: clamp(1.25rem, calc(1.25rem + ((1vw - 4.8px) * 1.736)), 1.5rem);
  }

  .hero-overlay {
    width: 90dvw;
    clip-path: polygon(0 0, 80% 0, 64% 100%, 0 100%);
  }

  .hero p {
    font-size: clamp(
      0.75rem,
      calc(0.75rem + ((1vw - 4.8px) * 0.868)),
      0.875rem
    );
  }
}

/* 620-tól 550ig */
@media screen and (max-width: 620px) {
  .hero {
    background-position: center 25%;
  }

  .hero-content h1 {
    font-size: 23px;
  }

  .hero p {
    font-size: 13px;
  }
}

/* 550-től 426ig */
@media screen and (max-width: 550px) {
  .hero {
    background-position: center 22%;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 12px;
  }
}

/* mobile 425px */
@media screen and (max-width: 510px) {
  .hero {
    background-position: center 20%;
  }

  .hero-overlay {
    width: 100dvw;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero-content h1 {
    font-size: 1.3rem;
    transform: translateX(+20%);
  }
  .hero p {
    font-size: 0.8rem;
    transform: translateX(+20%);
  }

  .hero-cta-buttons {
    transform: translateX(+30%);
  }
}

/* Portré orientáció esetén további finomhangolás */
@media (orientation: portrait) {
  .hero {
    background-position: center 22%;
  }
}
