/*
Theme Name: Anna Maria Stern
Template: astra
Version: 1.0.0
*/

html {
    padding-top: 0 !important;
}

#primary {
    margin: 0;
}


/*
body.home {
      background: radial-gradient(
        ellipse at 55% 45%,

        #bc9696 0%,

        color-mix(in srgb, #a98282, white 40%) 15%,  
        color-mix(in srgb, #7c5656, white 40%) 40%,  
        color-mix(in srgb, #5e4242, white 30%) 65%,
        color-mix(in srgb, #452c2c, white 30%) 85%,
        color-mix(in srgb, #3c2222, white 30%) 100%
      );

      min-height: 100vh;
      width: 100%;

    .entry-content {
        .wp-block-image.hero-image {
            display: block;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            margin: 0;

            img {
                width: 100%;
                max-width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center top;
                pointer-events: none;
                user-select: none;
            }
        }
    }

    .site-header-primary-section-center {
        .site-logo-img {
            position: relative;

            &::after {
                content: "MAKE-UP ARTIST";
                position: absolute;
                top: 300%;
                left: 0;
                right: 0;
                text-align: center;
                font-family: "Cormorant Upright", serif;
                font-weight: 600;
                font-size: 24px;
                color: white;
                text-transform: uppercase;
                pointer-events: none;
            }
        }
    }
}
*/


/* Form */

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 30px;

    p {
        margin: 0 !important;
    }

    input:not([type="submit"]),
    textarea {
        border: none;
        border-bottom: 1px solid var(--ast-global-color-2);
        background: none;
        outline: none;
        padding: 10px 10px 10px;
        width: 100%;
        font-weight: 300;
        font-size: 24px;
        line-height: 28px;
        text-transform: uppercase;
        color: var(--ast-global-color-2);
        border-radius: 0;

        &::placeholder {
            color: var(--ast-global-color-2);
        }
    }

    textarea {
        resize: none;
        height: 140px;
    }

    input.wpcf7-form-control.wpcf7-submit.has-spinner {
        text-transform: uppercase !important;
        border: 1px solid white;
        border-bottom-color: var(--ast-global-color-2);
        letter-spacing: 0;

        &:hover, &:focus{
            background: none;
            border: 1px solid var(--ast-global-color-2);
        }
    }
}


/* Video autoplay on hover */
/* Hover Video */
.hover-video {
  position: relative;
  cursor: pointer;
  line-height: 0;
}

/* Hide default controls */
.hover-video video {
  display: block;
  width: 100%;
  pointer-events: none;
}

.hover-video video::-webkit-media-controls {
  display: none !important;
}

.hover-video video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Overlay: use your brand colour at ~40% opacity */
.hover-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(208, 181, 181, 0.4);
  transition: opacity 0.25s ease;
  z-index: 1;
}

/* Play button: outlined triangle, no fill */
.hover-video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='6,3 20,12 6,21' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.25s ease;
  z-index: 2;
}

/* On hover: hide overlay and button */
.hover-video:hover::before,
.hover-video:hover::after {
  opacity: 0;
}


/* Footer */
#astra-footer-menu {
    font-family: "Cormorant Upright", serif;
    font-size: 20px;
    text-transform: uppercase;
}


/* Header */
.custom-header {
    position: relative;

    .custom-header__logo {
        filter: url(#ast-img-color-filter);
        transition: all 0.2s linear;
    }

    .custom-header__link {
        color: var(--ast-global-color-2);

        &.active {
            color: var(--ast-global-color-0);
            text-decoration: underline;
            text-underline-offset: 4px;
            text-decoration-thickness: 1px;
        }
    }
}



body.home {
    .custom-header__logo-wrap {
        position: relative;

        &::after {
            content: "MAKE-UP ARTIST";
            position: absolute;
            top: 120%;
            left: 0;
            right: 0;
            text-align: center;
            font-family: "Cormorant Upright", serif;
            font-weight: 600;
            font-size: 24px;
            color: var(--ast-global-color-2);
            text-transform: uppercase;
            pointer-events: none;
            white-space: nowrap;
        }
    }
}


.custom-header {
    display: flex;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    align-items: center;
    padding: 34px 48px 80px;
    background: transparent;

    .custom-header__inner {
        max-width: 1276px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .custom-header__nav {
        display: flex;
        gap: 40px;
        width: 20%;

        &.left {
			justify-content: left;
        }

        &.right {
        	justify-content: right;
        }
    }

    .custom-header__link {
        font-family: "Cormorant Upright", serif;
        font-size: 0.83333333333333rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--ast-global-color-2);
        text-decoration: none;

        &:hover {
            opacity: 0.6;
        }
    }

    .custom-header__logo {
        height: auto;
        width: 600px;
    }

    .custom-header__burger {
        display: none;
    }

    .custom-header__mobile-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .custom-header {

        .custom-header__inner {
            justify-content: center;
            position: relative;
            gap: 0;

            .custom-header__logo {
                width: 220px;
            }

            .custom-header__burger {
                position: absolute;
                right: 0;

                span {
                    background: var(--ast-global-color-2);
                }
            }
        }
    }

    .custom-header {
        padding: 20px 24px;

            .custom-header__inner {
                flex-wrap: wrap;
                justify-content: center;
                gap: 50px;

                .custom-header__logo {
                    width: 100%;
                }

                .custom-header__nav {
                    display: none;
                }

                .custom-header__burger {
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    background: none;
                    border: none;
                    cursor: pointer;
                    padding: 0;

                    span {
                        display: block;
                        width: 24px;
                        height: 1px;
                        background: white;
                        transition: opacity 0.2s;
                    }
                }
            }

            .custom-header__mobile-menu {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: color-mix(in srgb, var(--ast-global-color-0), transparent 3%);
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 40px;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;

                a {
                    font-family: "Cormorant Upright", serif;
                    font-size: 32px;
                    text-transform: uppercase;
                    color: white;
                    text-decoration: none;
                    letter-spacing: 0.1em;

                    &.burger__link.active {
                        text-decoration: underline;
                        text-underline-offset: 4px;
                        text-decoration-thickness: 1.5px;
                    }
                }

                .custom-header__mobile-close {
                    position: absolute;
                    top: 24px;
                    right: 24px;
                    background: none;
                    border: none;
                    color: white;
                    font-size: 24px;
                    cursor: pointer;
                    padding: 0;
                    line-height: 1;
                }
            }

            &.menu-open {
                .custom-header__mobile-menu {
                    opacity: 1;
                    pointer-events: all;
                }
            }
        }
    }


/* Mobile */
@media (max-width: 768px) {
	/*
    body.home {
        .entry-content {
            .wp-block-image.hero-image {
                height: 100vh;

                img {
                    object-position: center 15%;
                    height: 135%;
                }
            }
        }
    }
	*/

    main {
        margin-top: 20px;
    }

    .wp-block-gallery.columns-2 {
        figure {
            width: 100% !important;
        }
    }

    .about-boxes {
        flex-direction: column-reverse;
        p {
            margin-block-start: 20px;
        }
    }
}