:root{
    --brand: #143F3F;
    --secondary: #C4DFDF;
    --bg: #F5F5F5;
    --dark: #0A292B;
    --light-brown: #B7A695;
    --dark-brown:#51483E;
    --trans: 0.35s ease;
    --border: 20px;
}


/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Bricolage Grotesque", sans-serif;
    font-optical-sizing: auto;
    background: var(--bg);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;  
    margin: 0;
    padding: 0;
    line-height: 1;
}

h1 {
    font-size: 6.5rem;
    color: var(--brand);
}

h2 {
    font-size: 4rem;
    color: var(--brand);
}

h3 {
    font-weight: 600;
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--trans);
    transform-origin: left center;
}

.nav-link:hover{
    color: var(--dark);
    opacity: 0.8;
    transform: scale(1.05);
    color: var(--brand);
}

body:has(.nav-link:hover) section{
    filter: saturate(0.15);
}


/* Layout */
section{
    padding: 0 60px;
    scroll-margin-top: 100px;
    transition: 0.6s ease-out;
}

.con{
    padding: 80px 0;
    gap: 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 1440px;
}

header{
    position: fixed;
    top: 0;
    left: 0;    
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 60px;
}

header nav{
    --header-size: 70%;
    position: relative;
    margin-top: 30px;
    display: flex;
    gap: 55px;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    max-width: 1440px;
    border-radius: var(--border);
    padding: 20px 25px;
    backdrop-filter: blur(5px) url(#liquid-glass);
    -webkit-backdrop-filter: blur(5px) url(#liquid-glass);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.3), inset 0 0 0 3px rgba(255, 255, 255, 0.2);
    clip-path: shape(
        from 0% 20px,
        curve to 20px 0% with 0% 0%,
        line to calc(100% - 20px) 0%,
        curve to 100% 20px with 100% 0%,
        line to 100% calc(50% - 20px),
        curve to calc(100% - 20px) 50% with 100% 50%,
        line to calc(var(--header-size) + 20px) 50%,
        curve to var(--header-size) calc(50% + 20px) with var(--header-size) 50%,
        line to var(--header-size) calc(100% - 20px),
        curve to calc(var(--header-size) - 20px) 100% with var(--header-size) 100%,
        line to 20px 100%,
        curve to 0% calc(100% - 20px) with 0% 100%,
        close
    );
}

header nav .logo{
    width: 120px;
}

header nav .nav-links{
    display: flex;
    gap: 60px;
    max-width: var(--header-size);
}

footer{
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: var(--dark);
}


/* Hero Section */
.hero{
    padding: 80px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 1000px;
    min-height: 100svh;
}

.hero-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0;
    gap: 12px;
}

.hero-left h1{
    text-align: start;
    width: fit-content;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--dark);
}

.hero-left a{
    align-self: start;
}

.hero-right{
    display: flex;
    align-items: center;
}

.hero-right img{
    display: block;
    width: 100%;
    object-fit: contain;
    max-width: 650px;
}


/* Benefits Section */
.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 40px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    background: var(--secondary);
    border-radius: var(--border);
    padding: 15px 32px;
    color: var(--dark);
}

.benefit-item svg {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    fill: var(--brand);
}

.benefit-item-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-item:last-of-type {
    padding: 25px 25px;
    align-items: stretch;
    background: var(--light-brown);
    color: var(--dark-brown);
}

.benefit-item:last-of-type a{
    margin-top: auto;
    color: var(--dark-brown);
}


/* Usage Section */
.usage-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    grid-auto-rows: 1fr;
    gap: 35px;
    margin-top: 40px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 12px;
    background: var(--brand);
    border-radius: var(--border);
    padding: 9px;
    color: var(--secondary);
}

.usage-item img {
    width: 100%;
    border-radius: 18px;
}

.usage-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 7px;
}

.usage-item:last-of-type {
    position: relative;
    overflow: hidden;
    padding: 15px;
    align-items: stretch;
    background: var(--dark-brown);
    color: var(--light-brown);
    z-index: 1;
}

.usage-item:last-of-type ::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, rgba(81, 72, 62, 0.85), rgba(16, 14, 12, 0.5));
}

.usage-item:last-of-type img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.2;
    transform-origin: right center;
    z-index: -1;
}

.usage-item:last-of-type .usage-item-text{
    padding: 0;
    height: 100%;
}

.usage-item:last-of-type h3{
    font-size: 1.65rem;
    line-height: 1.1;
}

.usage-item:last-of-type a{
    margin-top: auto;
    color: var(--light-brown);
    font-size: 1rem;
}



/* Gallery Section */
.image-gallery {
    --gallery-gap: 25px;
    columns: 4 300px;
    column-gap: var(--gallery-gap);
    margin-top: 40px;
}

.image-gallery img {
    display: block;
    width: 100%;
    margin-bottom: var(--gallery-gap);
    border-radius: var(--border);
    cursor: pointer;
    break-inside: avoid;
    transition: transform var(--trans), opacity var(--trans);
}

.image-gallery img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}


/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 41, 43, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--border);
    object-fit: contain;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans);
    backdrop-filter: url(#liquid-glass);
    -webkit-backdrop-filter: url(#liquid-glass);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-close {
    padding-top: 2px;
    top: 24px;
    right: 24px;
    font-size: 1.75rem;
}

.lightbox-prev {
    padding-bottom: 3px;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.lightbox-next {
    padding-bottom: 3px;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}


/* Our Story Section */
.story-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.story-item {
    --notch-height: 45px;
    --notch-start: 55%;
    width: 700px;
    display: flex;
    flex-direction: column;
    gap: 0;
    color: var(--dark);
}

.story-image {
    margin-bottom: calc(var(--notch-height) * -1 + 15px);
    max-width: 370px;
    border-radius: var(--border);
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.story-image img {
    object-fit: cover;
}

.story-item-text {
    flex: 1;
    position: relative;
    border-radius: var(--border);
    background: var(--secondary);
    color: var(--dark);
    padding: 17px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    clip-path: shape(
        from 0% calc(var(--notch-height) + 20px),
        curve to 20px var(--notch-height) with 0% var(--notch-height),
        line to calc(var(--notch-start) - 20px) var(--notch-height),
        curve to var(--notch-start) calc(var(--notch-height) - 20px) with var(--notch-start) var(--notch-height),
        line to var(--notch-start) 20px,
        curve to calc(var(--notch-start) + 20px) 0% with var(--notch-start) 0%,
        line to calc(100% - 20px) 0%,
        curve to 100% 20px with 100% 0%,
        line to 100% calc(100% - 20px),
        curve to calc(100% - 20px) 100% with 100% 100%,
        line to 20px 100%,
        curve to 0% calc(100% - 20px) with 0% 100%,
        close
    );
}

.story-item-text h3 {
    align-self: flex-end;
    width: 100%;
    text-align: center;
    max-width: 42%;
}

.story-item-text p{
    text-align: justify;
}

.story-item:last-child .story-image img {
    height: 100%;
    width: 100%;
    border-radius: var(--border);
}

.story-item:last-child .story-item-text{
    background: var(--light-brown);
    color: var(--dark-brown);
}


/* Contact Section */
.contact-wrapper{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    margin-top: 40px;
}

.contact-item{
    position: relative;
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--secondary);
    color: var(--dark);
    padding: 18px 30px;
    padding-inline-end: 45px;
    border-radius: var(--border);
    max-width: 400px;
    width: 100%;
    text-decoration: none;
    transform-origin: left center;
    transition: var(--trans);
}

.contact-item p{
    position: relative;
    z-index: 1;
}

.contact-item a{
    position: absolute;
    inset: 0;
    -webkit-tap-highlight-color: transparent;
}

.contact-item:hover{
    scale: 1.02;
}

.contact-item svg{
    fill: var(--brand);
    width: 50px;
    height: 50px;
}


@media (max-width: 1380px){
    header nav{ --header-size: 75%; }
}
@media (max-width: 1300px){
    header nav{ --header-size: 80%; }
}

@media (max-width: 1260px){

    header nav{
        --header-size: 85%;
        gap: 40px;
    }

    header nav .nav-links{
        gap: 40px;
    }

    .hero{
        padding-top: 100px;
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
    }

    .hero-left h1{
        width: 100%;
        padding-bottom: 12px;
        line-height: 1.1;
    }

}

@media (max-width: 1080px){
    header nav{ --header-size: 90%; }

    header nav .nav-links{
        gap: 30px;
    }

    header nav .nav-link{
        font-size: 1.1rem;
    }
    
}

@media (max-width: 900px){
    
    header nav .nav-links{ display: none; }
    header nav{ --header-size: 60%; }

    .story-image{
        max-width: unset;
        margin: 0 auto;
        margin-bottom: 20px;
        width: 70%;
    }

    .story-item-text{
        --notch-start: 50%;
        clip-path: shape(
            from 100% calc(var(--notch-height) + 20px),
            curve to calc(100% - 20px) var(--notch-height) with 100% var(--notch-height),
            line to calc(100% - var(--notch-start) + 20px) var(--notch-height),
            curve to calc(100% - var(--notch-start)) calc(var(--notch-height) - 20px) with calc(100% - var(--notch-start)) var(--notch-height),
            line to calc(100% - var(--notch-start)) 20px,
            curve to calc(100% - var(--notch-start) - 20px) 0% with calc(100% - var(--notch-start)) 0%,
            line to 20px 0%,
            curve to 0% 20px with 0% 0%,
            line to 0% calc(100% - 20px),
            curve to 20px 100% with 0% 100%,
            line to calc(100% - 20px) 100%,
            curve to 100% calc(100% - 20px) with 100% 100%,
            close
        );
    }
    
    .story-item-text h3{
        max-width: calc(95% - var(--notch-start));
        align-self: flex-start;
    }
}

@media (max-width: 760px){

    .benefits-wrapper{
        gap: 30px;
    }

    header nav{
        padding: 15px 20px;
        margin-top: 20px;
    }

    header nav .logo{
        width: 100px;
    }

    header,
    section{
        padding: 0 20px;
    }

    .hero{
        gap: 20px;
        padding-top: 80px;
    }

    .hero-left h1{
        font-size: 4.5rem;
    }

    .image-gallery {
        columns: 2 160px;
        column-gap: 16px;
    }
    .image-gallery img {
        margin-bottom: 16px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

}

@media (max-width: 480px){

    .story-image{
        width: 100%;
    }

    .story-item-text{
        --notch-start: 35%; 
    }

    .story-item-text h3{
        text-align: start;
    }

}

