/* main header svg branding */
header > svg {
    transform: scale(1);
    height: 60px;
    width: max-content;
}
header > svg path{
    fill: var(--color-logotype);
}
/* hero section */
body > main > section#hero > .gallery.fullscreen,
body > main > section#hero{
    width: 100vw;
    height: 100vh;
}
html,
body main > section,
header,
body{
    max-width: 100vw;
    overflow-x: none;
}
body > main > section#hero{
    position: relative;
}
body > main > section#hero > .content {
    padding-top: 60px;
    height: max-content;
    justify-self: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}
body > main > section#hero > .content > img{
}
.gallery.fullscreen,
.gallery.fullscreen > img{
    position: absolute;
    left: 0;
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
header{
    width: var(--breakpoint-xl);
    padding-left: calc((100vw - var(--breakpoint-xl)) / 2);
    padding-right: calc((100vw - var(--breakpoint-xl)) / 2);
    min-height: 60px;
    background: var(--color-primary-invert);
    border-bottom: 1px solid var(--color-border);
    top: 0;
    left: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
header > .menu {
    display: flex;
    gap: var(--space-3);
}
header > .menu > nav{
    width: max-content;
    justify-self: flex-end;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    overflow-x: auto;
}
header > .menu > nav > a{
    min-height: var(--button-size);
    display: flex;
    align-items: center;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}
header > .menu > nav > a > span,
header > .menu > nav > a:any-link > span{
    color: var(--color-text);
}
.action a > span,
header > .menu > nav > a > span {
    text-transform: uppercase;
    font-family: roboto;
    font-weight: 300;
    letter-spacing: -0.7px;
    font-size: var(--font-size);
    white-space: nowrap;
}
header > .menu > address{
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
header > .menu > address > a > span{
    color: var(--color-text);
    font-style: normal;
    font-weight: 300;
    font-family: roboto_condensed;
    font-size: 21px;
    letter-spacing: -1px;
    white-space: nowrap;
}
a.action-sm{
    aspect-ratio: 1/1;
}
a.action-sm > img {
    width: var(--button-size);
    height: var(--button-size);
}
header button {
    border: 1px solid var(--color-primary);
    background: var(--color-primary-invert);
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}
header button > span{
    font-weight: 300;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: -0.4px;
    line-height: 1;
}
header button:hover {
    opacity: 1;
    border: 1px solid var(--color-primary-hover);
}
header button:hover > span{
    color: var(--color-primary-hover);
}
@media screen and (min-width:651px){
    header > svg {
        min-width: 120px;
    }
    header > .menu > nav{
        max-width: calc(var(--breakpoint-xl) / 2);
    }
}
@media screen and (max-width:650px) {
    header{
        padding-left: var(--space-2);
        padding-right: var(--space-2);
        width: calc(100% - (var(--space-2) * 2));
    }
    header > button.mobile {
        background: transparent;
        z-index: 9;
    }
    button.mobile.active > svg:nth-child(1) > path,
    button.mobile > svg:nth-child(1) > path{
        stroke: var(--color-primary);
        stroke-width: 1.5px;
    }
    header > button.mobile.active > svg > path:nth-child(1){
        transform: rotate(45deg) translate(8px , -10px);
    }
    header > button.mobile.active > svg > path:nth-child(2){
        transform: rotate(-45deg) translate(-22.5px , 8px);
    }
    header > button.mobile.active > svg > path:nth-child(3){
        display: none;
    }
    .burger.menu{
        display: flex;
        flex-direction: column;
        width: 80vw;
        height: 100vh;
        position: fixed;
        right: 0;
        transform: translate(100vw);
        top: 0;
        transition: 1s;
    }
    .burger.menu.active{
        transform: translate(0);
        border-left: 1px solid var(--color-border);
        padding-top: 60px;
        background: var(--color-background);
        z-index: 8;
    }
    .burger.menu > nav{
        display: block;
        width: 100%;
        overflow-x: hidden;
        max-height: 600px;
        overflow-y: auto;
    }
    .burger.menu > nav > a {
        margin-top: var(--space-2);
        width: calc(100% - (var(--space-3) * 2));
        border-radius: unset;
    }
    .burger.menu > address {
        display: flex;
        flex-wrap: wrap;
        margin-left: var(--space-2);
        margin-top: var(--space-3);
        margin-bottom: var(--space-4);
    }
    .burger.menu > address > a{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .burger.menu > address > a.action-sm{
        width: 30%;
        aspect-ratio: unset;
    }
    .burger.menu > button {
        margin-left: auto;
        margin-right: var(--space-2);
        max-width: max-content;
    }
}

body > main > section#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}
body > main > section#hero .action > a{
    color: var(--color-text);
}
body > main > section#hero article > a{
    margin-top: 1rem                                                                                                                                        ;
}
body > main > section#hero > .content {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
}
body > main > section#hero > .content > img {
    object-fit: cover;
}
body > main > section#hero > .content > article {
    display: flex;
    width: 350px;
    flex-direction: column;
}
body > main > section#hero > .content > img,
body > main > section#hero > .content > article{
    width: calc(var(--breakpoint-xl) / 2);
}
body > main > section#hero > .content > article > h1{
    letter-spacing: -1px;
    font-weight: 400;
    font-size: var(--font-size-2xl);
}
body > main > section#hero > .content > article > p{
    font-size: var(--font-size-md);
    font-weight: 300;
    margin-bottom: var(--space-2);
}
body > main > section#hero > .content > article > ul > li {
    list-style-position: inside;
    margin-left: var(--space-2);
    list-style: none;
}
body > main > section#hero > .content > article > ul > li > img{
    height: 1em;
    min-width: 1em;
    margin-right: var(--space-2);
}
body > main > section#hero > .content > article > ul > li > span{
    font-weight: 300;
}
section#about {
    padding-left: unset;
    width: calc(100vw - (var(--space-4) * 2));
}
body > main > section#hero > .gallery.fullscreen{
    box-shadow: 0 -20px 20px 10px var(--color-background) inset;
}
body > main > section#hero > .content img[src="asset/image/event.png"]{
    border: double 10px var(--color-border);
    border-radius: var(--radius-md);
}
@media screen and (min-width : 651px) {
    body > main > section#hero > .content:has(img+article){
        gap: 24px;
        max-width: 80%;
        padding-top: var(--space-4);
    }
}
@media screen and (max-width : 650px){
body > main > section#hero > .content > article > ul > li {display:flex;  }
    section#hero{
        display: block !important;
    }
    body > main > section#hero > .content,
    body > main > section#hero {
        height: unset;
        min-height: max-content;
    }
    
    body > main > section#hero > .content{
        flex-direction: column;
    }
    body > main > section#hero > .content > article {
        width: 100%;
        padding-top: var(--space-3);
    }
    body > main > section#hero > .content > article > h1 {
        line-height: 1.1;
        margin-bottom: unset;
    }
    body > main > section#hero > .content > img {
        width: 100vw;
        aspect-ratio: 4/3;
        object-fit: contain;
    }
    body > main > section#hero > .content > article > .cta-button{
        margin-right: var(--space-3);
        margin-left: auto;
    }
}

 /* --- Hero Slider Styles --- */

/* The main hero section acts as a positioning context for the buttons */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh; /* Make hero take full viewport height */
    overflow: hidden; /* Hide anything that goes outside the hero section */
}

/* The background gallery (your existing style might be fine) */
#hero .gallery.fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind the content */
}

#hero .gallery.fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
}
#hero img.icon{
    /* filter: invert(1); */
}

/* This is the viewport for our slides. It hides the overflowing content. */
.slider-container {
    width: 100%; /* Or your preferred max-width */
    max-width: 1200px;
    overflow: hidden;
    position: relative;
}

/* This track holds all the slides in a row and will be moved. */
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* The smooth sliding animation! */
}

/* Each .content div is now a slide */
#hero .content {
    /* Each slide takes up 100% of the container's width */
    flex: 0 0 100%; 
    box-sizing: border-box;
    
    /* Your existing layout for image and text */
    display: flex;
    align-items: center;
    gap: 2rem; /* Space between image and text */
    padding: 1rem;
    color: var(--color-text); /* Make sure text is visible on the background */
}

#hero .content img {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
}

#hero .content article {
    flex: 1;
    max-width: 50%;
}
@media screen and (min-width : 651px){
    .slider-container .content{
        background: rgba(0, 0, 0, 0.5);
        border-radius: var(--radius-lg);
    }
}
@media screen and (max-width : 650px){
    #hero .content {
        display: block !important;
        width: 100%;
        margin-top: 60px;
    }
    #hero .content img,
    #hero .content article{
        width: 100% !important;
        max-width: unset;
    }
}


/* --- Slider Navigation Buttons --- */
.slider-nav{
    display: none;
}
#hero:has(.content + .content) .slider-nav{
    display: flex;
} 
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem; /* Spacing from screen edges */
    box-sizing: border-box;
    pointer-events: none; /* Allows clicks to go through the container */
}

.slider-nav button {
    pointer-events: all; /* Makes the buttons clickable again */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-nav button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media screen and (min-width : 651px){
    #prevBtn {
        margin-left: 10px;
    }

    #nextBtn {
        margin-right: 10px;
    }
}
@media screen and (max-width:650px) {
    .slider-nav{
        padding: unset;
    }
    .slider-nav button{
        width: 40px;
        height: 40px;
        background: transparent;
    }
}

img.icon.large{
    width: 6rem;
}

#privelege {
    max-width: var(--breakpoint-xl);
    margin-top: 1rem;
}
.grid{
    display: grid;
    grid-template-columns: repeat(auto-fill , minmax(250px , 1fr));
}
#privelege .tile > div{
    display: flex;
    align-items: center;
}
#privelege .tile > div h3{
    font-family: 'caveat' !important;
}
#hero .content article ul li {
    display: flex;
    align-items: center;
}
#hero .content article ul .icon{
    min-height: 1.25rem;
    min-width: 1.25rem;
    max-width: 1.25rem;
    margin-right: 0.5rem;
    aspect-ratio: 1/1;
}
#stories h2,
section#catalogue > h2,
#roadmap h3,#services > h2,
.about-location h3, .about-team h3,
section#about > h2,
.section-title{
    font-family: 'caveat' , serif;
    font-weight: 700;
}
section#portfolio > h2,
section#about > .service-categories > h3,
main > div.catalogue-cta > h4{
    font-size: var(--font-size-xl);
    margin-bottom:0;
    font-family: 'caveat' , serif;
}
#services > h2{
    font-size: var(--font-size-2xl);
}
#hero .content article h1{
    font-family: 'caveat';
    font-weight: 600;
    line-height: 1;
    font-size: var(--font-size-2xl);
}
@media screen and (min-width : 651px){
    header{
        display: grid;
        grid-template-columns: 1fr max-content 1fr;
    }
    header .menu{
        display: flex;
        align-items: center;
        width: max-content;
        margin-left: auto;
    }
    header address.description span{
        min-height: 1.5rem;
        display: inline-flex;
        align-items: center;
    }
    header nav.desktop.wide{
        grid-column: 1/-1;
    }
    header nav.desktop.wide.actions{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25em;
        margin-bottom: 0.5rem;
    }
    header nav.desktop.wide.actions > a{
        display: flex;
        align-items: center;
        background: var(--color-background);
        color: var(--color-text);
        min-height: var(--button-size);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        border-radius: 0.5rem;
        letter-spacing: -1px;
    }
    header nav.desktop.wide.actions > a:hover{
        background: var(--color-surface);
    }
    header img.logo{
        height: 10.5rem;
    }
    #hero .content img{
        max-width: 40%;
    }
    #hero{
        height: 62vh !important;
        min-height:62vh !important;
        border-bottom: 1px solid var(--color-border);
    }
    .slider-nav button,
    .slider-container .content{
        background: rgba(255, 255, 255, 0.5);
        transition: 0.5s;
    }
    .slider-nav button:hover{
        background: rgba(255, 255, 255, 0.7);
    }
    .slider-nav #prevBtn:hover{
        transform: translateX(-20%);
    }   
    .slider-nav #nextBtn:hover{
        transform: translateX(20%);
    }
    #hero .content article ul{
        list-style: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }
    #hero .content article p{
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
    .contact-info{
        padding-top: 2rem;
    }
    .tile{
        display: grid;
        grid-template-columns: repeat(4,1fr);
    }
}
@media screen and (min-width : 651px) and (max-width : 1024px){
    body > main > section#hero > .content:has(img + article){
        width: 100%;
        max-width: unset;
    }
    header .menu{
        flex-direction: column;
    }
    header img.logo{
        height: 5.5rem;
    }
    .tile > div{
        display: flex;
        flex-direction: column;
    }
}
@media screen and (max-width : 651px){
    #hero .gallery.fullscreen{
        height: 100%;
    }
}