@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400&family=DM+Sans:wght@400;500;600&family=Montserrat:wght@600&family=Playfair+Display:wght@600;700&display=swap");

:root {
    color-scheme: dark;
    font-family: "DM Sans", Arial, sans-serif;
    --gold: #c89537;
    --header-side: clamp(24px, 7.8vw, 126px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    min-width: 320px;
    background: #0b120b;
    color: #fff;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

@supports (height: 100dvh) {
    .hero {
        height: 100dvh;
        min-height: 100dvh;
    }
}

.hero__background,
.hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__background {
    z-index: -3;
    object-fit: cover;
    object-position: center 54%;
}

.hero__overlay {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(3, 8, 4, 0.66) 0%, rgba(5, 10, 6, 0.31) 35%, rgba(3, 7, 4, 0.62) 100%),
        linear-gradient(90deg, rgba(2, 7, 3, 0.25), transparent 48%, rgba(2, 7, 3, 0.18));
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    width: 100%;
    height: clamp(92px, 12vh, 116px);
    padding: max(18px, env(safe-area-inset-top)) var(--header-side) 0;
}

.brand {
    --brand-icon-height: 82px;
    --brand-title-size: 43px;
    --brand-subtitle-size: 13px;
    --brand-gap: 5px;
    --brand-icon-scale: 1.7;
    --brand-icon-shift-x: -5px;
    --brand-icon-shift-y: 34px;
    display: flex;
    align-items: flex-end;
    justify-self: start;
    gap: var(--brand-gap);
    height: 80px;
    text-decoration: none;
    transform: translateY(-8px);
}

.brand__mark {
    position: relative;
    flex: 0 0 auto;
    width: calc(var(--brand-icon-height) * 0.9);
    height: var(--brand-icon-height);
    overflow: visible;
}

.brand__icon {
    position: absolute;
    inset: 0;
    background: #fff;
    -webkit-mask: url("../icons/logo-leaves.svg") center / contain no-repeat;
    mask: url("../icons/logo-leaves.svg") center / contain no-repeat;
    transform: translate(var(--brand-icon-shift-x), var(--brand-icon-shift-y)) scale(var(--brand-icon-scale));
    transform-origin: center bottom;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    transform: translateX(5px);
}

.brand__title {
    color: #fff;
    font-family: "Montserrat", "DM Sans", sans-serif;
    font-size: var(--brand-title-size);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-rendering: geometricPrecision;
}

.brand__subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: var(--brand-subtitle-size);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand__subtitle > span {
    display: block;
    flex: 0 0 auto;
}

.brand__subtitle .brand__gap {
    width: 0.45em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 2.7vw, 46px);
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 18px;
}

.language-button,
.cart-button,
.menu-button {
    border: 0;
    color: #fff;
    cursor: pointer;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(200, 149, 55, 0.55);
    border-radius: 999px;
    background: rgba(10, 14, 10, 0.22);
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.language-button__flag {
    font-size: 15px;
}

.cart-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    background: transparent;
}

.cart-button svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: absolute;
    top: 92px;
    right: 20px;
    left: 20px;
    z-index: 18;
    flex-direction: column;
    gap: 22px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(8, 13, 9, 0.93);
    text-align: center;
    backdrop-filter: blur(16px);
}

.mobile-nav:not([hidden]) {
    display: flex;
}

.cart-popover {
    position: absolute;
    top: calc(100% - 8px);
    right: var(--header-side);
    width: max-content;
    max-width: 220px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(8, 13, 9, 0.92);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    backdrop-filter: blur(12px);
}

.hero__content {
    position: absolute;
    right: clamp(24px, 7vw, 112px);
    bottom: clamp(88px, 10.5vh, 116px);
    left: clamp(24px, 7vw, 112px);
    z-index: 5;
    text-align: center;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.hero__content h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 5vw, 76px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero__subtitle {
    margin: clamp(18px, 2.8vh, 28px) 0 0;
    font-size: clamp(15px, 1.45vw, 21px);
    font-weight: 400;
    line-height: 1.4;
}

.hero__eyebrow {
    margin: clamp(22px, 3.7vh, 38px) 0 0;
    color: var(--gold);
    font-size: clamp(9px, 0.95vw, 13px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: clamp(0.22em, 0.48vw, 0.52em);
}

.whatsapp-contact {
    position: fixed;
    right: max(28px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.68);
    color: #fff;
    font-family: "Montserrat", "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.whatsapp-contact:hover .whatsapp-label {
    transform: translateX(-2px);
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(12, 12, 12, 0.78);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
    transform: scale(1.07);
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.42);
}

.whatsapp-button:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.whatsapp-button svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

@media (max-width: 1100px) {
    :root {
        --header-side: clamp(24px, 4vw, 52px);
    }

    .site-header {
        grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    }

    .desktop-nav {
        gap: 22px;
    }

    .desktop-nav a {
        font-size: 11px;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr auto;
        height: 90px;
        padding: max(16px, env(safe-area-inset-top)) 16px 0;
    }

    .brand {
        --brand-icon-height: 64px;
        --brand-title-size: 33px;
        --brand-subtitle-size: 10px;
        --brand-gap: 4px;
        --brand-icon-scale: 1.7;
        --brand-icon-shift-x: -4px;
        --brand-icon-shift-y: 27px;
        align-self: center;
        height: 64px;
        margin-left: 6px;
        transform: translateY(-6px);
    }

    .brand__copy {
        transform: translateX(4px);
    }

    .brand__subtitle {
        margin-top: 3px;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .language-button {
        min-height: 36px;
        padding: 0 11px;
    }

    .cart-button {
        width: 36px;
        height: 36px;
    }

    .menu-button {
        display: block;
    }

    .cart-popover {
        top: 82px;
        right: 68px;
    }

    .hero__content {
        right: 22px;
        bottom: max(78px, calc(env(safe-area-inset-bottom) + 66px));
        left: 22px;
    }

    .hero__content h1 {
        font-size: clamp(38px, 9.4vw, 58px);
    }

    .hero__eyebrow {
        letter-spacing: 0.25em;
    }

    .whatsapp-contact {
        right: max(18px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
        gap: 9px;
    }

    .whatsapp-label {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .whatsapp-button svg {
        width: 27px;
        height: 27px;
    }
}

@media (max-width: 480px) {
    .site-header {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        padding-right: max(16px, env(safe-area-inset-right));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .brand {
        --brand-icon-height: 51px;
        --brand-title-size: 27px;
        --brand-subtitle-size: 8px;
        --brand-gap: 3px;
        --brand-icon-scale: 1.7;
        --brand-icon-shift-x: -3px;
        --brand-icon-shift-y: 21px;
        flex: 0 1 auto;
        align-self: center;
        height: 52px;
        min-width: 0;
        transform: translateY(-5px);
    }

    .brand__mark {
        align-self: flex-end;
    }

    .brand__copy {
        transform: translateX(3px);
    }

    .brand__subtitle {
        margin-top: 2px;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 2px;
    }

    .language-button {
        width: 34px;
        min-height: 34px;
        padding: 0;
        justify-content: center;
    }

    .cart-button {
        width: 34px;
        height: 34px;
    }

    .menu-button {
        width: 36px;
        height: 36px;
        padding: 7px;
    }

    .language-button [data-language-label] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .hero__background {
        object-position: 62% center;
    }

    .hero__content {
        right: 16px;
        bottom: max(112px, calc(env(safe-area-inset-bottom) + 100px));
        left: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
    }

    .hero__content h1 {
        max-width: 100%;
        font-size: clamp(34px, 10vw, 42px);
        overflow-wrap: normal;
        text-wrap: balance;
    }

    .hero__subtitle {
        margin-top: 16px;
        font-size: 15px;
    }

    .hero__eyebrow {
        max-width: 100%;
        margin-top: 20px;
        font-size: 9px;
        line-height: 1.7;
        letter-spacing: 0.2em;
        overflow-wrap: anywhere;
    }

    .whatsapp-contact {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .whatsapp-label {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .hero__content {
        right: 14px;
        left: 14px;
        max-width: calc(100vw - 28px);
    }

    .hero__content h1 {
        font-size: clamp(34px, 10.5vw, 40px);
        overflow-wrap: break-word;
        text-wrap: balance;
    }
}

@media (max-width: 480px) and (max-height: 700px) {
    .hero__content {
        bottom: max(84px, calc(env(safe-area-inset-bottom) + 74px));
    }

    .hero__content h1 {
        font-size: clamp(30px, 9vw, 36px);
    }

    .hero__subtitle,
    .hero__eyebrow {
        margin-top: 10px;
    }

    .whatsapp-label {
        display: none;
    }
}

@media (max-height: 620px) and (min-width: 481px) {
    .site-header {
        height: 80px;
        padding-top: 10px;
    }

    .brand {
        --brand-icon-height: 56px;
        --brand-title-size: 29px;
        --brand-subtitle-size: 9px;
        --brand-icon-shift-y: 24px;
    }

    .hero__content {
        bottom: 40px;
    }

    .hero__content h1 {
        font-size: clamp(34px, 7vw, 54px);
    }

    .hero__subtitle {
        margin-top: 12px;
    }

    .hero__eyebrow {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
