@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300..900&family=Oxanium:wght@200..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
*,
*::before,
*::after{
    box-sizing: border-box;
}
:root{
    --primary: #fff;
    --secondary1:#9e4141;
    --secondary2:  #a18383;
    --tertiary: #4d4d4d;
    --accent: #050204;

    --primaryT: #ffffff80;
    --secondary1T:#9e414180;
    --secondary2T:  #afafaf80;
    --tertiaryT: #4d4d4dbb;
    --accentT: #05020480;

    --backgroundTexture: url('../assets/textures/backgroundTexture.jpg');
} 
h1{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}
p{
    cursor: default;
}
a,
a:visited{
    color: var(--primary);
}
/* button{
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;

    background-color: var(--secondary1);
    border-radius: 5px;
} */
/* CSS */
:not(#header, #sideNav) > button {
  --b: 3px;   /* border thickness */
  --s: .45em; /* size of the corner */
  --color: var(--secondary1);
  
  padding: calc(.4em + var(--s)) calc(.7em + var(--s));
  color: var(--accent);
  --_p: var(--s);
  background:
    conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
    var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
  transition: .3s linear, color 0s, background-color 0s;
  outline: var(--b) solid #0000;
  outline-offset: .6em;
  font-size: 16px;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

:not(#header, #sideNav) > button:hover,
:not(#header, #sideNav) > button:focus-visible{
  --_p: 0px;
  outline-color: var(--color);
  outline-offset: .05em;
}
:not(#header, #sideNav) > button:active {
  background: var(--color);
  color: #fff;
}

#logo{
    white-space: nowrap;

    padding-left: 10px;
    color: var(--primary);
    font-size: 35px;
    display: grid;
    grid-template-columns: 53px auto;
    align-items: center;
    justify-items: start;

}
#logo::before{
    display: inline-block;
    content: " ";
    background-image:  url("../assets/logo.png");
    height: 50px;
    width: 50px;
    background-size: cover;
    grid-row: span 2;
}
.mobile #logo{
    font-size: 20px;
    padding-right: 2%;
    grid-template-columns: 37px auto;

}
.mobile #logo::before{
    height: 35px;
    width: 35px;
}

body{
    padding: 0;
    margin: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    font-family: 'Rubik', sans-serif;
}
#contentOutlet{
    flex: 1;
    overflow-y: auto;
}
#contentOutlet::-webkit-scrollbar {
    display: none;
}
#contentOutlet{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
#header{
    flex: 0;
    width: 100%;
    background-color: var(--secondary1);
    z-index: 99;
}
#header h1{
    margin: 0;
}
#header.desktop{
    position: absolute;
    display: grid;
    grid-template-columns: minmax(25% , auto) repeat(6, 1fr) 20%;
    justify-items: stretch;
    align-items: stretch;
    min-height: 70px;
    background: linear-gradient(var(--secondary1) 50%, transparent 50%);
    background-size: 100% 200%;
    background-position-y: bottom;
    transition: background-position 0.4s ease-in-out;
}
#header.desktop > :last-child{
    align-self: center;
    justify-self: center;
    color: var(--primary);
    font-weight: 100;
    font-size: 1.3rem;
}
#header.desktop.scrolled{
    background-position-y: top;
}
#header.desktop button{
    padding-bottom: 1%;
    background: transparent;
    border: 0;
    color: var(--primary);
    font-size: larger;
    transition: all 0.3s ease-out;
}
#header.desktop button:hover{
    text-shadow: 3px 3px 1px var(--accent);

}

#header.desktop button.active{
    box-shadow: inset 0 10px 0 var(--primary);
}
#header.desktop button.active:hover{
    box-shadow: inset 0 10px 0 var(--secondary1);
}

#header.mobile{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

#header.mobile .hamburger{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    height: 40px;
    width: 40px;
    margin: 5px
}

#header.mobile .hamburger input,
#header.mobile .hamburger::before,
#header.mobile .hamburger::after {
    content: "";
    width: 100%;
    height: 5px;
    background-color: var(--primary);
    border-radius: 20px;
}
#header.mobile .hamburger::before,
#header.mobile .hamburger::after {
    transition: transform 0.5s ease-in-out;
}
#header.mobile .hamburger input{
    transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out ;
}

#header.mobile .hamburger::before {
    transform-origin: top left;
}
#header.mobile .hamburger::after{
    transform-origin: bottom left;
}

#header.mobile .hamburger input{
    appearance: none;
    padding: 0;
    margin: 0;
    outline: 0;
}
#header.mobile .hamburger:has(input:checked)::before{
    transform: rotate(45deg) scaleX(calc(sqrt(1.7)));
}
#header.mobile .hamburger:has(input:checked)::after{
    transform: rotate(-45deg) scaleX(calc(sqrt(1.7)));
}

#header.mobile .hamburger input:checked{
    transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out ;
    opacity: 0;
    width: 0;
}

#header.mobile:has(> .hamburger > input:checked) + #sideNav{
    transform: translateX(0);
}


#sideNav{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    z-index: 98;
    padding-top: 70px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1em;
    margin-top: 1em;


    background-color: var(--secondary1);
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
}

#sideNav #header button p{
    margin: 0;
    padding: 0;
    transform: scaleX(165%);
}

#sideNav button{
    margin: 0;
    background: transparent;
    padding: 0.3em;
    border: 0;
    color: var(--primary);
    text-shadow: -1px 1px 1px var(--accent);
    text-align: left;
    font-size: 7vw;
    border-bottom: var(--primary) solid 2px;
    transition: border  0.2s ease-in;
}
#sideNav button.active{
    border-bottom: var(--primary) solid 5px;
    background-color: var(--secondary2);
}


#hero{
    height: 70vh;
    background: linear-gradient(var(--tertiaryT),rgba(128, 128, 128, 0.5) ), fixed url('../assets/textures/herobg.jpg') ;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;

    position: relative;
}
#hero ul,
#hero p,
#hero h1,
#hero h2{
    text-align: center;
    text-shadow: 0 0 10px var(--accent);
}
#hero h1{
    font-size: 3rem;
}
#hero h2{
    font-size: 2rem;
    font-weight: 100;
}
#hero.main{
    min-height: 100vh;
}

#footer{
    background-color: var(--accent);
    color: var(--primary);
    display: grid;
    height: calc(60vh - 70px);
    grid-template-columns: 1fr 2fr 1fr; 

}

#footer form{
    grid-row: span 2;
} 

@media screen and (max-width: 600px) {
    #footer{
        min-height: calc(100vh - 50px);
        grid-template-columns: 1fr 1fr;
        font-size: 0.7rem;
    }
    #footer form{
        grid-column: span 2;
    }
}


 form{
    margin: 0;
    background: 0;
    border: 0;
    justify-self: stretch;
    box-shadow: 0 0 0 transparent;
    color: var(--primary);

    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
 form h2{
    margin: 0;
}
#footer form button{
    align-self: end;
    margin-right: 2%;
    color: var(--primary);
}
 form input,
 form textarea{
    background-color: transparent;
    padding: 5px;
    resize: none;
    border-radius: 0 0 10px 10px;
    border-color: var(--secondary1);
    color: var(--primary);
}
 form textarea{
    max-height: 10vh;
}
#footer ul{
    color: var(--primary);
    font-size: 1.2em;
}
#footer ul li{
    text-decoration: underline;
    cursor: pointer;
}
#footer ul li a:hover,
#footer ul li:hover{
    color: var(--secondary2);
}
a.callbutton{
    white-space: nowrap;
    border: 2px solid var(--accent);
    text-decoration: none;
    background: radial-gradient(circle at center, green, rgb(44, 139, 44));
    background-color: green;
    border-radius: 20px;
    padding: 20px;
    font-size: 1.4em;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}
a.callbutton::before{
    content: "📞";
    filter: invert(100%) sepia(7%) saturate(7495%) hue-rotate(299deg) brightness(110%) contrast(113%);
}

@media screen and (max-width: 600px) {
    .desktop{
        display: none;
    }
    #header.desktop{
        display: none;
    }
}
@media screen and (min-width: 600px) {
    .mobile{
        display: none;
    }
    #header.mobile{
        display: none;
    }
    #sideNav{
        display: none;
    }
}
