:root {
  --hero-height: 320px;
  --hero-height-calced: var(--hero-height);
  --hero-mb: 3rem;
  --hero-mt: 3rem;
  --nav2-padding-top: 0.5em;
  --nav2-font-size: 1.5em;
  --nav-2-line-height: 1.4;
  --main-padding-top: 4em;
  --header-padding: 
  var(--hero-mb) + var(--hero-mt)
  ;
  --nav2-padding: 
    var(--nav2-padding-top) * 2 + var(--nav2-font-size) *
      var(--nav-2-line-height)
  ;
  --main-padding-total: (
    var(--header-padding) + var(--nav2-padding) + var(--main-padding-top)
  );
}

/* nav-padding */
/* .nav2 nav a: font-size*line-height */
.for_header_margin {
  width: 1px;
  height: calc(
    var(--hero-height) + var(--hero-mb) + var(--hero-mt) 
  );
}

.for_nav2_margin {
  width:1px;
  height: calc(var(--nav2-padding));
}

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

body,
html {
  margin: 0;
  padding: 0;
  /*background: red;
  background: url(res/back.png);*/
  font-size: 16px;
  line-height: 1.4;
  
}

.main_padding {
  padding: 0 2em;
}

header {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
}

.main_header {
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: row;
  align-items:center;
}

.solganwimg {
  display: flex;
  width: 100%;
  margin-right: 4em;
  flex-direction: column;
}

section {
  scroll-margin-top: calc(var(--main-padding-total));
}

.top-nav {
  display: flex;
  margin-top: var(--hero-mt);
  margin-bottom: var(--top-nav-mb);
  line-height: var(--top-nav-line-height);
  align-items: baseline;
  justify-content: space-between;
}


.logo {
    width: 20%;
    max-width: 120px;
    margin: 1em 72px;
}

.logo_mirror {
  max-width: 120px;
  margin: 1em 72px;
}

.slogan {
  color: #8d8b85;
  font-size: 1.1rem;
  text-wrap: balance;
  /*font-size: 0.67rem;*/
}

.hero_container {
  width: 100%;
  height: min(var(--hero-height-calced),var(--hero-height)); /*140 in design*/
  position: relative;
  margin: var(--hero-mt) auto var(--hero-mb) auto;
  max-width:1380px;
}


/* nav-padding */
/* .nav2 nav a: font-size*line-height */
/*.for_header_margin {
  width: 1px;
  height: calc(
    var(--hero-height) + var(--hero-mb) + var(--top-nav-mt) + var(--top-nav-mb) +
      var(--top-nav-line-height)
  );
}

.for_nav2_margin {
  width:1px;
  height: calc(var(--nav2-padding));
}
  */

.hero {
  position: absolute;
  inset: 0;
  background-size: cover;
  transition: opacity ease 3s;
  opacity: 0;
}

.hero0 {
  background-image: url("res/hero0.png");
  opacity: 1;
}

.hero1 {
  background-image: url("res/hero1.png");
}

.hero2 {
  background-image: url("res/hero2.png");
}

.hero3 {
  background-image: url("res/hero3.png");
}

.hero4 {
  background-image: url("res/hero4.png");
}

.league-spartan {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.nunito-sans {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

nav {
  display: flex;
  gap: 2em;
  justify-content: space-between;
}

nav a.active {
  color: #f1cb16;
}

nav a {
  color: #8d8b85;
  text-decoration: none;
  font-size: 1.1em;
}

.nav2 {
  display: none;
}

.nav2 nav {
  padding: var(--nav2-padding-top) 4em;
  background-color: #000;
}

.nav2 .navgap {
  flex:1;
}

.nav2 .arrow {
  background-color: #000;
  width: 5em;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}


.nav2 .arrowR {
  background-color: #000;
  width: 5em;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.nav2 nav a {
  font-size: var(--nav2-font-size);
  line-height: var(--nav-2-line-height);
}

main {
  padding-top: var(--main-padding-top);
  max-width: 1280px;
  margin: 0 auto;
  font-size: 18px;
  position: relative;
}

h3 {
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-align: right;
    font-variation-settings: "wdth" 100, "YTLC" 500;
    font-size: 2.7em;
    margin: 0;
    margin-top: 1.3em 0;
    margin-bottom: 40px;
}

h4 {
  font-family: Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align:right;
  font-variation-settings: "wdth" 100, "YTLC" 500;
  line-height: 1;
  font-size: 2.0em;
  text-wrap: balance;
  margin-top: 1.3em 0;
  margin-bottom:0.5em 0;
//  font-weight: bold;
}

h5 {
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-align: right;
    font-variation-settings: "wdth" 100, "YTLC" 500;
    line-height: 1.2;
    font-size: 1.8em;
    text-wrap: balance;
}

p {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-align: right;
    line-height: 1.4;
    font-size: 1.6em;
    margin-top: 1em;
    text-wrap: balance;
}

.block_font {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  font-size: 1.2em;
  margin-top: 1em;
  text-wrap: balance;
}

ul.block_font {
    font-size:larger;
  padding:0 1.1rem;
}

.block_font li {
  padding-bottom:1rem;
}


.separator {
  font-size: 9px;
  font-weight: 600;
  font-family: monospace;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 7rem;
}

.separator_small {
  line-height: 3.5rem;
}

.image-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

    .image-row img {
        width: 150px;
        height: auto;
    }

body {
  background: linear-gradient(
    -45deg,
    #ebeee4cc,
    #dff1b6cc,
    #dff1b6cc

    /*
    #a6c4cfcc,
    #a6c4cfcc,
    #a6c4cfcc,
    #dff1b6cc,
    #b5e4d9cc,
    #b5e4d9cc,
    #b5e4d9cc*/
  );
  background-size:100% 5000%;
  /*background-size: 400% 2000%;
  animation: gradient 35s ease infinite;*/
  height: 100vh;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.imgText {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 60%;
  line-height: 0;
}

.imgText img {
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transition: opacity ease 1s;
}


@media (max-width: 1600px) {
    .logo_mirror {
        display: none;
    }
}

@media (min-width: 1030px) and (max-width: 1300px) {
    :root {
        --hero-height: 240px;
        --hero-mb: 2rem;
        --hero-mt: 2rem;
    }

    .logo {
        width: 20%;
        margin: var(--hero-mt) 8% var(--hero-mb) 8%;
    }
}

@media (min-width: 830px) and (max-width: 1030px) {
    :root {
        --hero-height: 200px;
        --hero-mb: 2rem;
        --hero-mt: 2rem;
    }

    .logo {
        width: 20%;
        margin: var(--hero-mt) 2em var(--hero-mb) 2em;
    }


    .imgText {
        height: 50%;
    }

    .block_font {
        font-size: 1.5em;
        line-height: 1.1;
        padding-bottom: 0px;
    }
}

@media (max-width: 830px) {

    .products_container {
        flex-direction: column;
    }

    .product_img {
        width: 90%;
        max-height: 250px;
    }

    .logo {
        width: 10%;
        min-width: 30px;
        margin: var(--hero-mt) 1.5em var(--hero-mb) 1.5em;
    }
}

@media (min-width: 580px) and (max-width: 830px) {
    :root {
        --hero-height: 140px;
        --hero-mb: 2rem;
        --hero-mt: 4.5rem;
    }

    body {
        font-size: 13px;
    }


    .imgText {
        height: 50%;
    }

    .block_font {
        font-size: 1.5em;
        line-height: 1.1;
        padding-bottom: 0px;
    }
}

@media (max-width: 580px) {
    :root {
        --hero-height: 120px;
        --hero-mb: 1rem;
        --hero-mt: 1.5rem;
    }

      body {
    font-size: 11px;
  }

    .hide-on-mobile {
        display: none;
    }

    .nav2 {
        font-size: 0.8em;
    }

    .imgText {
        height: 50%;
    }

    .block_font {
        font-size: 1.5em;
        line-height: 1.1;
        padding-bottom: 0px;
    }

    .solganwimg {
        margin-left: 1em;
    }


    .for_header_margin,
    .for_nav2_margin {
        margin-top: 20px;
        margin-bottom: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        height: 10px; 
    }

    header {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .main_padding {
        padding-top: 20px;
        margin-top: 20px;
    }

    .top-nav {
        height: 10px; /* Reduce height */
        padding: 5px 0; /* Less vertical padding */
        margin: 0 auto; /* Optional: tighten margins */
    }

    .image-row {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .mobile-space-below {
        margin-bottom: 30px;
    }

    .product_img {
        margin-bottom: 10px !important;
        padding-bottom: 0 !important;
    }

    .product_p {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .products_container {
        gap: 0 !important;
    }
}

@media (max-width: 330px) {
    :root {
        --hero-height: 0px;
    }
}

@media (max-width: 302px) {
    :root {
        --hero-height: 0px;
    }

    .block_font {
        font-size: 1.5em;
        line-height: 1.1;
        padding-bottom: 0px;
    }
}


/* original
@media (min-width: 530px) and (max-width: 830px) {
  :root {
    --hero-height: 140px;
    --hero-mb: 2rem;
  }

  .logo {
    width: 20%;
    margin: 0 8%;
  }

  .nav2 {
    font-size: 0.6em;
  }
}

@media (max-width: 530px) {
  :root {
    --hero-height: 120px;
    --hero-mb: 1rem;
  }

  .logo {
    width: 15%;
    margin: 0 1%;
  }

  .nav2 {
    font-size: 0.5em;
  }
  
}


@media (max-width: 1600px) {
    .logo_mirror {
        display: none;
    }
}

/*
@media (min-width: 1030px) and (max-width: 1300px) {
    :root {
        --hero-height: 240px;
        --hero-mb: 2rem;
        --hero-mt: 2rem;
    }

    .logo {
        width: 20%;
        margin: var(--hero-mt) 8% var(--hero-mb) 8%;
    }
}

@media (min-width: 830px) and (max-width: 1030px) {
    :root {
        --hero-height: 200px;
        --hero-mb: 2rem;
        --hero-mt: 2rem;
    }

    .logo {
        width: 20%;
        margin: var(--hero-mt) 2em var(--hero-mb) 2em;
    }

    .imgText {
        height: 50%;
    }

    .block_font {
        font-size: 1.5em;
        line-height: 1.1;
        padding-bottom: 0px;
    }
}

Untill here*/

    .contact {
        display: flex;
        width: 100%;
        align-items: top;
        gap: 7em;
        justify-content: space-between;
    }

        .contact p {
            line-height: 1.6;
            margin: 0 auto 4em auto;
        }

    form {
        margin-top: 1em;
        margin-bottom: 18em;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
    }

    textarea,
    input,
    button {
        /*width:100%;*/
        background-color: #f2e29c;
        border: 0 none transparent;
        margin: 0;
        padding: 8px;
        font-family: "League Spartan", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        line-height: 1;
        font-size: 1.2rem;
    }

    @media (max-width: 850px) {
        .contact {
            gap: 1em;
            flex-direction: column;
        }
    }



    a,
    a:visited {
        color: #444;
    }

    button {
        background-color: #f1cb16;
        position: absolute;
        width: 8em;
        bottom: 0;
        right: 0;
    }

    .blocks {
        display: grid;
        justify-content: space-between;
        margin-top: 4em;
        gap: 2em;
    }

    .block {
        background-color: #f1cb16;
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 1em;
        gap: 0;
        filter: drop-shadow(5px 5px 8px hsla(50, 89%, 52%, 0.466)) drop-shadow(-5px -5px 8px hsla(50, 89%, 52%, 0.466));
    }

    .block_title {
        display: flex;
        flex-direction: row;
    }

    .blocks img {
        width: 100px;
        margin-right: 2rem;
    }

    .block_text {
        display: flex;
        flex-direction: column;
    }

    @media (min-width: 1200px) {
        .blocks {
            grid-template-columns: repeat(3, 1fr);
        }
    }


    @media (max-width: 1200px) {
        .blocks {
            grid-template-rows: repeat(3, 1fr);
        }
    }


    /*shadow */
    .nav2 {
        filter: drop-shadow(5px 5px 10px #000000);
    }

    .main_header {
        filter: drop-shadow(5px 5px 10px #000000);
    }

    .products_container {
        display: flex;
        gap: 2em;
        align-items: flex-start;
    }

    .product_p {
        flex: 1;
    }

    .product_img {
        width: 30%;
        object-fit: contain;
        margin-top: 1em;
    }


    @media (max-width: 1200px) {
    }

    .nav1 {
        display: none;
    }

    .nav2 {
        display: flex;
    }


    footer {
        display: flex;
        width: 100%;
        color: #444;
        padding: 0;
        margin: 0;
        filter: drop-shadow(-5px -5px 10px #000000);
    }

    .footer_content {
        background-color: #000;
        flex: 1;
        padding: var(--nav2-padding-top) 4em;
        font-size: var(--nav2-font-size);
        line-height: var(--nav-2-line-height);
        text-align: center;
    }


    footer .arrow {
        background-color: #000;
        width: 5em;
        clip-path: polygon(0 102%, 100% 0, 100% 102%);
        padding: var(--nav2-padding-top) 0;
    }

.two_columns {
    columns: 2; /* split into 2 columns */
    -webkit-columns: 2; /* for Safari */
    -moz-columns: 2; /* for Firefox */
    column-gap: 2em; /* space between columns */
}

@media (max-width: 768px) {
    .products_container {
        flex-direction: column;
    }

    .product_img {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 1em;
    }

    .product_p {
        width: 100%;
    }

    .two_columns {
        columns: 1; /* single column list on mobile */
    }

    @media (max-width: 768px) {
        #about > div {
            flex-direction: column;
            align-items: flex-start; /* keep right-alignment (rtl) */
        }

        #about p {
            margin-left: 0;
            margin-bottom: 1em;
        }

        #about img {
            margin-bottom: 1em;
        }
    }
}
@media (max-width: 768px) {
    #about > div {
        flex-direction: column; /* stack text and logos */
        align-items: flex-start;
    }

    #about p {
        margin-left: 0;
        margin-bottom: 1em;
    }

    .about-logos {
        display: flex;
        flex-direction: row; /* show logos side-by-side */
        gap: 1em; /* spacing between them */
        justify-content: flex-start;
        flex-wrap: wrap; /* allow wrap if screen is too narrow */
    }

        .about-logos img {
            margin-bottom: 0;
        }


}