/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.1.3
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@font-face {
    font-family: 'BN Axel Grotesk';
    src: url('font/BNAxelGroteskBold.woff2') format('woff2'),
         url('font/BNAxelGroteskBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Branded 404 page. */
body.error404 {
    background: #ebecdc;
}

body.error404 main.site-main.hfc-404 {
    --hfc-ink: #0f0f0f;
    --hfc-cream: #ebecdc;
    --hfc-blue: #7fa5e4;
    --hfc-tan: #d5c4a4;
    --hfc-navy: #1c244b;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--hfc-ink);
}

.hfc-404__layout {
    display: grid;
    grid-template-columns: minmax(0, 46.25%) minmax(0, 53.75%);
    min-height: min(760px, calc(100vh - 72px));
    border-bottom: 1px solid var(--hfc-ink);
}

.hfc-404__visual {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(34px, 4.5vw, 68px);
    border-right: 1px solid var(--hfc-ink);
    background: var(--hfc-navy);
    color: var(--hfc-cream);
}

.hfc-404__visual-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hfc-404__number {
    margin-left: -0.035em;
    font-family: 'BN Axel Grotesk', Montserrat, Arial, sans-serif;
    font-size: clamp(158px, 24vw, 370px);
    font-weight: 700;
    letter-spacing: -0.085em;
    line-height: 0.72;
    white-space: nowrap;
}

.hfc-404__visual-note {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'BN Axel Grotesk', Montserrat, Arial, sans-serif;
    font-size: clamp(23px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
}

.hfc-404__content {
    display: grid;
    align-items: center;
    padding: clamp(60px, 7.5vw, 112px) clamp(30px, 8vw, 125px);
    background: var(--hfc-tan);
}

.hfc-404__content-inner {
    width: min(570px, 100%);
}

.hfc-404__eyebrow,
.hfc-404__search-label {
    display: block;
    margin: 0 0 22px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hfc-404__title {
    max-width: 560px;
    margin: 0;
    color: var(--hfc-ink);
    font-family: 'BN Axel Grotesk', Montserrat, Arial, sans-serif;
    font-size: clamp(48px, 5.65vw, 82px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.91;
    text-transform: uppercase;
}

.hfc-404__intro {
    max-width: 520px;
    margin: 30px 0 0;
    color: var(--hfc-ink);
    font-family: 'Shippori Mincho', Georgia, serif;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
}

.hfc-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hfc-404 .e-button-base {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    border: 0;
    border-radius: 2px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.hfc-404 .e-button-base::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 2px solid var(--hfc-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-in-out;
}

.hfc-404 .e-button-base:hover::after,
.hfc-404 .e-button-base:focus-visible::after {
    opacity: 1;
}

.hfc-404 .e-button-base.button-black {
    margin-right: 0;
    background: var(--hfc-ink);
    color: var(--hfc-cream);
}

.hfc-404 .e-button-base.button-black::after {
    border-color: var(--hfc-cream);
}

.hfc-404 .e-button-base.button-blue {
    background: var(--hfc-blue);
    color: var(--hfc-ink);
}

.hfc-404 .e-button-base:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.hfc-404__utility {
    margin-top: clamp(48px, 6vw, 78px);
    padding-top: 30px;
    border-top: 1px solid rgba(15, 15, 15, 0.45);
}

.hfc-404__search-label {
    margin-bottom: 12px;
}

.hfc-404__search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.hfc-404__search-field {
    min-width: 0;
    min-height: 48px;
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--hfc-ink);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--hfc-ink);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
}

.hfc-404__search-field::placeholder {
    color: rgba(15, 15, 15, 0.58);
    opacity: 1;
}

.hfc-404__search-field:focus-visible {
    outline: 2px solid var(--hfc-blue);
    outline-offset: -3px;
}

.hfc-404__search-submit {
    white-space: nowrap;
}

.hfc-404__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 22px;
}

.hfc-404__nav a {
    color: var(--hfc-ink);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.hfc-404__nav a:hover,
.hfc-404__nav a:focus-visible {
    text-decoration-color: currentColor;
}

@media (max-width: 900px) {
    .hfc-404__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hfc-404__visual {
        min-height: 360px;
        padding: 34px;
        border-right: 0;
        border-bottom: 1px solid var(--hfc-ink);
    }

    .hfc-404__number {
        font-size: clamp(150px, 39vw, 290px);
    }

    .hfc-404__content {
        padding: clamp(60px, 10vw, 90px) clamp(25px, 8vw, 64px);
    }
}

@media (max-width: 520px) {
    .hfc-404__visual {
        min-height: 300px;
        padding: 25px;
    }

    .hfc-404__visual-meta {
        font-size: 10px;
    }

    .hfc-404__title {
        font-size: clamp(43px, 13vw, 62px);
    }

    .hfc-404__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hfc-404__actions .e-button-base {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hfc-404 .e-button-base::after {
        transition: none;
    }
}
