:root {
    --ink: #0f3d2e;
    --ink-deep: #0a2b21;
    --parchment: #f6f0e1;
    --parchment-2: #F8F3EC;
    --gold: #C89D45;
    --gold-soft: #d8c193;
    --charcoal: #171310;
    --rose: #a34638;
    --cream-text: #f1e9d4;
    --primary: #5B1C1C;
    --dar: #222222;
    --light-yellow: #F8F3EC;
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Jost', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--parchment-2); */
}

body {
    font-family: var(--sans);
    background: var(--light-yellow);
    color: var(--ink);
    overflow-x: hidden;
    position: relative;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--gold);
    color: var(--ink-deep);
}

/* ---------- scrollbar styles ---------- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--parchment-2);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 6px;
    border: 2px solid var(--parchment-2);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-soft);
}

/* ---------- grain texture ---------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    z-index: 9998;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- sound toggle ---------- */
.sound-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    border: 1px solid var(--gold);
    background: rgba(246, 240, 225, 0.95);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(10, 43, 33, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: auto;

}

span.sound-icon {
    height: 100%;
    display: flex;
}

.sound-toggle:hover {
    transform: translateY(-2px);
    background: var(--gold-soft);
    color: var(--ink-deep);
}

.sound-toggle.is-enabled {
    background: var(--gold);
    color: var(--ink-deep);
}

/* ---------- loader ---------- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--parchment);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

#loader img {
    width: 70px;
    opacity: 0;
    height: auto;
    animation: loaderFade 1.6s ease forwards;
    /* filter: invert(14%) sepia(28%) saturate(1200%) hue-rotate(115deg); */
}

@keyframes loaderFade {
    to {
        opacity: 0.85;
        transform: translateX(6px);
    }
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ---------- nav ---------- */
nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0;
    z-index: 500;
    /* mix-blend-mode: difference; */
}

header.header{
    position: relative;
    z-index: 111; 
}

.nav-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-mark img {
    width: 150px;
    filter: invert(1);
}

.nav-word {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.14em;
    color: #fff;
}

.nav-since {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: #fff;
    opacity: 0.65;
    display: block;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 34px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.nav-links a {
    opacity: 0.75;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

@media(max-width:760px) {
    .nav-links {
        display: none;
    }
}

/* ---------- flight layer ---------- */
#flight-layer {
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
}

#flight-layer svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#bird {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    transform: translate(-50%, -50%); 
    will-change: transform;
    filter: drop-shadow(0 8px 18px rgba(15, 61, 46, 0.25));
}

#bird img {
    width: 100%;
        filter: brightness(0) saturate(100%) invert(72%) sepia(39%) saturate(612%) hue-rotate(7deg) brightness(95%) contrast(92%);
}

.trail-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
}

/* ---------- sections ---------- */
#hero,
#origin,
#garden,
#craft,
#collection,
#legacy {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    /* overflow: hidden; */
    justify-content: center;
}

/* .elementor-widget-container section {
    display: inherit;
} */

.eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.02;
}

.reveal1 {
    opacity: 0;
    transform: translateY(46px);
}

/* ===== HERO ===== */

.eyebrow1 {
    color: var(--deeep-ink);
}

#hero {
    background: var(--parchment);
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-top: -107px;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    filter: grayscale(1) brightness(0.8); 
    pointer-events: none;
    --mouse-x: 50%;
    --mouse-y: 50%;
    mask-image: radial-gradient(circle 200px at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle 200px at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    transition: --mouse-x 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), --mouse-y 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-inner1 {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0px;
    justify-content: center;
    gap: initial;
}

#hero .eyebrow {
    justify-content: center;
}

#hero h1 {
    font-size: clamp(48px, 8vw, 108px);
    letter-spacing: -0.01em;
    color: var(--ink-deep);
}

#hero h1 em {
    font-style: italic;
    color: var(--rose);
}

.hero-sub1 {
    max-width: 520px;
    margin: 30px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: #3c4a3f;
    font-weight: 300;
}

.scroll-cue {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-cue .line {
    width: 1px;
    height: 44px;
    background: currentColor;
    overflow: hidden;
}

/* ---------- mouse tracking element ---------- */
#mouse-tracker {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 80px;
    height: 80px;
    z-index: 1;
}

#mouse-tracker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
}

.scroll-cue .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: cueDrip 2.4s ease-in-out infinite;
}

@keyframes cueDrip {
    0% {
        top: -100%;
    }

    60% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* ===== ORIGIN ===== */
#origin {
    background: var(--dar);
    color: var(--cream-text);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#origin .eyebrow {
    color: var(--gold-soft);
}

#origin h2 {
    font-size: clamp(34px, 5vw, 62px);
    /* max-width: 14ch; */
    color: #fff;
}

.origin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
}

.origin-text p {
    font-size: 16px;
    line-height: 1.85;
    font-weight: 300;
    color: #d7cdb2;
    /* max-width: 46ch; */
    margin-top: 28px;
}

.origin-year {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(120px, 16vw, 220px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(214, 193, 147, 0.4);
    text-align: right;
}

@media(max-width:900px) {
    .origin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .origin-year {
        text-align: left;
        font-size: clamp(80px, 24vw, 140px);
    }
}

/* ===== GARDEN ===== */
#garden {
    background: var(--parchment-2) url(../images/HawaMahal.png) no-repeat center -40% / 100% auto;
    flex-direction: column;
}

.garden-inner {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

#garden h2 {
    font-size: clamp(32px, 4.6vw, 54px);
    /* max-width: 16ch; */
    color: var(--ink-deep);
}

.ingredients {
    margin-top: 70px;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(15, 61, 46, 0.2);
}

.ingredient {
    flex: 1 1 220px;
    padding: 30px 26px 30px;
    border-bottom: 1px solid rgba(15, 61, 46, 0.2);
    border-right: 1px solid rgba(15, 61, 46, 0.2);
}

.ingredient:last-child {
    border-right: none;
}

.ingredient-name {
    font-family: var(--serif);
    font-size: 3cqi;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 8px;
}

.ingredient-note {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-deep);
    font-weight: 300;
}

@media(max-width:760px) {
    .ingredient {
        flex: 1 1 100%;
        border-right: none;
    }
}

/* ===== CRAFT ===== */
#craft {
    background: var(--charcoal);
    color: var(--cream-text);
    flex-direction: column;
}

.craft-inner {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

#craft .eyebrow {
    color: var(--gold-soft);
}

#craft h2 {
    font-size: clamp(32px, 4.6vw, 54px);
    color: #fff;
    /* max-width: 18ch; */
    margin-bottom: 60px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.step {
    border-top: 1px solid rgba(241, 233, 212, 0.25);
    padding-top: 22px;
}

.step-num {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 15px;
    letter-spacing: 0.1em;
}

.step-title {
    font-family: var(--serif);
    font-size: 24px;
    margin: 12px 0 10px;
    color: #fff;
}

.step-body {
    font-size: 13.5px;
    line-height: 1.7;
    color: #b9ae93;
    font-weight: 300;
}

@media(max-width:900px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:560px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* ===== COLLECTION ===== */
#collection {
    background: var(--parchment);
    flex-direction: column;
}

.collection-inner {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

#collection h2 {
    font-size: clamp(32px, 4.6vw, 54px);
    /* max-width: 14ch; */
    color: var(--ink-deep);
    margin-bottom: 60px;
}

.bottles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(15, 61, 46, 0.2);
    border: 1px solid rgba(15, 61, 46, 0.2);
}


.collection-grid {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 16px;
}

.collection-grid-30 {
    display: grid;
    align-content: center;
    grid-auto-flow: row;
}

.bottles-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bottle {
    background: var(--parchment);
    padding: 40px 26px;
    transition: background 0.4s ease, transform 0.4s ease;
    cursor: default;
}

.bottle:hover {
    background: var(--ink-deep);
    color: var(--cream-text);
    transform: translateY(-6px);
}

.bottle-mark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--gold);
    text-transform: uppercase;
}

.bottle-name {
    font-family: var(--serif);
    font-size: 30px;
    margin: 16px 0 12px;
    text-align: center;
}

.bottle-note {
    font-size: 13px;
    line-height: 1.65;
    font-weight: 300;
    opacity: 0.75;
}

@media(max-width:900px) {
    .bottles {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:560px) {
    .bottles {
        grid-template-columns: 1fr;
    }
}

/* ===== LEGACY / FOOTER ===== */
#legacy {
    background: var(--charcoal);
    color: var(--cream-text);
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
    justify-content: center;
    min-height: 100vh;
}

#legacy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../images/bg-img-rambhajos.webp) no-repeat center / cover;
    opacity: 0.1;
}


.legacy-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1300px, 160vw);
    transform: translate(-50%, -46%);
    opacity: 0.07;
    pointer-events: none;
}

#legacy .inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

#legacy .eyebrow {
    color: var(--gold-soft);
    justify-content: center;
}

#legacy h2 {
    font-size: clamp(32px, 4.6vw, 54px);
    color: var(--white);
}

#legacy p {
    font-size: 16px;
    line-height: 1.8;
    color: #d7cdb2;
    font-weight: 300;
    /* max-width: 44ch; */
    margin: 26px auto 0;
}

.cta {
    display: inline-block;
    margin-top: 44px;
    padding: 16px 42px;
    border: 1px solid var(--gold-soft);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.4s ease, color 0.4s ease;
}

.cta:hover {
    background: var(--gold-soft);
    color: var(--ink-deep);
}



.main-footer .elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 100%;
}

.footer-row {

    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--cream-text);
    /* border-top: 1px solid rgba(241, 233, 212, 0.15); */
    padding-top: 0;
}


.footer-col h3 {
    font-size: 26px;
    font-weight: 400;
    border-bottom: 1px solid;
    padding-bottom: 15px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    line-height: 35px;
    font-weight: 300;
}

.main-footer {
    padding: 80px 5vw 100px;
    background: var(--charcoal);
    position: relative;
}


.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../images/footerback.png) no-repeat center 20% / 100%;
    opacity: 0.1;
}

.copyright {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    font-size: 20px;
    text-align: center;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    #bird {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal1 {
        opacity: 1;
        transform: none;
    }
}


.top-left-fancy-img-1 {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    max-width: 200px;
}

.top-right-fancy-img-1 {
    position: absolute;
    right: 0;
    bottom: -100px;
    z-index: 11;
}

.elementor-4361 .elementor-element.elementor-element-7560f3e .elementor-icon-list-item {
    font-size: 14px !important;
    line-height: 1.5em;
}


.elementor-4366 .elementor-element.elementor-element-e0ad86a .elementor-nav-menu .elementor-item {
    font-family: 'Jost' !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5em;
    padding: 0 !important;
}


nav.elementor-nav-menu--main.elementor-nav-menu__container.elementor-nav-menu--layout-vertical.e--pointer-none {
    justify-content: start;
}


 
/* .header.scroll-up {
    position: fixed;
    z-index: 11;
    transition: 1s;
    transform: translateY(0);
    left: 0;
    right: 0;
}

.header.scroll-down {
    position: relative;
    transition: .5s;
    transform: translateY(-100%);
} */


.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    position: sticky;
    top: 0;
}